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 : 313004 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 (2685436) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2685436) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21645236 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2685436'] with mtr_portfolio_ids : ['21645236'] and first list_photo_ids : [] new path : /proc/313004/ Name: python3 Umask: 0002 State: R (running) Tgid: 313004 Ngid: 0 Pid: 313004 PPid: 313003 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 313004 NSpid: 313004 NSpgid: 311706 NSsid: 311706 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98204 kB VmRSS: 98204 kB RssAnon: 59760 kB RssFile: 38444 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '313004', 'Ngid': '0', 'Pid': '313004', 'PPid': '313003', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '313004', 'NSpid': '313004', 'NSpgid': '311706', 'NSsid': '311706', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98204 kB', 'VmRSS': '98204 kB', 'RssAnon': '59760 kB', 'RssFile': '38444 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '313004', '1106844', '0', '1106844', '865592', '98204', b'', 'marlene', '2685436') 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 (21645236) 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 (2685436 ) ) 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 (21645236) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1346790362, 'portfolio_id': 21645236}, {'photo_id': 1346790360, 'portfolio_id': 21645236}, {'photo_id': 1346790358, 'portfolio_id': 21645236}, {'photo_id': 1346790349, 'portfolio_id': 21645236}, {'photo_id': 1346790343, 'portfolio_id': 21645236}, {'photo_id': 1346790314, 'portfolio_id': 21645236}, {'photo_id': 1346790305, 'portfolio_id': 21645236}, {'photo_id': 1346790296, 'portfolio_id': 21645236}, {'photo_id': 1346790279, 'portfolio_id': 21645236}, {'photo_id': 1346790253, 'portfolio_id': 21645236}, {'photo_id': 1346790168, 'portfolio_id': 21645236}, {'photo_id': 1346790145, 'portfolio_id': 21645236}, {'photo_id': 1346790131, 'portfolio_id': 21645236}, {'photo_id': 1346790110, 'portfolio_id': 21645236}, {'photo_id': 1346790090, 'portfolio_id': 21645236}, {'photo_id': 1346790086, 'portfolio_id': 21645236}, {'photo_id': 1346790036, 'portfolio_id': 21645236}, {'photo_id': 1346790031, 'portfolio_id': 21645236}, {'photo_id': 1346789928, 'portfolio_id': 21645236}, {'photo_id': 1346789924, 'portfolio_id': 21645236}, {'photo_id': 1346789920, 'portfolio_id': 21645236}, {'photo_id': 1346789907, 'portfolio_id': 21645236}, {'photo_id': 1346789872, 'portfolio_id': 21645236}, {'photo_id': 1346789860, 'portfolio_id': 21645236}, {'photo_id': 1346789856, 'portfolio_id': 21645236}, {'photo_id': 1346789852, 'portfolio_id': 21645236}, {'photo_id': 1346789836, 'portfolio_id': 21645236}, {'photo_id': 1346789767, 'portfolio_id': 21645236}, {'photo_id': 1346789754, 'portfolio_id': 21645236}, {'photo_id': 1346789740, 'portfolio_id': 21645236}, {'photo_id': 1346789730, 'portfolio_id': 21645236}, {'photo_id': 1346789723, 'portfolio_id': 21645236}, {'photo_id': 1346789653, 'portfolio_id': 21645236}, {'photo_id': 1346789637, 'portfolio_id': 21645236}, {'photo_id': 1346789632, 'portfolio_id': 21645236}, {'photo_id': 1346789629, 'portfolio_id': 21645236}, {'photo_id': 1346789618, 'portfolio_id': 21645236}, {'photo_id': 1346789522, 'portfolio_id': 21645236}, {'photo_id': 1346789501, 'portfolio_id': 21645236}, {'photo_id': 1346789467, 'portfolio_id': 21645236}, {'photo_id': 1346789435, 'portfolio_id': 21645236}, {'photo_id': 1346789427, 'portfolio_id': 21645236}, {'photo_id': 1346789413, 'portfolio_id': 21645236}, {'photo_id': 1346789304, 'portfolio_id': 21645236}, {'photo_id': 1346789298, 'portfolio_id': 21645236}, {'photo_id': 1346789279, 'portfolio_id': 21645236}, {'photo_id': 1346789237, 'portfolio_id': 21645236}, {'photo_id': 1346789208, 'portfolio_id': 21645236}, {'photo_id': 1346789176, 'portfolio_id': 21645236}, {'photo_id': 1346789074, 'portfolio_id': 21645236}, {'photo_id': 1346789048, 'portfolio_id': 21645236}, {'photo_id': 1346789025, 'portfolio_id': 21645236}, {'photo_id': 1346789020, 'portfolio_id': 21645236}, {'photo_id': 1346788872, 'portfolio_id': 21645236}, {'photo_id': 1346788868, 'portfolio_id': 21645236}, {'photo_id': 1346788853, 'portfolio_id': 21645236}, {'photo_id': 1346788848, 'portfolio_id': 21645236}, {'photo_id': 1346788807, 'portfolio_id': 21645236}, {'photo_id': 1346788802, 'portfolio_id': 21645236}, {'photo_id': 1346788616, 'portfolio_id': 21645236}, {'photo_id': 1346788536, 'portfolio_id': 21645236}] map_portfolio_id_photo_id: {21645236: [1346790362, 1346790360, 1346790358, 1346790349, 1346790343, 1346790314, 1346790305, 1346790296, 1346790279, 1346790253, 1346790168, 1346790145, 1346790131, 1346790110, 1346790090, 1346790086, 1346790036, 1346790031, 1346789928, 1346789924, 1346789920, 1346789907, 1346789872, 1346789860, 1346789856, 1346789852, 1346789836, 1346789767, 1346789754, 1346789740, 1346789730, 1346789723, 1346789653, 1346789637, 1346789632, 1346789629, 1346789618, 1346789522, 1346789501, 1346789467, 1346789435, 1346789427, 1346789413, 1346789304, 1346789298, 1346789279, 1346789237, 1346789208, 1346789176, 1346789074, 1346789048, 1346789025, 1346789020, 1346788872, 1346788868, 1346788853, 1346788848, 1346788807, 1346788802, 1346788616, 1346788536]} ##### 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.015852689743041992 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Mar 24 13:59: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 (21645236) 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 : 21645236 get user id for portfolio 21645236 get sub ptf for main ptf 21645236, type 3726 and hashtags ['autre_refus', 'plastique', 'kraft', 'Teint_Dans_La_Masse', 'mal_croppe', 'cartonnette', 'papier', 'flou', 'Carton_gris', 'metal', 'environnement', 'Carton_brun'] 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`=21645236 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','kraft','Teint_Dans_La_Masse','mal_croppe','cartonnette','papier','flou','Carton_gris','metal','environnement','Carton_brun')) 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`=21645236 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','kraft','Teint_Dans_La_Masse','mal_croppe','cartonnette','papier','flou','Carton_gris','metal','environnement','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21645236, 'sub_port_id': 21645237, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181868, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 56)}, 'environnement': {'main_port_id': 21645236, 'sub_port_id': 21645238, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181869, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 56)}, 'plastique': {'main_port_id': 21645236, 'sub_port_id': 21645239, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181870, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 21645236, 'sub_port_id': 21645240, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181871, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 56)}, 'flou': {'main_port_id': 21645236, 'sub_port_id': 21645241, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181872, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 56)}, 'cartonnette': {'main_port_id': 21645236, 'sub_port_id': 21645242, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181873, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 56)}, 'Carton_brun': {'main_port_id': 21645236, 'sub_port_id': 21645243, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181874, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 56)}, 'mal_croppe': {'main_port_id': 21645236, 'sub_port_id': 21645244, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181875, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 56)}, 'autre_refus': {'main_port_id': 21645236, 'sub_port_id': 21645245, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181876, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 56)}, 'kraft': {'main_port_id': 21645236, 'sub_port_id': 21645246, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181877, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 56)}, 'papier': {'main_port_id': 21645236, 'sub_port_id': 21645247, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181878, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 56)}, 'Carton_gris': {'main_port_id': 21645236, 'sub_port_id': 21645248, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181879, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21645237 , 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=21645236 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 (21645237) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21645236) result : ((1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,)) 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 21645238 , 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=21645236 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 (21645238) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21645236) result : ((1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,)) 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 21645239 , 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=21645236 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 (21645239) result : ((1346790288,), (1346790356,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21645236) result : ((1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,)) 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 21645240 , 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=21645236 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 (21645240) result : ((1346789027,), (1346789028,), (1346789029,), (1346789633,), (1346789635,), (1346789636,), (1346789735,), (1346789736,), (1346789737,), (1346789738,), (1346790111,), (1346790112,), (1346790115,), (1346790170,), (1346790346,), (1346790347,), (1346790348,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21645236) result : ((1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,)) 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 21645241 , 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=21645236 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 (21645241) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21645236) result : ((1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,)) 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 21645242 , 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=21645236 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 (21645242) result : ((1346789046,), (1346789462,), (1346789463,), (1346789655,), (1346789656,), (1346789657,), (1346789759,), (1346789760,), (1346789761,), (1346789876,), (1346789877,), (1346789878,), (1346789879,), (1346790139,), (1346790182,), (1346790184,), (1346790286,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21645236) result : ((1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,)) 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 21645243 , 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=21645236 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 (21645243) result : ((1346789464,), (1346789465,), (1346789659,), (1346790149,), (1346790153,), (1346790157,), (1346790160,), (1346790161,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21645236) result : ((1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,)) 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 21645244 , 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=21645236 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 (21645244) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21645236) result : ((1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,)) 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 21645245 , 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=21645236 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 (21645245) result : ((1346789038,), (1346789430,), (1346789431,), (1346789432,), (1346789433,), (1346789642,), (1346789643,), (1346789644,), (1346789645,), (1346789646,), (1346789647,), (1346789648,), (1346789746,), (1346789747,), (1346789748,), (1346789749,), (1346789750,), (1346789751,), (1346789752,), (1346789865,), (1346789866,), (1346789867,), (1346789868,), (1346789869,), (1346789870,), (1346789871,), (1346790124,), (1346790125,), (1346790126,), (1346790127,), (1346790128,), (1346790130,), (1346790174,), (1346790176,), (1346790177,), (1346790273,), (1346790274,), (1346790275,), (1346790276,), (1346790277,), (1346790350,), (1346790351,), (1346790352,), (1346790353,), (1346790354,), (1346790363,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21645236) result : ((1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,)) 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 21645246 , 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=21645236 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 (21645246) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21645236) result : ((1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,)) 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 21645247 , 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=21645236 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 (21645247) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21645236) result : ((1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,)) 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 21645248 , 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=21645236 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 (21645248) result : ((1346789438,), (1346789440,), (1346789649,), (1346789650,), (1346789651,), (1346789755,), (1346789756,), (1346789757,), (1346790134,), (1346790135,), (1346790136,), (1346790283,), (1346790285,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21645236) result : ((1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,)) 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`=21645236 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','kraft','Teint_Dans_La_Masse','mal_croppe','cartonnette','papier','flou','Carton_gris','metal','environnement','Carton_brun')) 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`=21645236 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','kraft','Teint_Dans_La_Masse','mal_croppe','cartonnette','papier','flou','Carton_gris','metal','environnement','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21645236, 'sub_port_id': 21645249, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181880, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 59)}, 'environnement': {'main_port_id': 21645236, 'sub_port_id': 21645250, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181881, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 59)}, 'plastique': {'main_port_id': 21645236, 'sub_port_id': 21645251, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181882, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21645236, 'sub_port_id': 21645252, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181883, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 59)}, 'flou': {'main_port_id': 21645236, 'sub_port_id': 21645253, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181884, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 59)}, 'cartonnette': {'main_port_id': 21645236, 'sub_port_id': 21645254, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181885, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 59)}, 'Carton_brun': {'main_port_id': 21645236, 'sub_port_id': 21645255, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181886, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 59)}, 'mal_croppe': {'main_port_id': 21645236, 'sub_port_id': 21645256, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181887, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 59)}, 'autre_refus': {'main_port_id': 21645236, 'sub_port_id': 21645257, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181888, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 59)}, 'kraft': {'main_port_id': 21645236, 'sub_port_id': 21645258, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181889, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 59)}, 'papier': {'main_port_id': 21645236, 'sub_port_id': 21645259, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181890, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 59)}, 'Carton_gris': {'main_port_id': 21645236, 'sub_port_id': 21645260, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14181891, 'last_updated_at': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 13, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 13, 50, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21645249,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21645237 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21645250,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21645238 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21645251,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21645239 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21645252,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21645240 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21645253,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21645241 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21645254,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21645242 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21645255,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21645243 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21645256,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21645244 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21645257,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21645245 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21645258,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21645246 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21645259,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21645247 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21645260,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21645248 lien utilise dans velours : https://www.fotonower.com/velours/21645249,21645250,21645251,21645252,21645253,21645254,21645255,21645256,21645257,21645258,21645259,21645260?tags=metal,environnement,plastique,Teint_Dans_La_Masse,flou,cartonnette,Carton_brun,mal_croppe,autre_refus,kraft,papier,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21645236]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1346790362, 1346790360, 1346790358, 1346790349, 1346790343, 1346790314, 1346790305, 1346790296, 1346790279, 1346790253, 1346790168, 1346790145, 1346790131, 1346790110, 1346790090, 1346790086] map_info['map_portfolio_photo'] : {21645236: [1346790362, 1346790360, 1346790358, 1346790349, 1346790343, 1346790314, 1346790305, 1346790296, 1346790279, 1346790253, 1346790168, 1346790145, 1346790131, 1346790110, 1346790090, 1346790086, 1346790036, 1346790031, 1346789928, 1346789924, 1346789920, 1346789907, 1346789872, 1346789860, 1346789856, 1346789852, 1346789836, 1346789767, 1346789754, 1346789740, 1346789730, 1346789723, 1346789653, 1346789637, 1346789632, 1346789629, 1346789618, 1346789522, 1346789501, 1346789467, 1346789435, 1346789427, 1346789413, 1346789304, 1346789298, 1346789279, 1346789237, 1346789208, 1346789176, 1346789074, 1346789048, 1346789025, 1346789020, 1346788872, 1346788868, 1346788853, 1346788848, 1346788807, 1346788802, 1346788616, 1346788536]} final : False mtd_id 4302 list_pids : [1346790362, 1346790360, 1346790358, 1346790349, 1346790343, 1346790314, 1346790305, 1346790296, 1346790279, 1346790253, 1346790168, 1346790145, 1346790131, 1346790110, 1346790090, 1346790086] Looping around the photos to save general results len do output : 1 /21645236. 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, '2685436') ('4302', '21645236', '1346790362', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790360', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790358', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790349', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790343', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790314', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790305', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790296', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790279', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790253', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790168', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790145', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790131', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790110', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790090', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790086', None, None, None, None, None, '2685436') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21645236', "{'metal': 21645237, 'environnement': 21645238, 'plastique': 21645239, 'Teint_Dans_La_Masse': 21645240, 'flou': 21645241, 'cartonnette': 21645242, 'Carton_brun': 21645243, 'mal_croppe': 21645244, 'autre_refus': 21645245, 'kraft': 21645246, 'papier': 21645247, 'Carton_gris': 21645248}", None, None, None, None, '2685436'), ('4302', '21645236', '1346790362', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790360', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790358', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790349', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790343', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790314', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790305', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790296', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790279', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790253', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790168', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790145', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790131', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790110', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790090', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790086', None, None, None, None, None, '2685436')] time used for this insertion : 0.014950752258300781 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6595606803894043 time spend to save output : 0.01539468765258789 total time spend for step 1 : 1.6749553680419922 step2:final Mon Mar 24 14:00:00 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 (21645236) 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 21645236 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1346788616,1346788536,1346788872,1346788868,1346788853,1346788848,1346788807,1346788802,1346789074,1346789048,1346789025,1346789020,1346789304,1346789298,1346789279,1346789237,1346789208,1346789176,1346789522,1346789501,1346789467,1346789435,1346789427,1346789413,1346789653,1346789637,1346789632,1346789629,1346789618,1346789767,1346789754,1346789740,1346789730,1346789723,1346789872,1346789860,1346789856,1346789852,1346789836,1346789928,1346789924,1346789920,1346789907,1346790036,1346790031,1346790168,1346790145,1346790131,1346790110,1346790090,1346790314,1346790086,1346790305,1346790296,1346790279,1346790253,1346790362,1346790360,1346790358,1346790349,1346790343); 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([21645236]) Inside saveOutput : final : False verbose : True original output for save of step final : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} new output for save of step final : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} [1346790362, 1346790360, 1346790358, 1346790349, 1346790343, 1346790314, 1346790305, 1346790296, 1346790279, 1346790253, 1346790168, 1346790145, 1346790131, 1346790110, 1346790090, 1346790086] map_info['map_portfolio_photo'] : {21645236: [1346790362, 1346790360, 1346790358, 1346790349, 1346790343, 1346790314, 1346790305, 1346790296, 1346790279, 1346790253, 1346790168, 1346790145, 1346790131, 1346790110, 1346790090, 1346790086, 1346790036, 1346790031, 1346789928, 1346789924, 1346789920, 1346789907, 1346789872, 1346789860, 1346789856, 1346789852, 1346789836, 1346789767, 1346789754, 1346789740, 1346789730, 1346789723, 1346789653, 1346789637, 1346789632, 1346789629, 1346789618, 1346789522, 1346789501, 1346789467, 1346789435, 1346789427, 1346789413, 1346789304, 1346789298, 1346789279, 1346789237, 1346789208, 1346789176, 1346789074, 1346789048, 1346789025, 1346789020, 1346788872, 1346788868, 1346788853, 1346788848, 1346788807, 1346788802, 1346788616, 1346788536]} final : False mtd_id 4302 list_pids : [1346790362, 1346790360, 1346790358, 1346790349, 1346790343, 1346790314, 1346790305, 1346790296, 1346790279, 1346790253, 1346790168, 1346790145, 1346790131, 1346790110, 1346790090, 1346790086] Looping around the photos to save general results len do output : 16 /1346790362.Didn't retrieve data . /1346790360.Didn't retrieve data . /1346790358.Didn't retrieve data . /1346790349.Didn't retrieve data . /1346790343.Didn't retrieve data . /1346790314.Didn't retrieve data . /1346790305.Didn't retrieve data . /1346790296.Didn't retrieve data . /1346790279.Didn't retrieve data . /1346790253.Didn't retrieve data . /1346790168.Didn't retrieve data . /1346790145.Didn't retrieve data . /1346790131.Didn't retrieve data . /1346790110.Didn't retrieve data . /1346790090.Didn't retrieve data . /1346790086.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, '2685436') ('4302', '21645236', '1346790362', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790360', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790358', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790349', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790343', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790314', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790305', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790296', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790279', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790253', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790168', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790145', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790131', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790110', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790090', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790086', None, None, None, None, None, '2685436') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21645236', '1346790362', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790360', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790358', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790349', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790343', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790314', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790305', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790296', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790279', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790253', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790168', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790145', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790131', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790110', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790090', '0.07871124208334353', None, None, None, None, '2685436'), ('4302', '21645236', '1346790086', '0.07871124208334353', None, None, None, None, '2685436')] time used for this insertion : 0.014152288436889648 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07847070693969727 time spend to save output : 0.01500701904296875 total time spend for step 2 : 0.09347772598266602 step3:velours_tree Mon Mar 24 14:00:00 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 : {21645236: [{'metal': 21645237, 'environnement': 21645238, 'plastique': 21645239, 'Teint_Dans_La_Masse': 21645240, 'flou': 21645241, 'cartonnette': 21645242, 'Carton_brun': 21645243, 'mal_croppe': 21645244, 'autre_refus': 21645245, 'kraft': 21645246, 'papier': 21645247, 'Carton_gris': 21645248}]} input_args_next_step : {21645236: ()} output_args : {21645236: [{'metal': 21645237, 'environnement': 21645238, 'plastique': 21645239, 'Teint_Dans_La_Masse': 21645240, 'flou': 21645241, 'cartonnette': 21645242, 'Carton_brun': 21645243, 'mal_croppe': 21645244, 'autre_refus': 21645245, 'kraft': 21645246, 'papier': 21645247, 'Carton_gris': 21645248}]} args : 21645236 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': 21645237, 'environnement': 21645238, 'plastique': 21645239, 'Teint_Dans_La_Masse': 21645240, 'flou': 21645241, 'cartonnette': 21645242, 'Carton_brun': 21645243, 'mal_croppe': 21645244, 'autre_refus': 21645245, 'kraft': 21645246, 'papier': 21645247, 'Carton_gris': 21645248},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21645236) 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([21645236]) 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.9323592185974121 time spend to save output : 7.319450378417969e-05 total time spend for step 3 : 0.9324324131011963 step4:send_mail_cod Mon Mar 24 14:00: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 : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} input_args_next_step : {1346790362: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790362 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790360 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790358 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790349 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790343 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790314 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790305 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790296 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790279 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790253 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790168 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790145 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790131 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790110 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790090 depend.output_id : 0 input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ()} output_args : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',)} args : 1346790086 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 : {21645236: [{'metal': 21645237, 'environnement': 21645238, 'plastique': 21645239, 'Teint_Dans_La_Masse': 21645240, 'flou': 21645241, 'cartonnette': 21645242, 'Carton_brun': 21645243, 'mal_croppe': 21645244, 'autre_refus': 21645245, 'kraft': 21645246, 'papier': 21645247, 'Carton_gris': 21645248}]} input_args_next_step : {1346790362: ('0.07871124208334353',), 1346790360: ('0.07871124208334353',), 1346790358: ('0.07871124208334353',), 1346790349: ('0.07871124208334353',), 1346790343: ('0.07871124208334353',), 1346790314: ('0.07871124208334353',), 1346790305: ('0.07871124208334353',), 1346790296: ('0.07871124208334353',), 1346790279: ('0.07871124208334353',), 1346790253: ('0.07871124208334353',), 1346790168: ('0.07871124208334353',), 1346790145: ('0.07871124208334353',), 1346790131: ('0.07871124208334353',), 1346790110: ('0.07871124208334353',), 1346790090: ('0.07871124208334353',), 1346790086: ('0.07871124208334353',), 21645236: ()} output_args : {21645236: [{'metal': 21645237, 'environnement': 21645238, 'plastique': 21645239, 'Teint_Dans_La_Masse': 21645240, 'flou': 21645241, 'cartonnette': 21645242, 'Carton_brun': 21645243, 'mal_croppe': 21645244, 'autre_refus': 21645245, 'kraft': 21645246, 'papier': 21645247, 'Carton_gris': 21645248}]} args : 21645236 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :17, first value : ('0.07871124208334353',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21645236) 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 (1346790362,1346790360,1346790358,1346790349,1346790343,1346790314,1346790305,1346790296,1346790279,1346790253,1346790168,1346790145,1346790131,1346790110,1346790090,1346790086) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1346790086 begin to download photo : 1346790145 begin to download photo : 1346790296 begin to download photo : 1346790349 download finish for photo 1346790145 begin to download photo : 1346790168 download finish for photo 1346790296 begin to download photo : 1346790305 download finish for photo 1346790086 begin to download photo : 1346790090 download finish for photo 1346790349 begin to download photo : 1346790358 download finish for photo 1346790305 begin to download photo : 1346790314 download finish for photo 1346790168 begin to download photo : 1346790253 download finish for photo 1346790090 begin to download photo : 1346790110 download finish for photo 1346790358 begin to download photo : 1346790360 download finish for photo 1346790314 begin to download photo : 1346790343 download finish for photo 1346790253 begin to download photo : 1346790279 download finish for photo 1346790360 begin to download photo : 1346790362 download finish for photo 1346790110 begin to download photo : 1346790131 download finish for photo 1346790343 download finish for photo 1346790279 download finish for photo 1346790362 download finish for photo 1346790131 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette216452371742821202/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P21645236_24-03-2025_14_00_02.pdf 21645237 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=21645237 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216452371742821202 21645239 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=21645239 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346790288: '1742821012_3108980_1346789872_f6188ac53472e1ee2ea119a83b7decf4_rle_crop_3726729641_0.png', 1346790356: '1742821121_1078584_1346790090_738ba3f4381a0e544df0b924ab7ad076_rle_crop_3726731489_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7871278445c55b256064efffba26b2ac_58340480.png change filename to text .imagette216452391742821202/ imagette216452391742821202/1742821121_1078584_1346790090_738ba3f4381a0e544df0b924ab7ad076_rle_crop_3726731489_0.png.png imagette216452391742821202/1742821012_3108980_1346789872_f6188ac53472e1ee2ea119a83b7decf4_rle_crop_3726729641_0.png.png imagette216452411742821202/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/055617e32a471a516f7124f561af8f8e_62121206.png imagette216452391742821202 21645241 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=21645241 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216452411742821202 21645242 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=21645242 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346789761: '1742820762_1074222_1346789413_b3073519dbd6c88934d26edb2e320ff4_rle_crop_3726696223_0.png', 1346790286: '1742821012_3108980_1346789872_f6188ac53472e1ee2ea119a83b7decf4_rle_crop_3726729645_0.png', 1346790184: '1742820993_3108710_1346789907_3b91b840ce7bea522e3f9183360cc90f_rle_crop_3726729525_0.png', 1346790182: '1742820993_3108710_1346789920_d2dab2095cf7b01b33b1afd98c7fdde1_rle_crop_3726729495_0.png', 1346790139: '1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729112_0.png', 1346789879: '1742820771_3103497_1346789208_3289f80d645755a4359b5c4c9e23b021_rle_crop_3726696921_0.png', 1346789878: '1742820771_3103497_1346789237_48109a07f51887e453339f5f77da1bea_rle_crop_3726696890_0.png', 1346789877: '1742820771_3103497_1346789298_fa299d17bd31b0e98bc17813ea44eb23_rle_crop_3726696630_0.png', 1346789876: '1742820771_3103497_1346789522_42f356b74df5552f7f21beb3d38b6f29_rle_crop_3726696594_0.png', 1346789046: '1742820494_3093775_1346788616_86a449e629bf39b5d3a502b400030d96_rle_crop_3726691355_0.png', 1346789760: '1742820762_1074222_1346789427_0668b3db8d62e6c8beb82981686adee9_rle_crop_3726696204_0.png', 1346789759: '1742820762_1074222_1346789427_0668b3db8d62e6c8beb82981686adee9_rle_crop_3726696202_0.png', 1346789657: '1742820634_3099045_1346788802_cc2453c65989f589c93094aa4f372433_rle_crop_3726695093_0.png', 1346789656: '1742820634_3099045_1346788802_cc2453c65989f589c93094aa4f372433_rle_crop_3726695099_0.png', 1346789655: '1742820634_3099045_1346788807_837570d61b14c94ae6831f6a962e6261_rle_crop_3726695074_0.png', 1346789463: '1742820615_3098390_1346789048_3a91e1dc474d006260299c0c6e05237c_rle_crop_3726693946_0.png', 1346789462: '1742820615_3098390_1346789048_3a91e1dc474d006260299c0c6e05237c_rle_crop_3726693947_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7c0173240287a2724b6d9788f432a4ec_60020144.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7c239a841933cb32dc7bcd5688a525e1_50319925.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7af5df4dd7468dc5010fc62b75e96d11_72168619.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/bd2bf17a6d3ca0daad762845ecbeafac_95916039.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/91a1465aa71874fe6230418b2c550fb4_92325367.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b46eddfa9360f54ff8203007b6e3c90a_73502037.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/586fb8f10ac8daa103880c27affbd230_89776574.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/02545b302ccc72e18145b535204eeb8b_64341358.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/260aa76b159415a3829494b3c6cedd9b_31871390.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/feff31c1b4276d68c5329b31d3b03880_73416288.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/43f8d3658e34eea6eafa8fb801ff9904_58666646.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/71e1c8c4f39b21dce581821d37309990_34181515.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e4bcc401659cf25df4f9f54d5a001104_81071529.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f933e7604ffed7345a70fa58d8c1dc6e_74881544.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/01f82a0f03da0d08d387906de417f282_41269895.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/6ab44221f568bc433e80fe5650f18d3a_99503939.png change filename to text .imagette216452421742821202/ imagette216452421742821202/1742820494_3093775_1346788616_86a449e629bf39b5d3a502b400030d96_rle_crop_3726691355_0.png.png imagette216452421742821202/1742820762_1074222_1346789427_0668b3db8d62e6c8beb82981686adee9_rle_crop_3726696204_0.png.png imagette216452421742821202/1742820634_3099045_1346788802_cc2453c65989f589c93094aa4f372433_rle_crop_3726695093_0.png.png imagette216452421742821202/1742820634_3099045_1346788807_837570d61b14c94ae6831f6a962e6261_rle_crop_3726695074_0.png.png imagette216452421742821202/1742820771_3103497_1346789298_fa299d17bd31b0e98bc17813ea44eb23_rle_crop_3726696630_0.png.png imagette216452421742821202/1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729112_0.png.png imagette216452421742821202/1742820634_3099045_1346788802_cc2453c65989f589c93094aa4f372433_rle_crop_3726695099_0.png.png imagette216452421742821202/1742820993_3108710_1346789907_3b91b840ce7bea522e3f9183360cc90f_rle_crop_3726729525_0.png.png imagette216452421742821202/1742820771_3103497_1346789208_3289f80d645755a4359b5c4c9e23b021_rle_crop_3726696921_0.png.png imagette216452421742821202/1742820615_3098390_1346789048_3a91e1dc474d006260299c0c6e05237c_rle_crop_3726693946_0.png.png imagette216452421742821202/1742820993_3108710_1346789920_d2dab2095cf7b01b33b1afd98c7fdde1_rle_crop_3726729495_0.png.png imagette216452421742821202/1742820615_3098390_1346789048_3a91e1dc474d006260299c0c6e05237c_rle_crop_3726693947_0.png.png imagette216452421742821202/1742820771_3103497_1346789522_42f356b74df5552f7f21beb3d38b6f29_rle_crop_3726696594_0.png.png imagette216452421742821202/1742820771_3103497_1346789237_48109a07f51887e453339f5f77da1bea_rle_crop_3726696890_0.png.png imagette216452421742821202/1742820762_1074222_1346789427_0668b3db8d62e6c8beb82981686adee9_rle_crop_3726696202_0.png.png imagette216452421742821202/1742821012_3108980_1346789872_f6188ac53472e1ee2ea119a83b7decf4_rle_crop_3726729645_0.png.png imagette216452421742821202/1742820762_1074222_1346789413_b3073519dbd6c88934d26edb2e320ff4_rle_crop_3726696223_0.png.png imagette216452441742821203/ wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9a2a688adb02a99ba4b322c76d13730f_31807815.png imagette216452421742821202 21645244 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=21645244 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216452441742821203 21645245 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=21645245 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346790273: '1742821012_3108980_1346789872_f6188ac53472e1ee2ea119a83b7decf4_rle_crop_3726729651_0.png', 1346789870: '1742820771_3103497_1346789208_3289f80d645755a4359b5c4c9e23b021_rle_crop_3726696922_0.png', 1346789871: '1742820771_3103497_1346789176_871669228025e9d368be4bb54be67100_rle_crop_3726697228_0.png', 1346790124: '1742821003_1075851_1346789860_c0593504c009f00a9c1a7683be2afc3c_rle_crop_3726729086_0.png', 1346790125: '1742821003_1075851_1346789856_c302bffa8372b846e211b6faa5567d5e_rle_crop_3726729102_0.png', 1346790126: '1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729122_0.png', 1346790127: '1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729116_0.png', 1346790128: '1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729124_0.png', 1346790130: '1742821003_1075851_1346789836_be3af1c55fac95b5003e9eee67db3993_rle_crop_3726729185_0.png', 1346790174: '1742820993_3108710_1346789924_88b3206cf6f3e35d5efc4527acd73287_rle_crop_3726729434_0.png', 1346790176: '1742820993_3108710_1346789920_d2dab2095cf7b01b33b1afd98c7fdde1_rle_crop_3726729498_0.png', 1346790177: '1742820993_3108710_1346789907_3b91b840ce7bea522e3f9183360cc90f_rle_crop_3726729531_0.png', 1346789869: '1742820771_3103497_1346789208_3289f80d645755a4359b5c4c9e23b021_rle_crop_3726696928_0.png', 1346790274: '1742821012_3108980_1346789754_095d81fb31420487facf67aad3c22296_rle_crop_3726729657_0.png', 1346790275: '1742821012_3108980_1346789740_227325d429610609d8cd964604666a72_rle_crop_3726729668_0.png', 1346790276: '1742821012_3108980_1346789740_227325d429610609d8cd964604666a72_rle_crop_3726729671_0.png', 1346790277: '1742821012_3108980_1346789723_8d7106aebf3738cc5d7f1977050644ba_rle_crop_3726729699_0.png', 1346790350: '1742821121_1078584_1346790145_5ba67280359fe4750bf648df8d1a02ac_rle_crop_3726731452_0.png', 1346790351: '1742821121_1078584_1346790131_77b33fc3415c1d78ea8d12cde7b76332_rle_crop_3726731474_0.png', 1346790352: '1742821121_1078584_1346790110_5dbf576d37bf7a28952977221cb33dea_rle_crop_3726731484_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ef1abe1facd936a16b78c69e60b5eb6b_65927841.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9f25b3a399d0a310a21b5e79532c915e_1539939.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b1eabb7ad0f7e695a9f1dafe288d8421_81063577.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5dc05ce3481b4ad76f2ac712e92e67aa_99747330.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b364b483ed932f6850e51473752d7f0c_50859806.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/110074c71b958941b2bb63a60fe4673b_78360678.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e4e06a41515a032ccebfb7e740a1e0f4_60707547.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f98bdadd6a1b91fd5ae718ecf766e95d_12580012.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/96f79365422d623ee082fd08b9051b97_90785305.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1e9b3bccd9465b4e06309ffa242271ed_82848778.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a248c552da32999980ced1523480d3f8_98720554.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/29245cc7e3eeeab52150207ab361ff01_71671441.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/164545b81c68974123065d3011c2226f_90697278.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5e8ef644d2264196377541d8bb7b265b_21338970.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4a5beb5917641a33c1226c0252573f26_56705676.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8db5364d4b4882bcf7d2ff79c4da18ac_33173811.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/465aad6b32ad32988c28bbf6217bc8dc_99310908.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c429415ce7b138285bf1cc6d8ba71235_68787227.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/0e3f70eb44495b18bb4d67722eb97199_65239745.png change filename to text .imagette216452451742821203/ imagette216452451742821203/1742821121_1078584_1346790131_77b33fc3415c1d78ea8d12cde7b76332_rle_crop_3726731474_0.png.png imagette216452451742821203/1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729122_0.png.png imagette216452451742821203/1742821003_1075851_1346789836_be3af1c55fac95b5003e9eee67db3993_rle_crop_3726729185_0.png.png imagette216452451742821203/1742820771_3103497_1346789176_871669228025e9d368be4bb54be67100_rle_crop_3726697228_0.png.png imagette216452451742821203/1742821012_3108980_1346789740_227325d429610609d8cd964604666a72_rle_crop_3726729668_0.png.png imagette216452451742821203/1742820993_3108710_1346789920_d2dab2095cf7b01b33b1afd98c7fdde1_rle_crop_3726729498_0.png.png imagette216452451742821203/1742821012_3108980_1346789754_095d81fb31420487facf67aad3c22296_rle_crop_3726729657_0.png.png imagette216452451742821203/1742820993_3108710_1346789907_3b91b840ce7bea522e3f9183360cc90f_rle_crop_3726729531_0.png.png imagette216452451742821203/1742821121_1078584_1346790110_5dbf576d37bf7a28952977221cb33dea_rle_crop_3726731484_0.png.png imagette216452451742821203/1742820771_3103497_1346789208_3289f80d645755a4359b5c4c9e23b021_rle_crop_3726696928_0.png.png imagette216452451742821203/1742821012_3108980_1346789740_227325d429610609d8cd964604666a72_rle_crop_3726729671_0.png.png imagette216452451742821203/1742821003_1075851_1346789856_c302bffa8372b846e211b6faa5567d5e_rle_crop_3726729102_0.png.png imagette216452451742821203/1742821012_3108980_1346789723_8d7106aebf3738cc5d7f1977050644ba_rle_crop_3726729699_0.png.png imagette216452451742821203/1742821003_1075851_1346789860_c0593504c009f00a9c1a7683be2afc3c_rle_crop_3726729086_0.png.png imagette216452451742821203/1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729116_0.png.png imagette216452451742821203/1742821121_1078584_1346790145_5ba67280359fe4750bf648df8d1a02ac_rle_crop_3726731452_0.png.png imagette216452451742821203/1742820771_3103497_1346789208_3289f80d645755a4359b5c4c9e23b021_rle_crop_3726696922_0.png.png imagette216452451742821203/1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729124_0.png.png imagette216452451742821203/1742820993_3108710_1346789924_88b3206cf6f3e35d5efc4527acd73287_rle_crop_3726729434_0.png.png imagette216452451742821203/1742821012_3108980_1346789872_f6188ac53472e1ee2ea119a83b7decf4_rle_crop_3726729651_0.png.png imagette216452461742821204/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/dd590bbfd9842c937a2742a2cfb73e17_13266706.png imagette216452451742821203 21645246 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=21645246 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216452461742821204 21645240 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=21645240 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346789737: '1742820762_1074222_1346789467_1f7c121e0c2ae09a40a7575505d1dea0_rle_crop_3726696155_0.png', 1346790348: '1742821121_1078584_1346790086_2db69ccd16695b962bb4c626f38eb676_rle_crop_3726731507_0.png', 1346790347: '1742821121_1078584_1346790110_5dbf576d37bf7a28952977221cb33dea_rle_crop_3726731483_0.png', 1346790346: '1742821121_1078584_1346790131_77b33fc3415c1d78ea8d12cde7b76332_rle_crop_3726731471_0.png', 1346790170: '1742820993_3108710_1346789924_88b3206cf6f3e35d5efc4527acd73287_rle_crop_3726729435_0.png', 1346790115: '1742821003_1075851_1346789836_be3af1c55fac95b5003e9eee67db3993_rle_crop_3726729184_0.png', 1346790112: '1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729118_0.png', 1346790111: '1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729127_0.png', 1346789738: '1742820762_1074222_1346789413_b3073519dbd6c88934d26edb2e320ff4_rle_crop_3726696224_0.png', 1346789027: '1742820494_3093775_1346788536_85e5d23cba9e0c4f1bd775a84b24e932_rle_crop_3726691919_0.png', 1346789736: '1742820762_1074222_1346789501_6cad1d19db67c834615e9c8514f77125_rle_crop_3726696130_0.png', 1346789735: '1742820762_1074222_1346789501_6cad1d19db67c834615e9c8514f77125_rle_crop_3726696127_0.png', 1346789636: '1742820634_3099045_1346788807_837570d61b14c94ae6831f6a962e6261_rle_crop_3726695078_0.png', 1346789635: '1742820634_3099045_1346788807_837570d61b14c94ae6831f6a962e6261_rle_crop_3726695066_0.png', 1346789633: '1742820634_3099045_1346788868_7d65c17459ed63e36b0fb5a33aedb162_rle_crop_3726694977_0.png', 1346789029: '1742820494_3093775_1346788536_85e5d23cba9e0c4f1bd775a84b24e932_rle_crop_3726691920_0.png', 1346789028: '1742820494_3093775_1346788536_85e5d23cba9e0c4f1bd775a84b24e932_rle_crop_3726691914_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5407bd312323b020ea3b62e8b5c33800_41466297.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/111a258aa039617d6353634939fa09be_4589301.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b8a75a17f2c91534c0775af841e6e05a_54670809.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/80735d3ca2f3939921fd2c9cfa20db27_60818838.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/eefbf4af21d55e6a668cb97d174fdeba_26337034.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ecec3a7e320c73b6568e5fe3fb7e6262_75790968.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/25bd0011fc69e0afa92db898df990110_10019789.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e9ebdb440a69230ab16e959a2765f0fb_1943928.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1915b34f81cf9c85637668e48896094f_92575857.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1dfc3759accdbdcfb6f092b831286f27_27423318.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9e193df1c6254ff2b2886f0da8b207ce_72032687.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c894b4cb9cb531f6558124a17cd5556d_41688950.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/593ba07143b65dc910a674d48a11ce3d_79799429.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/db8c03d0e82460b0d797d2b9baee4256_92399911.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/039ca2bea73d077a211c732429a30bac_55855540.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/957879751b9dc3133eae9fc0f3b983d1_85738114.png change filename to text .imagette216452401742821204/ imagette216452401742821204/1742820494_3093775_1346788536_85e5d23cba9e0c4f1bd775a84b24e932_rle_crop_3726691920_0.png.png imagette216452401742821204/1742820494_3093775_1346788536_85e5d23cba9e0c4f1bd775a84b24e932_rle_crop_3726691914_0.png.png imagette216452401742821204/1742821121_1078584_1346790131_77b33fc3415c1d78ea8d12cde7b76332_rle_crop_3726731471_0.png.png imagette216452401742821204/1742820634_3099045_1346788868_7d65c17459ed63e36b0fb5a33aedb162_rle_crop_3726694977_0.png.png imagette216452401742821204/1742821121_1078584_1346790086_2db69ccd16695b962bb4c626f38eb676_rle_crop_3726731507_0.png.png imagette216452401742821204/1742821003_1075851_1346789836_be3af1c55fac95b5003e9eee67db3993_rle_crop_3726729184_0.png.png imagette216452401742821204/1742820762_1074222_1346789467_1f7c121e0c2ae09a40a7575505d1dea0_rle_crop_3726696155_0.png.png imagette216452401742821204/1742820762_1074222_1346789501_6cad1d19db67c834615e9c8514f77125_rle_crop_3726696127_0.png.png imagette216452401742821204/1742820634_3099045_1346788807_837570d61b14c94ae6831f6a962e6261_rle_crop_3726695066_0.png.png imagette216452401742821204/1742820762_1074222_1346789501_6cad1d19db67c834615e9c8514f77125_rle_crop_3726696130_0.png.png imagette216452401742821204/1742820634_3099045_1346788807_837570d61b14c94ae6831f6a962e6261_rle_crop_3726695078_0.png.png imagette216452401742821204/1742820762_1074222_1346789413_b3073519dbd6c88934d26edb2e320ff4_rle_crop_3726696224_0.png.png imagette216452401742821204/1742821121_1078584_1346790110_5dbf576d37bf7a28952977221cb33dea_rle_crop_3726731483_0.png.png imagette216452401742821204/1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729118_0.png.png imagette216452401742821204/1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729127_0.png.png imagette216452401742821204/1742820993_3108710_1346789924_88b3206cf6f3e35d5efc4527acd73287_rle_crop_3726729435_0.png.png imagette216452401742821204/1742820494_3093775_1346788536_85e5d23cba9e0c4f1bd775a84b24e932_rle_crop_3726691919_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b67427f592167e5f936101a9ce884ed1_51057079.png imagette216452401742821204 21645243 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=21645243 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346789464: '1742820615_3098390_1346789048_3a91e1dc474d006260299c0c6e05237c_rle_crop_3726693950_0.png', 1346789465: '1742820615_3098390_1346789025_fb562aaa05063d5050023a22e5282fc3_rle_crop_3726693980_0.png', 1346789659: '1742820634_3099045_1346789074_42e77c773ec1cbe2d12242b5520af9d8_rle_crop_3726694934_0.png', 1346790149: '1742821003_1075851_1346789860_c0593504c009f00a9c1a7683be2afc3c_rle_crop_3726729087_0.png', 1346790153: '1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729117_0.png', 1346790157: '1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729120_0.png', 1346790160: '1742821003_1075851_1346789836_be3af1c55fac95b5003e9eee67db3993_rle_crop_3726729179_0.png', 1346790161: '1742821003_1075851_1346789836_be3af1c55fac95b5003e9eee67db3993_rle_crop_3726729182_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1b9d029efc4f27fee0c3e7d62487866d_71475935.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c018ee35549b99f2d4bfbe34b246106f_99064636.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e611c15125c1174c215a5b819cfdd58e_92252931.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/88ac3c4d2c4725449c3c3f2232bb4d4e_28777837.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cc5ded24ffa37baf32970635166a996c_46229794.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cebb6bbd164c98e115b25ac055d38fe7_7416765.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7cadf37df1e46334a0a6c091557f106d_92233694.png change filename to text .imagette216452431742821205/ imagette216452431742821205/1742821003_1075851_1346789836_be3af1c55fac95b5003e9eee67db3993_rle_crop_3726729182_0.png.png imagette216452431742821205/1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729120_0.png.png imagette216452431742821205/1742821003_1075851_1346789860_c0593504c009f00a9c1a7683be2afc3c_rle_crop_3726729087_0.png.png imagette216452431742821205/1742820615_3098390_1346789025_fb562aaa05063d5050023a22e5282fc3_rle_crop_3726693980_0.png.png imagette216452431742821205/1742821003_1075851_1346789836_be3af1c55fac95b5003e9eee67db3993_rle_crop_3726729179_0.png.png imagette216452431742821205/1742820634_3099045_1346789074_42e77c773ec1cbe2d12242b5520af9d8_rle_crop_3726694934_0.png.png imagette216452431742821205/1742820615_3098390_1346789048_3a91e1dc474d006260299c0c6e05237c_rle_crop_3726693950_0.png.png imagette216452431742821205/1742821003_1075851_1346789852_c66c3a6dd9f99e63ec37b14002a2f601_rle_crop_3726729117_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/802994162f0f77883973142d62a8e04a_12031557.png imagette216452431742821205 21645248 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=21645248 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346789438: '1742820615_3098390_1346789025_fb562aaa05063d5050023a22e5282fc3_rle_crop_3726693982_0.png', 1346789440: '1742820615_3098390_1346789025_fb562aaa05063d5050023a22e5282fc3_rle_crop_3726693977_0.png', 1346789649: '1742820634_3099045_1346788853_b82711109e194f4de8f813b1f67303df_rle_crop_3726695002_0.png', 1346789650: '1742820634_3099045_1346788848_889d9a451bf2690c7c39d5292e6f5efa_rle_crop_3726695012_0.png', 1346789651: '1742820634_3099045_1346788802_cc2453c65989f589c93094aa4f372433_rle_crop_3726695092_0.png', 1346789755: '1742820762_1074222_1346789435_f339abaa164b30c5597cbbb08ba2f04e_rle_crop_3726696165_0.png', 1346789756: '1742820762_1074222_1346789413_b3073519dbd6c88934d26edb2e320ff4_rle_crop_3726696217_0.png', 1346789757: '1742820762_1074222_1346789413_b3073519dbd6c88934d26edb2e320ff4_rle_crop_3726696216_0.png', 1346790134: '1742821003_1075851_1346789928_8674d74696f38a2e9faf42a50b1af166_rle_crop_3726729031_0.png', 1346790135: '1742821003_1075851_1346789836_be3af1c55fac95b5003e9eee67db3993_rle_crop_3726729174_0.png', 1346790136: '1742821003_1075851_1346789836_be3af1c55fac95b5003e9eee67db3993_rle_crop_3726729177_0.png', 1346790283: '1742821012_3108980_1346789730_a278768b2d2b4af5ef10398c1e9db4c8_rle_crop_3726729682_0.png', 1346790285: '1742821012_3108980_1346789723_8d7106aebf3738cc5d7f1977050644ba_rle_crop_3726729692_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/31e8607fbefa054fd0367af2859bc766_72171889.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f14e4e4388e7169fb034b5150a2fd2f1_24482769.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c3daa99f87d9e353676275e787c1cb15_53901244.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/92186b19c4c9646b94495f8a6c6a5cd0_80423796.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cfc40aec6562d64ee77e7610630e0b45_24392750.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/21c8b14ca4d73740bdad2355a82c4ccd_8939929.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d71d862af6354439bd6d40a7f5549402_92865471.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/0a2ea0e3a2a574285d722edd8fe3a3dd_79604096.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/43e8a923044317f73dfa52258bbe44fc_38271137.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d4c315f118c42e49b960e7e4d2e47f78_43598307.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5b06d33941bddfbcc6d603cc17b9aa33_6686827.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/369f3abe45e7b58d2e805db0a764f681_86731569.png change filename to text .imagette216452481742821205/ imagette216452481742821205/1742820762_1074222_1346789413_b3073519dbd6c88934d26edb2e320ff4_rle_crop_3726696217_0.png.png imagette216452481742821205/1742820762_1074222_1346789435_f339abaa164b30c5597cbbb08ba2f04e_rle_crop_3726696165_0.png.png imagette216452481742821205/1742821012_3108980_1346789723_8d7106aebf3738cc5d7f1977050644ba_rle_crop_3726729692_0.png.png imagette216452481742821205/1742821003_1075851_1346789836_be3af1c55fac95b5003e9eee67db3993_rle_crop_3726729174_0.png.png imagette216452481742821205/1742820634_3099045_1346788848_889d9a451bf2690c7c39d5292e6f5efa_rle_crop_3726695012_0.png.png imagette216452481742821205/1742820762_1074222_1346789413_b3073519dbd6c88934d26edb2e320ff4_rle_crop_3726696216_0.png.png imagette216452481742821205/1742821003_1075851_1346789928_8674d74696f38a2e9faf42a50b1af166_rle_crop_3726729031_0.png.png imagette216452481742821205/1742820615_3098390_1346789025_fb562aaa05063d5050023a22e5282fc3_rle_crop_3726693977_0.png.png imagette216452481742821205/1742821012_3108980_1346789730_a278768b2d2b4af5ef10398c1e9db4c8_rle_crop_3726729682_0.png.png imagette216452481742821205/1742820634_3099045_1346788853_b82711109e194f4de8f813b1f67303df_rle_crop_3726695002_0.png.png imagette216452481742821205/1742820634_3099045_1346788802_cc2453c65989f589c93094aa4f372433_rle_crop_3726695092_0.png.png imagette216452481742821205/1742821003_1075851_1346789836_be3af1c55fac95b5003e9eee67db3993_rle_crop_3726729177_0.png.png imagette216452481742821205/1742820615_3098390_1346789025_fb562aaa05063d5050023a22e5282fc3_rle_crop_3726693982_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1176181b1dd0b3466794ed16c953df90_45487221.png imagette216452481742821205 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21645236 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21645249,21645250,21645251,21645252,21645253,21645254,21645255,21645256,21645257,21645258,21645259,21645260?tags=metal,environnement,plastique,Teint_Dans_La_Masse,flou,cartonnette,Carton_brun,mal_croppe,autre_refus,kraft,papier,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1346790362] : ('0.07871124208334353',) no score found for photo 1346790362 We are sending mail with results at report@fotonower.com args[1346790360] : ('0.07871124208334353',) no score found for photo 1346790360 We are sending mail with results at report@fotonower.com args[1346790358] : ('0.07871124208334353',) no score found for photo 1346790358 We are sending mail with results at report@fotonower.com args[1346790349] : ('0.07871124208334353',) no score found for photo 1346790349 We are sending mail with results at report@fotonower.com args[1346790343] : ('0.07871124208334353',) no score found for photo 1346790343 We are sending mail with results at report@fotonower.com args[1346790314] : ('0.07871124208334353',) no score found for photo 1346790314 We are sending mail with results at report@fotonower.com args[1346790305] : ('0.07871124208334353',) no score found for photo 1346790305 We are sending mail with results at report@fotonower.com args[1346790296] : ('0.07871124208334353',) no score found for photo 1346790296 We are sending mail with results at report@fotonower.com args[1346790279] : ('0.07871124208334353',) no score found for photo 1346790279 We are sending mail with results at report@fotonower.com args[1346790253] : ('0.07871124208334353',) no score found for photo 1346790253 We are sending mail with results at report@fotonower.com args[1346790168] : ('0.07871124208334353',) no score found for photo 1346790168 We are sending mail with results at report@fotonower.com args[1346790145] : ('0.07871124208334353',) no score found for photo 1346790145 We are sending mail with results at report@fotonower.com args[1346790131] : ('0.07871124208334353',) no score found for photo 1346790131 We are sending mail with results at report@fotonower.com args[1346790110] : ('0.07871124208334353',) no score found for photo 1346790110 We are sending mail with results at report@fotonower.com args[1346790090] : ('0.07871124208334353',) no score found for photo 1346790090 We are sending mail with results at report@fotonower.com args[1346790086] : ('0.07871124208334353',) no score found for photo 1346790086 We are sending mail with results at report@fotonower.com refus_total : 0.07871124208334353 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=21645236 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_P21645236_24-03-2025_14_00_02.pdf results_Auto_P21645236_24-03-2025_14_00_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21645236_24-03-2025_14_00_02.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','21645236','results_Auto_P21645236_24-03-2025_14_00_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21645236_24-03-2025_14_00_02.pdf','pdf','','0.36','0.07871124208334353') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21645236]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1346790362, 1346790360, 1346790358, 1346790349, 1346790343, 1346790314, 1346790305, 1346790296, 1346790279, 1346790253, 1346790168, 1346790145, 1346790131, 1346790110, 1346790090, 1346790086] map_info['map_portfolio_photo'] : {21645236: [1346790362, 1346790360, 1346790358, 1346790349, 1346790343, 1346790314, 1346790305, 1346790296, 1346790279, 1346790253, 1346790168, 1346790145, 1346790131, 1346790110, 1346790090, 1346790086, 1346790036, 1346790031, 1346789928, 1346789924, 1346789920, 1346789907, 1346789872, 1346789860, 1346789856, 1346789852, 1346789836, 1346789767, 1346789754, 1346789740, 1346789730, 1346789723, 1346789653, 1346789637, 1346789632, 1346789629, 1346789618, 1346789522, 1346789501, 1346789467, 1346789435, 1346789427, 1346789413, 1346789304, 1346789298, 1346789279, 1346789237, 1346789208, 1346789176, 1346789074, 1346789048, 1346789025, 1346789020, 1346788872, 1346788868, 1346788853, 1346788848, 1346788807, 1346788802, 1346788616, 1346788536]} final : False mtd_id 4302 list_pids : [1346790362, 1346790360, 1346790358, 1346790349, 1346790343, 1346790314, 1346790305, 1346790296, 1346790279, 1346790253, 1346790168, 1346790145, 1346790131, 1346790110, 1346790090, 1346790086] 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, '2685436') ('4302', '21645236', '1346790362', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790360', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790358', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790349', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790343', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790314', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790305', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790296', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790279', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790253', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790168', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790145', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790131', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790110', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790090', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790086', None, None, None, None, None, '2685436') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21645236', '1346790362', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790360', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790358', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790349', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790343', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790314', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790305', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790296', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790279', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790253', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790168', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790145', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790131', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790110', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790090', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790086', None, None, None, None, None, '2685436')] time used for this insertion : 0.014516830444335938 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.270442247390747 time spend to save output : 0.014863967895507812 total time spend for step 4 : 6.285306215286255 step5:split_time_score Mon Mar 24 14:00:07 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21645236'] 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 : [('21645236',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21645236) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1346790296: {'path': 'temp/1742821201_313004_1346790296_d1ec1fcd0e785f47a0af002796619651.jpg', 'extension': 'jpg'}, 1346790305: {'path': 'temp/1742821201_313004_1346790305_e22e03895f13b3dfcedcca900cb2e3e7.jpg', 'extension': 'jpg'}, 1346790314: {'path': 'temp/1742821201_313004_1346790314_abe3a20b2d6966396dcdef5783b05a06.jpg', 'extension': 'jpg'}, 1346790343: {'path': 'temp/1742821201_313004_1346790343_6ab0f7a6d6404250103d0e0d3d38cc06.jpg', 'extension': 'jpg'}, 1346790145: {'path': 'temp/1742821201_313004_1346790145_5ba67280359fe4750bf648df8d1a02ac.jpg', 'extension': 'jpg'}, 1346790168: {'path': 'temp/1742821201_313004_1346790168_bae8379f94e0b53933d354e664ff2b4a.jpg', 'extension': 'jpg'}, 1346790253: {'path': 'temp/1742821201_313004_1346790253_8cb4ef34cf43ff5460a4fdd324ecd773.jpg', 'extension': 'jpg'}, 1346790279: {'path': 'temp/1742821201_313004_1346790279_523153730dc5024be491dcb08a3c944c.jpg', 'extension': 'jpg'}, 1346790349: {'path': 'temp/1742821201_313004_1346790349_d37dc156916f98e6f5577daf992543ee.jpg', 'extension': 'jpg'}, 1346790358: {'path': 'temp/1742821201_313004_1346790358_8c17e0e35fadc5efcf329864c564c3e1.jpg', 'extension': 'jpg'}, 1346790360: {'path': 'temp/1742821201_313004_1346790360_97325d5854550c7e8fd21af5aebbdf83.jpg', 'extension': 'jpg'}, 1346790362: {'path': 'temp/1742821201_313004_1346790362_aae5bcbaf695e34c390f2be07d5e9468.jpg', 'extension': 'jpg'}, 1346790086: {'path': 'temp/1742821201_313004_1346790086_2db69ccd16695b962bb4c626f38eb676.jpg', 'extension': 'jpg'}, 1346790090: {'path': 'temp/1742821201_313004_1346790090_738ba3f4381a0e544df0b924ab7ad076.jpg', 'extension': 'jpg'}, 1346790110: {'path': 'temp/1742821201_313004_1346790110_5dbf576d37bf7a28952977221cb33dea.jpg', 'extension': 'jpg'}, 1346790131: {'path': 'temp/1742821201_313004_1346790131_77b33fc3415c1d78ea8d12cde7b76332.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 = 21645236; (('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 = 21645236 group by h (('13', 61),) 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=21645236 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 (21645236) 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 (21645236) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24032025 21645236 Nombre de photos uploadées : 61 / 23040 (0%) 24032025 21645236 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 24032025 21645236 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1346788616, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/86a449e629bf39b5d3a502b400030d96.jpg', 'username': None, 'uploaded_at': 1742820429, 'text': 'image_24032025_13_45_24_10133.jpg'}, {'photo_id': 1346788536, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/85e5d23cba9e0c4f1bd775a84b24e932.jpg', 'username': None, 'uploaded_at': 1742820429, 'text': 'image_24032025_13_45_34_10137.jpg'}, {'photo_id': 1346788872, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3090840b025c871f7b7e60a0c65481f3.jpg', 'username': None, 'uploaded_at': 1742820489, 'text': 'image_24032025_13_45_54_9128.jpg'}, {'photo_id': 1346788868, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7d65c17459ed63e36b0fb5a33aedb162.jpg', 'username': None, 'uploaded_at': 1742820489, 'text': 'image_24032025_13_46_04_010158m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0020422935485839844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21645236, '2025-03-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1682789,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02476811408996582 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= 1682789 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1682789, 'dashboard_run_id': 1691506, 'mtr_portfolio_id': 21644902, 'dashboard_result_id': 9577200, '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_P21644902_24-03-2025_13_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21644903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21644904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21644905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21644906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21644907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21644908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21644909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21644910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21644911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21644912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21644913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21644914, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1691506, 'mtr_portfolio_id': 21645236, 'dashboard_result_id': 9577201, '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_P21645236_24-03-2025_13_57_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21645237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21645238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21645239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21645240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21645241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21645242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21645243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21645244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21645245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21645246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21645247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21645248, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21644902 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': 2685414, 'mtr_portfolio_id': 21644902, 'created_at': datetime.datetime(2025, 3, 24, 13, 49), 'result': '0.06508243107025931', 'result_long': None, 'result_double': None}] Qualite : 0.06508243107025931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21644902 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21644902_24-03-2025_13_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21644902 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_P21644902_24-03-2025_13_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21644903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21644904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21644905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21644906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21644907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21644908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21644909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21644910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21644911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21644912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21644913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21644914, 'pht': 3726}}" where mtr_portfolio_id = 21644902 and dashboard_run_id = 1691506 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`=21644902 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9577200, 0.06508243107025931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21644902_24-03-2025_13_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21644903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21644904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21644905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21644906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21644907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21644908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21644909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21644910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21644911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21644912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21644913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21644914, '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 = 21645236 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': 2685436, 'mtr_portfolio_id': 21645236, 'created_at': datetime.datetime(2025, 3, 24, 14, 0), 'result': '0.07871124208334353', 'result_long': None, 'result_double': None}] Qualite : 0.07871124208334353 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21645236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21645236_24-03-2025_14_00_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21645236 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_P21645236_24-03-2025_14_00_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21645237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21645238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21645239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21645240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21645241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21645242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21645243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21645244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21645245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21645246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21645247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21645248, 'pht': 3726}}" where mtr_portfolio_id = 21645236 and dashboard_run_id = 1691506 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`=21645236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9577201, 0.07871124208334353, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21645236_24-03-2025_14_00_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21645237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21645238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21645239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21645240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21645241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21645242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21645243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21645244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21645245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21645246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21645247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21645248, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21644902,21645236) result : ((1346785731,), (1346785807,), (1346785810,), (1346785855,), (1346786027,), (1346786078,), (1346786180,), (1346786197,), (1346786220,), (1346786252,), (1346786885,), (1346786971,), (1346787060,), (1346787091,), (1346787093,), (1346787097,), (1346787152,), (1346787153,), (1346787559,), (1346787611,), (1346787661,), (1346787742,), (1346787793,), (1346788052,), (1346788055,), (1346788060,), (1346788066,), (1346788127,), (1346788156,), (1346788166,), (1346788203,), (1346788210,), (1346788239,), (1346788330,), (1346788333,), (1346788623,), (1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24032025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21645236]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1346790362, 1346790360, 1346790358, 1346790349, 1346790343, 1346790314, 1346790305, 1346790296, 1346790279, 1346790253, 1346790168, 1346790145, 1346790131, 1346790110, 1346790090, 1346790086] map_info['map_portfolio_photo'] : {21645236: [1346790362, 1346790360, 1346790358, 1346790349, 1346790343, 1346790314, 1346790305, 1346790296, 1346790279, 1346790253, 1346790168, 1346790145, 1346790131, 1346790110, 1346790090, 1346790086, 1346790036, 1346790031, 1346789928, 1346789924, 1346789920, 1346789907, 1346789872, 1346789860, 1346789856, 1346789852, 1346789836, 1346789767, 1346789754, 1346789740, 1346789730, 1346789723, 1346789653, 1346789637, 1346789632, 1346789629, 1346789618, 1346789522, 1346789501, 1346789467, 1346789435, 1346789427, 1346789413, 1346789304, 1346789298, 1346789279, 1346789237, 1346789208, 1346789176, 1346789074, 1346789048, 1346789025, 1346789020, 1346788872, 1346788868, 1346788853, 1346788848, 1346788807, 1346788802, 1346788616, 1346788536]} final : True mtd_id 4302 list_pids : [1346790362, 1346790360, 1346790358, 1346790349, 1346790343, 1346790314, 1346790305, 1346790296, 1346790279, 1346790253, 1346790168, 1346790145, 1346790131, 1346790110, 1346790090, 1346790086] Looping around the photos to save general results len do output : 1 /21645236Didn'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, '2685436') ('4302', '21645236', '1346790362', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790360', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790358', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790349', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790343', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790314', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790305', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790296', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790279', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790253', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790168', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790145', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790131', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790110', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790090', None, None, None, None, None, '2685436') ('4302', None, None, None, None, None, None, None, '2685436') ('4302', '21645236', '1346790086', None, None, None, None, None, '2685436') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21645236', 'None', None, None, None, None, '2685436'), ('4302', '21645236', '1346790362', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790360', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790358', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790349', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790343', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790314', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790305', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790296', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790279', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790253', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790168', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790145', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790131', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790110', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790090', None, None, None, None, None, '2685436'), ('4302', '21645236', '1346790086', None, None, None, None, None, '2685436')] time used for this insertion : 0.013366460800170898 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2394402027130127 time spend to save output : 0.013692855834960938 total time spend for step 5 : 0.25313305854797363 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 (2685436) 2.69user 1.81system 0:13.35elapsed 33%CPU (0avgtext+0avgdata 161284maxresident)k 93168inputs+19208outputs (416major+76668minor)pagefaults 0swaps