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 : 1055518 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 (2729359) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2729359) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22108240 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2729359'] with mtr_portfolio_ids : ['22108240'] and first list_photo_ids : [] new path : /proc/1055518/ Name: python3 Umask: 0002 State: R (running) Tgid: 1055518 Ngid: 0 Pid: 1055518 PPid: 1055517 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1055518 NSpid: 1055518 NSpgid: 1051528 NSsid: 1051528 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98912 kB VmRSS: 98912 kB RssAnon: 59764 kB RssFile: 39148 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 97 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1055518', 'Ngid': '0', 'Pid': '1055518', 'PPid': '1055517', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1055518', 'NSpid': '1055518', 'NSpgid': '1051528', 'NSsid': '1051528', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98912 kB', 'VmRSS': '98912 kB', 'RssAnon': '59764 kB', 'RssFile': '39148 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '97'} ('datou_batch_current', '1055518', '1106840', '0', '1106840', '865588', '98912', b'', 'marlene', '2729359') 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 (22108240) 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 (2729359 ) ) 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 (22108240) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350341699, 'portfolio_id': 22108240}, {'photo_id': 1350341631, 'portfolio_id': 22108240}, {'photo_id': 1350341629, 'portfolio_id': 22108240}, {'photo_id': 1350341626, 'portfolio_id': 22108240}, {'photo_id': 1350341623, 'portfolio_id': 22108240}, {'photo_id': 1350341620, 'portfolio_id': 22108240}, {'photo_id': 1350341616, 'portfolio_id': 22108240}, {'photo_id': 1350341577, 'portfolio_id': 22108240}, {'photo_id': 1350341575, 'portfolio_id': 22108240}, {'photo_id': 1350341573, 'portfolio_id': 22108240}, {'photo_id': 1350341569, 'portfolio_id': 22108240}, {'photo_id': 1350341566, 'portfolio_id': 22108240}, {'photo_id': 1350341396, 'portfolio_id': 22108240}, {'photo_id': 1350341363, 'portfolio_id': 22108240}, {'photo_id': 1350341334, 'portfolio_id': 22108240}, {'photo_id': 1350341250, 'portfolio_id': 22108240}, {'photo_id': 1350341243, 'portfolio_id': 22108240}, {'photo_id': 1350341234, 'portfolio_id': 22108240}, {'photo_id': 1350341221, 'portfolio_id': 22108240}, {'photo_id': 1350341205, 'portfolio_id': 22108240}, {'photo_id': 1350341070, 'portfolio_id': 22108240}, {'photo_id': 1350341037, 'portfolio_id': 22108240}, {'photo_id': 1350341007, 'portfolio_id': 22108240}, {'photo_id': 1350340979, 'portfolio_id': 22108240}, {'photo_id': 1350340967, 'portfolio_id': 22108240}, {'photo_id': 1350340921, 'portfolio_id': 22108240}, {'photo_id': 1350340915, 'portfolio_id': 22108240}, {'photo_id': 1350340889, 'portfolio_id': 22108240}, {'photo_id': 1350340886, 'portfolio_id': 22108240}, {'photo_id': 1350340751, 'portfolio_id': 22108240}, {'photo_id': 1350340748, 'portfolio_id': 22108240}, {'photo_id': 1350340739, 'portfolio_id': 22108240}, {'photo_id': 1350340720, 'portfolio_id': 22108240}, {'photo_id': 1350340704, 'portfolio_id': 22108240}, {'photo_id': 1350340694, 'portfolio_id': 22108240}, {'photo_id': 1350340585, 'portfolio_id': 22108240}, {'photo_id': 1350340568, 'portfolio_id': 22108240}, {'photo_id': 1350340559, 'portfolio_id': 22108240}, {'photo_id': 1350340539, 'portfolio_id': 22108240}, {'photo_id': 1350340528, 'portfolio_id': 22108240}, {'photo_id': 1350340484, 'portfolio_id': 22108240}, {'photo_id': 1350340476, 'portfolio_id': 22108240}, {'photo_id': 1350340463, 'portfolio_id': 22108240}, {'photo_id': 1350340413, 'portfolio_id': 22108240}, {'photo_id': 1350340410, 'portfolio_id': 22108240}, {'photo_id': 1350340407, 'portfolio_id': 22108240}, {'photo_id': 1350340402, 'portfolio_id': 22108240}, {'photo_id': 1350340393, 'portfolio_id': 22108240}, {'photo_id': 1350340283, 'portfolio_id': 22108240}, {'photo_id': 1350340222, 'portfolio_id': 22108240}, {'photo_id': 1350340215, 'portfolio_id': 22108240}, {'photo_id': 1350340205, 'portfolio_id': 22108240}, {'photo_id': 1350340171, 'portfolio_id': 22108240}, {'photo_id': 1350340162, 'portfolio_id': 22108240}, {'photo_id': 1350339987, 'portfolio_id': 22108240}, {'photo_id': 1350339982, 'portfolio_id': 22108240}, {'photo_id': 1350339979, 'portfolio_id': 22108240}, {'photo_id': 1350339933, 'portfolio_id': 22108240}, {'photo_id': 1350339912, 'portfolio_id': 22108240}, {'photo_id': 1350339896, 'portfolio_id': 22108240}, {'photo_id': 1350339873, 'portfolio_id': 22108240}, {'photo_id': 1350339852, 'portfolio_id': 22108240}, {'photo_id': 1350339841, 'portfolio_id': 22108240}, {'photo_id': 1350339701, 'portfolio_id': 22108240}, {'photo_id': 1350339677, 'portfolio_id': 22108240}, {'photo_id': 1350339643, 'portfolio_id': 22108240}, {'photo_id': 1350339615, 'portfolio_id': 22108240}, {'photo_id': 1350339454, 'portfolio_id': 22108240}, {'photo_id': 1350339451, 'portfolio_id': 22108240}] map_portfolio_id_photo_id: {22108240: [1350341699, 1350341631, 1350341629, 1350341626, 1350341623, 1350341620, 1350341616, 1350341577, 1350341575, 1350341573, 1350341569, 1350341566, 1350341396, 1350341363, 1350341334, 1350341250, 1350341243, 1350341234, 1350341221, 1350341205, 1350341070, 1350341037, 1350341007, 1350340979, 1350340967, 1350340921, 1350340915, 1350340889, 1350340886, 1350340751, 1350340748, 1350340739, 1350340720, 1350340704, 1350340694, 1350340585, 1350340568, 1350340559, 1350340539, 1350340528, 1350340484, 1350340476, 1350340463, 1350340413, 1350340410, 1350340407, 1350340402, 1350340393, 1350340283, 1350340222, 1350340215, 1350340205, 1350340171, 1350340162, 1350339987, 1350339982, 1350339979, 1350339933, 1350339912, 1350339896, 1350339873, 1350339852, 1350339841, 1350339701, 1350339677, 1350339643, 1350339615, 1350339454, 1350339451]} ##### 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.01599907875061035 #### 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 Mon Apr 7 15:46:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22108240) 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 : 22108240 get user id for portfolio 22108240 get sub ptf for main ptf 22108240, type 3726 and hashtags ['papier', 'plastique', 'mal_croppe', 'autre_refus', 'kraft', 'flou', 'cartonnette', 'metal', 'Carton_brun', 'Carton_gris', 'Teint_Dans_La_Masse', 'environnement'] 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`=22108240 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','autre_refus','kraft','flou','cartonnette','metal','Carton_brun','Carton_gris','Teint_Dans_La_Masse','environnement')) 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`=22108240 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','autre_refus','kraft','flou','cartonnette','metal','Carton_brun','Carton_gris','Teint_Dans_La_Masse','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22108240, 'sub_port_id': 22108269, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590823, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 58)}, 'papier': {'main_port_id': 22108240, 'sub_port_id': 22108270, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590824, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 58)}, 'mal_croppe': {'main_port_id': 22108240, 'sub_port_id': 22108271, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590825, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 58)}, 'environnement': {'main_port_id': 22108240, 'sub_port_id': 22108272, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590826, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 58)}, 'metal': {'main_port_id': 22108240, 'sub_port_id': 22108273, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590827, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 58)}, 'Carton_brun': {'main_port_id': 22108240, 'sub_port_id': 22108274, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590828, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 58)}, 'plastique': {'main_port_id': 22108240, 'sub_port_id': 22108275, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590829, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 58)}, 'autre_refus': {'main_port_id': 22108240, 'sub_port_id': 22108276, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590830, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 58)}, 'flou': {'main_port_id': 22108240, 'sub_port_id': 22108277, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590831, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22108240, 'sub_port_id': 22108278, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590832, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 58)}, 'kraft': {'main_port_id': 22108240, 'sub_port_id': 22108279, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590833, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 58)}, 'cartonnette': {'main_port_id': 22108240, 'sub_port_id': 22108280, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590834, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22108269 , 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=22108240 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 (22108269) result : ((1350340593,), (1350340597,), (1350340769,), (1350340773,), (1350340774,), (1350341222,), (1350341223,), (1350341556,), (1350341557,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22108240) result : ((1350339451,), (1350339454,), (1350339615,), (1350339643,), (1350339677,), (1350339701,), (1350339841,), (1350339852,), (1350339873,), (1350339896,), (1350339912,), (1350339933,), (1350339979,), (1350339982,), (1350339987,), (1350340162,), (1350340171,), (1350340205,), (1350340215,), (1350340222,), (1350340283,), (1350340393,), (1350340402,), (1350340407,), (1350340410,), (1350340413,), (1350340463,), (1350340476,), (1350340484,), (1350340528,), (1350340539,), (1350340559,), (1350340568,), (1350340585,), (1350340694,), (1350340704,), (1350340720,), (1350340739,), (1350340748,), (1350340751,), (1350340886,), (1350340889,), (1350340915,), (1350340921,), (1350340967,), (1350340979,), (1350341007,), (1350341037,), (1350341070,), (1350341205,), (1350341221,), (1350341234,), (1350341243,), (1350341250,), (1350341334,), (1350341363,), (1350341396,), (1350341566,), (1350341569,), (1350341573,), (1350341575,), (1350341577,), (1350341616,), (1350341620,), (1350341623,), (1350341626,), (1350341629,), (1350341631,), (1350341699,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22108270 , 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=22108240 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 (22108270) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22108240) result : ((1350339451,), (1350339454,), (1350339615,), (1350339643,), (1350339677,), (1350339701,), (1350339841,), (1350339852,), (1350339873,), (1350339896,), (1350339912,), (1350339933,), (1350339979,), (1350339982,), (1350339987,), (1350340162,), (1350340171,), (1350340205,), (1350340215,), (1350340222,), (1350340283,), (1350340393,), (1350340402,), (1350340407,), (1350340410,), (1350340413,), (1350340463,), (1350340476,), (1350340484,), (1350340528,), (1350340539,), (1350340559,), (1350340568,), (1350340585,), (1350340694,), (1350340704,), (1350340720,), (1350340739,), (1350340748,), (1350340751,), (1350340886,), (1350340889,), (1350340915,), (1350340921,), (1350340967,), (1350340979,), (1350341007,), (1350341037,), (1350341070,), (1350341205,), (1350341221,), (1350341234,), (1350341243,), (1350341250,), (1350341334,), (1350341363,), (1350341396,), (1350341566,), (1350341569,), (1350341573,), (1350341575,), (1350341577,), (1350341616,), (1350341620,), (1350341623,), (1350341626,), (1350341629,), (1350341631,), (1350341699,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22108271 , 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=22108240 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 (22108271) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22108240) result : ((1350339451,), (1350339454,), (1350339615,), (1350339643,), (1350339677,), (1350339701,), (1350339841,), (1350339852,), (1350339873,), (1350339896,), (1350339912,), (1350339933,), (1350339979,), (1350339982,), (1350339987,), (1350340162,), (1350340171,), (1350340205,), (1350340215,), (1350340222,), (1350340283,), (1350340393,), (1350340402,), (1350340407,), (1350340410,), (1350340413,), (1350340463,), (1350340476,), (1350340484,), (1350340528,), (1350340539,), (1350340559,), (1350340568,), (1350340585,), (1350340694,), (1350340704,), (1350340720,), (1350340739,), (1350340748,), (1350340751,), (1350340886,), (1350340889,), (1350340915,), (1350340921,), (1350340967,), (1350340979,), (1350341007,), (1350341037,), (1350341070,), (1350341205,), (1350341221,), (1350341234,), (1350341243,), (1350341250,), (1350341334,), (1350341363,), (1350341396,), (1350341566,), (1350341569,), (1350341573,), (1350341575,), (1350341577,), (1350341616,), (1350341620,), (1350341623,), (1350341626,), (1350341629,), (1350341631,), (1350341699,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22108272 , 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=22108240 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 (22108272) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22108240) result : ((1350339451,), (1350339454,), (1350339615,), (1350339643,), (1350339677,), (1350339701,), (1350339841,), (1350339852,), (1350339873,), (1350339896,), (1350339912,), (1350339933,), (1350339979,), (1350339982,), (1350339987,), (1350340162,), (1350340171,), (1350340205,), (1350340215,), (1350340222,), (1350340283,), (1350340393,), (1350340402,), (1350340407,), (1350340410,), (1350340413,), (1350340463,), (1350340476,), (1350340484,), (1350340528,), (1350340539,), (1350340559,), (1350340568,), (1350340585,), (1350340694,), (1350340704,), (1350340720,), (1350340739,), (1350340748,), (1350340751,), (1350340886,), (1350340889,), (1350340915,), (1350340921,), (1350340967,), (1350340979,), (1350341007,), (1350341037,), (1350341070,), (1350341205,), (1350341221,), (1350341234,), (1350341243,), (1350341250,), (1350341334,), (1350341363,), (1350341396,), (1350341566,), (1350341569,), (1350341573,), (1350341575,), (1350341577,), (1350341616,), (1350341620,), (1350341623,), (1350341626,), (1350341629,), (1350341631,), (1350341699,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22108273 , 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=22108240 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 (22108273) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22108240) result : ((1350339451,), (1350339454,), (1350339615,), (1350339643,), (1350339677,), (1350339701,), (1350339841,), (1350339852,), (1350339873,), (1350339896,), (1350339912,), (1350339933,), (1350339979,), (1350339982,), (1350339987,), (1350340162,), (1350340171,), (1350340205,), (1350340215,), (1350340222,), (1350340283,), (1350340393,), (1350340402,), (1350340407,), (1350340410,), (1350340413,), (1350340463,), (1350340476,), (1350340484,), (1350340528,), (1350340539,), (1350340559,), (1350340568,), (1350340585,), (1350340694,), (1350340704,), (1350340720,), (1350340739,), (1350340748,), (1350340751,), (1350340886,), (1350340889,), (1350340915,), (1350340921,), (1350340967,), (1350340979,), (1350341007,), (1350341037,), (1350341070,), (1350341205,), (1350341221,), (1350341234,), (1350341243,), (1350341250,), (1350341334,), (1350341363,), (1350341396,), (1350341566,), (1350341569,), (1350341573,), (1350341575,), (1350341577,), (1350341616,), (1350341620,), (1350341623,), (1350341626,), (1350341629,), (1350341631,), (1350341699,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22108274 , 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=22108240 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 (22108274) result : ((1350340165,), (1350340626,), (1350340628,), (1350340630,), (1350340633,), (1350340776,), (1350341560,), (1350341561,), (1350341562,), (1350341693,), (1350341694,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22108240) result : ((1350339451,), (1350339454,), (1350339615,), (1350339643,), (1350339677,), (1350339701,), (1350339841,), (1350339852,), (1350339873,), (1350339896,), (1350339912,), (1350339933,), (1350339979,), (1350339982,), (1350339987,), (1350340162,), (1350340171,), (1350340205,), (1350340215,), (1350340222,), (1350340283,), (1350340393,), (1350340402,), (1350340407,), (1350340410,), (1350340413,), (1350340463,), (1350340476,), (1350340484,), (1350340528,), (1350340539,), (1350340559,), (1350340568,), (1350340585,), (1350340694,), (1350340704,), (1350340720,), (1350340739,), (1350340748,), (1350340751,), (1350340886,), (1350340889,), (1350340915,), (1350340921,), (1350340967,), (1350340979,), (1350341007,), (1350341037,), (1350341070,), (1350341205,), (1350341221,), (1350341234,), (1350341243,), (1350341250,), (1350341334,), (1350341363,), (1350341396,), (1350341566,), (1350341569,), (1350341573,), (1350341575,), (1350341577,), (1350341616,), (1350341620,), (1350341623,), (1350341626,), (1350341629,), (1350341631,), (1350341699,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22108275 , 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=22108240 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 (22108275) result : ((1350340200,), (1350340201,), (1350340396,), (1350340642,), (1350340777,), (1350340778,), (1350341695,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22108240) result : ((1350339451,), (1350339454,), (1350339615,), (1350339643,), (1350339677,), (1350339701,), (1350339841,), (1350339852,), (1350339873,), (1350339896,), (1350339912,), (1350339933,), (1350339979,), (1350339982,), (1350339987,), (1350340162,), (1350340171,), (1350340205,), (1350340215,), (1350340222,), (1350340283,), (1350340393,), (1350340402,), (1350340407,), (1350340410,), (1350340413,), (1350340463,), (1350340476,), (1350340484,), (1350340528,), (1350340539,), (1350340559,), (1350340568,), (1350340585,), (1350340694,), (1350340704,), (1350340720,), (1350340739,), (1350340748,), (1350340751,), (1350340886,), (1350340889,), (1350340915,), (1350340921,), (1350340967,), (1350340979,), (1350341007,), (1350341037,), (1350341070,), (1350341205,), (1350341221,), (1350341234,), (1350341243,), (1350341250,), (1350341334,), (1350341363,), (1350341396,), (1350341566,), (1350341569,), (1350341573,), (1350341575,), (1350341577,), (1350341616,), (1350341620,), (1350341623,), (1350341626,), (1350341629,), (1350341631,), (1350341699,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22108276 , 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=22108240 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 (22108276) result : ((1350340392,), (1350340514,), (1350340581,), (1350340583,), (1350340765,), (1350340768,), (1350341219,), (1350341548,), (1350341552,), (1350341553,), (1350341688,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22108240) result : ((1350339451,), (1350339454,), (1350339615,), (1350339643,), (1350339677,), (1350339701,), (1350339841,), (1350339852,), (1350339873,), (1350339896,), (1350339912,), (1350339933,), (1350339979,), (1350339982,), (1350339987,), (1350340162,), (1350340171,), (1350340205,), (1350340215,), (1350340222,), (1350340283,), (1350340393,), (1350340402,), (1350340407,), (1350340410,), (1350340413,), (1350340463,), (1350340476,), (1350340484,), (1350340528,), (1350340539,), (1350340559,), (1350340568,), (1350340585,), (1350340694,), (1350340704,), (1350340720,), (1350340739,), (1350340748,), (1350340751,), (1350340886,), (1350340889,), (1350340915,), (1350340921,), (1350340967,), (1350340979,), (1350341007,), (1350341037,), (1350341070,), (1350341205,), (1350341221,), (1350341234,), (1350341243,), (1350341250,), (1350341334,), (1350341363,), (1350341396,), (1350341566,), (1350341569,), (1350341573,), (1350341575,), (1350341577,), (1350341616,), (1350341620,), (1350341623,), (1350341626,), (1350341629,), (1350341631,), (1350341699,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22108277 , 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=22108240 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 (22108277) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22108240) result : ((1350339451,), (1350339454,), (1350339615,), (1350339643,), (1350339677,), (1350339701,), (1350339841,), (1350339852,), (1350339873,), (1350339896,), (1350339912,), (1350339933,), (1350339979,), (1350339982,), (1350339987,), (1350340162,), (1350340171,), (1350340205,), (1350340215,), (1350340222,), (1350340283,), (1350340393,), (1350340402,), (1350340407,), (1350340410,), (1350340413,), (1350340463,), (1350340476,), (1350340484,), (1350340528,), (1350340539,), (1350340559,), (1350340568,), (1350340585,), (1350340694,), (1350340704,), (1350340720,), (1350340739,), (1350340748,), (1350340751,), (1350340886,), (1350340889,), (1350340915,), (1350340921,), (1350340967,), (1350340979,), (1350341007,), (1350341037,), (1350341070,), (1350341205,), (1350341221,), (1350341234,), (1350341243,), (1350341250,), (1350341334,), (1350341363,), (1350341396,), (1350341566,), (1350341569,), (1350341573,), (1350341575,), (1350341577,), (1350341616,), (1350341620,), (1350341623,), (1350341626,), (1350341629,), (1350341631,), (1350341699,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22108278 , 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=22108240 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 (22108278) result : ((1350340158,), (1350340160,), (1350340385,), (1350340388,), (1350340389,), (1350340390,), (1350340391,), (1350340563,), (1350340565,), (1350340573,), (1350340764,), (1350340766,), (1350340767,), (1350341185,), (1350341186,), (1350341187,), (1350341212,), (1350341213,), (1350341214,), (1350341215,), (1350341527,), (1350341530,), (1350341534,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22108240) result : ((1350339451,), (1350339454,), (1350339615,), (1350339643,), (1350339677,), (1350339701,), (1350339841,), (1350339852,), (1350339873,), (1350339896,), (1350339912,), (1350339933,), (1350339979,), (1350339982,), (1350339987,), (1350340162,), (1350340171,), (1350340205,), (1350340215,), (1350340222,), (1350340283,), (1350340393,), (1350340402,), (1350340407,), (1350340410,), (1350340413,), (1350340463,), (1350340476,), (1350340484,), (1350340528,), (1350340539,), (1350340559,), (1350340568,), (1350340585,), (1350340694,), (1350340704,), (1350340720,), (1350340739,), (1350340748,), (1350340751,), (1350340886,), (1350340889,), (1350340915,), (1350340921,), (1350340967,), (1350340979,), (1350341007,), (1350341037,), (1350341070,), (1350341205,), (1350341221,), (1350341234,), (1350341243,), (1350341250,), (1350341334,), (1350341363,), (1350341396,), (1350341566,), (1350341569,), (1350341573,), (1350341575,), (1350341577,), (1350341616,), (1350341620,), (1350341623,), (1350341626,), (1350341629,), (1350341631,), (1350341699,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22108279 , 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=22108240 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 (22108279) result : ((1350340649,), (1350341684,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22108240) result : ((1350339451,), (1350339454,), (1350339615,), (1350339643,), (1350339677,), (1350339701,), (1350339841,), (1350339852,), (1350339873,), (1350339896,), (1350339912,), (1350339933,), (1350339979,), (1350339982,), (1350339987,), (1350340162,), (1350340171,), (1350340205,), (1350340215,), (1350340222,), (1350340283,), (1350340393,), (1350340402,), (1350340407,), (1350340410,), (1350340413,), (1350340463,), (1350340476,), (1350340484,), (1350340528,), (1350340539,), (1350340559,), (1350340568,), (1350340585,), (1350340694,), (1350340704,), (1350340720,), (1350340739,), (1350340748,), (1350340751,), (1350340886,), (1350340889,), (1350340915,), (1350340921,), (1350340967,), (1350340979,), (1350341007,), (1350341037,), (1350341070,), (1350341205,), (1350341221,), (1350341234,), (1350341243,), (1350341250,), (1350341334,), (1350341363,), (1350341396,), (1350341566,), (1350341569,), (1350341573,), (1350341575,), (1350341577,), (1350341616,), (1350341620,), (1350341623,), (1350341626,), (1350341629,), (1350341631,), (1350341699,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22108280 , 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=22108240 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 (22108280) result : ((1350340163,), (1350340394,), (1350340604,), (1350341188,), (1350341190,), (1350341224,), (1350341225,), (1350341559,), (1350341570,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22108240) result : ((1350339451,), (1350339454,), (1350339615,), (1350339643,), (1350339677,), (1350339701,), (1350339841,), (1350339852,), (1350339873,), (1350339896,), (1350339912,), (1350339933,), (1350339979,), (1350339982,), (1350339987,), (1350340162,), (1350340171,), (1350340205,), (1350340215,), (1350340222,), (1350340283,), (1350340393,), (1350340402,), (1350340407,), (1350340410,), (1350340413,), (1350340463,), (1350340476,), (1350340484,), (1350340528,), (1350340539,), (1350340559,), (1350340568,), (1350340585,), (1350340694,), (1350340704,), (1350340720,), (1350340739,), (1350340748,), (1350340751,), (1350340886,), (1350340889,), (1350340915,), (1350340921,), (1350340967,), (1350340979,), (1350341007,), (1350341037,), (1350341070,), (1350341205,), (1350341221,), (1350341234,), (1350341243,), (1350341250,), (1350341334,), (1350341363,), (1350341396,), (1350341566,), (1350341569,), (1350341573,), (1350341575,), (1350341577,), (1350341616,), (1350341620,), (1350341623,), (1350341626,), (1350341629,), (1350341631,), (1350341699,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=22108240 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','autre_refus','kraft','flou','cartonnette','metal','Carton_brun','Carton_gris','Teint_Dans_La_Masse','environnement')) 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`=22108240 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','autre_refus','kraft','flou','cartonnette','metal','Carton_brun','Carton_gris','Teint_Dans_La_Masse','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22108240, 'sub_port_id': 22108281, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590835, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 59)}, 'papier': {'main_port_id': 22108240, 'sub_port_id': 22108282, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590836, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 59)}, 'mal_croppe': {'main_port_id': 22108240, 'sub_port_id': 22108283, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590837, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 59)}, 'environnement': {'main_port_id': 22108240, 'sub_port_id': 22108284, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590838, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 59)}, 'metal': {'main_port_id': 22108240, 'sub_port_id': 22108285, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590839, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 59)}, 'Carton_brun': {'main_port_id': 22108240, 'sub_port_id': 22108286, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590840, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 59)}, 'plastique': {'main_port_id': 22108240, 'sub_port_id': 22108287, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590841, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 59)}, 'autre_refus': {'main_port_id': 22108240, 'sub_port_id': 22108288, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590842, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 59)}, 'flou': {'main_port_id': 22108240, 'sub_port_id': 22108289, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590843, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22108240, 'sub_port_id': 22108290, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590844, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 59)}, 'kraft': {'main_port_id': 22108240, 'sub_port_id': 22108291, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590845, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 59)}, 'cartonnette': {'main_port_id': 22108240, 'sub_port_id': 22108292, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590846, 'last_updated_at': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 15, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22108281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22108269 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22108282,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22108270 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22108283,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22108271 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22108284,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22108272 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22108285,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22108273 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22108286,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22108274 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22108287,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22108275 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22108288,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22108276 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22108289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22108277 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22108290,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22108278 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22108291,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22108279 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22108292,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22108280 lien utilise dans velours : https://www.fotonower.com/velours/22108281,22108282,22108283,22108284,22108285,22108286,22108287,22108288,22108289,22108290,22108291,22108292?tags=Carton_gris,papier,mal_croppe,environnement,metal,Carton_brun,plastique,autre_refus,flou,Teint_Dans_La_Masse,kraft,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22108240]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350341699, 1350341631, 1350341629, 1350341626, 1350341623, 1350341620, 1350341616, 1350341577, 1350341575, 1350341573, 1350341569, 1350341566] map_info['map_portfolio_photo'] : {22108240: [1350341699, 1350341631, 1350341629, 1350341626, 1350341623, 1350341620, 1350341616, 1350341577, 1350341575, 1350341573, 1350341569, 1350341566, 1350341396, 1350341363, 1350341334, 1350341250, 1350341243, 1350341234, 1350341221, 1350341205, 1350341070, 1350341037, 1350341007, 1350340979, 1350340967, 1350340921, 1350340915, 1350340889, 1350340886, 1350340751, 1350340748, 1350340739, 1350340720, 1350340704, 1350340694, 1350340585, 1350340568, 1350340559, 1350340539, 1350340528, 1350340484, 1350340476, 1350340463, 1350340413, 1350340410, 1350340407, 1350340402, 1350340393, 1350340283, 1350340222, 1350340215, 1350340205, 1350340171, 1350340162, 1350339987, 1350339982, 1350339979, 1350339933, 1350339912, 1350339896, 1350339873, 1350339852, 1350339841, 1350339701, 1350339677, 1350339643, 1350339615, 1350339454, 1350339451]} final : False mtd_id 4302 list_pids : [1350341699, 1350341631, 1350341629, 1350341626, 1350341623, 1350341620, 1350341616, 1350341577, 1350341575, 1350341573, 1350341569, 1350341566] Looping around the photos to save general results len do output : 1 /22108240. 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, '2729359') ('4302', '22108240', '1350341699', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341631', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341629', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341626', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341623', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341620', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341616', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341577', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341575', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341573', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341569', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341566', None, None, None, None, None, '2729359') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22108240', "{'Carton_gris': 22108269, 'papier': 22108270, 'mal_croppe': 22108271, 'environnement': 22108272, 'metal': 22108273, 'Carton_brun': 22108274, 'plastique': 22108275, 'autre_refus': 22108276, 'flou': 22108277, 'Teint_Dans_La_Masse': 22108278, 'kraft': 22108279, 'cartonnette': 22108280}", None, None, None, None, '2729359'), ('4302', '22108240', '1350341699', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341631', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341629', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341626', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341623', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341620', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341616', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341577', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341575', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341573', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341569', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341566', None, None, None, None, None, '2729359')] time used for this insertion : 0.015534400939941406 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4812695980072021 time spend to save output : 0.015895366668701172 total time spend for step 1 : 1.4971649646759033 step2:final Mon Apr 7 15:46:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22108240) 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 22108240 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350339454,1350339451,1350339701,1350339677,1350339643,1350339615,1350339933,1350339912,1350339896,1350339873,1350339852,1350339841,1350339987,1350339982,1350339979,1350340283,1350340222,1350340215,1350340205,1350340171,1350340162,1350340413,1350340410,1350340407,1350340402,1350340393,1350340484,1350340476,1350340463,1350340585,1350340568,1350340559,1350340539,1350340528,1350340751,1350340748,1350340739,1350340720,1350340704,1350340694,1350340921,1350340915,1350340889,1350340886,1350341070,1350341037,1350341007,1350340979,1350340967,1350341250,1350341243,1350341234,1350341221,1350341205,1350341396,1350341363,1350341334,1350341577,1350341575,1350341573,1350341569,1350341566,1350341631,1350341629,1350341626,1350341623,1350341620,1350341616,1350341699); 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([22108240]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} new output for save of step final : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} [1350341699, 1350341631, 1350341629, 1350341626, 1350341623, 1350341620, 1350341616, 1350341577, 1350341575, 1350341573, 1350341569, 1350341566] map_info['map_portfolio_photo'] : {22108240: [1350341699, 1350341631, 1350341629, 1350341626, 1350341623, 1350341620, 1350341616, 1350341577, 1350341575, 1350341573, 1350341569, 1350341566, 1350341396, 1350341363, 1350341334, 1350341250, 1350341243, 1350341234, 1350341221, 1350341205, 1350341070, 1350341037, 1350341007, 1350340979, 1350340967, 1350340921, 1350340915, 1350340889, 1350340886, 1350340751, 1350340748, 1350340739, 1350340720, 1350340704, 1350340694, 1350340585, 1350340568, 1350340559, 1350340539, 1350340528, 1350340484, 1350340476, 1350340463, 1350340413, 1350340410, 1350340407, 1350340402, 1350340393, 1350340283, 1350340222, 1350340215, 1350340205, 1350340171, 1350340162, 1350339987, 1350339982, 1350339979, 1350339933, 1350339912, 1350339896, 1350339873, 1350339852, 1350339841, 1350339701, 1350339677, 1350339643, 1350339615, 1350339454, 1350339451]} final : False mtd_id 4302 list_pids : [1350341699, 1350341631, 1350341629, 1350341626, 1350341623, 1350341620, 1350341616, 1350341577, 1350341575, 1350341573, 1350341569, 1350341566] Looping around the photos to save general results len do output : 12 /1350341699.Didn't retrieve data . /1350341631.Didn't retrieve data . /1350341629.Didn't retrieve data . /1350341626.Didn't retrieve data . /1350341623.Didn't retrieve data . /1350341620.Didn't retrieve data . /1350341616.Didn't retrieve data . /1350341577.Didn't retrieve data . /1350341575.Didn't retrieve data . /1350341573.Didn't retrieve data . /1350341569.Didn't retrieve data . /1350341566.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, '2729359') ('4302', '22108240', '1350341699', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341631', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341629', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341626', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341623', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341620', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341616', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341577', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341575', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341573', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341569', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341566', None, None, None, None, None, '2729359') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22108240', '1350341699', '0.04451422952057321', None, None, None, None, '2729359'), ('4302', '22108240', '1350341631', '0.04451422952057321', None, None, None, None, '2729359'), ('4302', '22108240', '1350341629', '0.04451422952057321', None, None, None, None, '2729359'), ('4302', '22108240', '1350341626', '0.04451422952057321', None, None, None, None, '2729359'), ('4302', '22108240', '1350341623', '0.04451422952057321', None, None, None, None, '2729359'), ('4302', '22108240', '1350341620', '0.04451422952057321', None, None, None, None, '2729359'), ('4302', '22108240', '1350341616', '0.04451422952057321', None, None, None, None, '2729359'), ('4302', '22108240', '1350341577', '0.04451422952057321', None, None, None, None, '2729359'), ('4302', '22108240', '1350341575', '0.04451422952057321', None, None, None, None, '2729359'), ('4302', '22108240', '1350341573', '0.04451422952057321', None, None, None, None, '2729359'), ('4302', '22108240', '1350341569', '0.04451422952057321', None, None, None, None, '2729359'), ('4302', '22108240', '1350341566', '0.04451422952057321', None, None, None, None, '2729359')] time used for this insertion : 0.01466989517211914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07217049598693848 time spend to save output : 0.015203714370727539 total time spend for step 2 : 0.08737421035766602 step3:velours_tree Mon Apr 7 15:46: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 : {22108240: [{'Carton_gris': 22108269, 'papier': 22108270, 'mal_croppe': 22108271, 'environnement': 22108272, 'metal': 22108273, 'Carton_brun': 22108274, 'plastique': 22108275, 'autre_refus': 22108276, 'flou': 22108277, 'Teint_Dans_La_Masse': 22108278, 'kraft': 22108279, 'cartonnette': 22108280}]} input_args_next_step : {22108240: ()} output_args : {22108240: [{'Carton_gris': 22108269, 'papier': 22108270, 'mal_croppe': 22108271, 'environnement': 22108272, 'metal': 22108273, 'Carton_brun': 22108274, 'plastique': 22108275, 'autre_refus': 22108276, 'flou': 22108277, 'Teint_Dans_La_Masse': 22108278, 'kraft': 22108279, 'cartonnette': 22108280}]} args : 22108240 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 22108269, 'papier': 22108270, 'mal_croppe': 22108271, 'environnement': 22108272, 'metal': 22108273, 'Carton_brun': 22108274, 'plastique': 22108275, 'autre_refus': 22108276, 'flou': 22108277, 'Teint_Dans_La_Masse': 22108278, 'kraft': 22108279, 'cartonnette': 22108280},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22108240) 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([22108240]) 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.32091474533081055 time spend to save output : 6.389617919921875e-05 total time spend for step 3 : 0.32097864151000977 step4:send_mail_cod Mon Apr 7 15:46: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 : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} input_args_next_step : {1350341699: ()} output_args : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} args : 1350341699 depend.output_id : 0 input_args_next_step : {1350341699: ('0.04451422952057321',), 1350341631: ()} output_args : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} args : 1350341631 depend.output_id : 0 input_args_next_step : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ()} output_args : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} args : 1350341629 depend.output_id : 0 input_args_next_step : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ()} output_args : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} args : 1350341626 depend.output_id : 0 input_args_next_step : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ()} output_args : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} args : 1350341623 depend.output_id : 0 input_args_next_step : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ()} output_args : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} args : 1350341620 depend.output_id : 0 input_args_next_step : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ()} output_args : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} args : 1350341616 depend.output_id : 0 input_args_next_step : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ()} output_args : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} args : 1350341577 depend.output_id : 0 input_args_next_step : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ()} output_args : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} args : 1350341575 depend.output_id : 0 input_args_next_step : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ()} output_args : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} args : 1350341573 depend.output_id : 0 input_args_next_step : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ()} output_args : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} args : 1350341569 depend.output_id : 0 input_args_next_step : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ()} output_args : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',)} args : 1350341566 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 : {22108240: [{'Carton_gris': 22108269, 'papier': 22108270, 'mal_croppe': 22108271, 'environnement': 22108272, 'metal': 22108273, 'Carton_brun': 22108274, 'plastique': 22108275, 'autre_refus': 22108276, 'flou': 22108277, 'Teint_Dans_La_Masse': 22108278, 'kraft': 22108279, 'cartonnette': 22108280}]} input_args_next_step : {1350341699: ('0.04451422952057321',), 1350341631: ('0.04451422952057321',), 1350341629: ('0.04451422952057321',), 1350341626: ('0.04451422952057321',), 1350341623: ('0.04451422952057321',), 1350341620: ('0.04451422952057321',), 1350341616: ('0.04451422952057321',), 1350341577: ('0.04451422952057321',), 1350341575: ('0.04451422952057321',), 1350341573: ('0.04451422952057321',), 1350341569: ('0.04451422952057321',), 1350341566: ('0.04451422952057321',), 22108240: ()} output_args : {22108240: [{'Carton_gris': 22108269, 'papier': 22108270, 'mal_croppe': 22108271, 'environnement': 22108272, 'metal': 22108273, 'Carton_brun': 22108274, 'plastique': 22108275, 'autre_refus': 22108276, 'flou': 22108277, 'Teint_Dans_La_Masse': 22108278, 'kraft': 22108279, 'cartonnette': 22108280}]} args : 22108240 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :13, first value : ('0.04451422952057321',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22108240) 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 (1350341699,1350341631,1350341629,1350341626,1350341623,1350341620,1350341616,1350341577,1350341575,1350341573,1350341569,1350341566) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350341566 begin to download photo : 1350341575 begin to download photo : 1350341620 begin to download photo : 1350341629 download finish for photo 1350341575 begin to download photo : 1350341577 download finish for photo 1350341620 begin to download photo : 1350341623 download finish for photo 1350341629 begin to download photo : 1350341631 download finish for photo 1350341566 begin to download photo : 1350341569 download finish for photo 1350341577 begin to download photo : 1350341616 download finish for photo 1350341631 begin to download photo : 1350341699 download finish for photo 1350341623 begin to download photo : 1350341626 download finish for photo 1350341569 begin to download photo : 1350341573 download finish for photo 1350341699 download finish for photo 1350341573 download finish for photo 1350341616 download finish for photo 1350341626 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221082711744033619/ imagette221082731744033619/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P22108240_07-04-2025_15_46_59.pdf 22108271 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=22108271 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221082711744033619 22108273 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=22108273 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221082731744033619 22108275 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=22108275 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350340200: '1744032853_1125827_1350339701_298a4294e8dc44035e701a42922b6200_rle_crop_3749129767_0.png', 1350340201: '1744032853_1125827_1350339451_d2dbb683e115a4f4928d07df0abb6344_rle_crop_3749129944_0.png', 1350340396: '1744032928_457538_1350339912_26a7f1f27244e7b71c43085197b3f65e_rle_crop_3749132378_0.png', 1350340642: '1744033046_462010_1350340205_1b1d67da59fa070ed2a4dd7d5ffeb530_rle_crop_3749134255_0.png', 1350340777: '1744033153_1129329_1350340484_e5f065a3d78bd58dc013404f76ffd3c6_rle_crop_3749134826_0.png', 1350340778: '1744033153_1129329_1350340407_2a4148d56269fe361142d66cfe6c02d6_rle_crop_3749134874_0.png', 1350341695: '1744033525_473289_1350341205_a2c98ffe6ea27341abbec2129a711d8f_rle_crop_3749139474_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/02328217e93a6b2b8259a6e8c6bf306e_26959817.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/34f755a919d435dddd5ad15dda150065_73464770.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/e9d37a0a4540b5b4031c924ed6928d37_31670966.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/f458827c444ffd006b4395cb7837c4dc_77259454.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/485d4da5126a51956e4de507b4a065dd_45933304.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/e2fa20ae4cb426b5abf5d6b735447fcb_82164356.png change filename to text .imagette221082751744033619/ imagette221082751744033619/1744033153_1129329_1350340407_2a4148d56269fe361142d66cfe6c02d6_rle_crop_3749134874_0.png.png imagette221082751744033619/1744032853_1125827_1350339451_d2dbb683e115a4f4928d07df0abb6344_rle_crop_3749129944_0.png.png imagette221082751744033619/1744032853_1125827_1350339701_298a4294e8dc44035e701a42922b6200_rle_crop_3749129767_0.png.png imagette221082751744033619/1744033525_473289_1350341205_a2c98ffe6ea27341abbec2129a711d8f_rle_crop_3749139474_0.png.png imagette221082751744033619/1744032928_457538_1350339912_26a7f1f27244e7b71c43085197b3f65e_rle_crop_3749132378_0.png.png imagette221082751744033619/1744033153_1129329_1350340484_e5f065a3d78bd58dc013404f76ffd3c6_rle_crop_3749134826_0.png.png imagette221082751744033619/1744033046_462010_1350340205_1b1d67da59fa070ed2a4dd7d5ffeb530_rle_crop_3749134255_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/24ab98bdc954b06ac607d84a0bd5d5d8_66642629.png imagette221082751744033619 22108276 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=22108276 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350340392: '1744032928_457538_1350339852_7cde1496bd805da583167638075a8e53_rle_crop_3749132427_0.png', 1350340514: '1744033047_528224_1350340283_630d7b9e329ea77ca9d79fc0e252aa6a_rle_crop_3749134195_0.png', 1350340581: '1744033046_462010_1350340215_32dd2cee6fa64624c60a68ad84bffbd2_rle_crop_3749134232_0.png', 1350340583: '1744033046_462010_1350340162_dd3f8d3c318119d85116776ec11f3378_rle_crop_3749134293_0.png', 1350340765: '1744033166_462718_1350340476_42ee286a8114134f4044fd1b3a70f174_rle_crop_3749134851_0.png', 1350340768: '1744033153_1129329_1350340484_e5f065a3d78bd58dc013404f76ffd3c6_rle_crop_3749134822_0.png', 1350341219: '1744033290_1130820_1350340751_9958b2ec337e3c1d0173929c6d68809f_rle_crop_3749137052_0.png', 1350341548: '1744033405_470570_1350341007_6f82b2f518547df7b03365855a9f1a13_rle_crop_3749137948_0.png', 1350341552: '1744033405_470570_1350340979_c97f93406df4c383ee272f6a4baf86bd_rle_crop_3749137962_0.png', 1350341553: '1744033405_470570_1350340979_c97f93406df4c383ee272f6a4baf86bd_rle_crop_3749137961_0.png', 1350341688: '1744033525_473289_1350341243_e078b5dda10a13cf65a2cbb674db3b75_rle_crop_3749138622_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/0e255bcfdc59effb92911575429349bd_41987904.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/2dad7cb197387a3f4e5201de8622e0ec_62869139.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/720af5468ac42e901971559a113318b4_784204.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/c9cc8fbf82d114bfe88e721fe85639ad_54420712.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/0c20400e89724f3e2c7010166799354d_77449785.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/b6c2b193fb909c48815159a565cab15b_85167298.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/480a4dd743f1c9231768ad2b20c05e36_90710303.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/f2a1c6b9b9d569c2456b350e3448e2ed_80809223.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/84c4efaab261834304adfeb4492d6a7e_40914175.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/e7149dffd5d62c1574341901cd5009f8_48588703.png change filename to text .imagette221082761744033620/ imagette221082761744033620/1744033153_1129329_1350340484_e5f065a3d78bd58dc013404f76ffd3c6_rle_crop_3749134822_0.png.png imagette221082761744033620/1744032928_457538_1350339852_7cde1496bd805da583167638075a8e53_rle_crop_3749132427_0.png.png imagette221082761744033620/1744033290_1130820_1350340751_9958b2ec337e3c1d0173929c6d68809f_rle_crop_3749137052_0.png.png imagette221082761744033620/1744033166_462718_1350340476_42ee286a8114134f4044fd1b3a70f174_rle_crop_3749134851_0.png.png imagette221082761744033620/1744033405_470570_1350341007_6f82b2f518547df7b03365855a9f1a13_rle_crop_3749137948_0.png.png imagette221082761744033620/1744033046_462010_1350340162_dd3f8d3c318119d85116776ec11f3378_rle_crop_3749134293_0.png.png imagette221082761744033620/1744033405_470570_1350340979_c97f93406df4c383ee272f6a4baf86bd_rle_crop_3749137962_0.png.png imagette221082761744033620/1744033525_473289_1350341243_e078b5dda10a13cf65a2cbb674db3b75_rle_crop_3749138622_0.png.png imagette221082761744033620/1744033047_528224_1350340283_630d7b9e329ea77ca9d79fc0e252aa6a_rle_crop_3749134195_0.png.png imagette221082761744033620/1744033046_462010_1350340215_32dd2cee6fa64624c60a68ad84bffbd2_rle_crop_3749134232_0.png.png imagette221082761744033620/1744033405_470570_1350340979_c97f93406df4c383ee272f6a4baf86bd_rle_crop_3749137961_0.png.png imagette221082771744033621/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/67e732895261bb6cdf208c1c42b9b2a3_74185122.png imagette221082761744033620 22108277 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=22108277 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221082771744033621 22108279 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=22108279 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350340649: '1744033046_462010_1350340171_20fb43382cc376f06bef03d7d97596b3_rle_crop_3749134273_0.png', 1350341684: '1744033531_1133154_1350341363_65d3d50260e251a94d58a643c5705213_rle_crop_3749138644_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/efea6841d2d8c8659133f06ae305a39f_70945148.png change filename to text .imagette221082791744033621/ imagette221082791744033621/1744033531_1133154_1350341363_65d3d50260e251a94d58a643c5705213_rle_crop_3749138644_0.png.png imagette221082791744033621/1744033046_462010_1350340171_20fb43382cc376f06bef03d7d97596b3_rle_crop_3749134273_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/05c7cfb538e6a3d3c9bb8609bc446741_96047077.png imagette221082791744033621 22108280 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=22108280 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350340163: '1744032853_1125827_1350339701_298a4294e8dc44035e701a42922b6200_rle_crop_3749129769_0.png', 1350340394: '1744032928_457538_1350339852_7cde1496bd805da583167638075a8e53_rle_crop_3749132423_0.png', 1350340604: '1744033046_462010_1350340222_a3704c0427bd4f3b317f49beb943c81a_rle_crop_3749134215_0.png', 1350341188: '1744033273_1130622_1350340748_8e90563ef3b52620bea887b62267fe3f_rle_crop_3749136775_0.png', 1350341190: '1744033273_1130622_1350340694_7d1d9be83b0ef9d432735c57decbe405_rle_crop_3749136996_0.png', 1350341224: '1744033290_1130820_1350340751_9958b2ec337e3c1d0173929c6d68809f_rle_crop_3749137053_0.png', 1350341225: '1744033290_1130820_1350340528_422c6afd698c614f4899668fcf4f91f5_rle_crop_3749137141_0.png', 1350341559: '1744033405_470570_1350341007_6f82b2f518547df7b03365855a9f1a13_rle_crop_3749137945_0.png', 1350341570: '1744033432_1132080_1350340921_5c9ecc498a7517a86c7f2dc38f17a115_rle_crop_3749138059_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/ab8a3b99ae33d24c739caf5ba7d751ae_9207250.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/9d9df051773e04b815bf070fc6364e4c_34009203.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/9b1570f1c0299fa8ee396990f5aa4a75_10343999.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/8fecc61d709bec70cfc8c94a29924876_62770379.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/189000327a4ae8254ee8b3d035432373_82782092.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/dc6c6c59428261802556179ef64de3c1_72056342.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/ec3a2f0bea55f91c9dd992b59e0de2e0_39557822.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/acff58415428d0becc321d980ed850fd_82502345.png change filename to text .imagette221082801744033621/ imagette221082801744033621/1744033432_1132080_1350340921_5c9ecc498a7517a86c7f2dc38f17a115_rle_crop_3749138059_0.png.png imagette221082801744033621/1744033273_1130622_1350340748_8e90563ef3b52620bea887b62267fe3f_rle_crop_3749136775_0.png.png imagette221082801744033621/1744033046_462010_1350340222_a3704c0427bd4f3b317f49beb943c81a_rle_crop_3749134215_0.png.png imagette221082801744033621/1744033290_1130820_1350340751_9958b2ec337e3c1d0173929c6d68809f_rle_crop_3749137053_0.png.png imagette221082801744033621/1744033273_1130622_1350340694_7d1d9be83b0ef9d432735c57decbe405_rle_crop_3749136996_0.png.png imagette221082801744033621/1744032853_1125827_1350339701_298a4294e8dc44035e701a42922b6200_rle_crop_3749129769_0.png.png imagette221082801744033621/1744033405_470570_1350341007_6f82b2f518547df7b03365855a9f1a13_rle_crop_3749137945_0.png.png imagette221082801744033621/1744033290_1130820_1350340528_422c6afd698c614f4899668fcf4f91f5_rle_crop_3749137141_0.png.png imagette221082801744033621/1744032928_457538_1350339852_7cde1496bd805da583167638075a8e53_rle_crop_3749132423_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/ec5025a42cb75d98e7694c6bf4972cd2_85432415.png imagette221082801744033621 22108269 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=22108269 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350340593: '1744033046_462010_1350340215_32dd2cee6fa64624c60a68ad84bffbd2_rle_crop_3749134235_0.png', 1350340597: '1744033046_462010_1350340171_20fb43382cc376f06bef03d7d97596b3_rle_crop_3749134279_0.png', 1350340769: '1744033166_462718_1350340476_42ee286a8114134f4044fd1b3a70f174_rle_crop_3749134860_0.png', 1350340773: '1744033153_1129329_1350340410_d4015c083aaaf20ac846c2672b64a9cd_rle_crop_3749134843_0.png', 1350340774: '1744033153_1129329_1350340410_d4015c083aaaf20ac846c2672b64a9cd_rle_crop_3749134838_0.png', 1350341222: '1744033290_1130820_1350340751_9958b2ec337e3c1d0173929c6d68809f_rle_crop_3749137055_0.png', 1350341223: '1744033290_1130820_1350340568_9ff45ba78e3136a614726b621aa76b63_rle_crop_3749137093_0.png', 1350341556: '1744033405_470570_1350341037_a667b1082e6cdd3a05fcceac29a751ff_rle_crop_3749137933_0.png', 1350341557: '1744033405_470570_1350340967_3995719cba9585df05d55508bb1e8b76_rle_crop_3749137973_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/79c48761623f69cdd47f79b41704f273_38049785.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/1cb1035208a846243aab4ffc76a8145e_21366692.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/7d50af93b4ef49d483ab59dfe03c0e4a_95996867.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/2c984f06a2aadad6feee55326e63fba0_60916317.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/57212153bc8a2f6430f6b8f06c9af1c4_49451821.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/c188551bf106366ef98e40072c1761f5_71595642.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/e37a5fb039e15160540f0fc58cdb8a91_46440135.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/91119cfcfafd53aed716dd65fd0d8e60_73859322.png change filename to text .imagette221082691744033621/ imagette221082691744033621/1744033166_462718_1350340476_42ee286a8114134f4044fd1b3a70f174_rle_crop_3749134860_0.png.png imagette221082691744033621/1744033046_462010_1350340215_32dd2cee6fa64624c60a68ad84bffbd2_rle_crop_3749134235_0.png.png imagette221082691744033621/1744033290_1130820_1350340568_9ff45ba78e3136a614726b621aa76b63_rle_crop_3749137093_0.png.png imagette221082691744033621/1744033153_1129329_1350340410_d4015c083aaaf20ac846c2672b64a9cd_rle_crop_3749134838_0.png.png imagette221082691744033621/1744033153_1129329_1350340410_d4015c083aaaf20ac846c2672b64a9cd_rle_crop_3749134843_0.png.png imagette221082691744033621/1744033046_462010_1350340171_20fb43382cc376f06bef03d7d97596b3_rle_crop_3749134279_0.png.png imagette221082691744033621/1744033405_470570_1350340967_3995719cba9585df05d55508bb1e8b76_rle_crop_3749137973_0.png.png imagette221082691744033621/1744033405_470570_1350341037_a667b1082e6cdd3a05fcceac29a751ff_rle_crop_3749137933_0.png.png imagette221082691744033621/1744033290_1130820_1350340751_9958b2ec337e3c1d0173929c6d68809f_rle_crop_3749137055_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/826a5219dbc7c89af3c5f7b54fcdc6dd_66105941.png imagette221082691744033621 22108274 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=22108274 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350340165: '1744032853_1125827_1350339454_db96b1da5b852d735e8588945b716bec_rle_crop_3749129857_0.png', 1350340626: '1744033046_462010_1350340222_a3704c0427bd4f3b317f49beb943c81a_rle_crop_3749134224_0.png', 1350340628: '1744033046_462010_1350340171_20fb43382cc376f06bef03d7d97596b3_rle_crop_3749134276_0.png', 1350340630: '1744033046_462010_1350340162_dd3f8d3c318119d85116776ec11f3378_rle_crop_3749134290_0.png', 1350340633: '1744033046_462010_1350340162_dd3f8d3c318119d85116776ec11f3378_rle_crop_3749134291_0.png', 1350340776: '1744033153_1129329_1350340484_e5f065a3d78bd58dc013404f76ffd3c6_rle_crop_3749134827_0.png', 1350341560: '1744033405_470570_1350341037_a667b1082e6cdd3a05fcceac29a751ff_rle_crop_3749137937_0.png', 1350341561: '1744033405_470570_1350340979_c97f93406df4c383ee272f6a4baf86bd_rle_crop_3749137966_0.png', 1350341562: '1744033405_470570_1350340967_3995719cba9585df05d55508bb1e8b76_rle_crop_3749137978_0.png', 1350341693: '1744033525_473289_1350341243_e078b5dda10a13cf65a2cbb674db3b75_rle_crop_3749138623_0.png', 1350341694: '1744033525_473289_1350341205_a2c98ffe6ea27341abbec2129a711d8f_rle_crop_3749139477_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/6f95a05b8f277281533d588ccc900db3_38426744.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/5a159e6e067075198a7a0cb9d764e42f_17944716.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/a1912bf87272c611460e96ed69784b22_65358271.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/75361796ed74cbb33cd0527bcd9cd6e9_10777794.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/0589f928fdbaa1503a4e46d150fc91d7_43851876.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/763b1f19e10192a757ed7ae16d228644_2577204.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/bcddc2c975c70232f29f5ebf77efb4e7_8495244.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/b74403afd34bec36e325c862c9ec3572_57744257.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/2570b21b281600dc8d073fb89f0f1456_42627339.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/0e58e5327c3c57f2b7a46cb226acb76a_66287175.png change filename to text .imagette221082741744033622/ imagette221082741744033622/1744033046_462010_1350340222_a3704c0427bd4f3b317f49beb943c81a_rle_crop_3749134224_0.png.png imagette221082741744033622/1744033046_462010_1350340162_dd3f8d3c318119d85116776ec11f3378_rle_crop_3749134291_0.png.png imagette221082741744033622/1744033525_473289_1350341243_e078b5dda10a13cf65a2cbb674db3b75_rle_crop_3749138623_0.png.png imagette221082741744033622/1744033405_470570_1350340967_3995719cba9585df05d55508bb1e8b76_rle_crop_3749137978_0.png.png imagette221082741744033622/1744033046_462010_1350340162_dd3f8d3c318119d85116776ec11f3378_rle_crop_3749134290_0.png.png imagette221082741744033622/1744032853_1125827_1350339454_db96b1da5b852d735e8588945b716bec_rle_crop_3749129857_0.png.png imagette221082741744033622/1744033405_470570_1350340979_c97f93406df4c383ee272f6a4baf86bd_rle_crop_3749137966_0.png.png imagette221082741744033622/1744033046_462010_1350340171_20fb43382cc376f06bef03d7d97596b3_rle_crop_3749134276_0.png.png imagette221082741744033622/1744033405_470570_1350341037_a667b1082e6cdd3a05fcceac29a751ff_rle_crop_3749137937_0.png.png imagette221082741744033622/1744033525_473289_1350341205_a2c98ffe6ea27341abbec2129a711d8f_rle_crop_3749139477_0.png.png imagette221082741744033622/1744033153_1129329_1350340484_e5f065a3d78bd58dc013404f76ffd3c6_rle_crop_3749134827_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/3f464ab83b4fe1956d78e5a886abf461_51678890.png imagette221082741744033622 22108278 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=22108278 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350340766: '1744033153_1129329_1350340484_e5f065a3d78bd58dc013404f76ffd3c6_rle_crop_3749134828_0.png', 1350341534: '1744033405_470570_1350340967_3995719cba9585df05d55508bb1e8b76_rle_crop_3749137976_0.png', 1350341530: '1744033405_470570_1350340967_3995719cba9585df05d55508bb1e8b76_rle_crop_3749137980_0.png', 1350341527: '1744033405_470570_1350340967_3995719cba9585df05d55508bb1e8b76_rle_crop_3749137977_0.png', 1350341215: '1744033290_1130820_1350340539_97e7b533a9b35e55ecdeed94e2dc4a5c_rle_crop_3749137126_0.png', 1350341214: '1744033290_1130820_1350340568_9ff45ba78e3136a614726b621aa76b63_rle_crop_3749137090_0.png', 1350341213: '1744033290_1130820_1350340751_9958b2ec337e3c1d0173929c6d68809f_rle_crop_3749137064_0.png', 1350341212: '1744033290_1130820_1350340751_9958b2ec337e3c1d0173929c6d68809f_rle_crop_3749137058_0.png', 1350341187: '1744033273_1130622_1350340720_95eb5055e5176bb26055fed8b82102c0_rle_crop_3749136964_0.png', 1350341186: '1744033273_1130622_1350340739_8bca747b6848186671ad9fd63cd70737_rle_crop_3749136799_0.png', 1350341185: '1744033273_1130622_1350340748_8e90563ef3b52620bea887b62267fe3f_rle_crop_3749136780_0.png', 1350340767: '1744033153_1129329_1350340410_d4015c083aaaf20ac846c2672b64a9cd_rle_crop_3749134839_0.png', 1350340158: '1744032853_1125827_1350339454_db96b1da5b852d735e8588945b716bec_rle_crop_3749129865_0.png', 1350340764: '1744033166_462718_1350340476_42ee286a8114134f4044fd1b3a70f174_rle_crop_3749134857_0.png', 1350340573: '1744033046_462010_1350340205_1b1d67da59fa070ed2a4dd7d5ffeb530_rle_crop_3749134257_0.png', 1350340565: '1744033046_462010_1350340205_1b1d67da59fa070ed2a4dd7d5ffeb530_rle_crop_3749134259_0.png', 1350340563: '1744033046_462010_1350340222_a3704c0427bd4f3b317f49beb943c81a_rle_crop_3749134221_0.png', 1350340391: '1744032928_457538_1350339841_c3e379bd3707bcda2e592cadf32d1e53_rle_crop_3749132441_0.png', 1350340390: '1744032928_457538_1350339852_7cde1496bd805da583167638075a8e53_rle_crop_3749132432_0.png', 1350340389: '1744032928_457538_1350339873_13eaa20e65edb809772753640a510203_rle_crop_3749132419_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/942e1bd03e9b42a7ccdf6b2da2d3235f_21621471.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/5ebc77730b8e38bc4a2175c5f90d1013_50793856.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/1ec54ac004cada5b58bc839940c16082_62161382.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/65b94a8b0291626347b163a8fa6a91dd_23053898.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/0f08941ebf228583da286820af8ae478_12149593.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/3a15c0590249fd65cb3491f4606fafed_12046259.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/a2329d65947cd9617781ec830ff6b8f6_43202094.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/074a71eeb1ea99f1d3fb901ee601d42e_34822507.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/708408953e55c2e8f3eee77af6dad2e6_41548037.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/4331e04abe1dd47d4890337740b9ddb7_18482779.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/225d4b2f9573bcd6a61d2c2231b4a68b_157582.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/44059b7bc50d2b848978b9fed174ec74_12369694.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/a612753ce98cb558c09d09ef42e6d08c_91111941.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/6fb24a6517b0d1f0f4940da1a0a34531_96690423.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/43543da1e140b128f01662c0f4bdb3c1_5295090.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/da861adffd86ca216176f68d2593a5da_94646894.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/7237b15d585fcef0962c98b8a2c3faf2_22396256.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/f61ad1fd0efe2849f25063237d33f9a3_70661485.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/0237122f39d400ba03a77a40d8c1f76f_73637134.png change filename to text .imagette221082781744033623/ imagette221082781744033623/1744033290_1130820_1350340568_9ff45ba78e3136a614726b621aa76b63_rle_crop_3749137090_0.png.png imagette221082781744033623/1744033153_1129329_1350340410_d4015c083aaaf20ac846c2672b64a9cd_rle_crop_3749134839_0.png.png imagette221082781744033623/1744033290_1130820_1350340751_9958b2ec337e3c1d0173929c6d68809f_rle_crop_3749137058_0.png.png imagette221082781744033623/1744033405_470570_1350340967_3995719cba9585df05d55508bb1e8b76_rle_crop_3749137980_0.png.png imagette221082781744033623/1744033046_462010_1350340205_1b1d67da59fa070ed2a4dd7d5ffeb530_rle_crop_3749134257_0.png.png imagette221082781744033623/1744033166_462718_1350340476_42ee286a8114134f4044fd1b3a70f174_rle_crop_3749134857_0.png.png imagette221082781744033623/1744033273_1130622_1350340739_8bca747b6848186671ad9fd63cd70737_rle_crop_3749136799_0.png.png imagette221082781744033623/1744033273_1130622_1350340748_8e90563ef3b52620bea887b62267fe3f_rle_crop_3749136780_0.png.png imagette221082781744033623/1744033405_470570_1350340967_3995719cba9585df05d55508bb1e8b76_rle_crop_3749137977_0.png.png imagette221082781744033623/1744033046_462010_1350340205_1b1d67da59fa070ed2a4dd7d5ffeb530_rle_crop_3749134259_0.png.png imagette221082781744033623/1744033153_1129329_1350340484_e5f065a3d78bd58dc013404f76ffd3c6_rle_crop_3749134828_0.png.png imagette221082781744033623/1744033046_462010_1350340222_a3704c0427bd4f3b317f49beb943c81a_rle_crop_3749134221_0.png.png imagette221082781744033623/1744032928_457538_1350339873_13eaa20e65edb809772753640a510203_rle_crop_3749132419_0.png.png imagette221082781744033623/1744033273_1130622_1350340720_95eb5055e5176bb26055fed8b82102c0_rle_crop_3749136964_0.png.png imagette221082781744033623/1744032928_457538_1350339841_c3e379bd3707bcda2e592cadf32d1e53_rle_crop_3749132441_0.png.png imagette221082781744033623/1744033290_1130820_1350340539_97e7b533a9b35e55ecdeed94e2dc4a5c_rle_crop_3749137126_0.png.png imagette221082781744033623/1744033405_470570_1350340967_3995719cba9585df05d55508bb1e8b76_rle_crop_3749137976_0.png.png imagette221082781744033623/1744032853_1125827_1350339454_db96b1da5b852d735e8588945b716bec_rle_crop_3749129865_0.png.png imagette221082781744033623/1744032928_457538_1350339852_7cde1496bd805da583167638075a8e53_rle_crop_3749132432_0.png.png imagette221082781744033623/1744033290_1130820_1350340751_9958b2ec337e3c1d0173929c6d68809f_rle_crop_3749137064_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/b1497558cb2bc9927b47a4c36743767c_48616514.png imagette221082781744033623 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22108240 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22108281,22108282,22108283,22108284,22108285,22108286,22108287,22108288,22108289,22108290,22108291,22108292?tags=Carton_gris,papier,mal_croppe,environnement,metal,Carton_brun,plastique,autre_refus,flou,Teint_Dans_La_Masse,kraft,cartonnette your option no_mail is active, we will not send the real mail to your client args[1350341699] : ('0.04451422952057321',) no score found for photo 1350341699 We are sending mail with results at report@fotonower.com args[1350341631] : ('0.04451422952057321',) no score found for photo 1350341631 We are sending mail with results at report@fotonower.com args[1350341629] : ('0.04451422952057321',) no score found for photo 1350341629 We are sending mail with results at report@fotonower.com args[1350341626] : ('0.04451422952057321',) no score found for photo 1350341626 We are sending mail with results at report@fotonower.com args[1350341623] : ('0.04451422952057321',) no score found for photo 1350341623 We are sending mail with results at report@fotonower.com args[1350341620] : ('0.04451422952057321',) no score found for photo 1350341620 We are sending mail with results at report@fotonower.com args[1350341616] : ('0.04451422952057321',) no score found for photo 1350341616 We are sending mail with results at report@fotonower.com args[1350341577] : ('0.04451422952057321',) no score found for photo 1350341577 We are sending mail with results at report@fotonower.com args[1350341575] : ('0.04451422952057321',) no score found for photo 1350341575 We are sending mail with results at report@fotonower.com args[1350341573] : ('0.04451422952057321',) no score found for photo 1350341573 We are sending mail with results at report@fotonower.com args[1350341569] : ('0.04451422952057321',) no score found for photo 1350341569 We are sending mail with results at report@fotonower.com args[1350341566] : ('0.04451422952057321',) no score found for photo 1350341566 We are sending mail with results at report@fotonower.com refus_total : 0.04451422952057321 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=22108240 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_P22108240_07-04-2025_15_46_59.pdf results_Auto_P22108240_07-04-2025_15_46_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22108240_07-04-2025_15_46_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22108240','results_Auto_P22108240_07-04-2025_15_46_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22108240_07-04-2025_15_46_59.pdf','pdf','','0.29','0.04451422952057321') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22108240]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350341699, 1350341631, 1350341629, 1350341626, 1350341623, 1350341620, 1350341616, 1350341577, 1350341575, 1350341573, 1350341569, 1350341566] map_info['map_portfolio_photo'] : {22108240: [1350341699, 1350341631, 1350341629, 1350341626, 1350341623, 1350341620, 1350341616, 1350341577, 1350341575, 1350341573, 1350341569, 1350341566, 1350341396, 1350341363, 1350341334, 1350341250, 1350341243, 1350341234, 1350341221, 1350341205, 1350341070, 1350341037, 1350341007, 1350340979, 1350340967, 1350340921, 1350340915, 1350340889, 1350340886, 1350340751, 1350340748, 1350340739, 1350340720, 1350340704, 1350340694, 1350340585, 1350340568, 1350340559, 1350340539, 1350340528, 1350340484, 1350340476, 1350340463, 1350340413, 1350340410, 1350340407, 1350340402, 1350340393, 1350340283, 1350340222, 1350340215, 1350340205, 1350340171, 1350340162, 1350339987, 1350339982, 1350339979, 1350339933, 1350339912, 1350339896, 1350339873, 1350339852, 1350339841, 1350339701, 1350339677, 1350339643, 1350339615, 1350339454, 1350339451]} final : False mtd_id 4302 list_pids : [1350341699, 1350341631, 1350341629, 1350341626, 1350341623, 1350341620, 1350341616, 1350341577, 1350341575, 1350341573, 1350341569, 1350341566] 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, '2729359') ('4302', '22108240', '1350341699', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341631', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341629', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341626', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341623', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341620', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341616', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341577', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341575', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341573', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341569', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341566', None, None, None, None, None, '2729359') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22108240', '1350341699', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341631', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341629', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341626', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341623', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341620', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341616', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341577', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341575', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341573', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341569', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341566', None, None, None, None, None, '2729359')] time used for this insertion : 0.014017105102539062 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.150777339935303 time spend to save output : 0.014318704605102539 total time spend for step 4 : 6.165096044540405 step5:split_time_score Mon Apr 7 15:47:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22108240'] 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 : [('22108240',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22108240) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350341629: {'path': 'temp/1744033619_1055518_1350341629_0ff242882ed4c7758a804de4ad89df01.jpg', 'extension': 'jpg'}, 1350341631: {'path': 'temp/1744033619_1055518_1350341631_784b566e895e70614163812bc38c35b2.jpg', 'extension': 'jpg'}, 1350341699: {'path': 'temp/1744033619_1055518_1350341699_d4cc818402e6225d0faaafb3bacba006.jpg', 'extension': 'jpg'}, 1350341566: {'path': 'temp/1744033619_1055518_1350341566_cfdd4650bb663d66819e322a2ac028a2.jpg', 'extension': 'jpg'}, 1350341569: {'path': 'temp/1744033619_1055518_1350341569_bed14e043b57ae10061c585e8d38a5d4.jpg', 'extension': 'jpg'}, 1350341573: {'path': 'temp/1744033619_1055518_1350341573_5483c5e2c11617213a0c5a6db6eb48db.jpg', 'extension': 'jpg'}, 1350341575: {'path': 'temp/1744033619_1055518_1350341575_7f75303c54e0e1fe42783464a8e89d7d.jpg', 'extension': 'jpg'}, 1350341577: {'path': 'temp/1744033619_1055518_1350341577_76eaf750cc7c200a117fb454b5e9985d.jpg', 'extension': 'jpg'}, 1350341616: {'path': 'temp/1744033619_1055518_1350341616_c2d042faa27887552ba479662d7d6a51.jpg', 'extension': 'jpg'}, 1350341620: {'path': 'temp/1744033619_1055518_1350341620_a56faa52b0a33cd38a092094afe1b373.jpg', 'extension': 'jpg'}, 1350341623: {'path': 'temp/1744033619_1055518_1350341623_1eb4856f9c1f24a58a4118f13f53a28e.jpg', 'extension': 'jpg'}, 1350341626: {'path': 'temp/1744033619_1055518_1350341626_3a02141495f7ce70288e84e84ca0cff1.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 = 22108240; (('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 = 22108240 group by h (('15', 69),) 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=22108240 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 (22108240) 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 (22108240) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07042025 22108240 Nombre de photos uploadées : 69 / 23040 (0%) 07042025 22108240 Nombre de photos taguées (types de déchets): 0 / 69 (0%) 07042025 22108240 Nombre de photos taguées (volume) : 0 / 69 (0%) [{'photo_id': 1350339454, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/db96b1da5b852d735e8588945b716bec.jpg', 'username': None, 'uploaded_at': 1744032667, 'text': 'image_07042025_15_30_33_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350339451, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/d2dbb683e115a4f4928d07df0abb6344.jpg', 'username': None, 'uploaded_at': 1744032667, 'text': 'image_07042025_15_30_43_010133m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350339701, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/298a4294e8dc44035e701a42922b6200.jpg', 'username': None, 'uploaded_at': 1744032727, 'text': 'image_07042025_15_30_54_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350339677, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/ce523cd915f540bf6329d8b9dddf9f01.jpg', 'username': None, 'uploaded_at': 1744032727, 'text': 'image_07042025_15_31_13_9124.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.291534423828125e-06 ????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027222633361816406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22108240, '2025-04-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1719143,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02631688117980957 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= 1719143 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1719143, 'dashboard_run_id': 1728325, 'mtr_portfolio_id': 22106775, 'dashboard_result_id': 9909376, '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_P22106775_07-04-2025_15_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22106779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22106780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22106781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22106782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22106783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22106784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22106785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22106786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22106787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22106788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22106789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22106790, 'pht': 3726}}"}, {'dashboat_entry_day': 1719143, 'dashboard_run_id': 1728325, 'mtr_portfolio_id': 22107458, 'dashboard_result_id': 9909377, '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_P22107458_07-04-2025_15_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22107517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22107518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22107519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22107520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22107521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22107522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22107523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22107524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22107525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22107526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22107527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22107528, 'pht': 3726}}"}, {'dashboat_entry_day': 1719143, 'dashboard_run_id': 1728325, 'mtr_portfolio_id': 22108240, 'dashboard_result_id': 9909378, '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_P22108240_07-04-2025_15_45_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22108269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22108270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22108271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22108272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22108273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22108274, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22108275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22108276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22108277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22108278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22108279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22108280, '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 = 22106775 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': 2729249, 'mtr_portfolio_id': 22106775, 'created_at': datetime.datetime(2025, 4, 7, 15, 18, 58), 'result': '0.058886222886007346', 'result_long': None, 'result_double': None}] Qualite : 0.058886222886007346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22106775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22106775_07-04-2025_15_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22106775 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_P22106775_07-04-2025_15_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22106779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22106780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22106781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22106782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22106783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22106784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22106785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22106786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22106787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22106788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22106789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22106790, 'pht': 3726}}" where mtr_portfolio_id = 22106775 and dashboard_run_id = 1728325 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`=22106775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9909376, 0.058886222886007346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22106775_07-04-2025_15_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22106779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22106780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22106781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22106782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22106783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22106784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22106785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22106786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22106787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22106788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22106789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22106790, '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 = 22107458 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': 2729296, 'mtr_portfolio_id': 22107458, 'created_at': datetime.datetime(2025, 4, 7, 15, 32, 59), 'result': '0.05895099783638643', 'result_long': None, 'result_double': None}] Qualite : 0.05895099783638643 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22107458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22107458_07-04-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22107458 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_P22107458_07-04-2025_15_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22107517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22107518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22107519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22107520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22107521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22107522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22107523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22107524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22107525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22107526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22107527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22107528, 'pht': 3726}}" where mtr_portfolio_id = 22107458 and dashboard_run_id = 1728325 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`=22107458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9909377, 0.05895099783638643, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22107458_07-04-2025_15_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22107517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22107518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22107519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22107520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22107521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22107522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22107523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22107524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22107525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22107526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22107527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22107528, '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 = 22108240 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': 2729359, 'mtr_portfolio_id': 22108240, 'created_at': datetime.datetime(2025, 4, 7, 15, 46, 59), 'result': '0.04451422952057321', 'result_long': None, 'result_double': None}] Qualite : 0.04451422952057321 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22108240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22108240_07-04-2025_15_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22108240 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_P22108240_07-04-2025_15_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22108269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22108270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22108271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22108272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22108273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22108274, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22108275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22108276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22108277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22108278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22108279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22108280, 'pht': 3726}}" where mtr_portfolio_id = 22108240 and dashboard_run_id = 1728325 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`=22108240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9909378, 0.04451422952057321, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22108240_07-04-2025_15_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22108269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22108270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22108271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22108272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22108273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22108274, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22108275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22108276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22108277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22108278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22108279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22108280, '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 (22106775,22107458,22108240) result : ((1350330963,), (1350331038,), (1350331679,), (1350331766,), (1350331923,), (1350331986,), (1350332051,), (1350332110,), (1350332542,), (1350332610,), (1350332673,), (1350332756,), (1350332832,), (1350332897,), (1350333250,), (1350333307,), (1350333344,), (1350333385,), (1350333997,), (1350334040,), (1350334103,), (1350334162,), (1350334194,), (1350334441,), (1350334462,), (1350334470,), (1350334511,), (1350334533,), (1350334639,), (1350334644,), (1350334648,), (1350334653,), (1350334658,), (1350334703,), (1350334731,), (1350334750,), (1350334777,), (1350334800,), (1350334901,), (1350334904,), (1350334907,), (1350334910,), (1350334914,), (1350335120,), (1350335128,), (1350335133,), (1350335137,), (1350335201,), (1350335205,), (1350335207,), (1350335211,), (1350335217,), (1350335269,), (1350335279,), (1350335287,), (1350335291,), (1350335361,), (1350335364,), (1350335369,), (1350335631,), (1350335663,), (1350335691,), (1350335728,), (1350335742,), (1350335962,), (1350335980,), (1350335998,), (1350336026,), (1350336420,), (1350336310,), (1350336328,), (1350336351,), (1350336393,), (1350336540,), (1350336567,), (1350336601,), (1350336622,), (1350336659,), (1350337060,), (1350337069,), (1350337075,), (1350337237,), (1350337240,), (1350337247,), (1350337251,), (1350337256,), (1350337297,), (1350337477,), (1350337509,), (1350337517,), (1350337521,), (1350337575,), (1350337581,), (1350337591,), (1350337855,), (1350337898,), (1350337901,), (1350337913,), (1350338034,), (1350338040,), (1350338114,), (1350338130,), (1350338173,), (1350338222,), (1350338262,), (1350338396,), (1350338486,), (1350338497,), (1350338520,), (1350338571,), (1350338577,), (1350338583,), (1350338588,), (1350338593,), (1350338614,), (1350338617,), (1350338621,), (1350338625,), (1350338633,), (1350338640,), (1350338715,), (1350338721,), (1350338725,), (1350338746,), (1350338813,), (1350338822,), (1350338949,), (1350338965,), (1350338969,), (1350338972,), (1350339233,), (1350339256,), (1350339262,), (1350339268,), (1350339273,), (1350339360,), (1350339476,), (1350339451,), (1350339454,), (1350339615,), (1350339643,), (1350339677,), (1350339701,), (1350339841,), (1350339852,), (1350339873,), (1350339896,), (1350339912,), (1350339933,), (1350339979,), (1350339982,), (1350339987,), (1350340162,), (1350340171,), (1350340205,), (1350340215,), (1350340222,), (1350340283,), (1350340393,), (1350340402,), (1350340407,), (1350340410,), (1350340413,), (1350340463,), (1350340476,), (1350340484,), (1350340528,), (1350340539,), (1350340559,), (1350340568,), (1350340585,), (1350340694,), (1350340704,), (1350340720,), (1350340739,), (1350340748,), (1350340751,), (1350340886,), (1350340889,), (1350340915,), (1350340921,), (1350340967,), (1350340979,), (1350341007,), (1350341037,), (1350341070,), (1350341205,), (1350341221,), (1350341234,), (1350341243,), (1350341250,), (1350341334,), (1350341363,), (1350341396,), (1350341566,), (1350341569,), (1350341573,), (1350341575,), (1350341577,), (1350341616,), (1350341620,), (1350341623,), (1350341626,), (1350341629,), (1350341631,), (1350341699,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07042025': {'nb_upload': 69, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22108240]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350341699, 1350341631, 1350341629, 1350341626, 1350341623, 1350341620, 1350341616, 1350341577, 1350341575, 1350341573, 1350341569, 1350341566] map_info['map_portfolio_photo'] : {22108240: [1350341699, 1350341631, 1350341629, 1350341626, 1350341623, 1350341620, 1350341616, 1350341577, 1350341575, 1350341573, 1350341569, 1350341566, 1350341396, 1350341363, 1350341334, 1350341250, 1350341243, 1350341234, 1350341221, 1350341205, 1350341070, 1350341037, 1350341007, 1350340979, 1350340967, 1350340921, 1350340915, 1350340889, 1350340886, 1350340751, 1350340748, 1350340739, 1350340720, 1350340704, 1350340694, 1350340585, 1350340568, 1350340559, 1350340539, 1350340528, 1350340484, 1350340476, 1350340463, 1350340413, 1350340410, 1350340407, 1350340402, 1350340393, 1350340283, 1350340222, 1350340215, 1350340205, 1350340171, 1350340162, 1350339987, 1350339982, 1350339979, 1350339933, 1350339912, 1350339896, 1350339873, 1350339852, 1350339841, 1350339701, 1350339677, 1350339643, 1350339615, 1350339454, 1350339451]} final : True mtd_id 4302 list_pids : [1350341699, 1350341631, 1350341629, 1350341626, 1350341623, 1350341620, 1350341616, 1350341577, 1350341575, 1350341573, 1350341569, 1350341566] Looping around the photos to save general results len do output : 1 /22108240Didn'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, '2729359') ('4302', '22108240', '1350341699', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341631', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341629', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341626', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341623', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341620', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341616', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341577', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341575', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341573', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341569', None, None, None, None, None, '2729359') ('4302', None, None, None, None, None, None, None, '2729359') ('4302', '22108240', '1350341566', None, None, None, None, None, '2729359') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22108240', 'None', None, None, None, None, '2729359'), ('4302', '22108240', '1350341699', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341631', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341629', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341626', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341623', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341620', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341616', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341577', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341575', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341573', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341569', None, None, None, None, None, '2729359'), ('4302', '22108240', '1350341566', None, None, None, None, None, '2729359')] time used for this insertion : 0.013547182083129883 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3012568950653076 time spend to save output : 0.013865232467651367 total time spend for step 5 : 0.315122127532959 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 (2729359) 2.42user 2.24system 0:11.77elapsed 39%CPU (0avgtext+0avgdata 160812maxresident)k 1576inputs+15440outputs (38major+74469minor)pagefaults 0swaps