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 : 2967170 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 (2668476) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2668476) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417119 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2668476'] with mtr_portfolio_ids : ['21417119'] and first list_photo_ids : [] new path : /proc/2967170/ Name: python3 Umask: 0002 State: R (running) Tgid: 2967170 Ngid: 0 Pid: 2967170 PPid: 2967169 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2967170 NSpid: 2967170 NSpgid: 2965255 NSsid: 2965255 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98740 kB VmRSS: 98740 kB RssAnon: 59760 kB RssFile: 38980 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 612 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: 59 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2967170', 'Ngid': '0', 'Pid': '2967170', 'PPid': '2967169', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2967170', 'NSpid': '2967170', 'NSpgid': '2965255', 'NSsid': '2965255', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98740 kB', 'VmRSS': '98740 kB', 'RssAnon': '59760 kB', 'RssFile': '38980 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '59', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '2967170', '1106844', '0', '1106844', '865596', '98740', b'', 'marlene', '2668476') 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 (21417119) 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 (2668476 ) ) 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 (21417119) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1344101412, 'portfolio_id': 21417119}, {'photo_id': 1344101409, 'portfolio_id': 21417119}, {'photo_id': 1344101407, 'portfolio_id': 21417119}, {'photo_id': 1344101404, 'portfolio_id': 21417119}, {'photo_id': 1344101403, 'portfolio_id': 21417119}, {'photo_id': 1344101400, 'portfolio_id': 21417119}, {'photo_id': 1344101399, 'portfolio_id': 21417119}, {'photo_id': 1344101390, 'portfolio_id': 21417119}, {'photo_id': 1344101379, 'portfolio_id': 21417119}, {'photo_id': 1344101376, 'portfolio_id': 21417119}, {'photo_id': 1344101369, 'portfolio_id': 21417119}, {'photo_id': 1344101323, 'portfolio_id': 21417119}, {'photo_id': 1344101269, 'portfolio_id': 21417119}, {'photo_id': 1344101268, 'portfolio_id': 21417119}, {'photo_id': 1344101265, 'portfolio_id': 21417119}, {'photo_id': 1344101261, 'portfolio_id': 21417119}, {'photo_id': 1344101256, 'portfolio_id': 21417119}, {'photo_id': 1344101252, 'portfolio_id': 21417119}, {'photo_id': 1344101242, 'portfolio_id': 21417119}, {'photo_id': 1344101238, 'portfolio_id': 21417119}, {'photo_id': 1344101236, 'portfolio_id': 21417119}, {'photo_id': 1344101228, 'portfolio_id': 21417119}, {'photo_id': 1344101225, 'portfolio_id': 21417119}, {'photo_id': 1344101213, 'portfolio_id': 21417119}, {'photo_id': 1344101211, 'portfolio_id': 21417119}, {'photo_id': 1344101202, 'portfolio_id': 21417119}, {'photo_id': 1344101198, 'portfolio_id': 21417119}, {'photo_id': 1344101192, 'portfolio_id': 21417119}, {'photo_id': 1344101185, 'portfolio_id': 21417119}, {'photo_id': 1344101097, 'portfolio_id': 21417119}, {'photo_id': 1344101092, 'portfolio_id': 21417119}, {'photo_id': 1344101090, 'portfolio_id': 21417119}, {'photo_id': 1344101038, 'portfolio_id': 21417119}, {'photo_id': 1344101005, 'portfolio_id': 21417119}, {'photo_id': 1344100993, 'portfolio_id': 21417119}, {'photo_id': 1344100980, 'portfolio_id': 21417119}, {'photo_id': 1344100963, 'portfolio_id': 21417119}, {'photo_id': 1344100955, 'portfolio_id': 21417119}, {'photo_id': 1344100938, 'portfolio_id': 21417119}, {'photo_id': 1344100929, 'portfolio_id': 21417119}, {'photo_id': 1344100922, 'portfolio_id': 21417119}, {'photo_id': 1344100916, 'portfolio_id': 21417119}, {'photo_id': 1344100871, 'portfolio_id': 21417119}, {'photo_id': 1344100757, 'portfolio_id': 21417119}, {'photo_id': 1344100753, 'portfolio_id': 21417119}, {'photo_id': 1344100726, 'portfolio_id': 21417119}, {'photo_id': 1344100702, 'portfolio_id': 21417119}, {'photo_id': 1344100691, 'portfolio_id': 21417119}, {'photo_id': 1344100683, 'portfolio_id': 21417119}, {'photo_id': 1344100672, 'portfolio_id': 21417119}, {'photo_id': 1344100648, 'portfolio_id': 21417119}, {'photo_id': 1344100612, 'portfolio_id': 21417119}, {'photo_id': 1344100591, 'portfolio_id': 21417119}, {'photo_id': 1344100580, 'portfolio_id': 21417119}, {'photo_id': 1344100562, 'portfolio_id': 21417119}, {'photo_id': 1344100549, 'portfolio_id': 21417119}, {'photo_id': 1344100544, 'portfolio_id': 21417119}, {'photo_id': 1344100529, 'portfolio_id': 21417119}, {'photo_id': 1344100428, 'portfolio_id': 21417119}] map_portfolio_id_photo_id: {21417119: [1344101412, 1344101409, 1344101407, 1344101404, 1344101403, 1344101400, 1344101399, 1344101390, 1344101379, 1344101376, 1344101369, 1344101323, 1344101269, 1344101268, 1344101265, 1344101261, 1344101256, 1344101252, 1344101242, 1344101238, 1344101236, 1344101228, 1344101225, 1344101213, 1344101211, 1344101202, 1344101198, 1344101192, 1344101185, 1344101097, 1344101092, 1344101090, 1344101038, 1344101005, 1344100993, 1344100980, 1344100963, 1344100955, 1344100938, 1344100929, 1344100922, 1344100916, 1344100871, 1344100757, 1344100753, 1344100726, 1344100702, 1344100691, 1344100683, 1344100672, 1344100648, 1344100612, 1344100591, 1344100580, 1344100562, 1344100549, 1344100544, 1344100529, 1344100428]} ##### 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.11731195449829102 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Mar 14 09:43: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 (21417119) 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 : 21417119 get user id for portfolio 21417119 get sub ptf for main ptf 21417119, type 3726 and hashtags ['metal', 'plastique', 'autre_refus', 'Carton_gris', 'cartonnette', 'Carton_brun', 'environnement', 'papier', 'mal_croppe', 'Teint_Dans_La_Masse', 'flou', 'kraft'] 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`=21417119 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','autre_refus','Carton_gris','cartonnette','Carton_brun','environnement','papier','mal_croppe','Teint_Dans_La_Masse','flou','kraft')) 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`=21417119 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','autre_refus','Carton_gris','cartonnette','Carton_brun','environnement','papier','mal_croppe','Teint_Dans_La_Masse','flou','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21417119, 'sub_port_id': 21417140, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989342, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 21417119, 'sub_port_id': 21417141, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989343, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 32)}, 'metal': {'main_port_id': 21417119, 'sub_port_id': 21417142, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989344, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 32)}, 'kraft': {'main_port_id': 21417119, 'sub_port_id': 21417143, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989345, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 32)}, 'environnement': {'main_port_id': 21417119, 'sub_port_id': 21417144, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989346, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 32)}, 'Carton_brun': {'main_port_id': 21417119, 'sub_port_id': 21417145, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989347, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 32)}, 'autre_refus': {'main_port_id': 21417119, 'sub_port_id': 21417146, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989348, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 32)}, 'mal_croppe': {'main_port_id': 21417119, 'sub_port_id': 21417147, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989349, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 32)}, 'papier': {'main_port_id': 21417119, 'sub_port_id': 21417148, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989350, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 32)}, 'plastique': {'main_port_id': 21417119, 'sub_port_id': 21417149, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989351, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 32)}, 'Carton_gris': {'main_port_id': 21417119, 'sub_port_id': 21417150, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989352, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 32)}, 'flou': {'main_port_id': 21417119, 'sub_port_id': 21417151, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989353, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 41, 16), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 32)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21417140 , 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=21417119 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 (21417140) result : ((1344100977,), (1344100981,), (1344101182,), (1344101203,), (1344101204,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417119) result : ((1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,)) 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 (1344101400) 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 21417141 , 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=21417119 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 (21417141) result : ((1344100956,), (1344100957,), (1344100958,), (1344100960,), (1344100961,), (1344101191,), (1344101315,), (1344101326,), (1344101327,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417119) result : ((1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,)) 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 (1344101400) 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 21417142 , 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=21417119 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 (21417142) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417119) result : ((1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,)) 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 (1344101400) 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 21417143 , 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=21417119 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 (21417143) result : ((1344101007,), (1344101008,), (1344101009,), (1344101011,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417119) result : ((1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,)) 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 (1344101400) 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 21417144 , 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=21417119 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 (21417144) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417119) result : ((1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,)) 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 (1344101400) 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 21417145 , 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=21417119 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 (21417145) result : ((1344100982,), (1344100983,), (1344100984,), (1344100985,), (1344100986,), (1344100987,), (1344100988,), (1344101184,), (1344101205,), (1344101206,), (1344101319,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417119) result : ((1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,)) 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 (1344101400) 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 21417146 , 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=21417119 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 (21417146) result : ((1344100964,), (1344100965,), (1344100966,), (1344100967,), (1344100968,), (1344100969,), (1344100970,), (1344100971,), (1344100973,), (1344101180,), (1344101181,), (1344101194,), (1344101195,), (1344101196,), (1344101197,), (1344101317,), (1344101318,), (1344101328,), (1344101329,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417119) result : ((1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,)) 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 (1344101400) 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 21417147 , 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=21417119 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 (21417147) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417119) result : ((1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,)) 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 (1344101400) 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 21417148 , 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=21417119 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 (21417148) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417119) result : ((1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,)) 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 (1344101400) 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 21417149 , 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=21417119 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 (21417149) result : ((1344100991,), (1344100995,), (1344100996,), (1344100997,), (1344100998,), (1344100999,), (1344101000,), (1344101001,), (1344101002,), (1344101003,), (1344101186,), (1344101187,), (1344101188,), (1344101189,), (1344101190,), (1344101207,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417119) result : ((1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,)) 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 (1344101400) 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 21417150 , 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=21417119 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 (21417150) result : ((1344100975,), (1344100978,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417119) result : ((1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,)) 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 (1344101400) 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 21417151 , 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=21417119 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 (21417151) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21417119) result : ((1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,)) 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 (1344101400) 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`=21417119 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','autre_refus','Carton_gris','cartonnette','Carton_brun','environnement','papier','mal_croppe','Teint_Dans_La_Masse','flou','kraft')) 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`=21417119 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','autre_refus','Carton_gris','cartonnette','Carton_brun','environnement','papier','mal_croppe','Teint_Dans_La_Masse','flou','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21417119, 'sub_port_id': 21417153, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989354, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 21417119, 'sub_port_id': 21417154, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989355, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 34)}, 'metal': {'main_port_id': 21417119, 'sub_port_id': 21417155, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989356, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 34)}, 'kraft': {'main_port_id': 21417119, 'sub_port_id': 21417156, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989357, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 34)}, 'environnement': {'main_port_id': 21417119, 'sub_port_id': 21417157, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989358, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 34)}, 'Carton_brun': {'main_port_id': 21417119, 'sub_port_id': 21417158, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989359, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 34)}, 'autre_refus': {'main_port_id': 21417119, 'sub_port_id': 21417159, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989360, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 34)}, 'mal_croppe': {'main_port_id': 21417119, 'sub_port_id': 21417160, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989361, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 34)}, 'papier': {'main_port_id': 21417119, 'sub_port_id': 21417161, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989362, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 34)}, 'plastique': {'main_port_id': 21417119, 'sub_port_id': 21417162, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989363, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 34)}, 'Carton_gris': {'main_port_id': 21417119, 'sub_port_id': 21417163, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989364, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 36, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 34)}, 'flou': {'main_port_id': 21417119, 'sub_port_id': 21417164, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13989365, 'last_updated_at': datetime.datetime(2025, 3, 14, 9, 41, 17), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 9, 41, 17), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 9, 36, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21417153,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417140 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21417154,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417141 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21417155,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417142 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21417156,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417143 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21417157,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417144 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21417158,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417145 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21417159,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417146 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21417160,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417147 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21417161,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417148 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21417162,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417149 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21417163,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417150 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21417164,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21417151 lien utilise dans velours : https://www.fotonower.com/velours/21417153,21417154,21417155,21417156,21417157,21417158,21417159,21417160,21417161,21417162,21417163,21417164?tags=cartonnette,Teint_Dans_La_Masse,metal,kraft,environnement,Carton_brun,autre_refus,mal_croppe,papier,plastique,Carton_gris,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21417119]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1344101412, 1344101409, 1344101407, 1344101404, 1344101403, 1344101400, 1344101399, 1344101390, 1344101379, 1344101376, 1344101369, 1344101323, 1344101269, 1344101268, 1344101265, 1344101261, 1344101256, 1344101252] map_info['map_portfolio_photo'] : {21417119: [1344101412, 1344101409, 1344101407, 1344101404, 1344101403, 1344101400, 1344101399, 1344101390, 1344101379, 1344101376, 1344101369, 1344101323, 1344101269, 1344101268, 1344101265, 1344101261, 1344101256, 1344101252, 1344101242, 1344101238, 1344101236, 1344101228, 1344101225, 1344101213, 1344101211, 1344101202, 1344101198, 1344101192, 1344101185, 1344101097, 1344101092, 1344101090, 1344101038, 1344101005, 1344100993, 1344100980, 1344100963, 1344100955, 1344100938, 1344100929, 1344100922, 1344100916, 1344100871, 1344100757, 1344100753, 1344100726, 1344100702, 1344100691, 1344100683, 1344100672, 1344100648, 1344100612, 1344100591, 1344100580, 1344100562, 1344100549, 1344100544, 1344100529, 1344100428]} final : False mtd_id 4302 list_pids : [1344101412, 1344101409, 1344101407, 1344101404, 1344101403, 1344101400, 1344101399, 1344101390, 1344101379, 1344101376, 1344101369, 1344101323, 1344101269, 1344101268, 1344101265, 1344101261, 1344101256, 1344101252] Looping around the photos to save general results len do output : 1 /21417119. 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, '2668476') ('4302', '21417119', '1344101412', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101409', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101407', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101404', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101403', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101400', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101399', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101390', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101379', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101376', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101369', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101323', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101269', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101268', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101265', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101261', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101256', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101252', None, None, None, None, None, '2668476') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '21417119', "{'cartonnette': 21417140, 'Teint_Dans_La_Masse': 21417141, 'metal': 21417142, 'kraft': 21417143, 'environnement': 21417144, 'Carton_brun': 21417145, 'autre_refus': 21417146, 'mal_croppe': 21417147, 'papier': 21417148, 'plastique': 21417149, 'Carton_gris': 21417150, 'flou': 21417151}", None, None, None, None, '2668476'), ('4302', '21417119', '1344101412', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101409', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101407', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101404', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101403', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101400', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101399', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101390', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101379', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101376', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101369', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101323', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101269', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101268', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101265', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101261', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101256', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101252', None, None, None, None, None, '2668476')] time used for this insertion : 0.014806509017944336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.44731831550598145 time spend to save output : 0.01515817642211914 total time spend for step 1 : 0.4624764919281006 step2:final Fri Mar 14 09:43: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 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 (21417119) 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 21417119 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1344100428,1344100580,1344100757,1344100562,1344100549,1344100753,1344100544,1344100726,1344100529,1344100702,1344100691,1344100683,1344100672,1344100648,1344100612,1344100591,1344100938,1344100929,1344100922,1344100916,1344100871,1344101005,1344100993,1344100980,1344100963,1344100955,1344101242,1344101236,1344101238,1344101097,1344101228,1344101092,1344101225,1344101090,1344101213,1344101038,1344101211,1344101202,1344101198,1344101192,1344101185,1344101269,1344101268,1344101265,1344101261,1344101256,1344101252,1344101407,1344101403,1344101399,1344101376,1344101369,1344101323,1344101412,1344101409,1344101404,1344101400,1344101390,1344101379); 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([21417119]) Inside saveOutput : final : False verbose : True original output for save of step final : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} new output for save of step final : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} [1344101412, 1344101409, 1344101407, 1344101404, 1344101403, 1344101400, 1344101399, 1344101390, 1344101379, 1344101376, 1344101369, 1344101323, 1344101269, 1344101268, 1344101265, 1344101261, 1344101256, 1344101252] map_info['map_portfolio_photo'] : {21417119: [1344101412, 1344101409, 1344101407, 1344101404, 1344101403, 1344101400, 1344101399, 1344101390, 1344101379, 1344101376, 1344101369, 1344101323, 1344101269, 1344101268, 1344101265, 1344101261, 1344101256, 1344101252, 1344101242, 1344101238, 1344101236, 1344101228, 1344101225, 1344101213, 1344101211, 1344101202, 1344101198, 1344101192, 1344101185, 1344101097, 1344101092, 1344101090, 1344101038, 1344101005, 1344100993, 1344100980, 1344100963, 1344100955, 1344100938, 1344100929, 1344100922, 1344100916, 1344100871, 1344100757, 1344100753, 1344100726, 1344100702, 1344100691, 1344100683, 1344100672, 1344100648, 1344100612, 1344100591, 1344100580, 1344100562, 1344100549, 1344100544, 1344100529, 1344100428]} final : False mtd_id 4302 list_pids : [1344101412, 1344101409, 1344101407, 1344101404, 1344101403, 1344101400, 1344101399, 1344101390, 1344101379, 1344101376, 1344101369, 1344101323, 1344101269, 1344101268, 1344101265, 1344101261, 1344101256, 1344101252] Looping around the photos to save general results len do output : 18 /1344101412.Didn't retrieve data . /1344101409.Didn't retrieve data . /1344101407.Didn't retrieve data . /1344101404.Didn't retrieve data . /1344101403.Didn't retrieve data . /1344101400.Didn't retrieve data . /1344101399.Didn't retrieve data . /1344101390.Didn't retrieve data . /1344101379.Didn't retrieve data . /1344101376.Didn't retrieve data . /1344101369.Didn't retrieve data . /1344101323.Didn't retrieve data . /1344101269.Didn't retrieve data . /1344101268.Didn't retrieve data . /1344101265.Didn't retrieve data . /1344101261.Didn't retrieve data . /1344101256.Didn't retrieve data . /1344101252.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, '2668476') ('4302', '21417119', '1344101412', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101409', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101407', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101404', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101403', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101400', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101399', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101390', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101379', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101376', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101369', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101323', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101269', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101268', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101265', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101261', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101256', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101252', None, None, None, None, None, '2668476') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '21417119', '1344101412', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101409', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101407', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101404', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101403', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101400', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101399', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101390', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101379', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101376', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101369', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101323', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101269', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101268', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101265', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101261', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101256', '0.0937332638175343', None, None, None, None, '2668476'), ('4302', '21417119', '1344101252', '0.0937332638175343', None, None, None, None, '2668476')] time used for this insertion : 0.018053770065307617 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5382976531982422 time spend to save output : 0.019550561904907227 total time spend for step 2 : 0.5578482151031494 step3:velours_tree Fri Mar 14 09:43: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 : {21417119: [{'cartonnette': 21417140, 'Teint_Dans_La_Masse': 21417141, 'metal': 21417142, 'kraft': 21417143, 'environnement': 21417144, 'Carton_brun': 21417145, 'autre_refus': 21417146, 'mal_croppe': 21417147, 'papier': 21417148, 'plastique': 21417149, 'Carton_gris': 21417150, 'flou': 21417151}]} input_args_next_step : {21417119: ()} output_args : {21417119: [{'cartonnette': 21417140, 'Teint_Dans_La_Masse': 21417141, 'metal': 21417142, 'kraft': 21417143, 'environnement': 21417144, 'Carton_brun': 21417145, 'autre_refus': 21417146, 'mal_croppe': 21417147, 'papier': 21417148, 'plastique': 21417149, 'Carton_gris': 21417150, 'flou': 21417151}]} args : 21417119 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 : ({'cartonnette': 21417140, 'Teint_Dans_La_Masse': 21417141, 'metal': 21417142, 'kraft': 21417143, 'environnement': 21417144, 'Carton_brun': 21417145, 'autre_refus': 21417146, 'mal_croppe': 21417147, 'papier': 21417148, 'plastique': 21417149, 'Carton_gris': 21417150, 'flou': 21417151},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21417119) 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([21417119]) 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.414966344833374 time spend to save output : 5.841255187988281e-05 total time spend for step 3 : 0.4150247573852539 step4:send_mail_cod Fri Mar 14 09:43: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 : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} input_args_next_step : {1344101412: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101412 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101409 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101407 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101404 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101403 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101400 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101399 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101390 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101379 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101376 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101369 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101323 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101269 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101268 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101265 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101261 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101256 depend.output_id : 0 input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ()} output_args : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',)} args : 1344101252 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 : {21417119: [{'cartonnette': 21417140, 'Teint_Dans_La_Masse': 21417141, 'metal': 21417142, 'kraft': 21417143, 'environnement': 21417144, 'Carton_brun': 21417145, 'autre_refus': 21417146, 'mal_croppe': 21417147, 'papier': 21417148, 'plastique': 21417149, 'Carton_gris': 21417150, 'flou': 21417151}]} input_args_next_step : {1344101412: ('0.0937332638175343',), 1344101409: ('0.0937332638175343',), 1344101407: ('0.0937332638175343',), 1344101404: ('0.0937332638175343',), 1344101403: ('0.0937332638175343',), 1344101400: ('0.0937332638175343',), 1344101399: ('0.0937332638175343',), 1344101390: ('0.0937332638175343',), 1344101379: ('0.0937332638175343',), 1344101376: ('0.0937332638175343',), 1344101369: ('0.0937332638175343',), 1344101323: ('0.0937332638175343',), 1344101269: ('0.0937332638175343',), 1344101268: ('0.0937332638175343',), 1344101265: ('0.0937332638175343',), 1344101261: ('0.0937332638175343',), 1344101256: ('0.0937332638175343',), 1344101252: ('0.0937332638175343',), 21417119: ()} output_args : {21417119: [{'cartonnette': 21417140, 'Teint_Dans_La_Masse': 21417141, 'metal': 21417142, 'kraft': 21417143, 'environnement': 21417144, 'Carton_brun': 21417145, 'autre_refus': 21417146, 'mal_croppe': 21417147, 'papier': 21417148, 'plastique': 21417149, 'Carton_gris': 21417150, 'flou': 21417151}]} args : 21417119 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 :19, first value : ('0.0937332638175343',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21417119) 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 (1344101412,1344101409,1344101407,1344101404,1344101403,1344101400,1344101399,1344101390,1344101379,1344101376,1344101369,1344101323,1344101269,1344101268,1344101265,1344101261,1344101256,1344101252) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1344101252 begin to download photo : 1344101268 begin to download photo : 1344101376 begin to download photo : 1344101400 begin to download photo : 1344101409 download finish for photo 1344101376 begin to download photo : 1344101379 download finish for photo 1344101268 begin to download photo : 1344101269 download finish for photo 1344101400 begin to download photo : 1344101403 download finish for photo 1344101252 begin to download photo : 1344101256 download finish for photo 1344101409 begin to download photo : 1344101412 download finish for photo 1344101379 begin to download photo : 1344101390 download finish for photo 1344101412 download finish for photo 1344101269 begin to download photo : 1344101323 download finish for photo 1344101256 begin to download photo : 1344101261 download finish for photo 1344101403 begin to download photo : 1344101404 download finish for photo 1344101323 begin to download photo : 1344101369 download finish for photo 1344101390 begin to download photo : 1344101399 download finish for photo 1344101261 begin to download photo : 1344101265 download finish for photo 1344101404 begin to download photo : 1344101407 download finish for photo 1344101369 download finish for photo 1344101399 download finish for photo 1344101265 download finish for photo 1344101407 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 : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P21417119_14-03-2025_09_44_00.pdf 21417140 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=21417140 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344100977: '1741941373_312425_1344100591_b612bfa127b126e15bebad2a815c8df1_rle_crop_3711677083_0.png', 1344100981: '1741941386_1170868_1344100549_f00380a0ba37e80bdeb69f4307f2e7ea_rle_crop_3711676985_0.png', 1344101182: '1741941491_313760_1344100871_1e3d44472a1ee4dda2ce6f9864777fed_rle_crop_3711677403_0.png', 1344101203: '1741941506_1173584_1344100963_6d7f8321511c837b37fbd4525a1f1d57_rle_crop_3711677439_0.png', 1344101204: '1741941506_1173584_1344100955_0df664b4a3cad76a27ee3479791a8ebe_rle_crop_3711677452_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8d2f55f59d8336142d60f7895043cabc_58090516.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b300c651c513949d7e2cdb39164e4936_15668104.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/eb00bf822249603c7d185fe8dbc9527c_78056399.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2e00dee664bd18c67f84b10cf955d72e_17782592.png change filename to text .imagette214171401741941840/ imagette214171401741941840/1741941491_313760_1344100871_1e3d44472a1ee4dda2ce6f9864777fed_rle_crop_3711677403_0.png.png imagette214171401741941840/1741941506_1173584_1344100963_6d7f8321511c837b37fbd4525a1f1d57_rle_crop_3711677439_0.png.png imagette214171401741941840/1741941373_312425_1344100591_b612bfa127b126e15bebad2a815c8df1_rle_crop_3711677083_0.png.png imagette214171401741941840/1741941386_1170868_1344100549_f00380a0ba37e80bdeb69f4307f2e7ea_rle_crop_3711676985_0.png.png imagette214171401741941840/1741941506_1173584_1344100955_0df664b4a3cad76a27ee3479791a8ebe_rle_crop_3711677452_0.png.png imagette214171421741941840/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d2d9f6feadf858d70e3ffa23ffa20ba5_90396149.png imagette214171401741941840 21417142 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=21417142 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214171421741941840 21417143 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=21417143 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344101007: '1741941373_312425_1344100683_46a7c2f685f128ffb994bd0eb34a9f31_rle_crop_3711676974_0.png', 1344101008: '1741941373_312425_1344100672_e25ea40dcd7dc12a46ed0e19ddb09f3d_rle_crop_3711676995_0.png', 1344101009: '1741941373_312425_1344100648_4d2851d671b5cff0fffb6fdfd03bd0d6_rle_crop_3711677027_0.png', 1344101011: '1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677068_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2d3c8ab9a9c891e604f95b13422af1d2_53489011.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1c877f5b02d676269a0a1d0222693424_99143406.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/af6e1da163e27d322e2ee7a99806a0c5_90838440.png change filename to text .imagette214171431741941840/ imagette214171431741941840/1741941373_312425_1344100648_4d2851d671b5cff0fffb6fdfd03bd0d6_rle_crop_3711677027_0.png.png imagette214171431741941840/1741941373_312425_1344100683_46a7c2f685f128ffb994bd0eb34a9f31_rle_crop_3711676974_0.png.png imagette214171431741941840/1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677068_0.png.png imagette214171431741941840/1741941373_312425_1344100672_e25ea40dcd7dc12a46ed0e19ddb09f3d_rle_crop_3711676995_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a5f8bf41fb1c1322382db702ff9a53ed_54719715.png imagette214171431741941840 21417146 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=21417146 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344101180: '1741941491_313760_1344100929_2aa1b28d4e81fd8150e8c40db6feaf32_rle_crop_3711677362_0.png', 1344101329: '1741941710_315048_1344101236_5df8e94d88f75e5cfddcf35a448ebf42_rle_crop_3711677991_0.png', 1344101328: '1741941710_315048_1344101242_b6602c4ee26aafe4e37c024a763e8c84_rle_crop_3711677975_0.png', 1344101318: '1741941691_314925_1344101198_8b23c8d9e64f00b686d7aa7f275b6464_rle_crop_3711677957_0.png', 1344101317: '1741941691_314925_1344101202_5ee4cb086a60db440852414cadfc2f31_rle_crop_3711677933_0.png', 1344101197: '1741941506_1173584_1344100955_0df664b4a3cad76a27ee3479791a8ebe_rle_crop_3711677456_0.png', 1344101196: '1741941506_1173584_1344100963_6d7f8321511c837b37fbd4525a1f1d57_rle_crop_3711677445_0.png', 1344101195: '1741941506_1173584_1344100980_54c273f277c0b4501b03b48ee43f0b35_rle_crop_3711677428_0.png', 1344101194: '1741941506_1173584_1344100980_54c273f277c0b4501b03b48ee43f0b35_rle_crop_3711677426_0.png', 1344101181: '1741941491_313760_1344100929_2aa1b28d4e81fd8150e8c40db6feaf32_rle_crop_3711677367_0.png', 1344100964: '1741941386_1170868_1344100691_e8ef8e8721194996e5f0a095b063e15a_rle_crop_3711676956_0.png', 1344100973: '1741941386_1170868_1344100529_8abe30e3f4ae3eb0c7c423526aad9c89_rle_crop_3711677056_0.png', 1344100971: '1741941386_1170868_1344100544_9eaee3719c9b3e6163f8fbaa23ce165d_rle_crop_3711677010_0.png', 1344100970: '1741941386_1170868_1344100549_f00380a0ba37e80bdeb69f4307f2e7ea_rle_crop_3711676987_0.png', 1344100969: '1741941386_1170868_1344100691_e8ef8e8721194996e5f0a095b063e15a_rle_crop_3711676957_0.png', 1344100968: '1741941373_312425_1344100591_b612bfa127b126e15bebad2a815c8df1_rle_crop_3711677084_0.png', 1344100967: '1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677069_0.png', 1344100966: '1741941373_312425_1344100648_4d2851d671b5cff0fffb6fdfd03bd0d6_rle_crop_3711677033_0.png', 1344100965: '1741941373_312425_1344100672_e25ea40dcd7dc12a46ed0e19ddb09f3d_rle_crop_3711677001_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2bd6fc630a3f5230c75f53b225d87160_43287179.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9f67fba650e801751e9d0dba61127e38_65575639.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9f67fba650e801751e9d0dba61127e38_19906297.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/824cd96e904be51b604468ec839f9914_92301452.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f8f0123bdc4ac38a7e6459598ef53a0e_76901328.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/134ffa9a88215040b9795466f0f9a5a4_44717110.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ff696ba917432e5960a097268e772c2d_61288794.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/71bcc9f0b5d9b91cd83c6bc41f347a83_25291474.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5a4405a5f76f7f7fd8c5d68ce2b09ce8_75155748.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a164457958244676c747fb1fc52bcab0_48258827.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c6029217359cfafe122e01fda3ede05d_25261649.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0a35ceef1782a20a9a53ed080e0799d0_52743559.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e77a26550aea5fc4da6980a6828821be_75813484.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/60bd4a7bafee71f79b90fae9c5dc4282_71583007.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/452fe4a75fe8e6f58f2d1c81d06e0678_6537425.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/6a8c9509b867941ddedf11150c425ccd_37889762.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/00bd0801c4dd0249cd190eb339bbb827_98382503.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e4114de1f66a56a1620274ea5e2db605_96583638.png change filename to text .imagette214171461741941840/ imagette214171461741941840/1741941373_312425_1344100672_e25ea40dcd7dc12a46ed0e19ddb09f3d_rle_crop_3711677001_0.png.png imagette214171461741941840/1741941373_312425_1344100648_4d2851d671b5cff0fffb6fdfd03bd0d6_rle_crop_3711677033_0.png.png imagette214171461741941840/1741941491_313760_1344100929_2aa1b28d4e81fd8150e8c40db6feaf32_rle_crop_3711677362_0.png.png imagette214171461741941840/1741941506_1173584_1344100963_6d7f8321511c837b37fbd4525a1f1d57_rle_crop_3711677445_0.png.png imagette214171461741941840/1741941386_1170868_1344100691_e8ef8e8721194996e5f0a095b063e15a_rle_crop_3711676957_0.png.png imagette214171461741941840/1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677069_0.png.png imagette214171461741941840/1741941710_315048_1344101236_5df8e94d88f75e5cfddcf35a448ebf42_rle_crop_3711677991_0.png.png imagette214171461741941840/1741941386_1170868_1344100691_e8ef8e8721194996e5f0a095b063e15a_rle_crop_3711676956_0.png.png imagette214171461741941840/1741941691_314925_1344101198_8b23c8d9e64f00b686d7aa7f275b6464_rle_crop_3711677957_0.png.png imagette214171461741941840/1741941373_312425_1344100591_b612bfa127b126e15bebad2a815c8df1_rle_crop_3711677084_0.png.png imagette214171461741941840/1741941386_1170868_1344100549_f00380a0ba37e80bdeb69f4307f2e7ea_rle_crop_3711676987_0.png.png imagette214171461741941840/1741941386_1170868_1344100529_8abe30e3f4ae3eb0c7c423526aad9c89_rle_crop_3711677056_0.png.png imagette214171461741941840/1741941491_313760_1344100929_2aa1b28d4e81fd8150e8c40db6feaf32_rle_crop_3711677367_0.png.png imagette214171461741941840/1741941506_1173584_1344100980_54c273f277c0b4501b03b48ee43f0b35_rle_crop_3711677428_0.png.png imagette214171461741941840/1741941506_1173584_1344100955_0df664b4a3cad76a27ee3479791a8ebe_rle_crop_3711677456_0.png.png imagette214171461741941840/1741941691_314925_1344101202_5ee4cb086a60db440852414cadfc2f31_rle_crop_3711677933_0.png.png imagette214171461741941840/1741941710_315048_1344101242_b6602c4ee26aafe4e37c024a763e8c84_rle_crop_3711677975_0.png.png imagette214171461741941840/1741941386_1170868_1344100544_9eaee3719c9b3e6163f8fbaa23ce165d_rle_crop_3711677010_0.png.png imagette214171461741941840/1741941506_1173584_1344100980_54c273f277c0b4501b03b48ee43f0b35_rle_crop_3711677426_0.png.png imagette214171471741941841/ wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/fc844c75a983258aab935d6e9e18ae80_94404445.png imagette214171461741941840 21417147 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=21417147 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214171471741941841 21417149 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=21417149 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344100991: '1741941386_1170868_1344100562_39a7dbf8c8e0f33a2324335215699c28_rle_crop_3711676965_0.png', 1344100995: '1741941373_312425_1344100683_46a7c2f685f128ffb994bd0eb34a9f31_rle_crop_3711676969_0.png', 1344100996: '1741941373_312425_1344100648_4d2851d671b5cff0fffb6fdfd03bd0d6_rle_crop_3711677036_0.png', 1344100997: '1741941373_312425_1344100648_4d2851d671b5cff0fffb6fdfd03bd0d6_rle_crop_3711677039_0.png', 1344100998: '1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677072_0.png', 1344100999: '1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677067_0.png', 1344101000: '1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677065_0.png', 1344101001: '1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677076_0.png', 1344101002: '1741941373_312425_1344100591_b612bfa127b126e15bebad2a815c8df1_rle_crop_3711677085_0.png', 1344101003: '1741941373_312425_1344100591_b612bfa127b126e15bebad2a815c8df1_rle_crop_3711677091_0.png', 1344101186: '1741941491_313760_1344100929_2aa1b28d4e81fd8150e8c40db6feaf32_rle_crop_3711677369_0.png', 1344101187: '1741941491_313760_1344100922_16ba5c4d6b269d3473e5d73ae8c8dd4f_rle_crop_3711677377_0.png', 1344101188: '1741941491_313760_1344100922_16ba5c4d6b269d3473e5d73ae8c8dd4f_rle_crop_3711677380_0.png', 1344101189: '1741941491_313760_1344100916_5344556878a18c211c5e46f411314465_rle_crop_3711677387_0.png', 1344101190: '1741941491_313760_1344100916_5344556878a18c211c5e46f411314465_rle_crop_3711677396_0.png', 1344101207: '1741941506_1173584_1344100955_0df664b4a3cad76a27ee3479791a8ebe_rle_crop_3711677453_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/080d5c4b70f76512fe8ac02ffb4a6517_31598710.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/df6252fbf22476cb5c00820670f6cd3b_53879814.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0541991389071e758da38cbc4755110e_77768243.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/bc4625125b14f0209abb2d3582c87b4b_34611344.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ca3a33f2a3876beb71565bd5a66f65b0_56733456.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a9e8a98746794ec94e2b5483946e1fed_70300995.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1bd3c172248d68e7576cccc726a7f4fa_4803809.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7d6e1279d3596c5a32a748a04d17ddd1_68159402.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ce6836fe3c78f381cbb1a1a302d74775_89477831.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9f7b2152ae03bbf50e26436a5d177c56_10719173.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/36c57fa473baaf274e51a7c6e817ee7d_69691403.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/27c27a431853fb21abf96fc9d474cd9d_82250714.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/bc0f7b46193a2258d701cedc22ee334f_99618659.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7b2ed86db8bae0365de5e1fce4f9665c_17090907.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d54d087cf238ef522e3543706cb3f063_58334972.png change filename to text .imagette214171491741941841/ imagette214171491741941841/1741941491_313760_1344100922_16ba5c4d6b269d3473e5d73ae8c8dd4f_rle_crop_3711677377_0.png.png imagette214171491741941841/1741941491_313760_1344100929_2aa1b28d4e81fd8150e8c40db6feaf32_rle_crop_3711677369_0.png.png imagette214171491741941841/1741941491_313760_1344100916_5344556878a18c211c5e46f411314465_rle_crop_3711677396_0.png.png imagette214171491741941841/1741941491_313760_1344100916_5344556878a18c211c5e46f411314465_rle_crop_3711677387_0.png.png imagette214171491741941841/1741941373_312425_1344100591_b612bfa127b126e15bebad2a815c8df1_rle_crop_3711677091_0.png.png imagette214171491741941841/1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677076_0.png.png imagette214171491741941841/1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677072_0.png.png imagette214171491741941841/1741941386_1170868_1344100562_39a7dbf8c8e0f33a2324335215699c28_rle_crop_3711676965_0.png.png imagette214171491741941841/1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677067_0.png.png imagette214171491741941841/1741941373_312425_1344100591_b612bfa127b126e15bebad2a815c8df1_rle_crop_3711677085_0.png.png imagette214171491741941841/1741941506_1173584_1344100955_0df664b4a3cad76a27ee3479791a8ebe_rle_crop_3711677453_0.png.png imagette214171491741941841/1741941373_312425_1344100683_46a7c2f685f128ffb994bd0eb34a9f31_rle_crop_3711676969_0.png.png imagette214171491741941841/1741941373_312425_1344100648_4d2851d671b5cff0fffb6fdfd03bd0d6_rle_crop_3711677039_0.png.png imagette214171491741941841/1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677065_0.png.png imagette214171491741941841/1741941491_313760_1344100922_16ba5c4d6b269d3473e5d73ae8c8dd4f_rle_crop_3711677380_0.png.png imagette214171491741941841/1741941373_312425_1344100648_4d2851d671b5cff0fffb6fdfd03bd0d6_rle_crop_3711677036_0.png.png imagette214171511741941844/ wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7769758a77d254091bf73e5a3ef7867a_54086811.png imagette214171491741941841 21417151 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=21417151 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214171511741941844 21417141 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=21417141 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344100956: '1741941386_1170868_1344100544_9eaee3719c9b3e6163f8fbaa23ce165d_rle_crop_3711677018_0.png', 1344100957: '1741941386_1170868_1344100544_9eaee3719c9b3e6163f8fbaa23ce165d_rle_crop_3711677009_0.png', 1344100958: '1741941386_1170868_1344100529_8abe30e3f4ae3eb0c7c423526aad9c89_rle_crop_3711677055_0.png', 1344100960: '1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677064_0.png', 1344100961: '1741941386_1170868_1344100529_8abe30e3f4ae3eb0c7c423526aad9c89_rle_crop_3711677054_0.png', 1344101191: '1741941506_1173584_1344100963_6d7f8321511c837b37fbd4525a1f1d57_rle_crop_3711677447_0.png', 1344101315: '1741941691_314925_1344101198_8b23c8d9e64f00b686d7aa7f275b6464_rle_crop_3711677956_0.png', 1344101326: '1741941710_315048_1344101242_b6602c4ee26aafe4e37c024a763e8c84_rle_crop_3711677980_0.png', 1344101327: '1741941710_315048_1344101236_5df8e94d88f75e5cfddcf35a448ebf42_rle_crop_3711677996_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/cf2e133d7567a90435780a81a3b916ae_44498098.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5cebe9d7856ea078a552980dfbb0d12e_70864737.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/3975ee28d9f16b7db8eecb28eb84699f_90108306.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ac650ac9c081b0ad78ae15d4cdc3c963_74659181.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2c4387b3936f4f2074d5abde687322d4_83788256.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/90d02bd179ea480eb054aadbe3574ab1_68966803.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/72c28728b8f168f5de08014a78be3e65_77203592.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f1dae57d7f619160992ad7a03cf5313d_92762231.png change filename to text .imagette214171411741941844/ imagette214171411741941844/1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677064_0.png.png imagette214171411741941844/1741941386_1170868_1344100544_9eaee3719c9b3e6163f8fbaa23ce165d_rle_crop_3711677018_0.png.png imagette214171411741941844/1741941710_315048_1344101236_5df8e94d88f75e5cfddcf35a448ebf42_rle_crop_3711677996_0.png.png imagette214171411741941844/1741941506_1173584_1344100963_6d7f8321511c837b37fbd4525a1f1d57_rle_crop_3711677447_0.png.png imagette214171411741941844/1741941386_1170868_1344100529_8abe30e3f4ae3eb0c7c423526aad9c89_rle_crop_3711677055_0.png.png imagette214171411741941844/1741941386_1170868_1344100544_9eaee3719c9b3e6163f8fbaa23ce165d_rle_crop_3711677009_0.png.png imagette214171411741941844/1741941710_315048_1344101242_b6602c4ee26aafe4e37c024a763e8c84_rle_crop_3711677980_0.png.png imagette214171411741941844/1741941386_1170868_1344100529_8abe30e3f4ae3eb0c7c423526aad9c89_rle_crop_3711677054_0.png.png imagette214171411741941844/1741941691_314925_1344101198_8b23c8d9e64f00b686d7aa7f275b6464_rle_crop_3711677956_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f1dae57d7f619160992ad7a03cf5313d_94475000.png imagette214171411741941844 21417145 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=21417145 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344100982: '1741941373_312425_1344100683_46a7c2f685f128ffb994bd0eb34a9f31_rle_crop_3711676975_0.png', 1344100983: '1741941373_312425_1344100683_46a7c2f685f128ffb994bd0eb34a9f31_rle_crop_3711676972_0.png', 1344100984: '1741941373_312425_1344100672_e25ea40dcd7dc12a46ed0e19ddb09f3d_rle_crop_3711676999_0.png', 1344100985: '1741941373_312425_1344100648_4d2851d671b5cff0fffb6fdfd03bd0d6_rle_crop_3711677035_0.png', 1344100986: '1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677071_0.png', 1344100987: '1741941386_1170868_1344100544_9eaee3719c9b3e6163f8fbaa23ce165d_rle_crop_3711677016_0.png', 1344100988: '1741941386_1170868_1344100529_8abe30e3f4ae3eb0c7c423526aad9c89_rle_crop_3711677053_0.png', 1344101184: '1741941491_313760_1344101005_4c842151b09ed44ec1eb4c134d942aaf_rle_crop_3711677357_0.png', 1344101205: '1741941506_1173584_1344100993_c2b74399196267341e15aba4b7a1a83c_rle_crop_3711677416_0.png', 1344101206: '1741941506_1173584_1344100980_54c273f277c0b4501b03b48ee43f0b35_rle_crop_3711677427_0.png', 1344101319: '1741941691_314925_1344101185_4c444f6390ab09b3d816382395151770_rle_crop_3711677967_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/aa470ba10d64833179fbfeb6fc9f02ee_50147451.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9b0b87832a39a6d989b9d2b705392703_98248969.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1dc3bff7f5c71bf13708419325b9d83d_56566809.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/630fa57088ebc32fb87436ba88132d70_42975371.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/494fb2c8976bb99530f2d859f6b766dd_51603839.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7b9a7da737cb008f9fb08add83604f75_36089806.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c66360cd4c89909333bd30f2b40170af_60789129.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5b6a17c0ce462320dd1ceb80f4fb9cb5_34546257.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ea3f63c7d19f4cfdf3f92c1c953ff4cb_89432962.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5d0ea0397c0f8cd719e02a7387d69e92_52104441.png change filename to text .imagette214171451741941845/ imagette214171451741941845/1741941373_312425_1344100683_46a7c2f685f128ffb994bd0eb34a9f31_rle_crop_3711676975_0.png.png imagette214171451741941845/1741941373_312425_1344100683_46a7c2f685f128ffb994bd0eb34a9f31_rle_crop_3711676972_0.png.png imagette214171451741941845/1741941373_312425_1344100612_6600e9ee9dd3426eb16c380d3b0a60c2_rle_crop_3711677071_0.png.png imagette214171451741941845/1741941373_312425_1344100672_e25ea40dcd7dc12a46ed0e19ddb09f3d_rle_crop_3711676999_0.png.png imagette214171451741941845/1741941373_312425_1344100648_4d2851d671b5cff0fffb6fdfd03bd0d6_rle_crop_3711677035_0.png.png imagette214171451741941845/1741941491_313760_1344101005_4c842151b09ed44ec1eb4c134d942aaf_rle_crop_3711677357_0.png.png imagette214171451741941845/1741941691_314925_1344101185_4c444f6390ab09b3d816382395151770_rle_crop_3711677967_0.png.png imagette214171451741941845/1741941386_1170868_1344100529_8abe30e3f4ae3eb0c7c423526aad9c89_rle_crop_3711677053_0.png.png imagette214171451741941845/1741941506_1173584_1344100980_54c273f277c0b4501b03b48ee43f0b35_rle_crop_3711677427_0.png.png imagette214171451741941845/1741941506_1173584_1344100993_c2b74399196267341e15aba4b7a1a83c_rle_crop_3711677416_0.png.png imagette214171451741941845/1741941386_1170868_1344100544_9eaee3719c9b3e6163f8fbaa23ce165d_rle_crop_3711677016_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/986c8a70567a22db53c6d849adeba241_67586029.png imagette214171451741941845 21417150 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=21417150 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344100975: '1741941373_312425_1344100672_e25ea40dcd7dc12a46ed0e19ddb09f3d_rle_crop_3711676997_0.png', 1344100978: '1741941386_1170868_1344100544_9eaee3719c9b3e6163f8fbaa23ce165d_rle_crop_3711677013_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/56962e0973ff3d15154ee83ce409ad7d_46372004.png change filename to text .imagette214171501741941845/ imagette214171501741941845/1741941386_1170868_1344100544_9eaee3719c9b3e6163f8fbaa23ce165d_rle_crop_3711677013_0.png.png imagette214171501741941845/1741941373_312425_1344100672_e25ea40dcd7dc12a46ed0e19ddb09f3d_rle_crop_3711676997_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f165fae61cc93b0fc256445893884380_13973634.png imagette214171501741941845 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21417119 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21417153,21417154,21417155,21417156,21417157,21417158,21417159,21417160,21417161,21417162,21417163,21417164?tags=cartonnette,Teint_Dans_La_Masse,metal,kraft,environnement,Carton_brun,autre_refus,mal_croppe,papier,plastique,Carton_gris,flou your option no_mail is active, we will not send the real mail to your client args[1344101412] : ('0.0937332638175343',) no score found for photo 1344101412 We are sending mail with results at report@fotonower.com args[1344101409] : ('0.0937332638175343',) no score found for photo 1344101409 We are sending mail with results at report@fotonower.com args[1344101407] : ('0.0937332638175343',) no score found for photo 1344101407 We are sending mail with results at report@fotonower.com args[1344101404] : ('0.0937332638175343',) no score found for photo 1344101404 We are sending mail with results at report@fotonower.com args[1344101403] : ('0.0937332638175343',) no score found for photo 1344101403 We are sending mail with results at report@fotonower.com args[1344101400] : ('0.0937332638175343',) no score found for photo 1344101400 We are sending mail with results at report@fotonower.com args[1344101399] : ('0.0937332638175343',) no score found for photo 1344101399 We are sending mail with results at report@fotonower.com args[1344101390] : ('0.0937332638175343',) no score found for photo 1344101390 We are sending mail with results at report@fotonower.com args[1344101379] : ('0.0937332638175343',) no score found for photo 1344101379 We are sending mail with results at report@fotonower.com args[1344101376] : ('0.0937332638175343',) no score found for photo 1344101376 We are sending mail with results at report@fotonower.com args[1344101369] : ('0.0937332638175343',) no score found for photo 1344101369 We are sending mail with results at report@fotonower.com args[1344101323] : ('0.0937332638175343',) no score found for photo 1344101323 We are sending mail with results at report@fotonower.com args[1344101269] : ('0.0937332638175343',) no score found for photo 1344101269 We are sending mail with results at report@fotonower.com args[1344101268] : ('0.0937332638175343',) no score found for photo 1344101268 We are sending mail with results at report@fotonower.com args[1344101265] : ('0.0937332638175343',) no score found for photo 1344101265 We are sending mail with results at report@fotonower.com args[1344101261] : ('0.0937332638175343',) no score found for photo 1344101261 We are sending mail with results at report@fotonower.com args[1344101256] : ('0.0937332638175343',) no score found for photo 1344101256 We are sending mail with results at report@fotonower.com args[1344101252] : ('0.0937332638175343',) no score found for photo 1344101252 We are sending mail with results at report@fotonower.com refus_total : 0.0937332638175343 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=21417119 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_P21417119_14-03-2025_09_44_00.pdf results_Auto_P21417119_14-03-2025_09_44_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417119_14-03-2025_09_44_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21417119','results_Auto_P21417119_14-03-2025_09_44_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417119_14-03-2025_09_44_00.pdf','pdf','','0.39','0.0937332638175343') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21417119]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1344101412, 1344101409, 1344101407, 1344101404, 1344101403, 1344101400, 1344101399, 1344101390, 1344101379, 1344101376, 1344101369, 1344101323, 1344101269, 1344101268, 1344101265, 1344101261, 1344101256, 1344101252] map_info['map_portfolio_photo'] : {21417119: [1344101412, 1344101409, 1344101407, 1344101404, 1344101403, 1344101400, 1344101399, 1344101390, 1344101379, 1344101376, 1344101369, 1344101323, 1344101269, 1344101268, 1344101265, 1344101261, 1344101256, 1344101252, 1344101242, 1344101238, 1344101236, 1344101228, 1344101225, 1344101213, 1344101211, 1344101202, 1344101198, 1344101192, 1344101185, 1344101097, 1344101092, 1344101090, 1344101038, 1344101005, 1344100993, 1344100980, 1344100963, 1344100955, 1344100938, 1344100929, 1344100922, 1344100916, 1344100871, 1344100757, 1344100753, 1344100726, 1344100702, 1344100691, 1344100683, 1344100672, 1344100648, 1344100612, 1344100591, 1344100580, 1344100562, 1344100549, 1344100544, 1344100529, 1344100428]} final : False mtd_id 4302 list_pids : [1344101412, 1344101409, 1344101407, 1344101404, 1344101403, 1344101400, 1344101399, 1344101390, 1344101379, 1344101376, 1344101369, 1344101323, 1344101269, 1344101268, 1344101265, 1344101261, 1344101256, 1344101252] 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, '2668476') ('4302', '21417119', '1344101412', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101409', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101407', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101404', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101403', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101400', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101399', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101390', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101379', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101376', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101369', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101323', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101269', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101268', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101265', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101261', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101256', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101252', None, None, None, None, None, '2668476') 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', '21417119', '1344101412', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101409', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101407', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101404', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101403', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101400', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101399', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101390', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101379', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101376', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101369', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101323', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101269', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101268', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101265', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101261', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101256', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101252', None, None, None, None, None, '2668476')] time used for this insertion : 0.014580011367797852 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.613996267318726 time spend to save output : 0.014910459518432617 total time spend for step 4 : 7.628906726837158 step5:split_time_score Fri Mar 14 09:44:07 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 : ['21417119'] 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 : [('21417119',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21417119) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1344101409: {'path': 'temp/1741941839_2967170_1344101409_b34d92c0a7c43cdaca10d2ea2a0e4439.jpg', 'extension': 'jpg'}, 1344101412: {'path': 'temp/1741941839_2967170_1344101412_3350baa87fa7a4f47b1c1e0d91080982.jpg', 'extension': 'jpg'}, 1344101268: {'path': 'temp/1741941839_2967170_1344101268_9819c91d8e5724156fbed32bb026adaf.jpg', 'extension': 'jpg'}, 1344101269: {'path': 'temp/1741941839_2967170_1344101269_a970fd04564085f6adb3402a01de233d.jpg', 'extension': 'jpg'}, 1344101323: {'path': 'temp/1741941839_2967170_1344101323_273704e5b8730fe5e6fe270326fbe19d.jpg', 'extension': 'jpg'}, 1344101369: {'path': 'temp/1741941839_2967170_1344101369_4f20ab6cfe6043411084ad7df7c5afed.jpg', 'extension': 'jpg'}, 1344101376: {'path': 'temp/1741941839_2967170_1344101376_f350ec4f7c3718bf3a283f4d4731ee05.jpg', 'extension': 'jpg'}, 1344101379: {'path': 'temp/1741941839_2967170_1344101379_e6e7c7e6ceecaf0b950ae893d73e0c17.jpg', 'extension': 'jpg'}, 1344101390: {'path': 'temp/1741941839_2967170_1344101390_edc68920803e8ef29e3f720a69eaeebe.jpg', 'extension': 'jpg'}, 1344101399: {'path': 'temp/1741941839_2967170_1344101399_654701c18b8ead641a8c05e24efbed86.jpg', 'extension': 'jpg'}, 1344101252: {'path': 'temp/1741941839_2967170_1344101252_a3b856b8cfdb759948af0859396d55b1.jpg', 'extension': 'jpg'}, 1344101256: {'path': 'temp/1741941839_2967170_1344101256_bfd73fe261418114acc7f7d4cb86b4ab.jpg', 'extension': 'jpg'}, 1344101261: {'path': 'temp/1741941839_2967170_1344101261_120af8a925de5c7019a9025371e3b236.jpg', 'extension': 'jpg'}, 1344101265: {'path': 'temp/1741941839_2967170_1344101265_1aaf05aed687f9a5b7f119430253c9d2.jpg', 'extension': 'jpg'}, 1344101400: {'path': 'temp/1741941839_2967170_1344101400_9ab63625cc71acce5775e742c723e8ee.jpg', 'extension': 'jpg'}, 1344101403: {'path': 'temp/1741941839_2967170_1344101403_9821ccb798fc419d4f2cc25c1b8b686f.jpg', 'extension': 'jpg'}, 1344101404: {'path': 'temp/1741941839_2967170_1344101404_35490e905fb49eb8e3d8b028c08cf1f5.jpg', 'extension': 'jpg'}, 1344101407: {'path': 'temp/1741941839_2967170_1344101407_da47795c83b4408e3bd59611ccf64bc3.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 = 21417119; (('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 = 21417119 group by h (('09', 59),) 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=21417119 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 (21417119) 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 (21417119) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14032025 21417119 Nombre de photos uploadées : 59 / 23040 (0%) 14032025 21417119 Nombre de photos taguées (types de déchets): 0 / 59 (0%) 14032025 21417119 Nombre de photos taguées (volume) : 0 / 59 (0%) [{'photo_id': 1344100428, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e36bcdfaa2daf9bc6494d8eb5d3ccc1c.jpg', 'username': None, 'uploaded_at': 1741941170, 'text': 'image_14032025_09_30_23_009127m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344100580, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/be7316a10d14bad5f5f8455ef6532162.jpg', 'username': None, 'uploaded_at': 1741941105, 'text': 'image_14032025_09_30_23_009127m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344100757, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/72ec06060bda2d7631212f8386aa49ea.jpg', 'username': None, 'uploaded_at': 1741941331, 'text': 'image_14032025_09_32_13_10141.jpg'}, {'photo_id': 1344100562, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/39a7dbf8c8e0f33a2324335215699c28.jpg', 'username': None, 'uploaded_at': 1741941225, 'text': 'image_14032025_09_32_13_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026502609252929688 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21417119, '2025-03-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1667162,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023995399475097656 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= 1667162 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1667162, 'dashboard_run_id': 1675818, 'mtr_portfolio_id': 21415593, 'dashboard_result_id': 9441156, '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_P21415593_14-03-2025_09_36_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21415618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21415619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21415620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21415621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21415622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21415623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21415624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21415625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21415626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21415627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21415628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21415629, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1675818, 'mtr_portfolio_id': 21417119, 'dashboard_result_id': 9441157, '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_P21417119_14-03-2025_09_41_18.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417151, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21415593 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': 2668355, 'mtr_portfolio_id': 21415593, 'created_at': datetime.datetime(2025, 3, 14, 9, 35, 59), 'result': '0.06788576893711679', 'result_long': None, 'result_double': None}] Qualite : 0.06788576893711679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21415593 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21415593_14-03-2025_09_36_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21415593 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_P21415593_14-03-2025_09_36_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21415618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21415619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21415620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21415621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21415622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21415623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21415624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21415625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21415626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21415627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21415628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21415629, 'pht': 3726}}" where mtr_portfolio_id = 21415593 and dashboard_run_id = 1675818 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`=21415593 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9441156, 0.06788576893711679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21415593_14-03-2025_09_36_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21415618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21415619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21415620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21415621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21415622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21415623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21415624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21415625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21415626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21415627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21415628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21415629, '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 = 21417119 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': 2668476, 'mtr_portfolio_id': 21417119, 'created_at': datetime.datetime(2025, 3, 14, 9, 43, 59), 'result': '0.0937332638175343', 'result_long': None, 'result_double': None}] Qualite : 0.0937332638175343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21417119 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417119_14-03-2025_09_44_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21417119 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_P21417119_14-03-2025_09_44_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417151, 'pht': 3726}}" where mtr_portfolio_id = 21417119 and dashboard_run_id = 1675818 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`=21417119 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9441157, 0.0937332638175343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417119_14-03-2025_09_44_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417151, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21415593,21417119) result : ((1344093088,), (1344093092,), (1344093104,), (1344093110,), (1344093127,), (1344093210,), (1344093213,), (1344093214,), (1344093215,), (1344093275,), (1344093286,), (1344093289,), (1344093294,), (1344093302,), (1344093306,), (1344093331,), (1344093403,), (1344093406,), (1344093408,), (1344093411,), (1344093413,), (1344093416,), (1344093426,), (1344093429,), (1344093438,), (1344093449,), (1344093455,), (1344093462,), (1344093472,), (1344093476,), (1344093481,), (1344093531,), (1344093533,), (1344093536,), (1344093539,), (1344093540,), (1344093542,), (1344093546,), (1344093561,), (1344093576,), (1344093581,), (1344093585,), (1344093586,), (1344093589,), (1344093592,), (1344093611,), (1344093617,), (1344093629,), (1344093632,), (1344093635,), (1344093638,), (1344093639,), (1344093646,), (1344093655,), (1344093667,), (1344093670,), (1344093673,), (1344093677,), (1344093698,), (1344093709,), (1344093714,), (1344093732,), (1344093772,), (1344093821,), (1344093884,), (1344093888,), (1344093900,), (1344093911,), (1344093913,), (1344093914,), (1344093928,), (1344093930,), (1344093936,), (1344093948,), (1344093978,), (1344094004,), (1344094054,), (1344094087,), (1344094178,), (1344094244,), (1344094271,), (1344094321,), (1344094459,), (1344094480,), (1344094507,), (1344094779,), (1344094790,), (1344094819,), (1344094836,), (1344094868,), (1344100667,), (1344100760,), (1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14032025': {'nb_upload': 59, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21417119]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1344101412, 1344101409, 1344101407, 1344101404, 1344101403, 1344101400, 1344101399, 1344101390, 1344101379, 1344101376, 1344101369, 1344101323, 1344101269, 1344101268, 1344101265, 1344101261, 1344101256, 1344101252] map_info['map_portfolio_photo'] : {21417119: [1344101412, 1344101409, 1344101407, 1344101404, 1344101403, 1344101400, 1344101399, 1344101390, 1344101379, 1344101376, 1344101369, 1344101323, 1344101269, 1344101268, 1344101265, 1344101261, 1344101256, 1344101252, 1344101242, 1344101238, 1344101236, 1344101228, 1344101225, 1344101213, 1344101211, 1344101202, 1344101198, 1344101192, 1344101185, 1344101097, 1344101092, 1344101090, 1344101038, 1344101005, 1344100993, 1344100980, 1344100963, 1344100955, 1344100938, 1344100929, 1344100922, 1344100916, 1344100871, 1344100757, 1344100753, 1344100726, 1344100702, 1344100691, 1344100683, 1344100672, 1344100648, 1344100612, 1344100591, 1344100580, 1344100562, 1344100549, 1344100544, 1344100529, 1344100428]} final : True mtd_id 4302 list_pids : [1344101412, 1344101409, 1344101407, 1344101404, 1344101403, 1344101400, 1344101399, 1344101390, 1344101379, 1344101376, 1344101369, 1344101323, 1344101269, 1344101268, 1344101265, 1344101261, 1344101256, 1344101252] Looping around the photos to save general results len do output : 1 /21417119Didn'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, '2668476') ('4302', '21417119', '1344101412', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101409', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101407', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101404', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101403', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101400', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101399', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101390', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101379', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101376', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101369', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101323', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101269', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101268', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101265', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101261', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101256', None, None, None, None, None, '2668476') ('4302', None, None, None, None, None, None, None, '2668476') ('4302', '21417119', '1344101252', None, None, None, None, None, '2668476') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '21417119', 'None', None, None, None, None, '2668476'), ('4302', '21417119', '1344101412', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101409', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101407', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101404', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101403', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101400', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101399', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101390', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101379', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101376', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101369', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101323', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101269', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101268', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101265', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101261', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101256', None, None, None, None, None, '2668476'), ('4302', '21417119', '1344101252', None, None, None, None, None, '2668476')] time used for this insertion : 1.226633071899414 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.22855544090270996 time spend to save output : 1.2269914150238037 total time spend for step 5 : 1.4555468559265137 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 (2668476) 2.47user 2.48system 0:14.27elapsed 34%CPU (0avgtext+0avgdata 161716maxresident)k 31432inputs+23272outputs (171major+76277minor)pagefaults 0swaps