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 : 1153034 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 (3797954) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3797954) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27376525 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3797954'] with mtr_portfolio_ids : ['27376525'] and first list_photo_ids : [] new path : /proc/1153034/ Name: python3 Umask: 0002 State: R (running) Tgid: 1153034 Ngid: 0 Pid: 1153034 PPid: 1153030 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1153034 NSpid: 1153034 NSpgid: 1152338 NSsid: 1152338 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98696 kB VmRSS: 98696 kB RssAnon: 59848 kB RssFile: 38848 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 548 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 49 nonvoluntary_ctxt_switches: 137 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1153034', 'Ngid': '0', 'Pid': '1153034', 'PPid': '1153030', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1153034', 'NSpid': '1153034', 'NSpgid': '1152338', 'NSsid': '1152338', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98696 kB', 'VmRSS': '98696 kB', 'RssAnon': '59848 kB', 'RssFile': '38848 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '548 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '49', 'nonvoluntary_ctxt_switches': '137'} ('datou_batch_current', '1153034', '1106856', '0', '1106856', '865608', '98696', b'', 'marlene', '3797954') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27376525) 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 (3797954 ) ) 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 (27376525) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1387053971, 'portfolio_id': 27376525}, {'photo_id': 1387053968, 'portfolio_id': 27376525}, {'photo_id': 1387053965, 'portfolio_id': 27376525}, {'photo_id': 1387053962, 'portfolio_id': 27376525}, {'photo_id': 1387053938, 'portfolio_id': 27376525}, {'photo_id': 1387053935, 'portfolio_id': 27376525}, {'photo_id': 1387053932, 'portfolio_id': 27376525}, {'photo_id': 1387053929, 'portfolio_id': 27376525}, {'photo_id': 1387053928, 'portfolio_id': 27376525}, {'photo_id': 1387053926, 'portfolio_id': 27376525}, {'photo_id': 1387053914, 'portfolio_id': 27376525}, {'photo_id': 1387053911, 'portfolio_id': 27376525}, {'photo_id': 1387053908, 'portfolio_id': 27376525}, {'photo_id': 1387053905, 'portfolio_id': 27376525}, {'photo_id': 1387053903, 'portfolio_id': 27376525}, {'photo_id': 1387053901, 'portfolio_id': 27376525}, {'photo_id': 1387053868, 'portfolio_id': 27376525}, {'photo_id': 1387053864, 'portfolio_id': 27376525}, {'photo_id': 1387053856, 'portfolio_id': 27376525}, {'photo_id': 1387053842, 'portfolio_id': 27376525}, {'photo_id': 1387053839, 'portfolio_id': 27376525}, {'photo_id': 1387053836, 'portfolio_id': 27376525}, {'photo_id': 1387053815, 'portfolio_id': 27376525}, {'photo_id': 1387053771, 'portfolio_id': 27376525}, {'photo_id': 1387053767, 'portfolio_id': 27376525}, {'photo_id': 1387053761, 'portfolio_id': 27376525}, {'photo_id': 1387053756, 'portfolio_id': 27376525}, {'photo_id': 1387053753, 'portfolio_id': 27376525}, {'photo_id': 1387053738, 'portfolio_id': 27376525}, {'photo_id': 1387053727, 'portfolio_id': 27376525}, {'photo_id': 1387053726, 'portfolio_id': 27376525}, {'photo_id': 1387053694, 'portfolio_id': 27376525}, {'photo_id': 1387053691, 'portfolio_id': 27376525}, {'photo_id': 1387053688, 'portfolio_id': 27376525}, {'photo_id': 1387053684, 'portfolio_id': 27376525}, {'photo_id': 1387053674, 'portfolio_id': 27376525}, {'photo_id': 1387053673, 'portfolio_id': 27376525}, {'photo_id': 1387053670, 'portfolio_id': 27376525}, {'photo_id': 1387053666, 'portfolio_id': 27376525}, {'photo_id': 1387053664, 'portfolio_id': 27376525}, {'photo_id': 1387053660, 'portfolio_id': 27376525}, {'photo_id': 1387053656, 'portfolio_id': 27376525}, {'photo_id': 1387053653, 'portfolio_id': 27376525}, {'photo_id': 1387053640, 'portfolio_id': 27376525}, {'photo_id': 1387053626, 'portfolio_id': 27376525}, {'photo_id': 1387053622, 'portfolio_id': 27376525}, {'photo_id': 1387053620, 'portfolio_id': 27376525}, {'photo_id': 1387053619, 'portfolio_id': 27376525}, {'photo_id': 1387053618, 'portfolio_id': 27376525}, {'photo_id': 1387053604, 'portfolio_id': 27376525}, {'photo_id': 1387053601, 'portfolio_id': 27376525}, {'photo_id': 1387053599, 'portfolio_id': 27376525}, {'photo_id': 1387053595, 'portfolio_id': 27376525}, {'photo_id': 1387053588, 'portfolio_id': 27376525}, {'photo_id': 1387053543, 'portfolio_id': 27376525}, {'photo_id': 1387053540, 'portfolio_id': 27376525}, {'photo_id': 1387053536, 'portfolio_id': 27376525}, {'photo_id': 1387053533, 'portfolio_id': 27376525}, {'photo_id': 1387053530, 'portfolio_id': 27376525}, {'photo_id': 1387053518, 'portfolio_id': 27376525}, {'photo_id': 1387053515, 'portfolio_id': 27376525}, {'photo_id': 1387053509, 'portfolio_id': 27376525}, {'photo_id': 1387053491, 'portfolio_id': 27376525}, {'photo_id': 1387053485, 'portfolio_id': 27376525}, {'photo_id': 1387053474, 'portfolio_id': 27376525}, {'photo_id': 1387053472, 'portfolio_id': 27376525}, {'photo_id': 1387053439, 'portfolio_id': 27376525}, {'photo_id': 1387053194, 'portfolio_id': 27376525}, {'photo_id': 1387052989, 'portfolio_id': 27376525}, {'photo_id': 1387052985, 'portfolio_id': 27376525}, {'photo_id': 1387052965, 'portfolio_id': 27376525}, {'photo_id': 1387052905, 'portfolio_id': 27376525}] map_portfolio_id_photo_id: {27376525: [1387053971, 1387053968, 1387053965, 1387053962, 1387053938, 1387053935, 1387053932, 1387053929, 1387053928, 1387053926, 1387053914, 1387053911, 1387053908, 1387053905, 1387053903, 1387053901, 1387053868, 1387053864, 1387053856, 1387053842, 1387053839, 1387053836, 1387053815, 1387053771, 1387053767, 1387053761, 1387053756, 1387053753, 1387053738, 1387053727, 1387053726, 1387053694, 1387053691, 1387053688, 1387053684, 1387053674, 1387053673, 1387053670, 1387053666, 1387053664, 1387053660, 1387053656, 1387053653, 1387053640, 1387053626, 1387053622, 1387053620, 1387053619, 1387053618, 1387053604, 1387053601, 1387053599, 1387053595, 1387053588, 1387053543, 1387053540, 1387053536, 1387053533, 1387053530, 1387053518, 1387053515, 1387053509, 1387053491, 1387053485, 1387053474, 1387053472, 1387053439, 1387053194, 1387052989, 1387052985, 1387052965, 1387052905]} ##### 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.05385541915893555 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Oct 1 00:30:30 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 (27376525) 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 : 27376525 get user id for portfolio 27376525 get sub ptf for main ptf 27376525, type 3726 and hashtags ['papier', 'environnement', 'flou', 'kraft', 'autre_refus', 'Carton_gris', 'Carton_brun', 'Teint_Dans_La_Masse', 'plastique', 'metal', 'cartonnette', 'mal_croppe'] 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`=27376525 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','flou','kraft','autre_refus','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique','metal','cartonnette','mal_croppe')) 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`=27376525 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','flou','kraft','autre_refus','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique','metal','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 27376525, 'sub_port_id': 27376527, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500079, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 18, 59)}, 'cartonnette': {'main_port_id': 27376525, 'sub_port_id': 27376528, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500080, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 18, 59)}, 'Carton_gris': {'main_port_id': 27376525, 'sub_port_id': 27376529, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500081, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 27376525, 'sub_port_id': 27376530, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500082, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 18, 59)}, 'plastique': {'main_port_id': 27376525, 'sub_port_id': 27376531, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500083, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 18, 59)}, 'mal_croppe': {'main_port_id': 27376525, 'sub_port_id': 27376532, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500084, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 18, 59)}, 'flou': {'main_port_id': 27376525, 'sub_port_id': 27376533, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500085, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 18, 59)}, 'Carton_brun': {'main_port_id': 27376525, 'sub_port_id': 27376534, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500086, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 18, 59)}, 'autre_refus': {'main_port_id': 27376525, 'sub_port_id': 27376535, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500087, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 18, 59)}, 'kraft': {'main_port_id': 27376525, 'sub_port_id': 27376536, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500088, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 18, 59)}, 'metal': {'main_port_id': 27376525, 'sub_port_id': 27376537, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500089, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 18, 59)}, 'environnement': {'main_port_id': 27376525, 'sub_port_id': 27376538, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500090, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 29, 3), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27376527 , 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=27376525 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 (27376527) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27376525) result : ((1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,)) 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 27376528 , 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=27376525 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 (27376528) result : ((1387053547,), (1387053702,), (1387053744,), (1387053874,), (1387053875,), (1387053876,), (1387053892,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27376525) result : ((1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,)) 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 27376529 , 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=27376525 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 (27376529) result : ((1387053546,), (1387053629,), (1387053743,), (1387053889,), (1387053890,), (1387053948,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27376525) result : ((1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,)) 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 27376530 , 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=27376525 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 (27376530) result : ((1387053486,), (1387053487,), (1387053488,), (1387053624,), (1387053625,), (1387053643,), (1387053698,), (1387053699,), (1387053741,), (1387053886,), (1387053887,), (1387053888,), (1387053940,), (1387053941,), (1387053942,), (1387053943,), (1387053944,), (1387053945,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27376525) result : ((1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,)) 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 27376531 , 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=27376525 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 (27376531) result : ((1387053638,), (1387053639,), (1387053746,), (1387053879,), (1387053880,), (1387053897,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27376525) result : ((1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,)) 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 27376532 , 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=27376525 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 (27376532) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27376525) result : ((1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,)) 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 27376533 , 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=27376525 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 (27376533) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27376525) result : ((1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,)) 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 27376534 , 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=27376525 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 (27376534) result : ((1387053489,), (1387053631,), (1387053632,), (1387053633,), (1387053634,), (1387053635,), (1387053636,), (1387053745,), (1387053877,), (1387053893,), (1387053894,), (1387053895,), (1387053896,), (1387053949,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27376525) result : ((1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,)) 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 27376535 , 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=27376525 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 (27376535) result : ((1387053545,), (1387053627,), (1387053628,), (1387053700,), (1387053742,), (1387053872,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27376525) result : ((1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,)) 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 27376536 , 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=27376525 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 (27376536) result : ((1387053950,), (1387053951,), (1387053952,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27376525) result : ((1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,)) 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 27376537 , 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=27376525 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 (27376537) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27376525) result : ((1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,)) 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 27376538 , 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=27376525 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 (27376538) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27376525) result : ((1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,)) 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`=27376525 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','flou','kraft','autre_refus','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique','metal','cartonnette','mal_croppe')) 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`=27376525 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','flou','kraft','autre_refus','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique','metal','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 27376525, 'sub_port_id': 27376539, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500091, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 19, 5)}, 'cartonnette': {'main_port_id': 27376525, 'sub_port_id': 27376540, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500092, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 19, 5)}, 'Carton_gris': {'main_port_id': 27376525, 'sub_port_id': 27376541, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500093, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 19, 5)}, 'Teint_Dans_La_Masse': {'main_port_id': 27376525, 'sub_port_id': 27376542, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500094, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 19, 5)}, 'plastique': {'main_port_id': 27376525, 'sub_port_id': 27376543, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500095, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 19, 5)}, 'mal_croppe': {'main_port_id': 27376525, 'sub_port_id': 27376544, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500096, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 19, 5)}, 'flou': {'main_port_id': 27376525, 'sub_port_id': 27376545, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500097, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 19, 5)}, 'Carton_brun': {'main_port_id': 27376525, 'sub_port_id': 27376546, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500098, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 19, 5)}, 'autre_refus': {'main_port_id': 27376525, 'sub_port_id': 27376547, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500099, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 19, 5)}, 'kraft': {'main_port_id': 27376525, 'sub_port_id': 27376548, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500100, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 19, 5)}, 'metal': {'main_port_id': 27376525, 'sub_port_id': 27376549, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500101, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 19, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 19, 5)}, 'environnement': {'main_port_id': 27376525, 'sub_port_id': 27376550, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18500102, 'last_updated_at': datetime.datetime(2025, 10, 1, 0, 29, 4), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 0, 29, 4), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 0, 19, 5)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27376539,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27376527 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27376540,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27376528 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27376541,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27376529 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27376542,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27376530 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27376543,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27376531 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27376544,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27376532 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27376545,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27376533 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27376546,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27376534 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27376547,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27376535 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27376548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27376536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27376549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27376537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27376550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27376538 lien utilise dans velours : https://marlene.fotonower.com/velours/27376539,27376540,27376541,27376542,27376543,27376544,27376545,27376546,27376547,27376548,27376549,27376550?tags=papier,cartonnette,Carton_gris,Teint_Dans_La_Masse,plastique,mal_croppe,flou,Carton_brun,autre_refus,kraft,metal,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27376525]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1387053971, 1387053968, 1387053965, 1387053962, 1387053938, 1387053935, 1387053932, 1387053929, 1387053928, 1387053926, 1387053914, 1387053911, 1387053908, 1387053905, 1387053903, 1387053901] map_info['map_portfolio_photo'] : {27376525: [1387053971, 1387053968, 1387053965, 1387053962, 1387053938, 1387053935, 1387053932, 1387053929, 1387053928, 1387053926, 1387053914, 1387053911, 1387053908, 1387053905, 1387053903, 1387053901, 1387053868, 1387053864, 1387053856, 1387053842, 1387053839, 1387053836, 1387053815, 1387053771, 1387053767, 1387053761, 1387053756, 1387053753, 1387053738, 1387053727, 1387053726, 1387053694, 1387053691, 1387053688, 1387053684, 1387053674, 1387053673, 1387053670, 1387053666, 1387053664, 1387053660, 1387053656, 1387053653, 1387053640, 1387053626, 1387053622, 1387053620, 1387053619, 1387053618, 1387053604, 1387053601, 1387053599, 1387053595, 1387053588, 1387053543, 1387053540, 1387053536, 1387053533, 1387053530, 1387053518, 1387053515, 1387053509, 1387053491, 1387053485, 1387053474, 1387053472, 1387053439, 1387053194, 1387052989, 1387052985, 1387052965, 1387052905]} final : False mtd_id 4302 list_pids : [1387053971, 1387053968, 1387053965, 1387053962, 1387053938, 1387053935, 1387053932, 1387053929, 1387053928, 1387053926, 1387053914, 1387053911, 1387053908, 1387053905, 1387053903, 1387053901] Looping around the photos to save general results len do output : 1 /27376525. 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, '3797954') ('4302', '27376525', '1387053971', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053968', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053965', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053962', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053938', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053935', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053932', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053929', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053928', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053926', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053914', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053911', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053908', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053905', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053903', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053901', None, None, None, None, None, '3797954') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '27376525', "{'papier': 27376527, 'cartonnette': 27376528, 'Carton_gris': 27376529, 'Teint_Dans_La_Masse': 27376530, 'plastique': 27376531, 'mal_croppe': 27376532, 'flou': 27376533, 'Carton_brun': 27376534, 'autre_refus': 27376535, 'kraft': 27376536, 'metal': 27376537, 'environnement': 27376538}", None, None, None, None, '3797954'), ('4302', '27376525', '1387053971', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053968', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053965', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053962', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053938', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053935', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053932', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053929', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053928', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053926', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053914', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053911', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053908', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053905', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053903', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053901', None, None, None, None, None, '3797954')] time used for this insertion : 0.037436723709106445 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.086488723754883 time spend to save output : 0.037879228591918945 total time spend for step 1 : 5.124367952346802 step2:final Wed Oct 1 00:30:35 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 (27376525) 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 27376525 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1387052905,1387052965,1387053194,1387052989,1387052985,1387053491,1387053485,1387053474,1387053472,1387053439,1387053518,1387053515,1387053509,1387053543,1387053540,1387053536,1387053533,1387053530,1387053604,1387053856,1387053601,1387053761,1387053599,1387053756,1387053595,1387053694,1387053588,1387053691,1387053640,1387053626,1387053688,1387053622,1387053684,1387053674,1387053620,1387053673,1387053619,1387053618,1387053670,1387053666,1387053664,1387053660,1387053656,1387053653,1387053753,1387053738,1387053727,1387053726,1387053842,1387053839,1387053836,1387053815,1387053771,1387053767,1387053868,1387053864,1387053914,1387053911,1387053908,1387053905,1387053903,1387053901,1387053938,1387053935,1387053932,1387053929,1387053928,1387053926,1387053971,1387053968,1387053965,1387053962); 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([27376525]) Inside saveOutput : final : False verbose : True original output for save of step final : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} new output for save of step final : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} [1387053971, 1387053968, 1387053965, 1387053962, 1387053938, 1387053935, 1387053932, 1387053929, 1387053928, 1387053926, 1387053914, 1387053911, 1387053908, 1387053905, 1387053903, 1387053901] map_info['map_portfolio_photo'] : {27376525: [1387053971, 1387053968, 1387053965, 1387053962, 1387053938, 1387053935, 1387053932, 1387053929, 1387053928, 1387053926, 1387053914, 1387053911, 1387053908, 1387053905, 1387053903, 1387053901, 1387053868, 1387053864, 1387053856, 1387053842, 1387053839, 1387053836, 1387053815, 1387053771, 1387053767, 1387053761, 1387053756, 1387053753, 1387053738, 1387053727, 1387053726, 1387053694, 1387053691, 1387053688, 1387053684, 1387053674, 1387053673, 1387053670, 1387053666, 1387053664, 1387053660, 1387053656, 1387053653, 1387053640, 1387053626, 1387053622, 1387053620, 1387053619, 1387053618, 1387053604, 1387053601, 1387053599, 1387053595, 1387053588, 1387053543, 1387053540, 1387053536, 1387053533, 1387053530, 1387053518, 1387053515, 1387053509, 1387053491, 1387053485, 1387053474, 1387053472, 1387053439, 1387053194, 1387052989, 1387052985, 1387052965, 1387052905]} final : False mtd_id 4302 list_pids : [1387053971, 1387053968, 1387053965, 1387053962, 1387053938, 1387053935, 1387053932, 1387053929, 1387053928, 1387053926, 1387053914, 1387053911, 1387053908, 1387053905, 1387053903, 1387053901] Looping around the photos to save general results len do output : 16 /1387053971.Didn't retrieve data . /1387053968.Didn't retrieve data . /1387053965.Didn't retrieve data . /1387053962.Didn't retrieve data . /1387053938.Didn't retrieve data . /1387053935.Didn't retrieve data . /1387053932.Didn't retrieve data . /1387053929.Didn't retrieve data . /1387053928.Didn't retrieve data . /1387053926.Didn't retrieve data . /1387053914.Didn't retrieve data . /1387053911.Didn't retrieve data . /1387053908.Didn't retrieve data . /1387053905.Didn't retrieve data . /1387053903.Didn't retrieve data . /1387053901.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, '3797954') ('4302', '27376525', '1387053971', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053968', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053965', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053962', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053938', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053935', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053932', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053929', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053928', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053926', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053914', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053911', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053908', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053905', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053903', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053901', None, None, None, None, None, '3797954') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '27376525', '1387053971', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053968', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053965', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053962', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053938', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053935', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053932', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053929', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053928', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053926', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053914', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053911', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053908', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053905', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053903', '0.08133205362406848', None, None, None, None, '3797954'), ('4302', '27376525', '1387053901', '0.08133205362406848', None, None, None, None, '3797954')] time used for this insertion : 0.03860640525817871 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.25156211853027344 time spend to save output : 0.039431095123291016 total time spend for step 2 : 0.29099321365356445 step3:velours_tree Wed Oct 1 00:30:35 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 : {27376525: [{'papier': 27376527, 'cartonnette': 27376528, 'Carton_gris': 27376529, 'Teint_Dans_La_Masse': 27376530, 'plastique': 27376531, 'mal_croppe': 27376532, 'flou': 27376533, 'Carton_brun': 27376534, 'autre_refus': 27376535, 'kraft': 27376536, 'metal': 27376537, 'environnement': 27376538}]} input_args_next_step : {27376525: ()} output_args : {27376525: [{'papier': 27376527, 'cartonnette': 27376528, 'Carton_gris': 27376529, 'Teint_Dans_La_Masse': 27376530, 'plastique': 27376531, 'mal_croppe': 27376532, 'flou': 27376533, 'Carton_brun': 27376534, 'autre_refus': 27376535, 'kraft': 27376536, 'metal': 27376537, 'environnement': 27376538}]} args : 27376525 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 27376527, 'cartonnette': 27376528, 'Carton_gris': 27376529, 'Teint_Dans_La_Masse': 27376530, 'plastique': 27376531, 'mal_croppe': 27376532, 'flou': 27376533, 'Carton_brun': 27376534, 'autre_refus': 27376535, 'kraft': 27376536, 'metal': 27376537, 'environnement': 27376538},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27376525) 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([27376525]) 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.3536860942840576 time spend to save output : 5.936622619628906e-05 total time spend for step 3 : 0.3537454605102539 step4:send_mail_cod Wed Oct 1 00:30:36 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 : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} input_args_next_step : {1387053971: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053971 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053968 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053965 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053962 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053938 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053935 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053932 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053929 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053928 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053926 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053914 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053911 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053908 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053905 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053903 depend.output_id : 0 input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ()} output_args : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',)} args : 1387053901 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 : {27376525: [{'papier': 27376527, 'cartonnette': 27376528, 'Carton_gris': 27376529, 'Teint_Dans_La_Masse': 27376530, 'plastique': 27376531, 'mal_croppe': 27376532, 'flou': 27376533, 'Carton_brun': 27376534, 'autre_refus': 27376535, 'kraft': 27376536, 'metal': 27376537, 'environnement': 27376538}]} input_args_next_step : {1387053971: ('0.08133205362406848',), 1387053968: ('0.08133205362406848',), 1387053965: ('0.08133205362406848',), 1387053962: ('0.08133205362406848',), 1387053938: ('0.08133205362406848',), 1387053935: ('0.08133205362406848',), 1387053932: ('0.08133205362406848',), 1387053929: ('0.08133205362406848',), 1387053928: ('0.08133205362406848',), 1387053926: ('0.08133205362406848',), 1387053914: ('0.08133205362406848',), 1387053911: ('0.08133205362406848',), 1387053908: ('0.08133205362406848',), 1387053905: ('0.08133205362406848',), 1387053903: ('0.08133205362406848',), 1387053901: ('0.08133205362406848',), 27376525: ()} output_args : {27376525: [{'papier': 27376527, 'cartonnette': 27376528, 'Carton_gris': 27376529, 'Teint_Dans_La_Masse': 27376530, 'plastique': 27376531, 'mal_croppe': 27376532, 'flou': 27376533, 'Carton_brun': 27376534, 'autre_refus': 27376535, 'kraft': 27376536, 'metal': 27376537, 'environnement': 27376538}]} args : 27376525 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 :17, first value : ('0.08133205362406848',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27376525) 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_view ph WHERE photo_id IN (1387053971,1387053968,1387053965,1387053962,1387053938,1387053935,1387053932,1387053929,1387053928,1387053926,1387053914,1387053911,1387053908,1387053905,1387053903,1387053901) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1387053901 begin to download photo : 1387053911 begin to download photo : 1387053929 begin to download photo : 1387053962 download finish for photo 1387053929 begin to download photo : 1387053932 download finish for photo 1387053962 begin to download photo : 1387053965 download finish for photo 1387053901 begin to download photo : 1387053903 download finish for photo 1387053911 begin to download photo : 1387053914 download finish for photo 1387053965 begin to download photo : 1387053968 download finish for photo 1387053914 begin to download photo : 1387053926 download finish for photo 1387053932 begin to download photo : 1387053935 download finish for photo 1387053903 begin to download photo : 1387053905 download finish for photo 1387053968 begin to download photo : 1387053971 download finish for photo 1387053926 begin to download photo : 1387053928 download finish for photo 1387053935 begin to download photo : 1387053938 download finish for photo 1387053905 begin to download photo : 1387053908 download finish for photo 1387053971 download finish for photo 1387053928 download finish for photo 1387053938 download finish for photo 1387053908 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P27376525_01-10-2025_00_30_36.pdf 27376528 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27376528 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387053547: '1759270864_4180758_1387053509_3380a50b150e5262228d62328ff1d8ed_rle_crop_3981647453_0.png', 1387053702: '1759271104_4193540_1387053620_90b23a1db1c9074b3b34a455abb929ee_rle_crop_3981648559_0.png', 1387053744: '1759271126_4193983_1387053604_7ba9592d45ea35d9f8b4124dfb8e9c75_rle_crop_3981648623_0.png', 1387053874: '1759271225_5712_1387053753_0b69054ad024c0570ef7741aa9df5470_rle_crop_3981649323_0.png', 1387053875: '1759271225_5712_1387053660_da4131624121bdaaf1d53eef8ff9f793_rle_crop_3981649340_0.png', 1387053876: '1759271225_5712_1387053656_f51b4c4348a7ebc3da072a281e7727ca_rle_crop_3981649349_0.png', 1387053892: '1759271244_6136_1387053726_90af944607b8605fedeb47e333162a1d_rle_crop_3981649490_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/a8dfbb157c7af034f5012e87ab2be481_967645.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/21b272aea62312819f407086fbfd1b89_93025863.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/70aa210ddb3e041eb97390f5b5e595ea_84151249.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/cfc4f7fe25c434b5da7c21060a734a9f_73914298.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/e2c19f25455a780461961246a707c94f_31820598.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/ef65b2368ebd8f702abd40a427ea5545_68095993.png change filename to text .imagette273765281759271436/ imagette273765281759271436/1759271225_5712_1387053660_da4131624121bdaaf1d53eef8ff9f793_rle_crop_3981649340_0.png.png imagette273765281759271436/1759271104_4193540_1387053620_90b23a1db1c9074b3b34a455abb929ee_rle_crop_3981648559_0.png.png imagette273765281759271436/1759271244_6136_1387053726_90af944607b8605fedeb47e333162a1d_rle_crop_3981649490_0.png.png imagette273765281759271436/1759270864_4180758_1387053509_3380a50b150e5262228d62328ff1d8ed_rle_crop_3981647453_0.png.png imagette273765281759271436/1759271225_5712_1387053753_0b69054ad024c0570ef7741aa9df5470_rle_crop_3981649323_0.png.png imagette273765281759271436/1759271225_5712_1387053656_f51b4c4348a7ebc3da072a281e7727ca_rle_crop_3981649349_0.png.png imagette273765281759271436/1759271126_4193983_1387053604_7ba9592d45ea35d9f8b4124dfb8e9c75_rle_crop_3981648623_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/602994380ff9a3f0a8b61f16e1473e60_3057745.png imagette273765281759271436 27376531 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27376531 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387053638: '1759270986_4188162_1387053533_5403b5908ef74a1f7c22e36700140eb0_rle_crop_3981647906_0.png', 1387053639: '1759270986_4188162_1387053530_dcc724338dcd868ab40f435a39a37b8e_rle_crop_3981647921_0.png', 1387053746: '1759271126_4193983_1387053604_7ba9592d45ea35d9f8b4124dfb8e9c75_rle_crop_3981648634_0.png', 1387053879: '1759271225_5712_1387053656_f51b4c4348a7ebc3da072a281e7727ca_rle_crop_3981649355_0.png', 1387053880: '1759271225_5712_1387053653_2b3eba77516a5632ddbb0f3f9a43c58d_rle_crop_3981649368_0.png', 1387053897: '1759271244_6136_1387053726_90af944607b8605fedeb47e333162a1d_rle_crop_3981649498_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/64c483431583de66091579cdfab83d54_69617301.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/0a5cfc411de9f36b47ca352e40b4e0fb_98686209.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/6de9ae5b194491c1da5d4f0b25c90251_3934006.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/78320c08a971c847067f1a2dc93d7085_22114496.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/f9f0c5414e8e95b9eacc8691af2ea104_55652436.png change filename to text .imagette273765311759271437/ imagette273765311759271437/1759271225_5712_1387053656_f51b4c4348a7ebc3da072a281e7727ca_rle_crop_3981649355_0.png.png imagette273765311759271437/1759270986_4188162_1387053530_dcc724338dcd868ab40f435a39a37b8e_rle_crop_3981647921_0.png.png imagette273765311759271437/1759271126_4193983_1387053604_7ba9592d45ea35d9f8b4124dfb8e9c75_rle_crop_3981648634_0.png.png imagette273765311759271437/1759271244_6136_1387053726_90af944607b8605fedeb47e333162a1d_rle_crop_3981649498_0.png.png imagette273765311759271437/1759271225_5712_1387053653_2b3eba77516a5632ddbb0f3f9a43c58d_rle_crop_3981649368_0.png.png imagette273765311759271437/1759270986_4188162_1387053533_5403b5908ef74a1f7c22e36700140eb0_rle_crop_3981647906_0.png.png imagette273765321759271437/ imagette273765331759271437/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/603c6d4675c70ff6160d1e3835b54f57_97761113.png imagette273765311759271437 27376532 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27376532 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273765321759271437 27376533 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27376533 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273765331759271437 27376535 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27376535 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387053545: '1759270864_4180758_1387053509_3380a50b150e5262228d62328ff1d8ed_rle_crop_3981647457_0.png', 1387053627: '1759270986_4188162_1387053540_bf9852e1903374a6b7b75953f893f23e_rle_crop_3981647867_0.png', 1387053628: '1759270986_4188162_1387053533_5403b5908ef74a1f7c22e36700140eb0_rle_crop_3981647901_0.png', 1387053700: '1759271104_4193540_1387053618_00eabef5d388a068e1277f9227761a4d_rle_crop_3981648577_0.png', 1387053742: '1759271126_4193983_1387053604_7ba9592d45ea35d9f8b4124dfb8e9c75_rle_crop_3981648620_0.png', 1387053872: '1759271225_5712_1387053653_2b3eba77516a5632ddbb0f3f9a43c58d_rle_crop_3981649364_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/e23fc84dd479fdadd35705e4d46296b5_72679880.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/0924f13a81716093b54412e000cf245f_5032634.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/d46edaddd8785921d31e166dba78d38e_61996748.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/6e441e24299fb8d45a2350e5b17f3965_33358723.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/f1dddafefe09f91d15bae25d5c80a5b3_39002618.png change filename to text .imagette273765351759271438/ imagette273765351759271438/1759271126_4193983_1387053604_7ba9592d45ea35d9f8b4124dfb8e9c75_rle_crop_3981648620_0.png.png imagette273765351759271438/1759270864_4180758_1387053509_3380a50b150e5262228d62328ff1d8ed_rle_crop_3981647457_0.png.png imagette273765351759271438/1759271104_4193540_1387053618_00eabef5d388a068e1277f9227761a4d_rle_crop_3981648577_0.png.png imagette273765351759271438/1759271225_5712_1387053653_2b3eba77516a5632ddbb0f3f9a43c58d_rle_crop_3981649364_0.png.png imagette273765351759271438/1759270986_4188162_1387053533_5403b5908ef74a1f7c22e36700140eb0_rle_crop_3981647901_0.png.png imagette273765351759271438/1759270986_4188162_1387053540_bf9852e1903374a6b7b75953f893f23e_rle_crop_3981647867_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/e3a4420b149ed24eb1acd7ab97b50e40_483769.png imagette273765351759271438 27376536 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27376536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387053950: '1759271345_11186_1387053836_6778c8dfd0f1c0b3f60efecd6570df32_rle_crop_3981650085_0.png', 1387053951: '1759271345_11186_1387053815_f04204bfd83f06268401608e35ff6ccb_rle_crop_3981650092_0.png', 1387053952: '1759271345_11186_1387053771_4df8fb191bf032e76a213bfafa046d1f_rle_crop_3981650109_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/4897812b2d1cf2c9f9cfffc5d13cec9a_57401076.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/3bf56c895787a743adc70874997a9dcf_57541704.png change filename to text .imagette273765361759271438/ imagette273765361759271438/1759271345_11186_1387053771_4df8fb191bf032e76a213bfafa046d1f_rle_crop_3981650109_0.png.png imagette273765361759271438/1759271345_11186_1387053836_6778c8dfd0f1c0b3f60efecd6570df32_rle_crop_3981650085_0.png.png imagette273765361759271438/1759271345_11186_1387053815_f04204bfd83f06268401608e35ff6ccb_rle_crop_3981650092_0.png.png imagette273765371759271438/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/7562da825cc9c00e0f1e10340b182ba4_10272006.png imagette273765361759271438 27376537 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27376537 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273765371759271438 27376529 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27376529 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387053546: '1759270864_4180758_1387053515_8813600a0a5ec4572e341f54198ba256_rle_crop_3981647443_0.png', 1387053629: '1759270986_4188162_1387053540_bf9852e1903374a6b7b75953f893f23e_rle_crop_3981647866_0.png', 1387053743: '1759271126_4193983_1387053604_7ba9592d45ea35d9f8b4124dfb8e9c75_rle_crop_3981648624_0.png', 1387053889: '1759271244_6136_1387053738_c6e0e85c2e7899b24faccaa10d902e32_rle_crop_3981649465_0.png', 1387053890: '1759271244_6136_1387053727_17ce0d2d4eb0db9aef58488cb8e8dba0_rle_crop_3981649478_0.png', 1387053948: '1759271345_11186_1387053839_f70d7960bd38bc0cdfe420ef3f9abe11_rle_crop_3981650068_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/6d47edd91deec5c3f2b8b120045af499_33270134.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/ae93b2a130bc150cf86141a421c52b43_49652635.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/0c2e5e1ac152059949d692843bd95c1a_15029130.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/7126fb45043cd45422ce2886361943a3_20323327.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/f79df9f6aec2a0bf206458e31a481613_74336428.png change filename to text .imagette273765291759271438/ imagette273765291759271438/1759271244_6136_1387053727_17ce0d2d4eb0db9aef58488cb8e8dba0_rle_crop_3981649478_0.png.png imagette273765291759271438/1759271126_4193983_1387053604_7ba9592d45ea35d9f8b4124dfb8e9c75_rle_crop_3981648624_0.png.png imagette273765291759271438/1759270864_4180758_1387053515_8813600a0a5ec4572e341f54198ba256_rle_crop_3981647443_0.png.png imagette273765291759271438/1759271244_6136_1387053738_c6e0e85c2e7899b24faccaa10d902e32_rle_crop_3981649465_0.png.png imagette273765291759271438/1759271345_11186_1387053839_f70d7960bd38bc0cdfe420ef3f9abe11_rle_crop_3981650068_0.png.png imagette273765291759271438/1759270986_4188162_1387053540_bf9852e1903374a6b7b75953f893f23e_rle_crop_3981647866_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/1cab8f4e2cc0f8f5ec7be7c27a1a87d6_43164279.png imagette273765291759271438 27376530 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27376530 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387053886: '1759271244_6136_1387053738_c6e0e85c2e7899b24faccaa10d902e32_rle_crop_3981649469_0.png', 1387053945: '1759271345_11186_1387053767_6638642d61b8c3b6fcde1295fe78adf7_rle_crop_3981650124_0.png', 1387053944: '1759271345_11186_1387053771_4df8fb191bf032e76a213bfafa046d1f_rle_crop_3981650115_0.png', 1387053943: '1759271345_11186_1387053815_f04204bfd83f06268401608e35ff6ccb_rle_crop_3981650094_0.png', 1387053942: '1759271345_11186_1387053836_6778c8dfd0f1c0b3f60efecd6570df32_rle_crop_3981650083_0.png', 1387053941: '1759271345_11186_1387053839_f70d7960bd38bc0cdfe420ef3f9abe11_rle_crop_3981650066_0.png', 1387053940: '1759271345_11186_1387053868_cc541e59344d4a8a1a44fd8275668dff_rle_crop_3981650057_0.png', 1387053888: '1759271244_6136_1387053726_90af944607b8605fedeb47e333162a1d_rle_crop_3981649496_0.png', 1387053887: '1759271244_6136_1387053726_90af944607b8605fedeb47e333162a1d_rle_crop_3981649497_0.png', 1387053486: '1759270745_4174960_1387052989_51349d7980c80cae34d4a5d43fb13394_rle_crop_3981644635_0.png', 1387053741: '1759271126_4193983_1387053604_7ba9592d45ea35d9f8b4124dfb8e9c75_rle_crop_3981648626_0.png', 1387053699: '1759271104_4193540_1387053620_90b23a1db1c9074b3b34a455abb929ee_rle_crop_3981648556_0.png', 1387053698: '1759271104_4193540_1387053622_698b45bac36c4fd9919bfe5763cb73d9_rle_crop_3981648543_0.png', 1387053643: '1759271007_4188525_1387053543_2be2f57ac4bd4fac81b6f2b4e8ef3609_rle_crop_3981647964_0.png', 1387053625: '1759270986_4188162_1387053533_5403b5908ef74a1f7c22e36700140eb0_rle_crop_3981647910_0.png', 1387053624: '1759270986_4188162_1387053540_bf9852e1903374a6b7b75953f893f23e_rle_crop_3981647870_0.png', 1387053488: '1759270745_4174960_1387052985_a8cdb05e66a6a56cd86c7761b3bacbbb_rle_crop_3981644649_0.png', 1387053487: '1759270745_4174960_1387052989_51349d7980c80cae34d4a5d43fb13394_rle_crop_3981644633_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/1d781a93ea64973beb17688eadbc127c_93457950.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/837c591abd3de7bfff68a99edcf2b9d0_3546229.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/73bfb52c0f560606e28b29a2180d9cd4_11925869.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/634f3762ac50fc4ed12cbfc20dc35cc5_15721358.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/3f9be8727851710c4fec14458231c502_52172947.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/1f0ca37f7d69f15b0a9b0e8ad8ace39c_67820669.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/b02bada15790ae13e8d798023682a8d2_21609171.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/56b2bc78c3552dd908fc743018fc2c28_97423097.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/517c289f399e2de5144fbbf4cdf78216_76969729.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/26e8393fb25547e91ba051e22187d3f7_54624440.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/dc1fc251f21470f813b7b74dbf01aa0e_66500208.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/898e24b4738473d5c9da597430931234_11072602.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/d10a217a3c5c345fa14792b66c6c102b_58142408.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/ebb86ce98b9ca3bfd68ada7f7b858159_10748582.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/fe51c6133577aaf5da49ad3787fa1680_67019534.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/eee270ecd50bf4c52fbd670bd7c65ecf_38861798.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/6e1f78e96f8edeaa1cfbb3cf0a680b76_21744347.png change filename to text .imagette273765301759271439/ imagette273765301759271439/1759271007_4188525_1387053543_2be2f57ac4bd4fac81b6f2b4e8ef3609_rle_crop_3981647964_0.png.png imagette273765301759271439/1759270745_4174960_1387052989_51349d7980c80cae34d4a5d43fb13394_rle_crop_3981644635_0.png.png imagette273765301759271439/1759271244_6136_1387053726_90af944607b8605fedeb47e333162a1d_rle_crop_3981649497_0.png.png imagette273765301759271439/1759271345_11186_1387053767_6638642d61b8c3b6fcde1295fe78adf7_rle_crop_3981650124_0.png.png imagette273765301759271439/1759270745_4174960_1387052985_a8cdb05e66a6a56cd86c7761b3bacbbb_rle_crop_3981644649_0.png.png imagette273765301759271439/1759271345_11186_1387053839_f70d7960bd38bc0cdfe420ef3f9abe11_rle_crop_3981650066_0.png.png imagette273765301759271439/1759271126_4193983_1387053604_7ba9592d45ea35d9f8b4124dfb8e9c75_rle_crop_3981648626_0.png.png imagette273765301759271439/1759270986_4188162_1387053533_5403b5908ef74a1f7c22e36700140eb0_rle_crop_3981647910_0.png.png imagette273765301759271439/1759271104_4193540_1387053620_90b23a1db1c9074b3b34a455abb929ee_rle_crop_3981648556_0.png.png imagette273765301759271439/1759271345_11186_1387053868_cc541e59344d4a8a1a44fd8275668dff_rle_crop_3981650057_0.png.png imagette273765301759271439/1759271104_4193540_1387053622_698b45bac36c4fd9919bfe5763cb73d9_rle_crop_3981648543_0.png.png imagette273765301759271439/1759270986_4188162_1387053540_bf9852e1903374a6b7b75953f893f23e_rle_crop_3981647870_0.png.png imagette273765301759271439/1759271345_11186_1387053771_4df8fb191bf032e76a213bfafa046d1f_rle_crop_3981650115_0.png.png imagette273765301759271439/1759271345_11186_1387053815_f04204bfd83f06268401608e35ff6ccb_rle_crop_3981650094_0.png.png imagette273765301759271439/1759271244_6136_1387053738_c6e0e85c2e7899b24faccaa10d902e32_rle_crop_3981649469_0.png.png imagette273765301759271439/1759271345_11186_1387053836_6778c8dfd0f1c0b3f60efecd6570df32_rle_crop_3981650083_0.png.png imagette273765301759271439/1759270745_4174960_1387052989_51349d7980c80cae34d4a5d43fb13394_rle_crop_3981644633_0.png.png imagette273765301759271439/1759271244_6136_1387053726_90af944607b8605fedeb47e333162a1d_rle_crop_3981649496_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/c5810ca17e83934f2f3f8beefc5ecda1_30882007.png imagette273765301759271439 27376534 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27376534 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387053489: '1759270745_4174960_1387052985_a8cdb05e66a6a56cd86c7761b3bacbbb_rle_crop_3981644650_0.png', 1387053631: '1759270986_4188162_1387053540_bf9852e1903374a6b7b75953f893f23e_rle_crop_3981647868_0.png', 1387053632: '1759270986_4188162_1387053540_bf9852e1903374a6b7b75953f893f23e_rle_crop_3981647871_0.png', 1387053633: '1759270986_4188162_1387053536_da1e71adb2adbdd5d897d4b46c77eaaf_rle_crop_3981647880_0.png', 1387053634: '1759270986_4188162_1387053536_da1e71adb2adbdd5d897d4b46c77eaaf_rle_crop_3981647884_0.png', 1387053635: '1759270986_4188162_1387053533_5403b5908ef74a1f7c22e36700140eb0_rle_crop_3981647904_0.png', 1387053636: '1759270986_4188162_1387053530_dcc724338dcd868ab40f435a39a37b8e_rle_crop_3981647915_0.png', 1387053745: '1759271126_4193983_1387053604_7ba9592d45ea35d9f8b4124dfb8e9c75_rle_crop_3981648627_0.png', 1387053877: '1759271225_5712_1387053753_0b69054ad024c0570ef7741aa9df5470_rle_crop_3981649326_0.png', 1387053893: '1759271244_6136_1387053727_17ce0d2d4eb0db9aef58488cb8e8dba0_rle_crop_3981649482_0.png', 1387053894: '1759271244_6136_1387053727_17ce0d2d4eb0db9aef58488cb8e8dba0_rle_crop_3981649483_0.png', 1387053895: '1759271244_6136_1387053727_17ce0d2d4eb0db9aef58488cb8e8dba0_rle_crop_3981649484_0.png', 1387053896: '1759271244_6136_1387053726_90af944607b8605fedeb47e333162a1d_rle_crop_3981649494_0.png', 1387053949: '1759271345_11186_1387053771_4df8fb191bf032e76a213bfafa046d1f_rle_crop_3981650107_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/a386cdba8ad82464e4f0767defd3cbad_24904339.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/ebfba3e49c315edc0e46481736f05704_56058372.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/773b14affb4da178e471b7eb5e14ed0f_15689588.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/78963700b7eac69e76cb0f52f49fb005_95703263.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/b7f2d1560dbe201fefff2e6ad6016ba8_14673446.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/e8c470182f1b8875cbc7be0fa81cdad5_25526715.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/607b2472be0923aaf47da9807d79b3d9_25788233.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/e126bacb284284d1cc12dc3d79835883_36005377.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/889a764705ee15d482c789ac9403725c_71586463.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/7bccc8ff889038e2dccf9c27100d56c5_97572411.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/d46c00b6b9adb5a440cda37efa108427_86770759.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/ea8c808635efbff6495be56de2008f50_29733999.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/231127c0b880fe2a6df517507bad9003_61389344.png change filename to text .imagette273765341759271440/ imagette273765341759271440/1759270986_4188162_1387053540_bf9852e1903374a6b7b75953f893f23e_rle_crop_3981647871_0.png.png imagette273765341759271440/1759271244_6136_1387053727_17ce0d2d4eb0db9aef58488cb8e8dba0_rle_crop_3981649484_0.png.png imagette273765341759271440/1759270986_4188162_1387053536_da1e71adb2adbdd5d897d4b46c77eaaf_rle_crop_3981647884_0.png.png imagette273765341759271440/1759271225_5712_1387053753_0b69054ad024c0570ef7741aa9df5470_rle_crop_3981649326_0.png.png imagette273765341759271440/1759271126_4193983_1387053604_7ba9592d45ea35d9f8b4124dfb8e9c75_rle_crop_3981648627_0.png.png imagette273765341759271440/1759270986_4188162_1387053536_da1e71adb2adbdd5d897d4b46c77eaaf_rle_crop_3981647880_0.png.png imagette273765341759271440/1759271244_6136_1387053727_17ce0d2d4eb0db9aef58488cb8e8dba0_rle_crop_3981649483_0.png.png imagette273765341759271440/1759270745_4174960_1387052985_a8cdb05e66a6a56cd86c7761b3bacbbb_rle_crop_3981644650_0.png.png imagette273765341759271440/1759271345_11186_1387053771_4df8fb191bf032e76a213bfafa046d1f_rle_crop_3981650107_0.png.png imagette273765341759271440/1759271244_6136_1387053727_17ce0d2d4eb0db9aef58488cb8e8dba0_rle_crop_3981649482_0.png.png imagette273765341759271440/1759270986_4188162_1387053533_5403b5908ef74a1f7c22e36700140eb0_rle_crop_3981647904_0.png.png imagette273765341759271440/1759271244_6136_1387053726_90af944607b8605fedeb47e333162a1d_rle_crop_3981649494_0.png.png imagette273765341759271440/1759270986_4188162_1387053530_dcc724338dcd868ab40f435a39a37b8e_rle_crop_3981647915_0.png.png imagette273765341759271440/1759270986_4188162_1387053540_bf9852e1903374a6b7b75953f893f23e_rle_crop_3981647868_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/46fbd024de102a962762b81986059c93_25567983.png imagette273765341759271440 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27376525 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27376539,27376540,27376541,27376542,27376543,27376544,27376545,27376546,27376547,27376548,27376549,27376550?tags=papier,cartonnette,Carton_gris,Teint_Dans_La_Masse,plastique,mal_croppe,flou,Carton_brun,autre_refus,kraft,metal,environnement your option no_mail is active, we will not send the real mail to your client args[1387053971] : ('0.08133205362406848',) no score found for photo 1387053971 We are sending mail with results at report@fotonower.com args[1387053968] : ('0.08133205362406848',) no score found for photo 1387053968 We are sending mail with results at report@fotonower.com args[1387053965] : ('0.08133205362406848',) no score found for photo 1387053965 We are sending mail with results at report@fotonower.com args[1387053962] : ('0.08133205362406848',) no score found for photo 1387053962 We are sending mail with results at report@fotonower.com args[1387053938] : ('0.08133205362406848',) no score found for photo 1387053938 We are sending mail with results at report@fotonower.com args[1387053935] : ('0.08133205362406848',) no score found for photo 1387053935 We are sending mail with results at report@fotonower.com args[1387053932] : ('0.08133205362406848',) no score found for photo 1387053932 We are sending mail with results at report@fotonower.com args[1387053929] : ('0.08133205362406848',) no score found for photo 1387053929 We are sending mail with results at report@fotonower.com args[1387053928] : ('0.08133205362406848',) no score found for photo 1387053928 We are sending mail with results at report@fotonower.com args[1387053926] : ('0.08133205362406848',) no score found for photo 1387053926 We are sending mail with results at report@fotonower.com args[1387053914] : ('0.08133205362406848',) no score found for photo 1387053914 We are sending mail with results at report@fotonower.com args[1387053911] : ('0.08133205362406848',) no score found for photo 1387053911 We are sending mail with results at report@fotonower.com args[1387053908] : ('0.08133205362406848',) no score found for photo 1387053908 We are sending mail with results at report@fotonower.com args[1387053905] : ('0.08133205362406848',) no score found for photo 1387053905 We are sending mail with results at report@fotonower.com args[1387053903] : ('0.08133205362406848',) no score found for photo 1387053903 We are sending mail with results at report@fotonower.com args[1387053901] : ('0.08133205362406848',) no score found for photo 1387053901 We are sending mail with results at report@fotonower.com refus_total : 0.08133205362406848 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27376525 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_P27376525_01-10-2025_00_30_36.pdf results_Auto_P27376525_01-10-2025_00_30_36.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376525_01-10-2025_00_30_36.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','27376525','results_Auto_P27376525_01-10-2025_00_30_36.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376525_01-10-2025_00_30_36.pdf','pdf','','0.34','0.08133205362406848') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27376525]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1387053971, 1387053968, 1387053965, 1387053962, 1387053938, 1387053935, 1387053932, 1387053929, 1387053928, 1387053926, 1387053914, 1387053911, 1387053908, 1387053905, 1387053903, 1387053901] map_info['map_portfolio_photo'] : {27376525: [1387053971, 1387053968, 1387053965, 1387053962, 1387053938, 1387053935, 1387053932, 1387053929, 1387053928, 1387053926, 1387053914, 1387053911, 1387053908, 1387053905, 1387053903, 1387053901, 1387053868, 1387053864, 1387053856, 1387053842, 1387053839, 1387053836, 1387053815, 1387053771, 1387053767, 1387053761, 1387053756, 1387053753, 1387053738, 1387053727, 1387053726, 1387053694, 1387053691, 1387053688, 1387053684, 1387053674, 1387053673, 1387053670, 1387053666, 1387053664, 1387053660, 1387053656, 1387053653, 1387053640, 1387053626, 1387053622, 1387053620, 1387053619, 1387053618, 1387053604, 1387053601, 1387053599, 1387053595, 1387053588, 1387053543, 1387053540, 1387053536, 1387053533, 1387053530, 1387053518, 1387053515, 1387053509, 1387053491, 1387053485, 1387053474, 1387053472, 1387053439, 1387053194, 1387052989, 1387052985, 1387052965, 1387052905]} final : False mtd_id 4302 list_pids : [1387053971, 1387053968, 1387053965, 1387053962, 1387053938, 1387053935, 1387053932, 1387053929, 1387053928, 1387053926, 1387053914, 1387053911, 1387053908, 1387053905, 1387053903, 1387053901] 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, '3797954') ('4302', '27376525', '1387053971', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053968', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053965', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053962', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053938', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053935', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053932', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053929', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053928', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053926', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053914', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053911', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053908', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053905', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053903', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053901', None, None, None, None, None, '3797954') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '27376525', '1387053971', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053968', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053965', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053962', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053938', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053935', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053932', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053929', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053928', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053926', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053914', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053911', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053908', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053905', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053903', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053901', None, None, None, None, None, '3797954')] time used for this insertion : 0.039078712463378906 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.71290135383606 time spend to save output : 0.03941607475280762 total time spend for step 4 : 7.752317428588867 step5:split_time_score Wed Oct 1 00:30:43 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 : ['27376525'] 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 : [('27376525',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27376525) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1387053962: {'path': 'temp/1759271436_1153034_1387053962_6b848909c1a936f2df11487e4b9c3ef7.jpg', 'extension': 'jpg'}, 1387053965: {'path': 'temp/1759271436_1153034_1387053965_625d40d64d46a35ea3b4ac8dcee626a3.jpg', 'extension': 'jpg'}, 1387053968: {'path': 'temp/1759271436_1153034_1387053968_f9065439ebb347506215eaa162426527.jpg', 'extension': 'jpg'}, 1387053971: {'path': 'temp/1759271436_1153034_1387053971_e77eea1bbf16a5e087f4256f9a59b453.jpg', 'extension': 'jpg'}, 1387053911: {'path': 'temp/1759271436_1153034_1387053911_9fe432753ee185e8e267be8ffca0202d.jpg', 'extension': 'jpg'}, 1387053914: {'path': 'temp/1759271436_1153034_1387053914_1f5dbb9fb655fce9cf48a0f2d00bc5e7.jpg', 'extension': 'jpg'}, 1387053926: {'path': 'temp/1759271436_1153034_1387053926_8d2910502c55e70d4982ccf4e7afbe67.jpg', 'extension': 'jpg'}, 1387053928: {'path': 'temp/1759271436_1153034_1387053928_0b9015c5019b16917b555c1451d59574.jpg', 'extension': 'jpg'}, 1387053929: {'path': 'temp/1759271436_1153034_1387053929_6e1a5a5527d1801779b3fd067aad2328.jpg', 'extension': 'jpg'}, 1387053932: {'path': 'temp/1759271436_1153034_1387053932_744f9d8c0c24c394996de629a6aae86e.jpg', 'extension': 'jpg'}, 1387053935: {'path': 'temp/1759271436_1153034_1387053935_700b8450114e03c7d221a1a3b0052671.jpg', 'extension': 'jpg'}, 1387053938: {'path': 'temp/1759271436_1153034_1387053938_c3e3a28551d6ff41a640effb41026ea4.jpg', 'extension': 'jpg'}, 1387053901: {'path': 'temp/1759271436_1153034_1387053901_87f750253c866263dadc70052647b009.jpg', 'extension': 'jpg'}, 1387053903: {'path': 'temp/1759271436_1153034_1387053903_dab8f2984b988792a78b201aa990c430.jpg', 'extension': 'jpg'}, 1387053905: {'path': 'temp/1759271436_1153034_1387053905_82282cbdc7f75c4d2d76e45322bacf6b.jpg', 'extension': 'jpg'}, 1387053908: {'path': 'temp/1759271436_1153034_1387053908_eee86bb5ee48a3a4706cf08c3d0e0d64.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 = 27376525; (('arc_en_ciel_jrm_live',),) 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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27376525 group by h (('00', 72),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27376525 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 (27376525) 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 (27376525) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01102025 27376525 Nombre de photos uploadées : 72 / 23040 (0%) 01102025 27376525 Nombre de photos taguées (types de déchets): 0 / 72 (0%) 01102025 27376525 Nombre de photos taguées (volume) : 0 / 72 (0%) [{'photo_id': 1387052905, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/013d99c0f467621842bdf2c9228555d4.jpg', 'username': None, 'uploaded_at': 1759270567, 'text': 'image_01102025_00_15_14_10143.jpg'}, {'photo_id': 1387052965, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/7875f076768644d05f74a5ce2f701d16.jpg', 'username': None, 'uploaded_at': 1759270632, 'text': 'image_01102025_00_15_43_10142.jpg'}, {'photo_id': 1387053194, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/d67d32f5dd245ebf0fc9d5ff7ed7b600.jpg', 'username': None, 'uploaded_at': 1759270688, 'text': 'image_01102025_00_16_53_10136.jpg'}, {'photo_id': 1387052989, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/51349d7980c80cae34d4a5d43fb13394.jpg', 'username': None, 'uploaded_at': 1759270688, 'text': 'image_01102025_00_17_14_010137m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 1.1205673217773438e-05 ???????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0033295154571533203 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 27376525, '2025-10-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 218 and date = '2025-10-01' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2369153,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6861634254455566 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= 2369153 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2369153, 'dashboard_run_id': 2376731, 'mtr_portfolio_id': 27375839, 'dashboard_result_id': 15837387, '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_P27375839_01-10-2025_00_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375895, 'pht': 3726}}"}, {'dashboat_entry_day': 2369153, 'dashboard_run_id': 2376731, 'mtr_portfolio_id': 27376525, 'dashboard_result_id': 15837388, '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_P27376525_01-10-2025_00_29_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27376527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376538, '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 = 27375839 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': 3797909, 'mtr_portfolio_id': 27375839, 'created_at': datetime.datetime(2025, 10, 1, 0, 17), 'result': '0.05926231604959723', 'result_long': None, 'result_double': None}] Qualite : 0.05926231604959723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27375839 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27375839_01-10-2025_00_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27375839 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_P27375839_01-10-2025_00_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375895, 'pht': 3726}}" where mtr_portfolio_id = 27375839 and dashboard_run_id = 2376731 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`=27375839 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15837387, 0.05926231604959723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27375839_01-10-2025_00_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375895, '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 = 27376525 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': 3797954, 'mtr_portfolio_id': 27376525, 'created_at': datetime.datetime(2025, 10, 1, 0, 30, 35), 'result': '0.08133205362406848', 'result_long': None, 'result_double': None}] Qualite : 0.08133205362406848 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27376525 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376525_01-10-2025_00_30_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27376525 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_P27376525_01-10-2025_00_30_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27376527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376538, 'pht': 3726}}" where mtr_portfolio_id = 27376525 and dashboard_run_id = 2376731 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`=27376525 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15837388, 0.08133205362406848, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376525_01-10-2025_00_30_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27376527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376538, '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 (27375839,27376525) result : ((1387049350,), (1387051024,), (1387051025,), (1387051027,), (1387051041,), (1387051044,), (1387051049,), (1387051073,), (1387051318,), (1387051321,), (1387051333,), (1387051551,), (1387051617,), (1387051623,), (1387052038,), (1387052041,), (1387052204,), (1387052206,), (1387052208,), (1387052211,), (1387052272,), (1387052289,), (1387052294,), (1387052297,), (1387052453,), (1387052457,), (1387052478,), (1387052500,), (1387052502,), (1387052504,), (1387052768,), (1387052851,), (1387052908,), (1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01102025': {'nb_upload': 72, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27376525]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1387053971, 1387053968, 1387053965, 1387053962, 1387053938, 1387053935, 1387053932, 1387053929, 1387053928, 1387053926, 1387053914, 1387053911, 1387053908, 1387053905, 1387053903, 1387053901] map_info['map_portfolio_photo'] : {27376525: [1387053971, 1387053968, 1387053965, 1387053962, 1387053938, 1387053935, 1387053932, 1387053929, 1387053928, 1387053926, 1387053914, 1387053911, 1387053908, 1387053905, 1387053903, 1387053901, 1387053868, 1387053864, 1387053856, 1387053842, 1387053839, 1387053836, 1387053815, 1387053771, 1387053767, 1387053761, 1387053756, 1387053753, 1387053738, 1387053727, 1387053726, 1387053694, 1387053691, 1387053688, 1387053684, 1387053674, 1387053673, 1387053670, 1387053666, 1387053664, 1387053660, 1387053656, 1387053653, 1387053640, 1387053626, 1387053622, 1387053620, 1387053619, 1387053618, 1387053604, 1387053601, 1387053599, 1387053595, 1387053588, 1387053543, 1387053540, 1387053536, 1387053533, 1387053530, 1387053518, 1387053515, 1387053509, 1387053491, 1387053485, 1387053474, 1387053472, 1387053439, 1387053194, 1387052989, 1387052985, 1387052965, 1387052905]} final : True mtd_id 4302 list_pids : [1387053971, 1387053968, 1387053965, 1387053962, 1387053938, 1387053935, 1387053932, 1387053929, 1387053928, 1387053926, 1387053914, 1387053911, 1387053908, 1387053905, 1387053903, 1387053901] Looping around the photos to save general results len do output : 1 /27376525Didn'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, '3797954') ('4302', '27376525', '1387053971', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053968', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053965', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053962', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053938', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053935', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053932', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053929', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053928', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053926', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053914', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053911', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053908', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053905', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053903', None, None, None, None, None, '3797954') ('4302', None, None, None, None, None, None, None, '3797954') ('4302', '27376525', '1387053901', None, None, None, None, None, '3797954') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '27376525', 'None', None, None, None, None, '3797954'), ('4302', '27376525', '1387053971', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053968', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053965', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053962', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053938', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053935', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053932', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053929', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053928', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053926', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053914', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053911', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053908', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053905', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053903', None, None, None, None, None, '3797954'), ('4302', '27376525', '1387053901', None, None, None, None, None, '3797954')] time used for this insertion : 0.038300275802612305 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4629945755004883 time spend to save output : 0.03865242004394531 total time spend for step 5 : 1.5016469955444336 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 (3797954) 3.09user 2.32system 0:20.89elapsed 25%CPU (0avgtext+0avgdata 166060maxresident)k 3776inputs+20096outputs (9major+75166minor)pagefaults 0swaps