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 : 1751198 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 (2658827) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2658827) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21296935 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2658827'] with mtr_portfolio_ids : ['21296935'] and first list_photo_ids : [] new path : /proc/1751198/ Name: python3 Umask: 0002 State: R (running) Tgid: 1751198 Ngid: 0 Pid: 1751198 PPid: 1751197 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1751198 NSpid: 1751198 NSpgid: 1748628 NSsid: 1748628 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98656 kB VmRSS: 98656 kB RssAnon: 59756 kB RssFile: 38900 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 100 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1751198', 'Ngid': '0', 'Pid': '1751198', 'PPid': '1751197', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1751198', 'NSpid': '1751198', 'NSpgid': '1748628', 'NSsid': '1748628', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98656 kB', 'VmRSS': '98656 kB', 'RssAnon': '59756 kB', 'RssFile': '38900 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '100'} ('datou_batch_current', '1751198', '1106848', '0', '1106848', '865596', '98656', b'', 'marlene', '2658827') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (21296935) 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 (2658827 ) ) 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 (21296935) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343113416, 'portfolio_id': 21296935}, {'photo_id': 1343113134, 'portfolio_id': 21296935}, {'photo_id': 1343113095, 'portfolio_id': 21296935}, {'photo_id': 1343113065, 'portfolio_id': 21296935}, {'photo_id': 1343113028, 'portfolio_id': 21296935}, {'photo_id': 1343112961, 'portfolio_id': 21296935}, {'photo_id': 1343112872, 'portfolio_id': 21296935}, {'photo_id': 1343112833, 'portfolio_id': 21296935}, {'photo_id': 1343112789, 'portfolio_id': 21296935}, {'photo_id': 1343112743, 'portfolio_id': 21296935}, {'photo_id': 1343112705, 'portfolio_id': 21296935}, {'photo_id': 1343112044, 'portfolio_id': 21296935}, {'photo_id': 1343112025, 'portfolio_id': 21296935}, {'photo_id': 1343111903, 'portfolio_id': 21296935}, {'photo_id': 1343111852, 'portfolio_id': 21296935}, {'photo_id': 1343111829, 'portfolio_id': 21296935}, {'photo_id': 1343111797, 'portfolio_id': 21296935}, {'photo_id': 1343111588, 'portfolio_id': 21296935}, {'photo_id': 1343111548, 'portfolio_id': 21296935}, {'photo_id': 1343111517, 'portfolio_id': 21296935}, {'photo_id': 1343111476, 'portfolio_id': 21296935}, {'photo_id': 1343111441, 'portfolio_id': 21296935}, {'photo_id': 1343111054, 'portfolio_id': 21296935}, {'photo_id': 1343111013, 'portfolio_id': 21296935}, {'photo_id': 1343110972, 'portfolio_id': 21296935}, {'photo_id': 1343110941, 'portfolio_id': 21296935}, {'photo_id': 1343110896, 'portfolio_id': 21296935}, {'photo_id': 1343110736, 'portfolio_id': 21296935}, {'photo_id': 1343110714, 'portfolio_id': 21296935}, {'photo_id': 1343110679, 'portfolio_id': 21296935}, {'photo_id': 1343110664, 'portfolio_id': 21296935}, {'photo_id': 1343110661, 'portfolio_id': 21296935}, {'photo_id': 1343110658, 'portfolio_id': 21296935}, {'photo_id': 1343110623, 'portfolio_id': 21296935}, {'photo_id': 1343110619, 'portfolio_id': 21296935}, {'photo_id': 1343110617, 'portfolio_id': 21296935}, {'photo_id': 1343110615, 'portfolio_id': 21296935}, {'photo_id': 1343110607, 'portfolio_id': 21296935}, {'photo_id': 1343110588, 'portfolio_id': 21296935}, {'photo_id': 1343110581, 'portfolio_id': 21296935}, {'photo_id': 1343110575, 'portfolio_id': 21296935}, {'photo_id': 1343110569, 'portfolio_id': 21296935}, {'photo_id': 1343110565, 'portfolio_id': 21296935}, {'photo_id': 1343110561, 'portfolio_id': 21296935}, {'photo_id': 1343110495, 'portfolio_id': 21296935}, {'photo_id': 1343110477, 'portfolio_id': 21296935}, {'photo_id': 1343110459, 'portfolio_id': 21296935}, {'photo_id': 1343110447, 'portfolio_id': 21296935}, {'photo_id': 1343110362, 'portfolio_id': 21296935}, {'photo_id': 1343110318, 'portfolio_id': 21296935}, {'photo_id': 1343110257, 'portfolio_id': 21296935}, {'photo_id': 1343110231, 'portfolio_id': 21296935}, {'photo_id': 1343110206, 'portfolio_id': 21296935}, {'photo_id': 1343110072, 'portfolio_id': 21296935}, {'photo_id': 1343110059, 'portfolio_id': 21296935}, {'photo_id': 1343110055, 'portfolio_id': 21296935}, {'photo_id': 1343110047, 'portfolio_id': 21296935}, {'photo_id': 1343110018, 'portfolio_id': 21296935}, {'photo_id': 1343110015, 'portfolio_id': 21296935}, {'photo_id': 1343109953, 'portfolio_id': 21296935}, {'photo_id': 1343109928, 'portfolio_id': 21296935}, {'photo_id': 1343109899, 'portfolio_id': 21296935}, {'photo_id': 1343109868, 'portfolio_id': 21296935}, {'photo_id': 1343109647, 'portfolio_id': 21296935}, {'photo_id': 1343109622, 'portfolio_id': 21296935}, {'photo_id': 1343109581, 'portfolio_id': 21296935}, {'photo_id': 1343109566, 'portfolio_id': 21296935}, {'photo_id': 1343109537, 'portfolio_id': 21296935}, {'photo_id': 1343109372, 'portfolio_id': 21296935}, {'photo_id': 1343109346, 'portfolio_id': 21296935}, {'photo_id': 1343109331, 'portfolio_id': 21296935}, {'photo_id': 1343109291, 'portfolio_id': 21296935}, {'photo_id': 1343109214, 'portfolio_id': 21296935}, {'photo_id': 1343109125, 'portfolio_id': 21296935}, {'photo_id': 1343108622, 'portfolio_id': 21296935}, {'photo_id': 1343108511, 'portfolio_id': 21296935}, {'photo_id': 1343108446, 'portfolio_id': 21296935}] map_portfolio_id_photo_id: {21296935: [1343113416, 1343113134, 1343113095, 1343113065, 1343113028, 1343112961, 1343112872, 1343112833, 1343112789, 1343112743, 1343112705, 1343112044, 1343112025, 1343111903, 1343111852, 1343111829, 1343111797, 1343111588, 1343111548, 1343111517, 1343111476, 1343111441, 1343111054, 1343111013, 1343110972, 1343110941, 1343110896, 1343110736, 1343110714, 1343110679, 1343110664, 1343110661, 1343110658, 1343110623, 1343110619, 1343110617, 1343110615, 1343110607, 1343110588, 1343110581, 1343110575, 1343110569, 1343110565, 1343110561, 1343110495, 1343110477, 1343110459, 1343110447, 1343110362, 1343110318, 1343110257, 1343110231, 1343110206, 1343110072, 1343110059, 1343110055, 1343110047, 1343110018, 1343110015, 1343109953, 1343109928, 1343109899, 1343109868, 1343109647, 1343109622, 1343109581, 1343109566, 1343109537, 1343109372, 1343109346, 1343109331, 1343109291, 1343109214, 1343109125, 1343108622, 1343108511, 1343108446]} ##### 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.016539812088012695 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Mar 11 17:04:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21296935) 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 : 21296935 get user id for portfolio 21296935 get sub ptf for main ptf 21296935, type 3726 and hashtags ['autre_refus', 'metal', 'environnement', 'plastique', 'flou', 'Carton_brun', 'Carton_gris', 'cartonnette', 'papier', 'mal_croppe', 'kraft', 'Teint_Dans_La_Masse'] 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`=21296935 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','environnement','plastique','flou','Carton_brun','Carton_gris','cartonnette','papier','mal_croppe','kraft','Teint_Dans_La_Masse')) 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`=21296935 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','environnement','plastique','flou','Carton_brun','Carton_gris','cartonnette','papier','mal_croppe','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21296935, 'sub_port_id': 21296953, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881794, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 27)}, 'papier': {'main_port_id': 21296935, 'sub_port_id': 21296954, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881795, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 27)}, 'cartonnette': {'main_port_id': 21296935, 'sub_port_id': 21296955, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881796, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 27)}, 'flou': {'main_port_id': 21296935, 'sub_port_id': 21296956, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881797, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 21296935, 'sub_port_id': 21296957, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881798, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 27)}, 'plastique': {'main_port_id': 21296935, 'sub_port_id': 21296958, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881799, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 27)}, 'environnement': {'main_port_id': 21296935, 'sub_port_id': 21296959, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881800, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 27)}, 'autre_refus': {'main_port_id': 21296935, 'sub_port_id': 21296960, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881801, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 27)}, 'Carton_gris': {'main_port_id': 21296935, 'sub_port_id': 21296961, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881802, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 27)}, 'Carton_brun': {'main_port_id': 21296935, 'sub_port_id': 21296962, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881803, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 27)}, 'mal_croppe': {'main_port_id': 21296935, 'sub_port_id': 21296963, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881804, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 27)}, 'kraft': {'main_port_id': 21296935, 'sub_port_id': 21296964, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881805, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21296953 , 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=21296935 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 (21296953) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21296935) result : ((1343108446,), (1343108511,), (1343108622,), (1343109125,), (1343109214,), (1343109291,), (1343109331,), (1343109346,), (1343109372,), (1343109537,), (1343109566,), (1343109581,), (1343109622,), (1343109647,), (1343109868,), (1343109899,), (1343109928,), (1343109953,), (1343110015,), (1343110018,), (1343110047,), (1343110055,), (1343110059,), (1343110072,), (1343110206,), (1343110231,), (1343110257,), (1343110318,), (1343110362,), (1343110447,), (1343110459,), (1343110477,), (1343110495,), (1343110561,), (1343110565,), (1343110569,), (1343110575,), (1343110581,), (1343110588,), (1343110607,), (1343110615,), (1343110617,), (1343110619,), (1343110623,), (1343110658,), (1343110661,), (1343110664,), (1343110679,), (1343110714,), (1343110736,), (1343110896,), (1343110941,), (1343110972,), (1343111013,), (1343111054,), (1343111441,), (1343111476,), (1343111517,), (1343111548,), (1343111588,), (1343111797,), (1343111829,), (1343111852,), (1343111903,), (1343112025,), (1343112044,), (1343112705,), (1343112743,), (1343112789,), (1343112833,), (1343112872,), (1343112961,), (1343113028,), (1343113065,), (1343113095,), (1343113134,), (1343113416,)) 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 21296954 , 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=21296935 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 (21296954) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21296935) result : ((1343108446,), (1343108511,), (1343108622,), (1343109125,), (1343109214,), (1343109291,), (1343109331,), (1343109346,), (1343109372,), (1343109537,), (1343109566,), (1343109581,), (1343109622,), (1343109647,), (1343109868,), (1343109899,), (1343109928,), (1343109953,), (1343110015,), (1343110018,), (1343110047,), (1343110055,), (1343110059,), (1343110072,), (1343110206,), (1343110231,), (1343110257,), (1343110318,), (1343110362,), (1343110447,), (1343110459,), (1343110477,), (1343110495,), (1343110561,), (1343110565,), (1343110569,), (1343110575,), (1343110581,), (1343110588,), (1343110607,), (1343110615,), (1343110617,), (1343110619,), (1343110623,), (1343110658,), (1343110661,), (1343110664,), (1343110679,), (1343110714,), (1343110736,), (1343110896,), (1343110941,), (1343110972,), (1343111013,), (1343111054,), (1343111441,), (1343111476,), (1343111517,), (1343111548,), (1343111588,), (1343111797,), (1343111829,), (1343111852,), (1343111903,), (1343112025,), (1343112044,), (1343112705,), (1343112743,), (1343112789,), (1343112833,), (1343112872,), (1343112961,), (1343113028,), (1343113065,), (1343113095,), (1343113134,), (1343113416,)) 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 21296955 , 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=21296935 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 (21296955) result : ((1343110389,), (1343111790,), (1343111791,), (1343111792,), (1343112122,), (1343113529,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21296935) result : ((1343108446,), (1343108511,), (1343108622,), (1343109125,), (1343109214,), (1343109291,), (1343109331,), (1343109346,), (1343109372,), (1343109537,), (1343109566,), (1343109581,), (1343109622,), (1343109647,), (1343109868,), (1343109899,), (1343109928,), (1343109953,), (1343110015,), (1343110018,), (1343110047,), (1343110055,), (1343110059,), (1343110072,), (1343110206,), (1343110231,), (1343110257,), (1343110318,), (1343110362,), (1343110447,), (1343110459,), (1343110477,), (1343110495,), (1343110561,), (1343110565,), (1343110569,), (1343110575,), (1343110581,), (1343110588,), (1343110607,), (1343110615,), (1343110617,), (1343110619,), (1343110623,), (1343110658,), (1343110661,), (1343110664,), (1343110679,), (1343110714,), (1343110736,), (1343110896,), (1343110941,), (1343110972,), (1343111013,), (1343111054,), (1343111441,), (1343111476,), (1343111517,), (1343111548,), (1343111588,), (1343111797,), (1343111829,), (1343111852,), (1343111903,), (1343112025,), (1343112044,), (1343112705,), (1343112743,), (1343112789,), (1343112833,), (1343112872,), (1343112961,), (1343113028,), (1343113065,), (1343113095,), (1343113134,), (1343113416,)) 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 21296956 , 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=21296935 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 (21296956) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21296935) result : ((1343108446,), (1343108511,), (1343108622,), (1343109125,), (1343109214,), (1343109291,), (1343109331,), (1343109346,), (1343109372,), (1343109537,), (1343109566,), (1343109581,), (1343109622,), (1343109647,), (1343109868,), (1343109899,), (1343109928,), (1343109953,), (1343110015,), (1343110018,), (1343110047,), (1343110055,), (1343110059,), (1343110072,), (1343110206,), (1343110231,), (1343110257,), (1343110318,), (1343110362,), (1343110447,), (1343110459,), (1343110477,), (1343110495,), (1343110561,), (1343110565,), (1343110569,), (1343110575,), (1343110581,), (1343110588,), (1343110607,), (1343110615,), (1343110617,), (1343110619,), (1343110623,), (1343110658,), (1343110661,), (1343110664,), (1343110679,), (1343110714,), (1343110736,), (1343110896,), (1343110941,), (1343110972,), (1343111013,), (1343111054,), (1343111441,), (1343111476,), (1343111517,), (1343111548,), (1343111588,), (1343111797,), (1343111829,), (1343111852,), (1343111903,), (1343112025,), (1343112044,), (1343112705,), (1343112743,), (1343112789,), (1343112833,), (1343112872,), (1343112961,), (1343113028,), (1343113065,), (1343113095,), (1343113134,), (1343113416,)) 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 21296957 , 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=21296935 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 (21296957) result : ((1343109818,), (1343110352,), (1343110638,), (1343111719,), (1343111720,), (1343112091,), (1343112364,), (1343113473,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21296935) result : ((1343108446,), (1343108511,), (1343108622,), (1343109125,), (1343109214,), (1343109291,), (1343109331,), (1343109346,), (1343109372,), (1343109537,), (1343109566,), (1343109581,), (1343109622,), (1343109647,), (1343109868,), (1343109899,), (1343109928,), (1343109953,), (1343110015,), (1343110018,), (1343110047,), (1343110055,), (1343110059,), (1343110072,), (1343110206,), (1343110231,), (1343110257,), (1343110318,), (1343110362,), (1343110447,), (1343110459,), (1343110477,), (1343110495,), (1343110561,), (1343110565,), (1343110569,), (1343110575,), (1343110581,), (1343110588,), (1343110607,), (1343110615,), (1343110617,), (1343110619,), (1343110623,), (1343110658,), (1343110661,), (1343110664,), (1343110679,), (1343110714,), (1343110736,), (1343110896,), (1343110941,), (1343110972,), (1343111013,), (1343111054,), (1343111441,), (1343111476,), (1343111517,), (1343111548,), (1343111588,), (1343111797,), (1343111829,), (1343111852,), (1343111903,), (1343112025,), (1343112044,), (1343112705,), (1343112743,), (1343112789,), (1343112833,), (1343112872,), (1343112961,), (1343113028,), (1343113065,), (1343113095,), (1343113134,), (1343113416,)) 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 21296958 , 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=21296935 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 (21296958) result : ((1343110647,), (1343110657,), (1343111814,), (1343111816,), (1343112130,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21296935) result : ((1343108446,), (1343108511,), (1343108622,), (1343109125,), (1343109214,), (1343109291,), (1343109331,), (1343109346,), (1343109372,), (1343109537,), (1343109566,), (1343109581,), (1343109622,), (1343109647,), (1343109868,), (1343109899,), (1343109928,), (1343109953,), (1343110015,), (1343110018,), (1343110047,), (1343110055,), (1343110059,), (1343110072,), (1343110206,), (1343110231,), (1343110257,), (1343110318,), (1343110362,), (1343110447,), (1343110459,), (1343110477,), (1343110495,), (1343110561,), (1343110565,), (1343110569,), (1343110575,), (1343110581,), (1343110588,), (1343110607,), (1343110615,), (1343110617,), (1343110619,), (1343110623,), (1343110658,), (1343110661,), (1343110664,), (1343110679,), (1343110714,), (1343110736,), (1343110896,), (1343110941,), (1343110972,), (1343111013,), (1343111054,), (1343111441,), (1343111476,), (1343111517,), (1343111548,), (1343111588,), (1343111797,), (1343111829,), (1343111852,), (1343111903,), (1343112025,), (1343112044,), (1343112705,), (1343112743,), (1343112789,), (1343112833,), (1343112872,), (1343112961,), (1343113028,), (1343113065,), (1343113095,), (1343113134,), (1343113416,)) 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 21296959 , 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=21296935 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 (21296959) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21296935) result : ((1343108446,), (1343108511,), (1343108622,), (1343109125,), (1343109214,), (1343109291,), (1343109331,), (1343109346,), (1343109372,), (1343109537,), (1343109566,), (1343109581,), (1343109622,), (1343109647,), (1343109868,), (1343109899,), (1343109928,), (1343109953,), (1343110015,), (1343110018,), (1343110047,), (1343110055,), (1343110059,), (1343110072,), (1343110206,), (1343110231,), (1343110257,), (1343110318,), (1343110362,), (1343110447,), (1343110459,), (1343110477,), (1343110495,), (1343110561,), (1343110565,), (1343110569,), (1343110575,), (1343110581,), (1343110588,), (1343110607,), (1343110615,), (1343110617,), (1343110619,), (1343110623,), (1343110658,), (1343110661,), (1343110664,), (1343110679,), (1343110714,), (1343110736,), (1343110896,), (1343110941,), (1343110972,), (1343111013,), (1343111054,), (1343111441,), (1343111476,), (1343111517,), (1343111548,), (1343111588,), (1343111797,), (1343111829,), (1343111852,), (1343111903,), (1343112025,), (1343112044,), (1343112705,), (1343112743,), (1343112789,), (1343112833,), (1343112872,), (1343112961,), (1343113028,), (1343113065,), (1343113095,), (1343113134,), (1343113416,)) 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 21296960 , 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=21296935 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 (21296960) result : ((1343109833,), (1343110364,), (1343110366,), (1343110573,), (1343110574,), (1343110576,), (1343110577,), (1343110639,), (1343110651,), (1343110652,), (1343111730,), (1343111731,), (1343111732,), (1343112105,), (1343112106,), (1343112107,), (1343112108,), (1343112377,), (1343112380,), (1343112384,), (1343112388,), (1343113502,), (1343113505,), (1343113506,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21296935) result : ((1343108446,), (1343108511,), (1343108622,), (1343109125,), (1343109214,), (1343109291,), (1343109331,), (1343109346,), (1343109372,), (1343109537,), (1343109566,), (1343109581,), (1343109622,), (1343109647,), (1343109868,), (1343109899,), (1343109928,), (1343109953,), (1343110015,), (1343110018,), (1343110047,), (1343110055,), (1343110059,), (1343110072,), (1343110206,), (1343110231,), (1343110257,), (1343110318,), (1343110362,), (1343110447,), (1343110459,), (1343110477,), (1343110495,), (1343110561,), (1343110565,), (1343110569,), (1343110575,), (1343110581,), (1343110588,), (1343110607,), (1343110615,), (1343110617,), (1343110619,), (1343110623,), (1343110658,), (1343110661,), (1343110664,), (1343110679,), (1343110714,), (1343110736,), (1343110896,), (1343110941,), (1343110972,), (1343111013,), (1343111054,), (1343111441,), (1343111476,), (1343111517,), (1343111548,), (1343111588,), (1343111797,), (1343111829,), (1343111852,), (1343111903,), (1343112025,), (1343112044,), (1343112705,), (1343112743,), (1343112789,), (1343112833,), (1343112872,), (1343112961,), (1343113028,), (1343113065,), (1343113095,), (1343113134,), (1343113416,)) 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 21296961 , 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=21296935 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 (21296961) result : ((1343110379,), (1343110380,), (1343110381,), (1343110645,), (1343110646,), (1343110654,), (1343110655,), (1343111754,), (1343111756,), (1343111757,), (1343111758,), (1343111760,), (1343111761,), (1343112115,), (1343112406,), (1343113520,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21296935) result : ((1343108446,), (1343108511,), (1343108622,), (1343109125,), (1343109214,), (1343109291,), (1343109331,), (1343109346,), (1343109372,), (1343109537,), (1343109566,), (1343109581,), (1343109622,), (1343109647,), (1343109868,), (1343109899,), (1343109928,), (1343109953,), (1343110015,), (1343110018,), (1343110047,), (1343110055,), (1343110059,), (1343110072,), (1343110206,), (1343110231,), (1343110257,), (1343110318,), (1343110362,), (1343110447,), (1343110459,), (1343110477,), (1343110495,), (1343110561,), (1343110565,), (1343110569,), (1343110575,), (1343110581,), (1343110588,), (1343110607,), (1343110615,), (1343110617,), (1343110619,), (1343110623,), (1343110658,), (1343110661,), (1343110664,), (1343110679,), (1343110714,), (1343110736,), (1343110896,), (1343110941,), (1343110972,), (1343111013,), (1343111054,), (1343111441,), (1343111476,), (1343111517,), (1343111548,), (1343111588,), (1343111797,), (1343111829,), (1343111852,), (1343111903,), (1343112025,), (1343112044,), (1343112705,), (1343112743,), (1343112789,), (1343112833,), (1343112872,), (1343112961,), (1343113028,), (1343113065,), (1343113095,), (1343113134,), (1343113416,)) 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 21296962 , 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=21296935 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 (21296962) result : ((1343110400,), (1343110401,), (1343110402,), (1343111804,), (1343111805,), (1343111806,), (1343112422,), (1343112425,), (1343113541,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21296935) result : ((1343108446,), (1343108511,), (1343108622,), (1343109125,), (1343109214,), (1343109291,), (1343109331,), (1343109346,), (1343109372,), (1343109537,), (1343109566,), (1343109581,), (1343109622,), (1343109647,), (1343109868,), (1343109899,), (1343109928,), (1343109953,), (1343110015,), (1343110018,), (1343110047,), (1343110055,), (1343110059,), (1343110072,), (1343110206,), (1343110231,), (1343110257,), (1343110318,), (1343110362,), (1343110447,), (1343110459,), (1343110477,), (1343110495,), (1343110561,), (1343110565,), (1343110569,), (1343110575,), (1343110581,), (1343110588,), (1343110607,), (1343110615,), (1343110617,), (1343110619,), (1343110623,), (1343110658,), (1343110661,), (1343110664,), (1343110679,), (1343110714,), (1343110736,), (1343110896,), (1343110941,), (1343110972,), (1343111013,), (1343111054,), (1343111441,), (1343111476,), (1343111517,), (1343111548,), (1343111588,), (1343111797,), (1343111829,), (1343111852,), (1343111903,), (1343112025,), (1343112044,), (1343112705,), (1343112743,), (1343112789,), (1343112833,), (1343112872,), (1343112961,), (1343113028,), (1343113065,), (1343113095,), (1343113134,), (1343113416,)) 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 21296963 , 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=21296935 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 (21296963) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21296935) result : ((1343108446,), (1343108511,), (1343108622,), (1343109125,), (1343109214,), (1343109291,), (1343109331,), (1343109346,), (1343109372,), (1343109537,), (1343109566,), (1343109581,), (1343109622,), (1343109647,), (1343109868,), (1343109899,), (1343109928,), (1343109953,), (1343110015,), (1343110018,), (1343110047,), (1343110055,), (1343110059,), (1343110072,), (1343110206,), (1343110231,), (1343110257,), (1343110318,), (1343110362,), (1343110447,), (1343110459,), (1343110477,), (1343110495,), (1343110561,), (1343110565,), (1343110569,), (1343110575,), (1343110581,), (1343110588,), (1343110607,), (1343110615,), (1343110617,), (1343110619,), (1343110623,), (1343110658,), (1343110661,), (1343110664,), (1343110679,), (1343110714,), (1343110736,), (1343110896,), (1343110941,), (1343110972,), (1343111013,), (1343111054,), (1343111441,), (1343111476,), (1343111517,), (1343111548,), (1343111588,), (1343111797,), (1343111829,), (1343111852,), (1343111903,), (1343112025,), (1343112044,), (1343112705,), (1343112743,), (1343112789,), (1343112833,), (1343112872,), (1343112961,), (1343113028,), (1343113065,), (1343113095,), (1343113134,), (1343113416,)) 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 21296964 , 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=21296935 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 (21296964) result : ((1343112436,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21296935) result : ((1343108446,), (1343108511,), (1343108622,), (1343109125,), (1343109214,), (1343109291,), (1343109331,), (1343109346,), (1343109372,), (1343109537,), (1343109566,), (1343109581,), (1343109622,), (1343109647,), (1343109868,), (1343109899,), (1343109928,), (1343109953,), (1343110015,), (1343110018,), (1343110047,), (1343110055,), (1343110059,), (1343110072,), (1343110206,), (1343110231,), (1343110257,), (1343110318,), (1343110362,), (1343110447,), (1343110459,), (1343110477,), (1343110495,), (1343110561,), (1343110565,), (1343110569,), (1343110575,), (1343110581,), (1343110588,), (1343110607,), (1343110615,), (1343110617,), (1343110619,), (1343110623,), (1343110658,), (1343110661,), (1343110664,), (1343110679,), (1343110714,), (1343110736,), (1343110896,), (1343110941,), (1343110972,), (1343111013,), (1343111054,), (1343111441,), (1343111476,), (1343111517,), (1343111548,), (1343111588,), (1343111797,), (1343111829,), (1343111852,), (1343111903,), (1343112025,), (1343112044,), (1343112705,), (1343112743,), (1343112789,), (1343112833,), (1343112872,), (1343112961,), (1343113028,), (1343113065,), (1343113095,), (1343113134,), (1343113416,)) 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`=21296935 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','environnement','plastique','flou','Carton_brun','Carton_gris','cartonnette','papier','mal_croppe','kraft','Teint_Dans_La_Masse')) 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`=21296935 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','environnement','plastique','flou','Carton_brun','Carton_gris','cartonnette','papier','mal_croppe','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21296935, 'sub_port_id': 21297004, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881842, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 34)}, 'papier': {'main_port_id': 21296935, 'sub_port_id': 21297005, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881843, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 34)}, 'cartonnette': {'main_port_id': 21296935, 'sub_port_id': 21297006, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881844, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 34)}, 'flou': {'main_port_id': 21296935, 'sub_port_id': 21297007, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881845, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 21296935, 'sub_port_id': 21297008, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881846, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 34)}, 'plastique': {'main_port_id': 21296935, 'sub_port_id': 21297009, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881847, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 34)}, 'environnement': {'main_port_id': 21296935, 'sub_port_id': 21297010, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881848, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 34)}, 'autre_refus': {'main_port_id': 21296935, 'sub_port_id': 21297011, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881849, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 34)}, 'Carton_gris': {'main_port_id': 21296935, 'sub_port_id': 21297012, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881850, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 34)}, 'Carton_brun': {'main_port_id': 21296935, 'sub_port_id': 21297013, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881851, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 34)}, 'mal_croppe': {'main_port_id': 21296935, 'sub_port_id': 21297015, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881852, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 34)}, 'kraft': {'main_port_id': 21296935, 'sub_port_id': 21297016, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13881853, 'last_updated_at': datetime.datetime(2025, 3, 11, 16, 59, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 16, 59, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 16, 49, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21297004,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21296953 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21297005,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21296954 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21297006,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21296955 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21297007,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21296956 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21297008,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21296957 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21297009,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21296958 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21297010,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21296959 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21297011,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21296960 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21297012,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21296961 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21297013,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21296962 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21297015,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21296963 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21297016,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21296964 lien utilise dans velours : https://www.fotonower.com/velours/21297004,21297005,21297006,21297007,21297008,21297009,21297010,21297011,21297012,21297013,21297015,21297016?tags=metal,papier,cartonnette,flou,Teint_Dans_La_Masse,plastique,environnement,autre_refus,Carton_gris,Carton_brun,mal_croppe,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21296935]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343113416, 1343113134, 1343113095, 1343113065, 1343113028, 1343112961, 1343112872, 1343112833, 1343112789, 1343112743, 1343112705] map_info['map_portfolio_photo'] : {21296935: [1343113416, 1343113134, 1343113095, 1343113065, 1343113028, 1343112961, 1343112872, 1343112833, 1343112789, 1343112743, 1343112705, 1343112044, 1343112025, 1343111903, 1343111852, 1343111829, 1343111797, 1343111588, 1343111548, 1343111517, 1343111476, 1343111441, 1343111054, 1343111013, 1343110972, 1343110941, 1343110896, 1343110736, 1343110714, 1343110679, 1343110664, 1343110661, 1343110658, 1343110623, 1343110619, 1343110617, 1343110615, 1343110607, 1343110588, 1343110581, 1343110575, 1343110569, 1343110565, 1343110561, 1343110495, 1343110477, 1343110459, 1343110447, 1343110362, 1343110318, 1343110257, 1343110231, 1343110206, 1343110072, 1343110059, 1343110055, 1343110047, 1343110018, 1343110015, 1343109953, 1343109928, 1343109899, 1343109868, 1343109647, 1343109622, 1343109581, 1343109566, 1343109537, 1343109372, 1343109346, 1343109331, 1343109291, 1343109214, 1343109125, 1343108622, 1343108511, 1343108446]} final : False mtd_id 4302 list_pids : [1343113416, 1343113134, 1343113095, 1343113065, 1343113028, 1343112961, 1343112872, 1343112833, 1343112789, 1343112743, 1343112705] Looping around the photos to save general results len do output : 1 /21296935. 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, '2658827') ('4302', '21296935', '1343113416', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113134', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113095', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113065', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113028', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112961', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112872', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112833', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112789', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112743', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112705', None, None, None, None, None, '2658827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21296935', "{'metal': 21296953, 'papier': 21296954, 'cartonnette': 21296955, 'flou': 21296956, 'Teint_Dans_La_Masse': 21296957, 'plastique': 21296958, 'environnement': 21296959, 'autre_refus': 21296960, 'Carton_gris': 21296961, 'Carton_brun': 21296962, 'mal_croppe': 21296963, 'kraft': 21296964}", None, None, None, None, '2658827'), ('4302', '21296935', '1343113416', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343113134', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343113095', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343113065', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343113028', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112961', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112872', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112833', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112789', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112743', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112705', None, None, None, None, None, '2658827')] time used for this insertion : 0.015447616577148438 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8839499950408936 time spend to save output : 0.01574563980102539 total time spend for step 1 : 2.899695634841919 step2:final Tue Mar 11 17:05:01 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 (21296935) 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 21296935 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343108622,1343108511,1343108446,1343109372,1343109346,1343109331,1343109291,1343109214,1343109125,1343109647,1343109622,1343109581,1343109566,1343109537,1343109953,1343109928,1343109899,1343109868,1343110072,1343110059,1343110055,1343110047,1343110018,1343110015,1343110362,1343110318,1343110257,1343110231,1343110206,1343110495,1343110477,1343110459,1343110447,1343110588,1343110581,1343110575,1343110569,1343110565,1343110561,1343110623,1343110619,1343110617,1343110615,1343110607,1343110736,1343110714,1343110679,1343110664,1343110661,1343110658,1343111054,1343111013,1343110972,1343110941,1343110896,1343111588,1343111548,1343111517,1343111476,1343111441,1343112044,1343112025,1343111903,1343111852,1343111829,1343111797,1343112872,1343112833,1343112789,1343112743,1343112705,1343113134,1343113095,1343113065,1343113028,1343112961,1343113416); 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([21296935]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} new output for save of step final : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} [1343113416, 1343113134, 1343113095, 1343113065, 1343113028, 1343112961, 1343112872, 1343112833, 1343112789, 1343112743, 1343112705] map_info['map_portfolio_photo'] : {21296935: [1343113416, 1343113134, 1343113095, 1343113065, 1343113028, 1343112961, 1343112872, 1343112833, 1343112789, 1343112743, 1343112705, 1343112044, 1343112025, 1343111903, 1343111852, 1343111829, 1343111797, 1343111588, 1343111548, 1343111517, 1343111476, 1343111441, 1343111054, 1343111013, 1343110972, 1343110941, 1343110896, 1343110736, 1343110714, 1343110679, 1343110664, 1343110661, 1343110658, 1343110623, 1343110619, 1343110617, 1343110615, 1343110607, 1343110588, 1343110581, 1343110575, 1343110569, 1343110565, 1343110561, 1343110495, 1343110477, 1343110459, 1343110447, 1343110362, 1343110318, 1343110257, 1343110231, 1343110206, 1343110072, 1343110059, 1343110055, 1343110047, 1343110018, 1343110015, 1343109953, 1343109928, 1343109899, 1343109868, 1343109647, 1343109622, 1343109581, 1343109566, 1343109537, 1343109372, 1343109346, 1343109331, 1343109291, 1343109214, 1343109125, 1343108622, 1343108511, 1343108446]} final : False mtd_id 4302 list_pids : [1343113416, 1343113134, 1343113095, 1343113065, 1343113028, 1343112961, 1343112872, 1343112833, 1343112789, 1343112743, 1343112705] Looping around the photos to save general results len do output : 11 /1343113416.Didn't retrieve data . /1343113134.Didn't retrieve data . /1343113095.Didn't retrieve data . /1343113065.Didn't retrieve data . /1343113028.Didn't retrieve data . /1343112961.Didn't retrieve data . /1343112872.Didn't retrieve data . /1343112833.Didn't retrieve data . /1343112789.Didn't retrieve data . /1343112743.Didn't retrieve data . /1343112705.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, '2658827') ('4302', '21296935', '1343113416', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113134', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113095', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113065', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113028', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112961', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112872', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112833', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112789', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112743', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112705', None, None, None, None, None, '2658827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '21296935', '1343113416', '0.08099840915747374', None, None, None, None, '2658827'), ('4302', '21296935', '1343113134', '0.08099840915747374', None, None, None, None, '2658827'), ('4302', '21296935', '1343113095', '0.08099840915747374', None, None, None, None, '2658827'), ('4302', '21296935', '1343113065', '0.08099840915747374', None, None, None, None, '2658827'), ('4302', '21296935', '1343113028', '0.08099840915747374', None, None, None, None, '2658827'), ('4302', '21296935', '1343112961', '0.08099840915747374', None, None, None, None, '2658827'), ('4302', '21296935', '1343112872', '0.08099840915747374', None, None, None, None, '2658827'), ('4302', '21296935', '1343112833', '0.08099840915747374', None, None, None, None, '2658827'), ('4302', '21296935', '1343112789', '0.08099840915747374', None, None, None, None, '2658827'), ('4302', '21296935', '1343112743', '0.08099840915747374', None, None, None, None, '2658827'), ('4302', '21296935', '1343112705', '0.08099840915747374', None, None, None, None, '2658827')] time used for this insertion : 0.0140838623046875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07405877113342285 time spend to save output : 0.014624834060668945 total time spend for step 2 : 0.0886836051940918 step3:velours_tree Tue Mar 11 17:05:01 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 : {21296935: [{'metal': 21296953, 'papier': 21296954, 'cartonnette': 21296955, 'flou': 21296956, 'Teint_Dans_La_Masse': 21296957, 'plastique': 21296958, 'environnement': 21296959, 'autre_refus': 21296960, 'Carton_gris': 21296961, 'Carton_brun': 21296962, 'mal_croppe': 21296963, 'kraft': 21296964}]} input_args_next_step : {21296935: ()} output_args : {21296935: [{'metal': 21296953, 'papier': 21296954, 'cartonnette': 21296955, 'flou': 21296956, 'Teint_Dans_La_Masse': 21296957, 'plastique': 21296958, 'environnement': 21296959, 'autre_refus': 21296960, 'Carton_gris': 21296961, 'Carton_brun': 21296962, 'mal_croppe': 21296963, 'kraft': 21296964}]} args : 21296935 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 : ({'metal': 21296953, 'papier': 21296954, 'cartonnette': 21296955, 'flou': 21296956, 'Teint_Dans_La_Masse': 21296957, 'plastique': 21296958, 'environnement': 21296959, 'autre_refus': 21296960, 'Carton_gris': 21296961, 'Carton_brun': 21296962, 'mal_croppe': 21296963, 'kraft': 21296964},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21296935) 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([21296935]) 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.30315160751342773 time spend to save output : 6.937980651855469e-05 total time spend for step 3 : 0.3032209873199463 step4:send_mail_cod Tue Mar 11 17:05:01 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 : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} input_args_next_step : {1343113416: ()} output_args : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} args : 1343113416 depend.output_id : 0 input_args_next_step : {1343113416: ('0.08099840915747374',), 1343113134: ()} output_args : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} args : 1343113134 depend.output_id : 0 input_args_next_step : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ()} output_args : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} args : 1343113095 depend.output_id : 0 input_args_next_step : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ()} output_args : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} args : 1343113065 depend.output_id : 0 input_args_next_step : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ()} output_args : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} args : 1343113028 depend.output_id : 0 input_args_next_step : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ()} output_args : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} args : 1343112961 depend.output_id : 0 input_args_next_step : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ()} output_args : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} args : 1343112872 depend.output_id : 0 input_args_next_step : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ()} output_args : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} args : 1343112833 depend.output_id : 0 input_args_next_step : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ()} output_args : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} args : 1343112789 depend.output_id : 0 input_args_next_step : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ()} output_args : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} args : 1343112743 depend.output_id : 0 input_args_next_step : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ()} output_args : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',)} args : 1343112705 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 : {21296935: [{'metal': 21296953, 'papier': 21296954, 'cartonnette': 21296955, 'flou': 21296956, 'Teint_Dans_La_Masse': 21296957, 'plastique': 21296958, 'environnement': 21296959, 'autre_refus': 21296960, 'Carton_gris': 21296961, 'Carton_brun': 21296962, 'mal_croppe': 21296963, 'kraft': 21296964}]} input_args_next_step : {1343113416: ('0.08099840915747374',), 1343113134: ('0.08099840915747374',), 1343113095: ('0.08099840915747374',), 1343113065: ('0.08099840915747374',), 1343113028: ('0.08099840915747374',), 1343112961: ('0.08099840915747374',), 1343112872: ('0.08099840915747374',), 1343112833: ('0.08099840915747374',), 1343112789: ('0.08099840915747374',), 1343112743: ('0.08099840915747374',), 1343112705: ('0.08099840915747374',), 21296935: ()} output_args : {21296935: [{'metal': 21296953, 'papier': 21296954, 'cartonnette': 21296955, 'flou': 21296956, 'Teint_Dans_La_Masse': 21296957, 'plastique': 21296958, 'environnement': 21296959, 'autre_refus': 21296960, 'Carton_gris': 21296961, 'Carton_brun': 21296962, 'mal_croppe': 21296963, 'kraft': 21296964}]} args : 21296935 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 :12, first value : ('0.08099840915747374',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21296935) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1343113416,1343113134,1343113095,1343113065,1343113028,1343112961,1343112872,1343112833,1343112789,1343112743,1343112705) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343112705 begin to download photo : 1343112833 begin to download photo : 1343113028 begin to download photo : 1343113134 download finish for photo 1343113028 begin to download photo : 1343113065 download finish for photo 1343112705 begin to download photo : 1343112743 download finish for photo 1343113134 begin to download photo : 1343113416 download finish for photo 1343112833 begin to download photo : 1343112872 download finish for photo 1343112743 begin to download photo : 1343112789 download finish for photo 1343113416 download finish for photo 1343113065 begin to download photo : 1343113095 download finish for photo 1343112872 begin to download photo : 1343112961 download finish for photo 1343112789 download finish for photo 1343112961 download finish for photo 1343113095 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette212969531741709101/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P21296935_11-03-2025_17_05_01.pdf 21296953 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21296953 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212969531741709101 21296955 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21296955 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343110389: '1741708234_1465063_1343109346_7874bb3703f62a3dd99c6377ae4809c1_rle_crop_3705860993_0.png', 1343111790: '1741708591_1467663_1343110581_c400e5a87039414e2b097d7a7d4689d1_rle_crop_3705891617_0.png', 1343111791: '1741708591_1467663_1343110569_36c2d7f8ad3a4852df588b2286722f29_rle_crop_3705892790_0.png', 1343111792: '1741708591_1467663_1343110565_629c1df6be92c7ae526d5ab913c055da_rle_crop_3705892812_0.png', 1343112122: '1741708693_1468226_1343110972_4fd7a94048dd739208338056a347818b_rle_crop_3705896110_0.png', 1343113529: '1741708835_1469709_1343111548_1a558b3034070d32727ae4b082868a2f_rle_crop_3705910765_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0ddafa76d39fb80713b16a52f884a6ff_39866757.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/32e2a0b82b4f1d25b55ce7577fe48f85_57706961.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b992b5df3b516279fa04bbc3a73553b4_22705368.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/95d60a5820f33db54edf42f66df5562f_22093069.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/93df09a7b0444a30a2d004cd59d3f70a_5088058.png change filename to text .imagette212969551741709101/ imagette212969551741709101/1741708234_1465063_1343109346_7874bb3703f62a3dd99c6377ae4809c1_rle_crop_3705860993_0.png.png imagette212969551741709101/1741708693_1468226_1343110972_4fd7a94048dd739208338056a347818b_rle_crop_3705896110_0.png.png imagette212969551741709101/1741708591_1467663_1343110581_c400e5a87039414e2b097d7a7d4689d1_rle_crop_3705891617_0.png.png imagette212969551741709101/1741708591_1467663_1343110569_36c2d7f8ad3a4852df588b2286722f29_rle_crop_3705892790_0.png.png imagette212969551741709101/1741708835_1469709_1343111548_1a558b3034070d32727ae4b082868a2f_rle_crop_3705910765_0.png.png imagette212969551741709101/1741708591_1467663_1343110565_629c1df6be92c7ae526d5ab913c055da_rle_crop_3705892812_0.png.png imagette212969561741709102/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/404bb5c8407957cff2c2e859f9ca3e74_24594654.png imagette212969551741709101 21296956 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21296956 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212969561741709102 21296958 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21296958 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343110647: '1741708465_2094926_1343110447_2190e7395af50d902cf8c02260073792_rle_crop_3705871697_0.png', 1343110657: '1741708454_1466711_1343110231_3b4841f58abb8fe3faf5a6236f470cf1_rle_crop_3705872130_0.png', 1343111814: '1741708591_1467663_1343110623_54b7f2a75f5c700fafe690c359239bb8_rle_crop_3705891516_0.png', 1343111816: '1741708591_1467663_1343110561_8dff7db45f0857bb09a5b047beb7c4df_rle_crop_3705893023_0.png', 1343112130: '1741708693_1468226_1343110941_ee90fbc56e8b164e4a1bb0252e02e744_rle_crop_3705898063_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/fefa5f723be1c2a7859a187e8acb2bb3_91964670.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5b7a0e5f89510d1f4f5a7ef67398df1f_50045146.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4d373bd6b6a7195ceb60a3cab997feb4_28734519.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/82a6806ed7fd165451a14768c7ad2fa4_79831267.png change filename to text .imagette212969581741709102/ imagette212969581741709102/1741708693_1468226_1343110941_ee90fbc56e8b164e4a1bb0252e02e744_rle_crop_3705898063_0.png.png imagette212969581741709102/1741708454_1466711_1343110231_3b4841f58abb8fe3faf5a6236f470cf1_rle_crop_3705872130_0.png.png imagette212969581741709102/1741708591_1467663_1343110623_54b7f2a75f5c700fafe690c359239bb8_rle_crop_3705891516_0.png.png imagette212969581741709102/1741708465_2094926_1343110447_2190e7395af50d902cf8c02260073792_rle_crop_3705871697_0.png.png imagette212969581741709102/1741708591_1467663_1343110561_8dff7db45f0857bb09a5b047beb7c4df_rle_crop_3705893023_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/765a08cbd196dd346dcb59488790896b_61730312.png imagette212969581741709102 21296960 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21296960 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343111732: '1741708591_1467663_1343110561_8dff7db45f0857bb09a5b047beb7c4df_rle_crop_3705893017_0.png', 1343113506: '1741708835_1469709_1343111517_51f86fff6de8108dad6e90ef2cfcd816_rle_crop_3705913188_0.png', 1343113505: '1741708835_1469709_1343111548_1a558b3034070d32727ae4b082868a2f_rle_crop_3705910766_0.png', 1343113502: '1741708835_1469709_1343112044_469b7ec484e07302c5db237fec822e05_rle_crop_3705910714_0.png', 1343112388: '1741708708_2099320_1343110661_15f32ca11551e24cb4b7465dd81ca130_rle_crop_3705905107_0.png', 1343112384: '1741708708_2099320_1343110664_d5f8f306b8b2fa3735205fa982ba600e_rle_crop_3705903468_0.png', 1343112380: '1741708708_2099320_1343110679_33dbd34e6a38085289637f6a5a94592c_rle_crop_3705903247_0.png', 1343112377: '1741708708_2099320_1343110679_33dbd34e6a38085289637f6a5a94592c_rle_crop_3705903241_0.png', 1343112108: '1741708693_1468226_1343110941_ee90fbc56e8b164e4a1bb0252e02e744_rle_crop_3705898056_0.png', 1343112107: '1741708693_1468226_1343110972_4fd7a94048dd739208338056a347818b_rle_crop_3705896118_0.png', 1343112106: '1741708693_1468226_1343110972_4fd7a94048dd739208338056a347818b_rle_crop_3705896112_0.png', 1343112105: '1741708693_1468226_1343110972_4fd7a94048dd739208338056a347818b_rle_crop_3705896117_0.png', 1343109833: '1741708107_2091438_1343108446_ac8c00bca162bb34bb0fbea0866d2600_rle_crop_3705851478_0.png', 1343111731: '1741708591_1467663_1343110575_759f86b26ba3b79750ae4b627cb17422_rle_crop_3705892657_0.png', 1343111730: '1741708591_1467663_1343110623_54b7f2a75f5c700fafe690c359239bb8_rle_crop_3705891511_0.png', 1343110652: '1741708454_1466711_1343110206_d141b0fb489deecadef43f20e32e74a8_rle_crop_3705872224_0.png', 1343110651: '1741708454_1466711_1343110231_3b4841f58abb8fe3faf5a6236f470cf1_rle_crop_3705872131_0.png', 1343110639: '1741708465_2094926_1343110477_01dbba5cc9df3e90c0a2a514a23fe75b_rle_crop_3705871215_0.png', 1343110577: '1741708347_2094065_1343109868_d6219b24170017b8b88e0b711a5102ab_rle_crop_3705869497_0.png', 1343110576: '1741708347_2094065_1343109928_a72447681fc880f90254e4f5909280d7_rle_crop_3705868881_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1124b8c1aebeb4b0b5edafe2da604921_85750277.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/199d723b43e0c7fc8f1d8e7847e761c1_55276267.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1799d8d39de034542f0610fecb50a5c0_70051330.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ec8596ff2cf513264d061ace5c76a335_82963644.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9232b05e6f803d635d64f3ae1ecb295b_92364374.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/067eba746f29dd788016f474a9010f77_74267288.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0818a4e992459667dac7e7a66b63814d_8386360.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2b5445ce013eba62a353e7fb1189de07_34163861.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/762a4b7257f9844ce06438b90ca5f837_72198936.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/fef9f01b8c190f2e0ead5abd20238194_65874745.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3437f9936c67d33b94fb52d964e66487_94085999.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/54a0cc253dca1f21ae5fb4258707e79c_70430402.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e3bede142985b7a5d401f14ef0faee8c_74027706.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/77bc153c8bb4872216d0d6a759b1fbdf_71895839.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e03df21ce898a3d8559c0ce86f268276_67132548.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8c5f7a7336793fb6ec247e75d2e09f7f_56632289.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ecf4a140d6fe2df2d025962bf3ab1560_66661284.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7f7f76f518b50c876f5b5992340b1bce_40933004.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/51e2e72160bbc9791971474cee6a2cc5_16814634.png change filename to text .imagette212969601741709102/ imagette212969601741709102/1741708708_2099320_1343110664_d5f8f306b8b2fa3735205fa982ba600e_rle_crop_3705903468_0.png.png imagette212969601741709102/1741708591_1467663_1343110561_8dff7db45f0857bb09a5b047beb7c4df_rle_crop_3705893017_0.png.png imagette212969601741709102/1741708708_2099320_1343110679_33dbd34e6a38085289637f6a5a94592c_rle_crop_3705903247_0.png.png imagette212969601741709102/1741708835_1469709_1343111548_1a558b3034070d32727ae4b082868a2f_rle_crop_3705910766_0.png.png imagette212969601741709102/1741708591_1467663_1343110575_759f86b26ba3b79750ae4b627cb17422_rle_crop_3705892657_0.png.png imagette212969601741709102/1741708835_1469709_1343112044_469b7ec484e07302c5db237fec822e05_rle_crop_3705910714_0.png.png imagette212969601741709102/1741708347_2094065_1343109928_a72447681fc880f90254e4f5909280d7_rle_crop_3705868881_0.png.png imagette212969601741709102/1741708693_1468226_1343110941_ee90fbc56e8b164e4a1bb0252e02e744_rle_crop_3705898056_0.png.png imagette212969601741709102/1741708465_2094926_1343110477_01dbba5cc9df3e90c0a2a514a23fe75b_rle_crop_3705871215_0.png.png imagette212969601741709102/1741708693_1468226_1343110972_4fd7a94048dd739208338056a347818b_rle_crop_3705896112_0.png.png imagette212969601741709102/1741708693_1468226_1343110972_4fd7a94048dd739208338056a347818b_rle_crop_3705896118_0.png.png imagette212969601741709102/1741708347_2094065_1343109868_d6219b24170017b8b88e0b711a5102ab_rle_crop_3705869497_0.png.png imagette212969601741709102/1741708454_1466711_1343110231_3b4841f58abb8fe3faf5a6236f470cf1_rle_crop_3705872131_0.png.png imagette212969601741709102/1741708708_2099320_1343110679_33dbd34e6a38085289637f6a5a94592c_rle_crop_3705903241_0.png.png imagette212969601741709102/1741708107_2091438_1343108446_ac8c00bca162bb34bb0fbea0866d2600_rle_crop_3705851478_0.png.png imagette212969601741709102/1741708835_1469709_1343111517_51f86fff6de8108dad6e90ef2cfcd816_rle_crop_3705913188_0.png.png imagette212969601741709102/1741708693_1468226_1343110972_4fd7a94048dd739208338056a347818b_rle_crop_3705896117_0.png.png imagette212969601741709102/1741708591_1467663_1343110623_54b7f2a75f5c700fafe690c359239bb8_rle_crop_3705891511_0.png.png imagette212969601741709102/1741708708_2099320_1343110661_15f32ca11551e24cb4b7465dd81ca130_rle_crop_3705905107_0.png.png imagette212969601741709102/1741708454_1466711_1343110206_d141b0fb489deecadef43f20e32e74a8_rle_crop_3705872224_0.png.png imagette212969631741709103/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1746da8f9c5c859ea27cad0759965db6_33313213.png imagette212969601741709102 21296963 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21296963 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212969631741709103 21296964 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21296964 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343112436: '1741708708_2099320_1343110661_15f32ca11551e24cb4b7465dd81ca130_rle_crop_3705905104_0.png'} change filename to text .imagette212969641741709103/ imagette212969641741709103/1741708708_2099320_1343110661_15f32ca11551e24cb4b7465dd81ca130_rle_crop_3705905104_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4951699dd01943065b945f94081cb471_84232563.png imagette212969641741709103 21296957 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21296957 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343109818: '1741708107_2091438_1343108446_ac8c00bca162bb34bb0fbea0866d2600_rle_crop_3705851484_0.png', 1343110352: '1741708234_1465063_1343109214_e02c5e15a5197d7764d3649f0f1f0956_rle_crop_3705862010_0.png', 1343110638: '1741708465_2094926_1343110447_2190e7395af50d902cf8c02260073792_rle_crop_3705871696_0.png', 1343111719: '1741708591_1467663_1343110569_36c2d7f8ad3a4852df588b2286722f29_rle_crop_3705892794_0.png', 1343111720: '1741708591_1467663_1343110561_8dff7db45f0857bb09a5b047beb7c4df_rle_crop_3705893015_0.png', 1343112091: '1741708693_1468226_1343110972_4fd7a94048dd739208338056a347818b_rle_crop_3705896120_0.png', 1343112364: '1741708708_2099320_1343110679_33dbd34e6a38085289637f6a5a94592c_rle_crop_3705903244_0.png', 1343113473: '1741708835_1469709_1343112044_469b7ec484e07302c5db237fec822e05_rle_crop_3705910715_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0f8600de65d7b4b6661a8977da7b8767_81468028.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/64aeb7430205cc3f144d765f2bf14070_91523891.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5407c5603e546bc99a0b4306f710c953_77642519.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/24385f2ae78b9346bc1e02ad7e9b6d87_5268654.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/39ce5f39a35bed797bcd354b9c6c45cc_45760248.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1fb25737f1e91c0f08c623e1930d8240_24471625.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e164509f6bc3da7eaf10a622142b5b86_23716693.png change filename to text .imagette212969571741709103/ imagette212969571741709103/1741708591_1467663_1343110569_36c2d7f8ad3a4852df588b2286722f29_rle_crop_3705892794_0.png.png imagette212969571741709103/1741708693_1468226_1343110972_4fd7a94048dd739208338056a347818b_rle_crop_3705896120_0.png.png imagette212969571741709103/1741708107_2091438_1343108446_ac8c00bca162bb34bb0fbea0866d2600_rle_crop_3705851484_0.png.png imagette212969571741709103/1741708234_1465063_1343109214_e02c5e15a5197d7764d3649f0f1f0956_rle_crop_3705862010_0.png.png imagette212969571741709103/1741708708_2099320_1343110679_33dbd34e6a38085289637f6a5a94592c_rle_crop_3705903244_0.png.png imagette212969571741709103/1741708835_1469709_1343112044_469b7ec484e07302c5db237fec822e05_rle_crop_3705910715_0.png.png imagette212969571741709103/1741708591_1467663_1343110561_8dff7db45f0857bb09a5b047beb7c4df_rle_crop_3705893015_0.png.png imagette212969571741709103/1741708465_2094926_1343110447_2190e7395af50d902cf8c02260073792_rle_crop_3705871696_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d563d6f7121393514ad60fc047cfb19b_91659706.png imagette212969571741709103 21296961 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21296961 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343110379: '1741708234_1465063_1343109331_2609f2c78b5c3ce0edab517336d20eca_rle_crop_3705861222_0.png', 1343110380: '1741708234_1465063_1343109291_10df12bffff0141097717fdea579f1b8_rle_crop_3705861546_0.png', 1343110381: '1741708234_1465063_1343109125_1d447ea3842565f0a5adbd3b5977122d_rle_crop_3705862093_0.png', 1343110645: '1741708465_2094926_1343110477_01dbba5cc9df3e90c0a2a514a23fe75b_rle_crop_3705871210_0.png', 1343110646: '1741708465_2094926_1343110459_c075ecce00621a9b9f09d27715bff44f_rle_crop_3705871219_0.png', 1343110654: '1741708454_1466711_1343110318_360a10434cfbd616dec947bf1769850d_rle_crop_3705871701_0.png', 1343110655: '1741708454_1466711_1343110231_3b4841f58abb8fe3faf5a6236f470cf1_rle_crop_3705872125_0.png', 1343111754: '1741708591_1467663_1343110569_36c2d7f8ad3a4852df588b2286722f29_rle_crop_3705892786_0.png', 1343111756: '1741708591_1467663_1343110569_36c2d7f8ad3a4852df588b2286722f29_rle_crop_3705892785_0.png', 1343111757: '1741708591_1467663_1343110569_36c2d7f8ad3a4852df588b2286722f29_rle_crop_3705892791_0.png', 1343111758: '1741708591_1467663_1343110565_629c1df6be92c7ae526d5ab913c055da_rle_crop_3705892807_0.png', 1343111760: '1741708591_1467663_1343110561_8dff7db45f0857bb09a5b047beb7c4df_rle_crop_3705893009_0.png', 1343111761: '1741708591_1467663_1343110561_8dff7db45f0857bb09a5b047beb7c4df_rle_crop_3705893013_0.png', 1343112115: '1741708693_1468226_1343110972_4fd7a94048dd739208338056a347818b_rle_crop_3705896111_0.png', 1343112406: '1741708708_2099320_1343110714_d4fe42d61dd62082616b1f57f2145e70_rle_crop_3705903221_0.png', 1343113520: '1741708835_1469709_1343111476_5c14685602a0fa4f33209c474050f326_rle_crop_3705915541_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a52d35fe9d9176146429b11e1ef4a12e_32990813.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ff7554a4168d239af88050fa5f37eb23_88532728.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/89b88953b3d8538c42eee8ef1038ec09_74753424.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d2df64a183116fd70baee41bd4d07926_21890282.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/70129191ace56ea4998429c9c46f97a2_58263323.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/202223cca56025ffc163a1697c3662d2_41073385.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6ddc07b0ed4e68007f24bfd9702bf7cc_67009564.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1d5fb5af1a114025e2f3701dab01d8a4_81602730.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/497dab74217b57b3d09477ad16c6e0d8_7018278.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e90405dd49410b142024d1af7f24ec8d_78395488.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/25c0fc9c65015d8d4bcd65ca9d39cf5d_50210392.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/559808c4035748bf6b5ac0e838f07d1a_8664743.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ae0f54aa6bd30492350377b60225baf8_98151936.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/cbd5ed704d6e171245d7831985af33a6_97479812.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e43120cbc766448f3116a683be7d82d9_75404107.png change filename to text .imagette212969611741709104/ imagette212969611741709104/1741708591_1467663_1343110569_36c2d7f8ad3a4852df588b2286722f29_rle_crop_3705892785_0.png.png imagette212969611741709104/1741708835_1469709_1343111476_5c14685602a0fa4f33209c474050f326_rle_crop_3705915541_0.png.png imagette212969611741709104/1741708591_1467663_1343110569_36c2d7f8ad3a4852df588b2286722f29_rle_crop_3705892786_0.png.png imagette212969611741709104/1741708708_2099320_1343110714_d4fe42d61dd62082616b1f57f2145e70_rle_crop_3705903221_0.png.png imagette212969611741709104/1741708693_1468226_1343110972_4fd7a94048dd739208338056a347818b_rle_crop_3705896111_0.png.png imagette212969611741709104/1741708591_1467663_1343110561_8dff7db45f0857bb09a5b047beb7c4df_rle_crop_3705893013_0.png.png imagette212969611741709104/1741708234_1465063_1343109125_1d447ea3842565f0a5adbd3b5977122d_rle_crop_3705862093_0.png.png imagette212969611741709104/1741708454_1466711_1343110318_360a10434cfbd616dec947bf1769850d_rle_crop_3705871701_0.png.png imagette212969611741709104/1741708234_1465063_1343109291_10df12bffff0141097717fdea579f1b8_rle_crop_3705861546_0.png.png imagette212969611741709104/1741708591_1467663_1343110565_629c1df6be92c7ae526d5ab913c055da_rle_crop_3705892807_0.png.png imagette212969611741709104/1741708465_2094926_1343110459_c075ecce00621a9b9f09d27715bff44f_rle_crop_3705871219_0.png.png imagette212969611741709104/1741708591_1467663_1343110561_8dff7db45f0857bb09a5b047beb7c4df_rle_crop_3705893009_0.png.png imagette212969611741709104/1741708591_1467663_1343110569_36c2d7f8ad3a4852df588b2286722f29_rle_crop_3705892791_0.png.png imagette212969611741709104/1741708234_1465063_1343109331_2609f2c78b5c3ce0edab517336d20eca_rle_crop_3705861222_0.png.png imagette212969611741709104/1741708465_2094926_1343110477_01dbba5cc9df3e90c0a2a514a23fe75b_rle_crop_3705871210_0.png.png imagette212969611741709104/1741708454_1466711_1343110231_3b4841f58abb8fe3faf5a6236f470cf1_rle_crop_3705872125_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/adcb4e4c7694dd39797a1a26e17a451c_75592381.png imagette212969611741709104 21296962 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21296962 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343110400: '1741708234_1465063_1343109346_7874bb3703f62a3dd99c6377ae4809c1_rle_crop_3705860995_0.png', 1343110401: '1741708234_1465063_1343109331_2609f2c78b5c3ce0edab517336d20eca_rle_crop_3705861219_0.png', 1343110402: '1741708234_1465063_1343109331_2609f2c78b5c3ce0edab517336d20eca_rle_crop_3705861223_0.png', 1343111804: '1741708591_1467663_1343110623_54b7f2a75f5c700fafe690c359239bb8_rle_crop_3705891508_0.png', 1343111805: '1741708591_1467663_1343110623_54b7f2a75f5c700fafe690c359239bb8_rle_crop_3705891512_0.png', 1343111806: '1741708591_1467663_1343110561_8dff7db45f0857bb09a5b047beb7c4df_rle_crop_3705893016_0.png', 1343112422: '1741708708_2099320_1343110664_d5f8f306b8b2fa3735205fa982ba600e_rle_crop_3705903463_0.png', 1343112425: '1741708708_2099320_1343110661_15f32ca11551e24cb4b7465dd81ca130_rle_crop_3705905103_0.png', 1343113541: '1741708835_1469709_1343111548_1a558b3034070d32727ae4b082868a2f_rle_crop_3705910767_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6a81b19ce321d244496b2ca268f19332_78442771.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c44d6ac5cac9a5dde4e26d67dbd4a84a_93844469.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9ac23038c7d77c8a350058330b043b9c_67384363.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/04a180de51cbba3ec8c7fdc5f5138358_58545861.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b3c547d111d0e330bead40c2e44be33a_13775200.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/84dd17fa301f1c4c6734d6fb2a41d0bf_71826191.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/acc303b4af3834119acfc36fd1188170_24136474.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4e60c9ab1e47e5af47c268f14efc81a9_32874030.png change filename to text .imagette212969621741709105/ imagette212969621741709105/1741708234_1465063_1343109331_2609f2c78b5c3ce0edab517336d20eca_rle_crop_3705861219_0.png.png imagette212969621741709105/1741708591_1467663_1343110561_8dff7db45f0857bb09a5b047beb7c4df_rle_crop_3705893016_0.png.png imagette212969621741709105/1741708591_1467663_1343110623_54b7f2a75f5c700fafe690c359239bb8_rle_crop_3705891508_0.png.png imagette212969621741709105/1741708234_1465063_1343109331_2609f2c78b5c3ce0edab517336d20eca_rle_crop_3705861223_0.png.png imagette212969621741709105/1741708591_1467663_1343110623_54b7f2a75f5c700fafe690c359239bb8_rle_crop_3705891512_0.png.png imagette212969621741709105/1741708234_1465063_1343109346_7874bb3703f62a3dd99c6377ae4809c1_rle_crop_3705860995_0.png.png imagette212969621741709105/1741708708_2099320_1343110661_15f32ca11551e24cb4b7465dd81ca130_rle_crop_3705905103_0.png.png imagette212969621741709105/1741708835_1469709_1343111548_1a558b3034070d32727ae4b082868a2f_rle_crop_3705910767_0.png.png imagette212969621741709105/1741708708_2099320_1343110664_d5f8f306b8b2fa3735205fa982ba600e_rle_crop_3705903463_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ea2257a902dfe9f7da63601c2bb5444a_1086972.png imagette212969621741709105 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21296935 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21297004,21297005,21297006,21297007,21297008,21297009,21297010,21297011,21297012,21297013,21297015,21297016?tags=metal,papier,cartonnette,flou,Teint_Dans_La_Masse,plastique,environnement,autre_refus,Carton_gris,Carton_brun,mal_croppe,kraft your option no_mail is active, we will not send the real mail to your client args[1343113416] : ('0.08099840915747374',) no score found for photo 1343113416 We are sending mail with results at report@fotonower.com args[1343113134] : ('0.08099840915747374',) no score found for photo 1343113134 We are sending mail with results at report@fotonower.com args[1343113095] : ('0.08099840915747374',) no score found for photo 1343113095 We are sending mail with results at report@fotonower.com args[1343113065] : ('0.08099840915747374',) no score found for photo 1343113065 We are sending mail with results at report@fotonower.com args[1343113028] : ('0.08099840915747374',) no score found for photo 1343113028 We are sending mail with results at report@fotonower.com args[1343112961] : ('0.08099840915747374',) no score found for photo 1343112961 We are sending mail with results at report@fotonower.com args[1343112872] : ('0.08099840915747374',) no score found for photo 1343112872 We are sending mail with results at report@fotonower.com args[1343112833] : ('0.08099840915747374',) no score found for photo 1343112833 We are sending mail with results at report@fotonower.com args[1343112789] : ('0.08099840915747374',) no score found for photo 1343112789 We are sending mail with results at report@fotonower.com args[1343112743] : ('0.08099840915747374',) no score found for photo 1343112743 We are sending mail with results at report@fotonower.com args[1343112705] : ('0.08099840915747374',) no score found for photo 1343112705 We are sending mail with results at report@fotonower.com refus_total : 0.08099840915747374 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21296935 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_P21296935_11-03-2025_17_05_01.pdf results_Auto_P21296935_11-03-2025_17_05_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21296935_11-03-2025_17_05_01.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','21296935','results_Auto_P21296935_11-03-2025_17_05_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21296935_11-03-2025_17_05_01.pdf','pdf','','0.35','0.08099840915747374') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21296935]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343113416, 1343113134, 1343113095, 1343113065, 1343113028, 1343112961, 1343112872, 1343112833, 1343112789, 1343112743, 1343112705] map_info['map_portfolio_photo'] : {21296935: [1343113416, 1343113134, 1343113095, 1343113065, 1343113028, 1343112961, 1343112872, 1343112833, 1343112789, 1343112743, 1343112705, 1343112044, 1343112025, 1343111903, 1343111852, 1343111829, 1343111797, 1343111588, 1343111548, 1343111517, 1343111476, 1343111441, 1343111054, 1343111013, 1343110972, 1343110941, 1343110896, 1343110736, 1343110714, 1343110679, 1343110664, 1343110661, 1343110658, 1343110623, 1343110619, 1343110617, 1343110615, 1343110607, 1343110588, 1343110581, 1343110575, 1343110569, 1343110565, 1343110561, 1343110495, 1343110477, 1343110459, 1343110447, 1343110362, 1343110318, 1343110257, 1343110231, 1343110206, 1343110072, 1343110059, 1343110055, 1343110047, 1343110018, 1343110015, 1343109953, 1343109928, 1343109899, 1343109868, 1343109647, 1343109622, 1343109581, 1343109566, 1343109537, 1343109372, 1343109346, 1343109331, 1343109291, 1343109214, 1343109125, 1343108622, 1343108511, 1343108446]} final : False mtd_id 4302 list_pids : [1343113416, 1343113134, 1343113095, 1343113065, 1343113028, 1343112961, 1343112872, 1343112833, 1343112789, 1343112743, 1343112705] 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, '2658827') ('4302', '21296935', '1343113416', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113134', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113095', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113065', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113028', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112961', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112872', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112833', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112789', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112743', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112705', None, None, None, None, None, '2658827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '21296935', '1343113416', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343113134', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343113095', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343113065', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343113028', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112961', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112872', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112833', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112789', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112743', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112705', None, None, None, None, None, '2658827')] time used for this insertion : 0.016196727752685547 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.25814962387085 time spend to save output : 0.016416311264038086 total time spend for step 4 : 5.274565935134888 step5:split_time_score Tue Mar 11 17:05:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21296935'] 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 : [('21296935',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21296935) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343113134: {'path': 'temp/1741709101_1751198_1343113134_ed247f9fbad4bdd293511816a889647e.jpg', 'extension': 'jpg'}, 1343113416: {'path': 'temp/1741709101_1751198_1343113416_bf1f114a745351c3444ee3caab89f93f.jpg', 'extension': 'jpg'}, 1343112705: {'path': 'temp/1741709101_1751198_1343112705_2c22905de8254bf4f260e41f3c9993b6.jpg', 'extension': 'jpg'}, 1343112743: {'path': 'temp/1741709101_1751198_1343112743_141162684a1b67f85478187061d8cc07.jpg', 'extension': 'jpg'}, 1343112789: {'path': 'temp/1741709101_1751198_1343112789_311d69482fa6be0a2624c494d749c2e8.jpg', 'extension': 'jpg'}, 1343112833: {'path': 'temp/1741709101_1751198_1343112833_85593cd52e75091ac63cf44e6967c4bf.jpg', 'extension': 'jpg'}, 1343112872: {'path': 'temp/1741709101_1751198_1343112872_94103e24c553ff90b34faba604ddb367.jpg', 'extension': 'jpg'}, 1343112961: {'path': 'temp/1741709101_1751198_1343112961_072685e8297ec9f54b31eb3ee7341b65.jpg', 'extension': 'jpg'}, 1343113028: {'path': 'temp/1741709101_1751198_1343113028_a3c8396ed32b27a0312df37ea7fb8b44.jpg', 'extension': 'jpg'}, 1343113065: {'path': 'temp/1741709101_1751198_1343113065_16ad34e9397b1f78fbd2510f1cbcae1d.jpg', 'extension': 'jpg'}, 1343113095: {'path': 'temp/1741709101_1751198_1343113095_eac73b604db81e57bc6a81469340cad4.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 = 21296935; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21296935 group by h (('16', 77),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21296935 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 (21296935) 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 (21296935) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21296935 Nombre de photos uploadées : 77 / 23040 (0%) 11032025 21296935 Nombre de photos taguées (types de déchets): 0 / 77 (0%) 11032025 21296935 Nombre de photos taguées (volume) : 0 / 77 (0%) [{'photo_id': 1343108622, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4c83a99716b8005798c67b48c54179d7.jpg', 'username': None, 'uploaded_at': 1741707999, 'text': 'image_11032025_16_45_04_10151.jpg'}, {'photo_id': 1343108511, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2d8126effb58e4d4b8390834229b7f54.jpg', 'username': None, 'uploaded_at': 1741707999, 'text': 'image_11032025_16_45_35_10141.jpg'}, {'photo_id': 1343108446, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ac8c00bca162bb34bb0fbea0866d2600.jpg', 'username': None, 'uploaded_at': 1741707999, 'text': 'image_11032025_16_45_45_10136.jpg'}, {'photo_id': 1343109372, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4a0ce9bc14ff4be51981cfa90e6f41d3.jpg', 'username': None, 'uploaded_at': 1741708059, 'text': 'image_11032025_16_45_54_9128.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003932952880859375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21296935, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 1.8464114665985107 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667134, 'mtr_portfolio_id': 21295180, 'dashboard_result_id': 9353650, '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_P21295180_11-03-2025_16_33_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21295234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21295235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21295237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21295238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21295239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21295241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21295242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21295243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21295245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21295246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21295247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21295249, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667134, 'mtr_portfolio_id': 21296139, 'dashboard_result_id': 9353651, '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_P21296139_11-03-2025_16_48_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21296140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21296141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21296142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21296143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21296144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21296145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21296146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21296147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21296148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21296149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21296150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21296151, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667134, 'mtr_portfolio_id': 21296935, 'dashboard_result_id': 9353652, '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_P21296935_11-03-2025_16_59_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21296953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21296954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21296955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21296956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21296957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21296958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21296959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21296960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21296961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21296962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21296963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21296964, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667134, 'mtr_portfolio_id': 21297690, 'dashboard_result_id': 9353653, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21295180 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': 2658728, 'mtr_portfolio_id': 21295180, 'created_at': datetime.datetime(2025, 3, 11, 16, 33, 4), 'result': '0.06787483491200408', 'result_long': None, 'result_double': None}] Qualite : 0.06787483491200408 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21295180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21295180_11-03-2025_16_33_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21295180 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_P21295180_11-03-2025_16_33_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21295234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21295235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21295237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21295238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21295239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21295241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21295242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21295243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21295245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21295246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21295247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21295249, 'pht': 3726}}" where mtr_portfolio_id = 21295180 and dashboard_run_id = 1667134 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`=21295180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9353650, 0.06787483491200408, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21295180_11-03-2025_16_33_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21295234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21295235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21295237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21295238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21295239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21295241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21295242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21295243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21295245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21295246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21295247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21295249, '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 = 21296139 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': 2658800, 'mtr_portfolio_id': 21296139, 'created_at': datetime.datetime(2025, 3, 11, 16, 48, 2), 'result': '0.07193525091200008', 'result_long': None, 'result_double': None}] Qualite : 0.07193525091200008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21296139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21296139_11-03-2025_16_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21296139 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_P21296139_11-03-2025_16_48_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21296140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21296141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21296142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21296143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21296144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21296145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21296146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21296147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21296148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21296149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21296150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21296151, 'pht': 3726}}" where mtr_portfolio_id = 21296139 and dashboard_run_id = 1667134 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`=21296139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9353651, 0.07193525091200008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21296139_11-03-2025_16_48_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21296140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21296141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21296142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21296143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21296144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21296145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21296146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21296147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21296148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21296149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21296150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21296151, '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 = 21296935 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': 2658827, 'mtr_portfolio_id': 21296935, 'created_at': datetime.datetime(2025, 3, 11, 17, 5, 1), 'result': '0.08099840915747374', 'result_long': None, 'result_double': None}] Qualite : 0.08099840915747374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21296935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21296935_11-03-2025_17_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21296935 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_P21296935_11-03-2025_17_05_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21296953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21296954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21296955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21296956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21296957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21296958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21296959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21296960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21296961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21296962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21296963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21296964, 'pht': 3726}}" where mtr_portfolio_id = 21296935 and dashboard_run_id = 1667134 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`=21296935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9353652, 0.08099840915747374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21296935_11-03-2025_17_05_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21296953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21296954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21296955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21296956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21296957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21296958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21296959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21296960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21296961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21296962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21296963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21296964, '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 = 21297690 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21297690 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21297690 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21297690%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21297690 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21297690 and dashboard_run_id = 1667134 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21295180,21296139,21296935,21297690) result : ((1343090355,), (1343090405,), (1343090438,), (1343090449,), (1343090501,), (1343090505,), (1343090509,), (1343090536,), (1343090636,), (1343091094,), (1343091229,), (1343091332,), (1343091399,), (1343091860,), (1343091958,), (1343092117,), (1343092193,), (1343092366,), (1343092939,), (1343093004,), (1343093144,), (1343093362,), (1343093499,), (1343093819,), (1343094507,), (1343094637,), (1343094782,), (1343094898,), (1343095765,), (1343095780,), (1343095940,), (1343096079,), (1343096127,), (1343096156,), (1343096420,), (1343096447,), (1343096524,), (1343096601,), (1343097194,), (1343097270,), (1343097357,), (1343097455,), (1343097607,), (1343097718,), (1343098182,), (1343098281,), (1343098368,), (1343098432,), (1343099191,), (1343099254,), (1343099349,), (1343099415,), (1343099469,), (1343099498,), (1343099635,), (1343099661,), (1343099683,), (1343099736,), (1343099783,), (1343100157,), (1343100246,), (1343100369,), (1343100453,), (1343101105,), (1343101180,), (1343101276,), (1343101338,), (1343101347,), (1343101374,), (1343101517,), (1343101522,), (1343101561,), (1343101584,), (1343101599,), (1343102102,), (1343101940,), (1343101981,), (1343102016,), (1343102045,), (1343102082,), (1343102207,), (1343102229,), (1343102266,), (1343102286,), (1343102410,), (1343102809,), (1343102883,), (1343102936,), (1343102977,), (1343103038,), (1343103063,), (1343103580,), (1343103638,), (1343104336,), (1343107305,), (1343107340,), (1343107368,), (1343107786,), (1343108120,), (1343108151,), (1343108173,), (1343108192,), (1343108204,), (1343108711,), (1343108446,), (1343108511,), (1343108622,), (1343109125,), (1343109214,), (1343109291,), (1343109331,), (1343109346,), (1343109372,), (1343109537,), (1343109566,), (1343109581,), (1343109622,), (1343109647,), (1343109868,), (1343109899,), (1343109928,), (1343109953,), (1343110015,), (1343110018,), (1343110047,), (1343110055,), (1343110059,), (1343110072,), (1343110206,), (1343110231,), (1343110257,), (1343110318,), (1343110362,), (1343110447,), (1343110459,), (1343110477,), (1343110495,), (1343110561,), (1343110565,), (1343110569,), (1343110575,), (1343110581,), (1343110588,), (1343110607,), (1343110615,), (1343110617,), (1343110619,), (1343110623,), (1343110658,), (1343110661,), (1343110664,), (1343110679,), (1343110714,), (1343110736,), (1343110896,), (1343110941,), (1343110972,), (1343111013,), (1343111054,), (1343111441,), (1343111476,), (1343111517,), (1343111548,), (1343111588,), (1343111797,), (1343111829,), (1343111852,), (1343111903,), (1343112025,), (1343112044,), (1343112705,), (1343112743,), (1343112789,), (1343112833,), (1343112872,), (1343112961,), (1343113028,), (1343113065,), (1343113095,), (1343113134,), (1343113416,), (1343113257,), (1343113285,), (1343113337,), (1343113374,), (1343113794,), (1343113854,), (1343113936,), (1343114018,), (1343114060,), (1343114801,), (1343114883,), (1343114940,), (1343114979,), (1343115044,), (1343115106,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 77, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21296935]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343113416, 1343113134, 1343113095, 1343113065, 1343113028, 1343112961, 1343112872, 1343112833, 1343112789, 1343112743, 1343112705] map_info['map_portfolio_photo'] : {21296935: [1343113416, 1343113134, 1343113095, 1343113065, 1343113028, 1343112961, 1343112872, 1343112833, 1343112789, 1343112743, 1343112705, 1343112044, 1343112025, 1343111903, 1343111852, 1343111829, 1343111797, 1343111588, 1343111548, 1343111517, 1343111476, 1343111441, 1343111054, 1343111013, 1343110972, 1343110941, 1343110896, 1343110736, 1343110714, 1343110679, 1343110664, 1343110661, 1343110658, 1343110623, 1343110619, 1343110617, 1343110615, 1343110607, 1343110588, 1343110581, 1343110575, 1343110569, 1343110565, 1343110561, 1343110495, 1343110477, 1343110459, 1343110447, 1343110362, 1343110318, 1343110257, 1343110231, 1343110206, 1343110072, 1343110059, 1343110055, 1343110047, 1343110018, 1343110015, 1343109953, 1343109928, 1343109899, 1343109868, 1343109647, 1343109622, 1343109581, 1343109566, 1343109537, 1343109372, 1343109346, 1343109331, 1343109291, 1343109214, 1343109125, 1343108622, 1343108511, 1343108446]} final : True mtd_id 4302 list_pids : [1343113416, 1343113134, 1343113095, 1343113065, 1343113028, 1343112961, 1343112872, 1343112833, 1343112789, 1343112743, 1343112705] Looping around the photos to save general results len do output : 1 /21296935Didn'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, '2658827') ('4302', '21296935', '1343113416', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113134', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113095', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113065', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343113028', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112961', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112872', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112833', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112789', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112743', None, None, None, None, None, '2658827') ('4302', None, None, None, None, None, None, None, '2658827') ('4302', '21296935', '1343112705', None, None, None, None, None, '2658827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21296935', 'None', None, None, None, None, '2658827'), ('4302', '21296935', '1343113416', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343113134', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343113095', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343113065', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343113028', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112961', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112872', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112833', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112789', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112743', None, None, None, None, None, '2658827'), ('4302', '21296935', '1343112705', None, None, None, None, None, '2658827')] time used for this insertion : 0.01849675178527832 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9171931743621826 time spend to save output : 0.018846750259399414 total time spend for step 5 : 2.936039924621582 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 (2658827) 2.33user 2.70system 0:14.89elapsed 33%CPU (0avgtext+0avgdata 162704maxresident)k 528inputs+17216outputs (4major+75674minor)pagefaults 0swaps