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 : 3612754 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 (2737505) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2737505) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22204432 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2737505'] with mtr_portfolio_ids : ['22204432'] and first list_photo_ids : [] new path : /proc/3612754/ Name: python3 Umask: 0002 State: R (running) Tgid: 3612754 Ngid: 0 Pid: 3612754 PPid: 3612753 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3612754 NSpid: 3612754 NSpgid: 3608823 NSsid: 3608823 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97864 kB VmRSS: 97864 kB RssAnon: 59776 kB RssFile: 38088 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 64 nonvoluntary_ctxt_switches: 177 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3612754', 'Ngid': '0', 'Pid': '3612754', 'PPid': '3612753', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3612754', 'NSpid': '3612754', 'NSpgid': '3608823', 'NSsid': '3608823', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97864 kB', 'VmRSS': '97864 kB', 'RssAnon': '59776 kB', 'RssFile': '38088 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '64', 'nonvoluntary_ctxt_switches': '177'} ('datou_batch_current', '3612754', '1106932', '0', '1106932', '865680', '97864', b'', 'marlene', '2737505') 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 (22204432) 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 (2737505 ) ) 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 (22204432) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351190274, 'portfolio_id': 22204432}, {'photo_id': 1351190250, 'portfolio_id': 22204432}, {'photo_id': 1351190201, 'portfolio_id': 22204432}, {'photo_id': 1351190173, 'portfolio_id': 22204432}, {'photo_id': 1351189785, 'portfolio_id': 22204432}, {'photo_id': 1351189757, 'portfolio_id': 22204432}, {'photo_id': 1351189729, 'portfolio_id': 22204432}, {'photo_id': 1351189705, 'portfolio_id': 22204432}, {'photo_id': 1351189675, 'portfolio_id': 22204432}, {'photo_id': 1351189647, 'portfolio_id': 22204432}, {'photo_id': 1351189281, 'portfolio_id': 22204432}, {'photo_id': 1351189251, 'portfolio_id': 22204432}, {'photo_id': 1351189222, 'portfolio_id': 22204432}, {'photo_id': 1351189195, 'portfolio_id': 22204432}, {'photo_id': 1351189170, 'portfolio_id': 22204432}, {'photo_id': 1351188697, 'portfolio_id': 22204432}, {'photo_id': 1351188638, 'portfolio_id': 22204432}, {'photo_id': 1351188557, 'portfolio_id': 22204432}, {'photo_id': 1351188483, 'portfolio_id': 22204432}, {'photo_id': 1351188382, 'portfolio_id': 22204432}, {'photo_id': 1351188318, 'portfolio_id': 22204432}, {'photo_id': 1351187902, 'portfolio_id': 22204432}, {'photo_id': 1351187856, 'portfolio_id': 22204432}, {'photo_id': 1351187828, 'portfolio_id': 22204432}, {'photo_id': 1351187795, 'portfolio_id': 22204432}, {'photo_id': 1351187591, 'portfolio_id': 22204432}, {'photo_id': 1351187561, 'portfolio_id': 22204432}, {'photo_id': 1351187529, 'portfolio_id': 22204432}, {'photo_id': 1351187478, 'portfolio_id': 22204432}, {'photo_id': 1351187433, 'portfolio_id': 22204432}, {'photo_id': 1351187404, 'portfolio_id': 22204432}, {'photo_id': 1351187240, 'portfolio_id': 22204432}, {'photo_id': 1351187216, 'portfolio_id': 22204432}, {'photo_id': 1351187186, 'portfolio_id': 22204432}, {'photo_id': 1351187118, 'portfolio_id': 22204432}, {'photo_id': 1351187047, 'portfolio_id': 22204432}, {'photo_id': 1351186660, 'portfolio_id': 22204432}, {'photo_id': 1351186625, 'portfolio_id': 22204432}, {'photo_id': 1351186598, 'portfolio_id': 22204432}, {'photo_id': 1351186569, 'portfolio_id': 22204432}, {'photo_id': 1351186530, 'portfolio_id': 22204432}, {'photo_id': 1351186524, 'portfolio_id': 22204432}, {'photo_id': 1351186159, 'portfolio_id': 22204432}, {'photo_id': 1351186115, 'portfolio_id': 22204432}, {'photo_id': 1351186082, 'portfolio_id': 22204432}, {'photo_id': 1351186047, 'portfolio_id': 22204432}, {'photo_id': 1351186007, 'portfolio_id': 22204432}, {'photo_id': 1351185227, 'portfolio_id': 22204432}, {'photo_id': 1351185142, 'portfolio_id': 22204432}, {'photo_id': 1351185075, 'portfolio_id': 22204432}, {'photo_id': 1351184995, 'portfolio_id': 22204432}, {'photo_id': 1351184933, 'portfolio_id': 22204432}, {'photo_id': 1351184246, 'portfolio_id': 22204432}, {'photo_id': 1351184125, 'portfolio_id': 22204432}, {'photo_id': 1351184077, 'portfolio_id': 22204432}, {'photo_id': 1351184017, 'portfolio_id': 22204432}, {'photo_id': 1351183943, 'portfolio_id': 22204432}, {'photo_id': 1351183867, 'portfolio_id': 22204432}, {'photo_id': 1351182609, 'portfolio_id': 22204432}, {'photo_id': 1351182372, 'portfolio_id': 22204432}, {'photo_id': 1351182256, 'portfolio_id': 22204432}, {'photo_id': 1351181670, 'portfolio_id': 22204432}, {'photo_id': 1351181616, 'portfolio_id': 22204432}, {'photo_id': 1351181583, 'portfolio_id': 22204432}, {'photo_id': 1351181537, 'portfolio_id': 22204432}, {'photo_id': 1351181493, 'portfolio_id': 22204432}, {'photo_id': 1351181474, 'portfolio_id': 22204432}, {'photo_id': 1351180965, 'portfolio_id': 22204432}, {'photo_id': 1351180908, 'portfolio_id': 22204432}, {'photo_id': 1351180853, 'portfolio_id': 22204432}, {'photo_id': 1351180777, 'portfolio_id': 22204432}, {'photo_id': 1351180699, 'portfolio_id': 22204432}, {'photo_id': 1351179402, 'portfolio_id': 22204432}, {'photo_id': 1351179324, 'portfolio_id': 22204432}, {'photo_id': 1351179246, 'portfolio_id': 22204432}] map_portfolio_id_photo_id: {22204432: [1351190274, 1351190250, 1351190201, 1351190173, 1351189785, 1351189757, 1351189729, 1351189705, 1351189675, 1351189647, 1351189281, 1351189251, 1351189222, 1351189195, 1351189170, 1351188697, 1351188638, 1351188557, 1351188483, 1351188382, 1351188318, 1351187902, 1351187856, 1351187828, 1351187795, 1351187591, 1351187561, 1351187529, 1351187478, 1351187433, 1351187404, 1351187240, 1351187216, 1351187186, 1351187118, 1351187047, 1351186660, 1351186625, 1351186598, 1351186569, 1351186530, 1351186524, 1351186159, 1351186115, 1351186082, 1351186047, 1351186007, 1351185227, 1351185142, 1351185075, 1351184995, 1351184933, 1351184246, 1351184125, 1351184077, 1351184017, 1351183943, 1351183867, 1351182609, 1351182372, 1351182256, 1351181670, 1351181616, 1351181583, 1351181537, 1351181493, 1351181474, 1351180965, 1351180908, 1351180853, 1351180777, 1351180699, 1351179402, 1351179324, 1351179246]} ##### 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.016448259353637695 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 18 16:16: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 (22204432) 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 : 22204432 get user id for portfolio 22204432 get sub ptf for main ptf 22204432, type 3726 and hashtags ['cartonnette', 'plastique', 'mal_croppe', 'Carton_brun', 'metal', 'flou', 'environnement', 'Carton_gris', 'Teint_Dans_La_Masse', 'autre_refus', 'kraft', 'papier'] 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`=22204432 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','mal_croppe','Carton_brun','metal','flou','environnement','Carton_gris','Teint_Dans_La_Masse','autre_refus','kraft','papier')) 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`=22204432 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','mal_croppe','Carton_brun','metal','flou','environnement','Carton_gris','Teint_Dans_La_Masse','autre_refus','kraft','papier')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22204432, 'sub_port_id': 22204455, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678137, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 4, 59)}, 'flou': {'main_port_id': 22204432, 'sub_port_id': 22204456, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678138, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 4, 59)}, 'Carton_gris': {'main_port_id': 22204432, 'sub_port_id': 22204457, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678139, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 4, 59)}, 'mal_croppe': {'main_port_id': 22204432, 'sub_port_id': 22204458, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678140, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 4, 59)}, 'kraft': {'main_port_id': 22204432, 'sub_port_id': 22204459, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678141, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 4, 59)}, 'autre_refus': {'main_port_id': 22204432, 'sub_port_id': 22204460, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678142, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 4, 59)}, 'cartonnette': {'main_port_id': 22204432, 'sub_port_id': 22204461, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678143, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 4, 59)}, 'metal': {'main_port_id': 22204432, 'sub_port_id': 22204462, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678144, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22204432, 'sub_port_id': 22204463, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678145, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 4, 59)}, 'plastique': {'main_port_id': 22204432, 'sub_port_id': 22204464, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678146, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 4, 59)}, 'papier': {'main_port_id': 22204432, 'sub_port_id': 22204465, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678147, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 4, 59)}, 'Carton_brun': {'main_port_id': 22204432, 'sub_port_id': 22204466, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678148, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22204455 , 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=22204432 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 (22204455) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22204432) result : ((1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,)) 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 22204456 , 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=22204432 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 (22204456) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22204432) result : ((1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,)) 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 22204457 , 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=22204432 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 (22204457) result : ((1351185878,), (1351185880,), (1351185882,), (1351185883,), (1351186451,), (1351186452,), (1351186655,), (1351187438,), (1351187440,), (1351187442,), (1351187667,), (1351188302,), (1351188356,), (1351188361,), (1351188909,), (1351188910,), (1351189541,), (1351189542,), (1351190472,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22204432) result : ((1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,)) 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 22204458 , 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=22204432 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 (22204458) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22204432) result : ((1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,)) 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 22204459 , 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=22204432 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 (22204459) result : ((1351188399,), (1351188931,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22204432) result : ((1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,)) 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 22204460 , 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=22204432 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 (22204460) result : ((1351186647,), (1351186980,), (1351187350,), (1351187663,), (1351188268,), (1351188270,), (1351188895,), (1351190466,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22204432) result : ((1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,)) 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 22204461 , 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=22204432 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 (22204461) result : ((1351185160,), (1351186453,), (1351186454,), (1351187357,), (1351187453,), (1351187455,), (1351187668,), (1351187669,), (1351187670,), (1351188321,), (1351188375,), (1351189555,), (1351189557,), (1351190482,), (1351190483,), (1351190484,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22204432) result : ((1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,)) 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 22204462 , 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=22204432 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 (22204462) result : ((1351187681,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22204432) result : ((1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,)) 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 22204463 , 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=22204432 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 (22204463) result : ((1351185137,), (1351186447,), (1351186448,), (1351186449,), (1351186450,), (1351186636,), (1351186638,), (1351186640,), (1351186977,), (1351187346,), (1351187424,), (1351187426,), (1351187428,), (1351187659,), (1351187661,), (1351188247,), (1351188248,), (1351188249,), (1351189525,), (1351189526,), (1351189527,), (1351189528,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22204432) result : ((1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,)) 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 22204464 , 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=22204432 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 (22204464) result : ((1351185199,), (1351185942,), (1351186458,), (1351186459,), (1351186692,), (1351186695,), (1351186698,), (1351186701,), (1351186704,), (1351187488,), (1351188374,), (1351188376,), (1351188378,), (1351188474,), (1351188920,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22204432) result : ((1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,)) 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 22204465 , 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=22204432 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 (22204465) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22204432) result : ((1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,)) 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 22204466 , 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=22204432 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 (22204466) result : ((1351185178,), (1351185920,), (1351185921,), (1351185924,), (1351185925,), (1351185926,), (1351185927,), (1351186456,), (1351186457,), (1351186670,), (1351187364,), (1351187468,), (1351187470,), (1351187472,), (1351187474,), (1351187476,), (1351187672,), (1351187673,), (1351187674,), (1351187675,), (1351187676,), (1351188352,), (1351188353,), (1351188354,), (1351188357,), (1351188358,), (1351188445,), (1351188449,), (1351189575,), (1351189577,), (1351189578,), (1351189579,), (1351189580,), (1351189581,), (1351189685,), (1351189687,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22204432) result : ((1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,)) 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`=22204432 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','mal_croppe','Carton_brun','metal','flou','environnement','Carton_gris','Teint_Dans_La_Masse','autre_refus','kraft','papier')) 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`=22204432 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','mal_croppe','Carton_brun','metal','flou','environnement','Carton_gris','Teint_Dans_La_Masse','autre_refus','kraft','papier')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22204432, 'sub_port_id': 22204468, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678149, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 5, 1)}, 'flou': {'main_port_id': 22204432, 'sub_port_id': 22204469, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678150, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 5, 1)}, 'Carton_gris': {'main_port_id': 22204432, 'sub_port_id': 22204470, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678151, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 5, 1)}, 'mal_croppe': {'main_port_id': 22204432, 'sub_port_id': 22204471, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678152, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 5, 1)}, 'kraft': {'main_port_id': 22204432, 'sub_port_id': 22204472, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678153, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 5, 1)}, 'autre_refus': {'main_port_id': 22204432, 'sub_port_id': 22204473, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678154, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 5, 1)}, 'cartonnette': {'main_port_id': 22204432, 'sub_port_id': 22204474, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678155, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 5, 1)}, 'metal': {'main_port_id': 22204432, 'sub_port_id': 22204475, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678156, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 5, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22204432, 'sub_port_id': 22204476, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678157, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 5, 1)}, 'plastique': {'main_port_id': 22204432, 'sub_port_id': 22204477, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678158, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 5, 1)}, 'papier': {'main_port_id': 22204432, 'sub_port_id': 22204478, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678159, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 5, 1)}, 'Carton_brun': {'main_port_id': 22204432, 'sub_port_id': 22204479, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14678160, 'last_updated_at': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 16, 15, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 16, 5, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22204468,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22204455 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22204469,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22204456 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22204470,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22204457 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22204471,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22204458 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22204472,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22204459 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22204473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22204460 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22204474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22204461 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22204475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22204462 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22204476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22204463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22204477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22204464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22204478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22204465 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22204479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22204466 lien utilise dans velours : https://www.fotonower.com/velours/22204468,22204469,22204470,22204471,22204472,22204473,22204474,22204475,22204476,22204477,22204478,22204479?tags=environnement,flou,Carton_gris,mal_croppe,kraft,autre_refus,cartonnette,metal,Teint_Dans_La_Masse,plastique,papier,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22204432]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351190274, 1351190250, 1351190201, 1351190173, 1351189785, 1351189757, 1351189729, 1351189705, 1351189675, 1351189647] map_info['map_portfolio_photo'] : {22204432: [1351190274, 1351190250, 1351190201, 1351190173, 1351189785, 1351189757, 1351189729, 1351189705, 1351189675, 1351189647, 1351189281, 1351189251, 1351189222, 1351189195, 1351189170, 1351188697, 1351188638, 1351188557, 1351188483, 1351188382, 1351188318, 1351187902, 1351187856, 1351187828, 1351187795, 1351187591, 1351187561, 1351187529, 1351187478, 1351187433, 1351187404, 1351187240, 1351187216, 1351187186, 1351187118, 1351187047, 1351186660, 1351186625, 1351186598, 1351186569, 1351186530, 1351186524, 1351186159, 1351186115, 1351186082, 1351186047, 1351186007, 1351185227, 1351185142, 1351185075, 1351184995, 1351184933, 1351184246, 1351184125, 1351184077, 1351184017, 1351183943, 1351183867, 1351182609, 1351182372, 1351182256, 1351181670, 1351181616, 1351181583, 1351181537, 1351181493, 1351181474, 1351180965, 1351180908, 1351180853, 1351180777, 1351180699, 1351179402, 1351179324, 1351179246]} final : False mtd_id 4302 list_pids : [1351190274, 1351190250, 1351190201, 1351190173, 1351189785, 1351189757, 1351189729, 1351189705, 1351189675, 1351189647] Looping around the photos to save general results len do output : 1 /22204432. 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, '2737505') ('4302', '22204432', '1351190274', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351190250', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351190201', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351190173', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189785', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189757', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189729', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189705', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189675', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189647', None, None, None, None, None, '2737505') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22204432', "{'environnement': 22204455, 'flou': 22204456, 'Carton_gris': 22204457, 'mal_croppe': 22204458, 'kraft': 22204459, 'autre_refus': 22204460, 'cartonnette': 22204461, 'metal': 22204462, 'Teint_Dans_La_Masse': 22204463, 'plastique': 22204464, 'papier': 22204465, 'Carton_brun': 22204466}", None, None, None, None, '2737505'), ('4302', '22204432', '1351190274', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351190250', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351190201', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351190173', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189785', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189757', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189729', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189705', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189675', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189647', None, None, None, None, None, '2737505')] time used for this insertion : 0.013703107833862305 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4414138793945312 time spend to save output : 0.014087438583374023 total time spend for step 1 : 1.4555013179779053 step2:final Fri Apr 18 16:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22204432) 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 22204432 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351179402,1351179324,1351179246,1351180965,1351180908,1351180853,1351180777,1351180699,1351181670,1351181616,1351181583,1351181537,1351181493,1351181474,1351182609,1351182372,1351182256,1351184246,1351184125,1351184077,1351184017,1351183943,1351183867,1351185227,1351185142,1351185075,1351184995,1351184933,1351186159,1351186115,1351186082,1351186047,1351186007,1351186660,1351186625,1351186598,1351186569,1351186530,1351186524,1351187240,1351187216,1351187186,1351187118,1351187047,1351187591,1351187561,1351187529,1351187478,1351187433,1351187404,1351187902,1351187856,1351187828,1351187795,1351188697,1351188638,1351188557,1351188483,1351188382,1351188318,1351189281,1351189251,1351189222,1351189195,1351189170,1351189785,1351189757,1351189729,1351189705,1351189675,1351189647,1351190274,1351190250,1351190201,1351190173); 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([22204432]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',)} new output for save of step final : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',)} [1351190274, 1351190250, 1351190201, 1351190173, 1351189785, 1351189757, 1351189729, 1351189705, 1351189675, 1351189647] map_info['map_portfolio_photo'] : {22204432: [1351190274, 1351190250, 1351190201, 1351190173, 1351189785, 1351189757, 1351189729, 1351189705, 1351189675, 1351189647, 1351189281, 1351189251, 1351189222, 1351189195, 1351189170, 1351188697, 1351188638, 1351188557, 1351188483, 1351188382, 1351188318, 1351187902, 1351187856, 1351187828, 1351187795, 1351187591, 1351187561, 1351187529, 1351187478, 1351187433, 1351187404, 1351187240, 1351187216, 1351187186, 1351187118, 1351187047, 1351186660, 1351186625, 1351186598, 1351186569, 1351186530, 1351186524, 1351186159, 1351186115, 1351186082, 1351186047, 1351186007, 1351185227, 1351185142, 1351185075, 1351184995, 1351184933, 1351184246, 1351184125, 1351184077, 1351184017, 1351183943, 1351183867, 1351182609, 1351182372, 1351182256, 1351181670, 1351181616, 1351181583, 1351181537, 1351181493, 1351181474, 1351180965, 1351180908, 1351180853, 1351180777, 1351180699, 1351179402, 1351179324, 1351179246]} final : False mtd_id 4302 list_pids : [1351190274, 1351190250, 1351190201, 1351190173, 1351189785, 1351189757, 1351189729, 1351189705, 1351189675, 1351189647] Looping around the photos to save general results len do output : 10 /1351190274.Didn't retrieve data . /1351190250.Didn't retrieve data . /1351190201.Didn't retrieve data . /1351190173.Didn't retrieve data . /1351189785.Didn't retrieve data . /1351189757.Didn't retrieve data . /1351189729.Didn't retrieve data . /1351189705.Didn't retrieve data . /1351189675.Didn't retrieve data . /1351189647.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, '2737505') ('4302', '22204432', '1351190274', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351190250', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351190201', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351190173', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189785', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189757', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189729', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189705', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189675', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189647', None, None, None, None, None, '2737505') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '22204432', '1351190274', '0.0740222560825603', None, None, None, None, '2737505'), ('4302', '22204432', '1351190250', '0.0740222560825603', None, None, None, None, '2737505'), ('4302', '22204432', '1351190201', '0.0740222560825603', None, None, None, None, '2737505'), ('4302', '22204432', '1351190173', '0.0740222560825603', None, None, None, None, '2737505'), ('4302', '22204432', '1351189785', '0.0740222560825603', None, None, None, None, '2737505'), ('4302', '22204432', '1351189757', '0.0740222560825603', None, None, None, None, '2737505'), ('4302', '22204432', '1351189729', '0.0740222560825603', None, None, None, None, '2737505'), ('4302', '22204432', '1351189705', '0.0740222560825603', None, None, None, None, '2737505'), ('4302', '22204432', '1351189675', '0.0740222560825603', None, None, None, None, '2737505'), ('4302', '22204432', '1351189647', '0.0740222560825603', None, None, None, None, '2737505')] time used for this insertion : 0.016207456588745117 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07634615898132324 time spend to save output : 0.017034292221069336 total time spend for step 2 : 0.09338045120239258 step3:velours_tree Fri Apr 18 16:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22204432: [{'environnement': 22204455, 'flou': 22204456, 'Carton_gris': 22204457, 'mal_croppe': 22204458, 'kraft': 22204459, 'autre_refus': 22204460, 'cartonnette': 22204461, 'metal': 22204462, 'Teint_Dans_La_Masse': 22204463, 'plastique': 22204464, 'papier': 22204465, 'Carton_brun': 22204466}]} input_args_next_step : {22204432: ()} output_args : {22204432: [{'environnement': 22204455, 'flou': 22204456, 'Carton_gris': 22204457, 'mal_croppe': 22204458, 'kraft': 22204459, 'autre_refus': 22204460, 'cartonnette': 22204461, 'metal': 22204462, 'Teint_Dans_La_Masse': 22204463, 'plastique': 22204464, 'papier': 22204465, 'Carton_brun': 22204466}]} args : 22204432 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 : ({'environnement': 22204455, 'flou': 22204456, 'Carton_gris': 22204457, 'mal_croppe': 22204458, 'kraft': 22204459, 'autre_refus': 22204460, 'cartonnette': 22204461, 'metal': 22204462, 'Teint_Dans_La_Masse': 22204463, 'plastique': 22204464, 'papier': 22204465, 'Carton_brun': 22204466},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22204432) 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([22204432]) 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.43773627281188965 time spend to save output : 0.00011610984802246094 total time spend for step 3 : 0.4378523826599121 step4:send_mail_cod Fri Apr 18 16:17: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 ! complete output_args for input 2 : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',)} input_args_next_step : {1351190274: ()} output_args : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',)} args : 1351190274 depend.output_id : 0 input_args_next_step : {1351190274: ('0.0740222560825603',), 1351190250: ()} output_args : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',)} args : 1351190250 depend.output_id : 0 input_args_next_step : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ()} output_args : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',)} args : 1351190201 depend.output_id : 0 input_args_next_step : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ()} output_args : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',)} args : 1351190173 depend.output_id : 0 input_args_next_step : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ()} output_args : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',)} args : 1351189785 depend.output_id : 0 input_args_next_step : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ()} output_args : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',)} args : 1351189757 depend.output_id : 0 input_args_next_step : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ()} output_args : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',)} args : 1351189729 depend.output_id : 0 input_args_next_step : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ()} output_args : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',)} args : 1351189705 depend.output_id : 0 input_args_next_step : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ()} output_args : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',)} args : 1351189675 depend.output_id : 0 input_args_next_step : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ()} output_args : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',)} args : 1351189647 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 : {22204432: [{'environnement': 22204455, 'flou': 22204456, 'Carton_gris': 22204457, 'mal_croppe': 22204458, 'kraft': 22204459, 'autre_refus': 22204460, 'cartonnette': 22204461, 'metal': 22204462, 'Teint_Dans_La_Masse': 22204463, 'plastique': 22204464, 'papier': 22204465, 'Carton_brun': 22204466}]} input_args_next_step : {1351190274: ('0.0740222560825603',), 1351190250: ('0.0740222560825603',), 1351190201: ('0.0740222560825603',), 1351190173: ('0.0740222560825603',), 1351189785: ('0.0740222560825603',), 1351189757: ('0.0740222560825603',), 1351189729: ('0.0740222560825603',), 1351189705: ('0.0740222560825603',), 1351189675: ('0.0740222560825603',), 1351189647: ('0.0740222560825603',), 22204432: ()} output_args : {22204432: [{'environnement': 22204455, 'flou': 22204456, 'Carton_gris': 22204457, 'mal_croppe': 22204458, 'kraft': 22204459, 'autre_refus': 22204460, 'cartonnette': 22204461, 'metal': 22204462, 'Teint_Dans_La_Masse': 22204463, 'plastique': 22204464, 'papier': 22204465, 'Carton_brun': 22204466}]} args : 22204432 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 :11, first value : ('0.0740222560825603',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22204432) 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 (1351190274,1351190250,1351190201,1351190173,1351189785,1351189757,1351189729,1351189705,1351189675,1351189647) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351189647 begin to download photo : 1351189729 begin to download photo : 1351190173 begin to download photo : 1351190274 download finish for photo 1351190173 begin to download photo : 1351190201 download finish for photo 1351189729 begin to download photo : 1351189757 download finish for photo 1351189647 begin to download photo : 1351189675 download finish for photo 1351190274 download finish for photo 1351190201 begin to download photo : 1351190250 download finish for photo 1351189757 begin to download photo : 1351189785 download finish for photo 1351189675 begin to download photo : 1351189705 download finish for photo 1351190250 download finish for photo 1351189705 download finish for photo 1351189785 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette222044561744985820/ imagette222044581744985820/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22204432_18-04-2025_16_17_00.pdf 22204456 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=22204456 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222044561744985820 22204458 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=22204458 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222044581744985820 22204459 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=22204459 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351188399: '1744985472_49137_1351186569_1ae793549cdc687f7bf4b48b07b49e7b_rle_crop_3754685726_0.png', 1351188931: '1744985533_49977_1351186660_4a2632c09a08d46d59c80f773bcb7497_rle_crop_3754693153_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/35a630c1db2c539a35152a1225aaa692_90327535.png change filename to text .imagette222044591744985820/ imagette222044591744985820/1744985472_49137_1351186569_1ae793549cdc687f7bf4b48b07b49e7b_rle_crop_3754685726_0.png.png imagette222044591744985820/1744985533_49977_1351186660_4a2632c09a08d46d59c80f773bcb7497_rle_crop_3754693153_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/400267f02eb604b3568117fa492a6ee0_57161909.png imagette222044591744985820 22204460 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=22204460 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351186647: '1744985269_2859850_1351180908_e473b0416205a4e48159491ca1219104_rle_crop_3754680667_0.png', 1351186980: '1744985292_46295_1351179246_a70680aedb3e0e22f80b4ccc7c9d529e_rle_crop_3754680857_0.png', 1351187350: '1744985351_47376_1351186007_40a7dfacbede50dfbdcfa3ccf1ffe8ce_rle_crop_3754681596_0.png', 1351187663: '1744985411_48212_1351179246_a70680aedb3e0e22f80b4ccc7c9d529e_rle_crop_3754680857_0.png', 1351188268: '1744985472_49137_1351187240_876979d8989965692a820cb27add1a23_rle_crop_3754685623_0.png', 1351188270: '1744985472_49137_1351186598_ebf2b2d3d96ae6d6b6d44d83caa5436e_rle_crop_3754685720_0.png', 1351188895: '1744985533_49977_1351186660_4a2632c09a08d46d59c80f773bcb7497_rle_crop_3754693150_0.png', 1351190466: '1744985712_52716_1351189170_a1a8402a46d6e33abd56a3229d97c150_rle_crop_3754701854_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/6b673d6a89f75ddb9cbf839629b192a4_85688203.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f87f95e4358f099dc96c832f8bde1edd_81337107.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3d86643aff99a7ee4ce79d212a1daf6e_73019612.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/d62127907bfbf5a46f0af572354a7e76_1525964.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/aa0836b7ff4e81d501519820a6994318_26920983.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/99df3b8bbb43e0c06e1dbb074dc7f3f1_32351755.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3da40b8f3818c2d4b54cda2f1a418ed4_54104649.png change filename to text .imagette222044601744985820/ imagette222044601744985820/1744985411_48212_1351179246_a70680aedb3e0e22f80b4ccc7c9d529e_rle_crop_3754680857_0.png.png imagette222044601744985820/1744985351_47376_1351186007_40a7dfacbede50dfbdcfa3ccf1ffe8ce_rle_crop_3754681596_0.png.png imagette222044601744985820/1744985472_49137_1351186598_ebf2b2d3d96ae6d6b6d44d83caa5436e_rle_crop_3754685720_0.png.png imagette222044601744985820/1744985292_46295_1351179246_a70680aedb3e0e22f80b4ccc7c9d529e_rle_crop_3754680857_0.png.png imagette222044601744985820/1744985269_2859850_1351180908_e473b0416205a4e48159491ca1219104_rle_crop_3754680667_0.png.png imagette222044601744985820/1744985533_49977_1351186660_4a2632c09a08d46d59c80f773bcb7497_rle_crop_3754693150_0.png.png imagette222044601744985820/1744985472_49137_1351187240_876979d8989965692a820cb27add1a23_rle_crop_3754685623_0.png.png imagette222044601744985820/1744985712_52716_1351189170_a1a8402a46d6e33abd56a3229d97c150_rle_crop_3754701854_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/be80631d046922a623f7afa6a75b305f_76541201.png imagette222044601744985820 22204461 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=22204461 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351185160: '1744985142_2856428_1351182372_0b8592441204e75e9463352aa3160f34_rle_crop_3754671907_0.png', 1351186453: '1744985232_45354_1351184125_eb7f87c443e7693659a072cc46da144c_rle_crop_3754679482_0.png', 1351186454: '1744985232_45354_1351183943_04c0659660b325c3e26293b5920791df_rle_crop_3754679551_0.png', 1351187357: '1744985351_47376_1351186047_b11df8dee9734d4227c5082596eafa23_rle_crop_3754681587_0.png', 1351187453: '1744985382_2863061_1351185075_9707509b255885cee4a1d4b02ecf51a2_rle_crop_3754681794_0.png', 1351187455: '1744985382_2863061_1351184995_7880b4dc96447d25b846e08bc5ba1d19_rle_crop_3754681810_0.png', 1351187668: '1744985411_48212_1351179402_eb88cdc3050bed462a628bfa035b216c_rle_crop_3754680830_0.png', 1351187669: '1744985411_48212_1351179324_ca365ed2c377ed701a56f7fb1ee3169b_rle_crop_3754680845_0.png', 1351187670: '1744985411_48212_1351179246_a70680aedb3e0e22f80b4ccc7c9d529e_rle_crop_3754680862_0.png', 1351188321: '1744985472_49137_1351186524_b6a6e557457cfde9fba5bc7530a65f80_rle_crop_3754691130_0.png', 1351188375: '1744985502_2866362_1351187047_7d49b4d1d2fcce125c83b709597e1dd0_rle_crop_3754691227_0.png', 1351189555: '1744985593_50909_1351187561_3fe1fdb30be8d6d5fc2ddc9045ca5304_rle_crop_3754695996_0.png', 1351189557: '1744985593_50909_1351187478_28921bbf1ac55f45681dcd98e3309367_rle_crop_3754696019_0.png', 1351190482: '1744985712_52716_1351189222_e0d85d90ced11efc0099d0388be3fd9e_rle_crop_3754701837_0.png', 1351190483: '1744985712_52716_1351189195_7f0f49dcbe994e32307c6ab478ead959_rle_crop_3754701846_0.png', 1351190484: '1744985712_52716_1351189170_a1a8402a46d6e33abd56a3229d97c150_rle_crop_3754701853_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/8140bd89d157cac9c287acc44e307bd9_79903137.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ad3a4f09ed61e7b419af798f7d4844f6_6373032.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/8b4ca2627e96d7a3ab66bffbe60fe2d6_13022007.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b8613a750293d80b534ab3171cf15185_65902950.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4495b38918044bc56bbd90e609ba6e75_78515882.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/d1169f607fe76ae4ca0118cae359074a_64477835.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/d88c6b76091276996640b1063432bf9f_80282842.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/999a97e6bf3d5fbccabaf541dafb7b46_34991551.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/73cb83e6e95facfb68bd1b79ae73106e_48911134.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c30f9b82bab6cee21f503075799e7949_96444753.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5e1c33f6ced732d4fc866b2513a6fe48_99832449.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/60a44da3f49a57d1bda3e599474c2a10_65668807.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/079df4dbc1e40df866e474c85de694f2_69705329.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/05010c98dd3003e7559a617061a8dc87_28439814.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/70c1f762ec439762688b3cc63b6464c1_64819702.png change filename to text .imagette222044611744985821/ imagette222044611744985821/1744985472_49137_1351186524_b6a6e557457cfde9fba5bc7530a65f80_rle_crop_3754691130_0.png.png imagette222044611744985821/1744985382_2863061_1351184995_7880b4dc96447d25b846e08bc5ba1d19_rle_crop_3754681810_0.png.png imagette222044611744985821/1744985593_50909_1351187478_28921bbf1ac55f45681dcd98e3309367_rle_crop_3754696019_0.png.png imagette222044611744985821/1744985411_48212_1351179324_ca365ed2c377ed701a56f7fb1ee3169b_rle_crop_3754680845_0.png.png imagette222044611744985821/1744985712_52716_1351189222_e0d85d90ced11efc0099d0388be3fd9e_rle_crop_3754701837_0.png.png imagette222044611744985821/1744985411_48212_1351179246_a70680aedb3e0e22f80b4ccc7c9d529e_rle_crop_3754680862_0.png.png imagette222044611744985821/1744985232_45354_1351184125_eb7f87c443e7693659a072cc46da144c_rle_crop_3754679482_0.png.png imagette222044611744985821/1744985232_45354_1351183943_04c0659660b325c3e26293b5920791df_rle_crop_3754679551_0.png.png imagette222044611744985821/1744985712_52716_1351189170_a1a8402a46d6e33abd56a3229d97c150_rle_crop_3754701853_0.png.png imagette222044611744985821/1744985351_47376_1351186047_b11df8dee9734d4227c5082596eafa23_rle_crop_3754681587_0.png.png imagette222044611744985821/1744985382_2863061_1351185075_9707509b255885cee4a1d4b02ecf51a2_rle_crop_3754681794_0.png.png imagette222044611744985821/1744985712_52716_1351189195_7f0f49dcbe994e32307c6ab478ead959_rle_crop_3754701846_0.png.png imagette222044611744985821/1744985411_48212_1351179402_eb88cdc3050bed462a628bfa035b216c_rle_crop_3754680830_0.png.png imagette222044611744985821/1744985142_2856428_1351182372_0b8592441204e75e9463352aa3160f34_rle_crop_3754671907_0.png.png imagette222044611744985821/1744985502_2866362_1351187047_7d49b4d1d2fcce125c83b709597e1dd0_rle_crop_3754691227_0.png.png imagette222044611744985821/1744985593_50909_1351187561_3fe1fdb30be8d6d5fc2ddc9045ca5304_rle_crop_3754695996_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/da0e2dd6f2b502b2316c63c34c1f64d1_30776267.png imagette222044611744985821 22204462 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=22204462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351187681: '1744985411_48212_1351179324_ca365ed2c377ed701a56f7fb1ee3169b_rle_crop_3754680838_0.png'} change filename to text .imagette222044621744985821/ imagette222044621744985821/1744985411_48212_1351179324_ca365ed2c377ed701a56f7fb1ee3169b_rle_crop_3754680838_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e0c7c6dd701318cdaf583000e16072cf_24212126.png imagette222044621744985821 22204464 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=22204464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351185199: '1744985142_2856428_1351182372_0b8592441204e75e9463352aa3160f34_rle_crop_3754671903_0.png', 1351185942: '1744985174_44466_1351181616_69efc9a922d9ae0ef6fb45928e609ee7_rle_crop_3754675678_0.png', 1351186458: '1744985232_45354_1351184017_f962b761ab4e10c0d39a3dad718a0460_rle_crop_3754679538_0.png', 1351186459: '1744985232_45354_1351183943_04c0659660b325c3e26293b5920791df_rle_crop_3754679550_0.png', 1351186692: '1744985269_2859850_1351181670_1bacbc4c23a38588311a8103b4913475_rle_crop_3754680653_0.png', 1351186695: '1744985269_2859850_1351180908_e473b0416205a4e48159491ca1219104_rle_crop_3754680668_0.png', 1351186698: '1744985269_2859850_1351180908_e473b0416205a4e48159491ca1219104_rle_crop_3754680663_0.png', 1351186701: '1744985269_2859850_1351180853_7b441e212b52e238d826784233552abe_rle_crop_3754680684_0.png', 1351186704: '1744985269_2859850_1351180777_bba8cf9e9fec4dfc7c142a324d32d603_rle_crop_3754680708_0.png', 1351187488: '1744985382_2863061_1351185142_06467e6102a640cc58d3d6f5e011f38c_rle_crop_3754681761_0.png', 1351188374: '1744985472_49137_1351186625_e9c356264113c36f3007384f52e1d28d_rle_crop_3754685703_0.png', 1351188376: '1744985472_49137_1351186598_ebf2b2d3d96ae6d6b6d44d83caa5436e_rle_crop_3754685713_0.png', 1351188378: '1744985472_49137_1351186598_ebf2b2d3d96ae6d6b6d44d83caa5436e_rle_crop_3754685709_0.png', 1351188474: '1744985502_2866362_1351187216_3f4081bf3331fdd810f1c60b3b34ddaa_rle_crop_3754691156_0.png', 1351188920: '1744985533_49977_1351186660_4a2632c09a08d46d59c80f773bcb7497_rle_crop_3754693155_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b0227e74b1050e90fac52e96416efd62_94981911.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/0a9f5cc4178f7c5d4deb0636ea0b5aff_73755425.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5c2b0d0b49f3296d98464cf9181e6799_32740592.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c246836a9e9254c45493fa5faab472ed_13774872.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4e89b08ad1777791bbcd12cd4947dddc_31468029.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5f0f3044a5ef696b0b2df69786710bf7_82011841.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/6fd2529ddcd7899e767064c272a7aa3d_99017371.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b270819c03130d79bc1308cb1ebb752c_94528224.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f054e35ac507405064ecf452eeb2c101_24407912.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b06f5e9ee3b191f1d134af09861dff65_89707460.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/00c911d510dd4a8fb9b8497cdb2d350d_57925251.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a41513dbcf565fd5b393c39e01242de5_32349505.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f174d348be021e0478c3176e91da8928_87186981.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/113d672bed5e218c0f73fb51ea075189_52989813.png change filename to text .imagette222044641744985821/ imagette222044641744985821/1744985472_49137_1351186598_ebf2b2d3d96ae6d6b6d44d83caa5436e_rle_crop_3754685713_0.png.png imagette222044641744985821/1744985269_2859850_1351180777_bba8cf9e9fec4dfc7c142a324d32d603_rle_crop_3754680708_0.png.png imagette222044641744985821/1744985269_2859850_1351180908_e473b0416205a4e48159491ca1219104_rle_crop_3754680668_0.png.png imagette222044641744985821/1744985174_44466_1351181616_69efc9a922d9ae0ef6fb45928e609ee7_rle_crop_3754675678_0.png.png imagette222044641744985821/1744985472_49137_1351186625_e9c356264113c36f3007384f52e1d28d_rle_crop_3754685703_0.png.png imagette222044641744985821/1744985232_45354_1351183943_04c0659660b325c3e26293b5920791df_rle_crop_3754679550_0.png.png imagette222044641744985821/1744985502_2866362_1351187216_3f4081bf3331fdd810f1c60b3b34ddaa_rle_crop_3754691156_0.png.png imagette222044641744985821/1744985472_49137_1351186598_ebf2b2d3d96ae6d6b6d44d83caa5436e_rle_crop_3754685709_0.png.png imagette222044641744985821/1744985269_2859850_1351181670_1bacbc4c23a38588311a8103b4913475_rle_crop_3754680653_0.png.png imagette222044641744985821/1744985269_2859850_1351180908_e473b0416205a4e48159491ca1219104_rle_crop_3754680663_0.png.png imagette222044641744985821/1744985232_45354_1351184017_f962b761ab4e10c0d39a3dad718a0460_rle_crop_3754679538_0.png.png imagette222044641744985821/1744985142_2856428_1351182372_0b8592441204e75e9463352aa3160f34_rle_crop_3754671903_0.png.png imagette222044641744985821/1744985382_2863061_1351185142_06467e6102a640cc58d3d6f5e011f38c_rle_crop_3754681761_0.png.png imagette222044641744985821/1744985533_49977_1351186660_4a2632c09a08d46d59c80f773bcb7497_rle_crop_3754693155_0.png.png imagette222044641744985821/1744985269_2859850_1351180853_7b441e212b52e238d826784233552abe_rle_crop_3754680684_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e92c06b692911ab4e5b327822a9c6a47_48943861.png imagette222044641744985821 22204457 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=22204457 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351187442: '1744985382_2863061_1351184995_7880b4dc96447d25b846e08bc5ba1d19_rle_crop_3754681813_0.png', 1351190472: '1744985712_52716_1351189195_7f0f49dcbe994e32307c6ab478ead959_rle_crop_3754701844_0.png', 1351189542: '1744985593_50909_1351187529_dbc5d3bb4afc80f29a97576c34c353b8_rle_crop_3754696009_0.png', 1351189541: '1744985593_50909_1351187529_dbc5d3bb4afc80f29a97576c34c353b8_rle_crop_3754696008_0.png', 1351188910: '1744985533_49977_1351186660_4a2632c09a08d46d59c80f773bcb7497_rle_crop_3754693147_0.png', 1351188909: '1744985533_49977_1351186660_4a2632c09a08d46d59c80f773bcb7497_rle_crop_3754693151_0.png', 1351188361: '1744985502_2866362_1351187216_3f4081bf3331fdd810f1c60b3b34ddaa_rle_crop_3754691154_0.png', 1351188356: '1744985502_2866362_1351187216_3f4081bf3331fdd810f1c60b3b34ddaa_rle_crop_3754691153_0.png', 1351188302: '1744985472_49137_1351186598_ebf2b2d3d96ae6d6b6d44d83caa5436e_rle_crop_3754685714_0.png', 1351187667: '1744985411_48212_1351179402_eb88cdc3050bed462a628bfa035b216c_rle_crop_3754680827_0.png', 1351185878: '1744985174_44466_1351182609_fe2dae34b64271052bdfec5ddc1abbc8_rle_crop_3754675409_0.png', 1351187440: '1744985382_2863061_1351185075_9707509b255885cee4a1d4b02ecf51a2_rle_crop_3754681790_0.png', 1351187438: '1744985382_2863061_1351185142_06467e6102a640cc58d3d6f5e011f38c_rle_crop_3754681763_0.png', 1351186655: '1744985269_2859850_1351180908_e473b0416205a4e48159491ca1219104_rle_crop_3754680669_0.png', 1351186452: '1744985232_45354_1351184077_da592f4df2eb54984a5f9fa825bc3339_rle_crop_3754679504_0.png', 1351186451: '1744985232_45354_1351184125_eb7f87c443e7693659a072cc46da144c_rle_crop_3754679485_0.png', 1351185883: '1744985174_44466_1351181583_3149399f4dac1714b41087e49574fc14_rle_crop_3754676452_0.png', 1351185882: '1744985174_44466_1351181583_3149399f4dac1714b41087e49574fc14_rle_crop_3754676443_0.png', 1351185880: '1744985174_44466_1351181616_69efc9a922d9ae0ef6fb45928e609ee7_rle_crop_3754675683_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a0fb42019653dea5eccff246d314bc1a_19531153.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/cf2faca6664546274a377506c9aeb273_19043976.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/afdc64aa361016ab4d7ba2ed2233b90f_57190469.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/cc6068cfb23fca062fc0756c8b7d3c63_75914801.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2646d35debbb1e1199eb691e93afcee4_43280492.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/304bf984820a9df2183fc0b77f3f91f8_8619450.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1e9223726f95372d6050e8d7f67bc940_11850301.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/481f64019a3dbc60b5a04348ee850599_92437905.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/649b9e6655b2852191817fc001cfa02d_24808816.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ccdd774810d945832db865614195f9f3_83239320.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/cdd21bcd3915ac443ff7c8fd0d0c9497_22552012.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4c3a7afbfd5fa32924ae490168735363_36174543.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/defa4ad2de56c2699ea4352566dd16b4_56541259.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/28254faedb70d0123d81e0bc9a90a191_98882808.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2d57f1895c1b050700742c4a1a26930b_32361829.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/621f036268d0a0dbf84066ccd45643cf_214350.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/42734895f914ff449f9da001b9e3320e_81287221.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/63734118b217268141dfb81221fa6c5c_147492.png change filename to text .imagette222044571744985822/ imagette222044571744985822/1744985502_2866362_1351187216_3f4081bf3331fdd810f1c60b3b34ddaa_rle_crop_3754691153_0.png.png imagette222044571744985822/1744985382_2863061_1351185075_9707509b255885cee4a1d4b02ecf51a2_rle_crop_3754681790_0.png.png imagette222044571744985822/1744985232_45354_1351184125_eb7f87c443e7693659a072cc46da144c_rle_crop_3754679485_0.png.png imagette222044571744985822/1744985382_2863061_1351185142_06467e6102a640cc58d3d6f5e011f38c_rle_crop_3754681763_0.png.png imagette222044571744985822/1744985382_2863061_1351184995_7880b4dc96447d25b846e08bc5ba1d19_rle_crop_3754681813_0.png.png imagette222044571744985822/1744985174_44466_1351181583_3149399f4dac1714b41087e49574fc14_rle_crop_3754676443_0.png.png imagette222044571744985822/1744985232_45354_1351184077_da592f4df2eb54984a5f9fa825bc3339_rle_crop_3754679504_0.png.png imagette222044571744985822/1744985502_2866362_1351187216_3f4081bf3331fdd810f1c60b3b34ddaa_rle_crop_3754691154_0.png.png imagette222044571744985822/1744985533_49977_1351186660_4a2632c09a08d46d59c80f773bcb7497_rle_crop_3754693147_0.png.png imagette222044571744985822/1744985593_50909_1351187529_dbc5d3bb4afc80f29a97576c34c353b8_rle_crop_3754696008_0.png.png imagette222044571744985822/1744985269_2859850_1351180908_e473b0416205a4e48159491ca1219104_rle_crop_3754680669_0.png.png imagette222044571744985822/1744985533_49977_1351186660_4a2632c09a08d46d59c80f773bcb7497_rle_crop_3754693151_0.png.png imagette222044571744985822/1744985174_44466_1351181616_69efc9a922d9ae0ef6fb45928e609ee7_rle_crop_3754675683_0.png.png imagette222044571744985822/1744985174_44466_1351182609_fe2dae34b64271052bdfec5ddc1abbc8_rle_crop_3754675409_0.png.png imagette222044571744985822/1744985593_50909_1351187529_dbc5d3bb4afc80f29a97576c34c353b8_rle_crop_3754696009_0.png.png imagette222044571744985822/1744985712_52716_1351189195_7f0f49dcbe994e32307c6ab478ead959_rle_crop_3754701844_0.png.png imagette222044571744985822/1744985411_48212_1351179402_eb88cdc3050bed462a628bfa035b216c_rle_crop_3754680827_0.png.png imagette222044571744985822/1744985174_44466_1351181583_3149399f4dac1714b41087e49574fc14_rle_crop_3754676452_0.png.png imagette222044571744985822/1744985472_49137_1351186598_ebf2b2d3d96ae6d6b6d44d83caa5436e_rle_crop_3754685714_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/7519d0abaf904bc740f6f18e59a84216_53472219.png imagette222044571744985822 22204463 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=22204463 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351187426: '1744985382_2863061_1351185075_9707509b255885cee4a1d4b02ecf51a2_rle_crop_3754681800_0.png', 1351189528: '1744985593_50909_1351187404_0c98e10b58d7381ae3e4f30c28a840b5_rle_crop_3754696050_0.png', 1351189527: '1744985593_50909_1351187478_28921bbf1ac55f45681dcd98e3309367_rle_crop_3754696026_0.png', 1351189526: '1744985593_50909_1351187529_dbc5d3bb4afc80f29a97576c34c353b8_rle_crop_3754696015_0.png', 1351189525: '1744985593_50909_1351187561_3fe1fdb30be8d6d5fc2ddc9045ca5304_rle_crop_3754696001_0.png', 1351188249: '1744985472_49137_1351186524_b6a6e557457cfde9fba5bc7530a65f80_rle_crop_3754691134_0.png', 1351188248: '1744985472_49137_1351186530_ff13cabe9fc5c67f2179daf0c84af51a_rle_crop_3754691055_0.png', 1351188247: '1744985472_49137_1351186625_e9c356264113c36f3007384f52e1d28d_rle_crop_3754685702_0.png', 1351187661: '1744985411_48212_1351179246_a70680aedb3e0e22f80b4ccc7c9d529e_bib_crop_3754680858_0.jpg', 1351187659: '1744985411_48212_1351179246_a70680aedb3e0e22f80b4ccc7c9d529e_rle_crop_3754682579_0.png', 1351187428: '1744985382_2863061_1351184933_41456b2b1e3196491fc4d1dfe46edea9_rle_crop_3754681842_0.png', 1351185137: '1744985142_2856428_1351182372_0b8592441204e75e9463352aa3160f34_rle_crop_3754671914_0.png', 1351187424: '1744985382_2863061_1351185142_06467e6102a640cc58d3d6f5e011f38c_rle_crop_3754681765_0.png', 1351187346: '1744985351_47376_1351186047_b11df8dee9734d4227c5082596eafa23_rle_crop_3754681588_0.png', 1351186977: '1744985292_46295_1351179246_a70680aedb3e0e22f80b4ccc7c9d529e_rle_crop_3754680858_0.png', 1351186640: '1744985269_2859850_1351180853_7b441e212b52e238d826784233552abe_rle_crop_3754680692_0.png', 1351186638: '1744985269_2859850_1351180908_e473b0416205a4e48159491ca1219104_rle_crop_3754680670_0.png', 1351186636: '1744985269_2859850_1351181670_1bacbc4c23a38588311a8103b4913475_rle_crop_3754680654_0.png', 1351186450: '1744985232_45354_1351183943_04c0659660b325c3e26293b5920791df_rle_crop_3754679549_0.png', 1351186449: '1744985232_45354_1351184077_da592f4df2eb54984a5f9fa825bc3339_rle_crop_3754679513_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f9892c1071b13f1e019772b7111695c3_33464569.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1b12f0a79aa6b855e3b06d4358c4ff7f_49928685.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/072cf4935e6498eee5d5ddef8b2c880e_38874693.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3d4be11fd09b8f2ea7ec46b70c60f725_89175164.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1ad094b2a780b84a860f9c5ef9e00cf5_6515845.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/339854c2bc68c845589e23548b7ac8c6_3863107.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/6bc2a4c3012b65ec097080ea7289cc96_80794998.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1868cdd0723b2c63245b0b771dacd7e2_83005482.png change filename to text .wget -O 9.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/25160ce70a777f310c01c12b75ab728c_24748483.jpg change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/95753622530d2fe4a45fd2a525424ac2_93314128.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e224b6a2ba4a2266b449201630985c71_59614.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3a4f0bdab0b6143fe07dbe1e17833e0c_86648176.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/11a1862a019ddc6ff48db8cb7f6fdbee_13116145.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/75c4b90195c9f1014e92a80dd53a1b06_97429271.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/7f74d64403c6e9dd4890a007b8ab376b_87695084.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5805303e0eb4501f7ec12dcc759b12d6_41208576.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9c98943f163e1bf7f1aa9b1a7fb16607_33428463.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/6cf87a6270316751e24f27cd7de3e823_29578388.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a23768886e09d9c355b034ec8cf2c80b_3355375.png change filename to text .imagette222044631744985823/ imagette222044631744985823/1744985292_46295_1351179246_a70680aedb3e0e22f80b4ccc7c9d529e_rle_crop_3754680858_0.png.png imagette222044631744985823/1744985472_49137_1351186530_ff13cabe9fc5c67f2179daf0c84af51a_rle_crop_3754691055_0.png.png imagette222044631744985823/1744985593_50909_1351187478_28921bbf1ac55f45681dcd98e3309367_rle_crop_3754696026_0.png.png imagette222044631744985823/1744985593_50909_1351187404_0c98e10b58d7381ae3e4f30c28a840b5_rle_crop_3754696050_0.png.png imagette222044631744985823/1744985269_2859850_1351180853_7b441e212b52e238d826784233552abe_rle_crop_3754680692_0.png.png imagette222044631744985823/1744985232_45354_1351184077_da592f4df2eb54984a5f9fa825bc3339_rle_crop_3754679513_0.png.png imagette222044631744985823/1744985472_49137_1351186625_e9c356264113c36f3007384f52e1d28d_rle_crop_3754685702_0.png.png imagette222044631744985823/1744985382_2863061_1351185142_06467e6102a640cc58d3d6f5e011f38c_rle_crop_3754681765_0.png.png imagette222044631744985823/1744985232_45354_1351183943_04c0659660b325c3e26293b5920791df_rle_crop_3754679549_0.png.png imagette222044631744985823/1744985593_50909_1351187561_3fe1fdb30be8d6d5fc2ddc9045ca5304_rle_crop_3754696001_0.png.png imagette222044631744985823/1744985382_2863061_1351185075_9707509b255885cee4a1d4b02ecf51a2_rle_crop_3754681800_0.png.png imagette222044631744985823/1744985382_2863061_1351184933_41456b2b1e3196491fc4d1dfe46edea9_rle_crop_3754681842_0.png.png imagette222044631744985823/1744985351_47376_1351186047_b11df8dee9734d4227c5082596eafa23_rle_crop_3754681588_0.png.png imagette222044631744985823/1744985269_2859850_1351180908_e473b0416205a4e48159491ca1219104_rle_crop_3754680670_0.png.png imagette222044631744985823/1744985269_2859850_1351181670_1bacbc4c23a38588311a8103b4913475_rle_crop_3754680654_0.png.png imagette222044631744985823/1744985142_2856428_1351182372_0b8592441204e75e9463352aa3160f34_rle_crop_3754671914_0.png.png imagette222044631744985823/1744985472_49137_1351186524_b6a6e557457cfde9fba5bc7530a65f80_rle_crop_3754691134_0.png.png imagette222044631744985823/1744985411_48212_1351179246_a70680aedb3e0e22f80b4ccc7c9d529e_rle_crop_3754682579_0.png.png imagette222044631744985823/1744985593_50909_1351187529_dbc5d3bb4afc80f29a97576c34c353b8_rle_crop_3754696015_0.png.png imagette222044631744985823/1744985411_48212_1351179246_a70680aedb3e0e22f80b4ccc7c9d529e_bib_crop_3754680858_0.jpg.jpg wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4e290e10933211ae67db82c49bd6806c_73246390.png imagette222044631744985823 22204466 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=22204466 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351188449: '1744985502_2866362_1351187047_7d49b4d1d2fcce125c83b709597e1dd0_rle_crop_3754691225_0.png', 1351187675: '1744985411_48212_1351179324_ca365ed2c377ed701a56f7fb1ee3169b_bib_crop_3754680843_0.jpg', 1351187676: '1744985411_48212_1351179324_ca365ed2c377ed701a56f7fb1ee3169b_rle_crop_3754680844_0.png', 1351188352: '1744985472_49137_1351187240_876979d8989965692a820cb27add1a23_rle_crop_3754685630_0.png', 1351188353: '1744985472_49137_1351187240_876979d8989965692a820cb27add1a23_rle_crop_3754685625_0.png', 1351188354: '1744985472_49137_1351187240_876979d8989965692a820cb27add1a23_rle_crop_3754685629_0.png', 1351188357: '1744985472_49137_1351186569_1ae793549cdc687f7bf4b48b07b49e7b_rle_crop_3754685728_0.png', 1351188358: '1744985472_49137_1351186524_b6a6e557457cfde9fba5bc7530a65f80_rle_crop_3754691135_0.png', 1351188445: '1744985502_2866362_1351187216_3f4081bf3331fdd810f1c60b3b34ddaa_rle_crop_3754691159_0.png', 1351187674: '1744985411_48212_1351179324_ca365ed2c377ed701a56f7fb1ee3169b_rle_crop_3754682491_0.png', 1351189575: '1744985593_50909_1351187561_3fe1fdb30be8d6d5fc2ddc9045ca5304_rle_crop_3754696000_0.png', 1351189577: '1744985593_50909_1351187529_dbc5d3bb4afc80f29a97576c34c353b8_rle_crop_3754696011_0.png', 1351189578: '1744985593_50909_1351187478_28921bbf1ac55f45681dcd98e3309367_rle_crop_3754696025_0.png', 1351189579: '1744985593_50909_1351187478_28921bbf1ac55f45681dcd98e3309367_rle_crop_3754696027_0.png', 1351189580: '1744985593_50909_1351187433_085597602f78ac32633b17a818335109_rle_crop_3754696038_0.png', 1351189581: '1744985593_50909_1351187433_085597602f78ac32633b17a818335109_rle_crop_3754696041_0.png', 1351189685: '1744985627_2869232_1351187828_c4d8c22e2131a7406960b1671439b0a7_rle_crop_3754698411_0.png', 1351189687: '1744985627_2869232_1351187828_c4d8c22e2131a7406960b1671439b0a7_rle_crop_3754698408_0.png', 1351186670: '1744985269_2859850_1351180853_7b441e212b52e238d826784233552abe_rle_crop_3754680687_0.png', 1351185920: '1744985174_44466_1351181616_69efc9a922d9ae0ef6fb45928e609ee7_rle_crop_3754675677_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/99b135481cd9cf9454e31a7c11ee55d6_47033573.png change filename to text .wget -O 2.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c372a1a564d52e89443f5f9e43a1307f_40885155.jpg change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/63316174a98fff09625da832f9abb4c3_76895037.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/606c5c12656ea0ec00595040e565b01d_69078339.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1cacae6bba33f8bf075b366130306966_67781929.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a9532c96da4b9d7145a07299e0b04466_28559043.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/099390c6c636c820ba6e87e4c7677d96_95308997.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/54d375c55878d0c42b8a84819518da7f_65949812.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4828d0abb2f8e3473bcc62e4e730f5f1_91862273.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/8fcd703fa3dd96b36d4d5c7db7f9b946_39444509.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b6220c5ec7a25aebf475b8c7f7e13ea4_60145728.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/8ae3dc9cd13b6406f9815841179305aa_60684421.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/730db77fe9ec06750d6037af9994cf42_20338168.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/deb0b87de8bc592121bb226196cb18f5_85419425.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f01a10e29b7e04a06ddcb441a0f171de_38845001.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/7dfc6a4a3d2626dc04c8dc3bd3a98354_43864725.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/808325df86f0ab4c4d8a63513f1948f6_66952559.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/469f49563da28ef8f7a71acda98a7f5e_27438567.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/119e2e104f1652dbac20f60c2188d35f_76762356.png change filename to text .imagette222044661744985825/ imagette222044661744985825/1744985593_50909_1351187433_085597602f78ac32633b17a818335109_rle_crop_3754696038_0.png.png imagette222044661744985825/1744985593_50909_1351187529_dbc5d3bb4afc80f29a97576c34c353b8_rle_crop_3754696011_0.png.png imagette222044661744985825/1744985627_2869232_1351187828_c4d8c22e2131a7406960b1671439b0a7_rle_crop_3754698411_0.png.png imagette222044661744985825/1744985502_2866362_1351187216_3f4081bf3331fdd810f1c60b3b34ddaa_rle_crop_3754691159_0.png.png imagette222044661744985825/1744985472_49137_1351187240_876979d8989965692a820cb27add1a23_rle_crop_3754685625_0.png.png imagette222044661744985825/1744985411_48212_1351179324_ca365ed2c377ed701a56f7fb1ee3169b_rle_crop_3754682491_0.png.png imagette222044661744985825/1744985593_50909_1351187478_28921bbf1ac55f45681dcd98e3309367_rle_crop_3754696025_0.png.png imagette222044661744985825/1744985593_50909_1351187433_085597602f78ac32633b17a818335109_rle_crop_3754696041_0.png.png imagette222044661744985825/1744985411_48212_1351179324_ca365ed2c377ed701a56f7fb1ee3169b_bib_crop_3754680843_0.jpg.jpg imagette222044661744985825/1744985269_2859850_1351180853_7b441e212b52e238d826784233552abe_rle_crop_3754680687_0.png.png imagette222044661744985825/1744985502_2866362_1351187047_7d49b4d1d2fcce125c83b709597e1dd0_rle_crop_3754691225_0.png.png imagette222044661744985825/1744985593_50909_1351187478_28921bbf1ac55f45681dcd98e3309367_rle_crop_3754696027_0.png.png imagette222044661744985825/1744985472_49137_1351186524_b6a6e557457cfde9fba5bc7530a65f80_rle_crop_3754691135_0.png.png imagette222044661744985825/1744985627_2869232_1351187828_c4d8c22e2131a7406960b1671439b0a7_rle_crop_3754698408_0.png.png imagette222044661744985825/1744985174_44466_1351181616_69efc9a922d9ae0ef6fb45928e609ee7_rle_crop_3754675677_0.png.png imagette222044661744985825/1744985472_49137_1351187240_876979d8989965692a820cb27add1a23_rle_crop_3754685630_0.png.png imagette222044661744985825/1744985593_50909_1351187561_3fe1fdb30be8d6d5fc2ddc9045ca5304_rle_crop_3754696000_0.png.png imagette222044661744985825/1744985472_49137_1351187240_876979d8989965692a820cb27add1a23_rle_crop_3754685629_0.png.png imagette222044661744985825/1744985472_49137_1351186569_1ae793549cdc687f7bf4b48b07b49e7b_rle_crop_3754685728_0.png.png imagette222044661744985825/1744985411_48212_1351179324_ca365ed2c377ed701a56f7fb1ee3169b_rle_crop_3754680844_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e00dff1a3a6eac39c556a98597185880_48140542.png imagette222044661744985825 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22204432 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22204468,22204469,22204470,22204471,22204472,22204473,22204474,22204475,22204476,22204477,22204478,22204479?tags=environnement,flou,Carton_gris,mal_croppe,kraft,autre_refus,cartonnette,metal,Teint_Dans_La_Masse,plastique,papier,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1351190274] : ('0.0740222560825603',) no score found for photo 1351190274 We are sending mail with results at report@fotonower.com args[1351190250] : ('0.0740222560825603',) no score found for photo 1351190250 We are sending mail with results at report@fotonower.com args[1351190201] : ('0.0740222560825603',) no score found for photo 1351190201 We are sending mail with results at report@fotonower.com args[1351190173] : ('0.0740222560825603',) no score found for photo 1351190173 We are sending mail with results at report@fotonower.com args[1351189785] : ('0.0740222560825603',) no score found for photo 1351189785 We are sending mail with results at report@fotonower.com args[1351189757] : ('0.0740222560825603',) no score found for photo 1351189757 We are sending mail with results at report@fotonower.com args[1351189729] : ('0.0740222560825603',) no score found for photo 1351189729 We are sending mail with results at report@fotonower.com args[1351189705] : ('0.0740222560825603',) no score found for photo 1351189705 We are sending mail with results at report@fotonower.com args[1351189675] : ('0.0740222560825603',) no score found for photo 1351189675 We are sending mail with results at report@fotonower.com args[1351189647] : ('0.0740222560825603',) no score found for photo 1351189647 We are sending mail with results at report@fotonower.com refus_total : 0.0740222560825603 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=22204432 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_P22204432_18-04-2025_16_17_00.pdf results_Auto_P22204432_18-04-2025_16_17_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22204432_18-04-2025_16_17_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22204432','results_Auto_P22204432_18-04-2025_16_17_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22204432_18-04-2025_16_17_00.pdf','pdf','','0.42','0.0740222560825603') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22204432]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351190274, 1351190250, 1351190201, 1351190173, 1351189785, 1351189757, 1351189729, 1351189705, 1351189675, 1351189647] map_info['map_portfolio_photo'] : {22204432: [1351190274, 1351190250, 1351190201, 1351190173, 1351189785, 1351189757, 1351189729, 1351189705, 1351189675, 1351189647, 1351189281, 1351189251, 1351189222, 1351189195, 1351189170, 1351188697, 1351188638, 1351188557, 1351188483, 1351188382, 1351188318, 1351187902, 1351187856, 1351187828, 1351187795, 1351187591, 1351187561, 1351187529, 1351187478, 1351187433, 1351187404, 1351187240, 1351187216, 1351187186, 1351187118, 1351187047, 1351186660, 1351186625, 1351186598, 1351186569, 1351186530, 1351186524, 1351186159, 1351186115, 1351186082, 1351186047, 1351186007, 1351185227, 1351185142, 1351185075, 1351184995, 1351184933, 1351184246, 1351184125, 1351184077, 1351184017, 1351183943, 1351183867, 1351182609, 1351182372, 1351182256, 1351181670, 1351181616, 1351181583, 1351181537, 1351181493, 1351181474, 1351180965, 1351180908, 1351180853, 1351180777, 1351180699, 1351179402, 1351179324, 1351179246]} final : False mtd_id 4302 list_pids : [1351190274, 1351190250, 1351190201, 1351190173, 1351189785, 1351189757, 1351189729, 1351189705, 1351189675, 1351189647] 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, '2737505') ('4302', '22204432', '1351190274', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351190250', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351190201', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351190173', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189785', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189757', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189729', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189705', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189675', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189647', None, None, None, None, None, '2737505') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '22204432', '1351190274', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351190250', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351190201', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351190173', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189785', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189757', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189729', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189705', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189675', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189647', None, None, None, None, None, '2737505')] time used for this insertion : 0.020398378372192383 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.4138875007629395 time spend to save output : 0.02067875862121582 total time spend for step 4 : 7.434566259384155 step5:split_time_score Fri Apr 18 16:17: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 : ['22204432'] 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 : [('22204432',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22204432) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351190274: {'path': 'temp/1744985820_3612754_1351190274_4a97297a9cc08fbb90f5ba09b5b8fa45.jpg', 'extension': 'jpg'}, 1351190173: {'path': 'temp/1744985820_3612754_1351190173_ac27f07ee9320fd2014c6cd8d6f8369d.jpg', 'extension': 'jpg'}, 1351190201: {'path': 'temp/1744985820_3612754_1351190201_12848bf75c935e81f359be55f9268683.jpg', 'extension': 'jpg'}, 1351190250: {'path': 'temp/1744985820_3612754_1351190250_4448f6d7d44c145fd5529ece7481a1db.jpg', 'extension': 'jpg'}, 1351189647: {'path': 'temp/1744985820_3612754_1351189647_2d88cbb73e9f903ab3cfae0493faa519.jpg', 'extension': 'jpg'}, 1351189675: {'path': 'temp/1744985820_3612754_1351189675_f2888897665fcb49d1fa7f01af1f1c13.jpg', 'extension': 'jpg'}, 1351189705: {'path': 'temp/1744985820_3612754_1351189705_773a8c059309801a8fd4edcfe7d5e3f3.jpg', 'extension': 'jpg'}, 1351189729: {'path': 'temp/1744985820_3612754_1351189729_c90a9c7749b84fd056fa00081f7d4145.jpg', 'extension': 'jpg'}, 1351189757: {'path': 'temp/1744985820_3612754_1351189757_f11ffbc2da93f150f79bf4cdd61db91e.jpg', 'extension': 'jpg'}, 1351189785: {'path': 'temp/1744985820_3612754_1351189785_e50356ed0e0418501ec8f9df7b2284ac.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 = 22204432; (('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 = 22204432 group by h (('16', 75),) 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=22204432 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 (22204432) 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 (22204432) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18042025 22204432 Nombre de photos uploadées : 75 / 23040 (0%) 18042025 22204432 Nombre de photos taguées (types de déchets): 0 / 75 (0%) 18042025 22204432 Nombre de photos taguées (volume) : 0 / 75 (0%) [{'photo_id': 1351179402, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/eb88cdc3050bed462a628bfa035b216c.jpg', 'username': None, 'uploaded_at': 1744984868, 'text': 'image_18042025_16_00_04_010143m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1351179324, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ca365ed2c377ed701a56f7fb1ee3169b.jpg', 'username': None, 'uploaded_at': 1744984868, 'text': 'image_18042025_16_00_14_010136m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1351179246, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a70680aedb3e0e22f80b4ccc7c9d529e.jpg', 'username': None, 'uploaded_at': 1744984868, 'text': 'image_18042025_16_00_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351180965, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a134feb408931adfee1150f1705ca7d4.jpg', 'username': None, 'uploaded_at': 1744984928, 'text': 'image_18042025_16_00_33_009124m0.jpg 4e-05 for time 1, id_amount 0 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.4836273193359375e-06 elapsed_time : order_list_meta_photo_and_scores 1.4781951904296875e-05 ??????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0037610530853271484 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22204432, '2025-04-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725253,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.032213449478149414 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= 1725253 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725253, 'dashboard_run_id': 1735496, 'mtr_portfolio_id': 22202621, 'dashboard_result_id': 9984346, '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_P22202621_18-04-2025_15_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22202679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22202680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22202681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22202682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22202683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22202684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22202685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22202686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22202687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22202688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22202689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22202690, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1735496, 'mtr_portfolio_id': 22203468, 'dashboard_result_id': 9984347, '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_P22203468_18-04-2025_16_02_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22203486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22203487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22203488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22203489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22203490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22203491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22203492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22203493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22203494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22203495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22203496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22203497, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1735496, 'mtr_portfolio_id': 22204432, 'dashboard_result_id': 9984348, '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_P22204432_18-04-2025_16_15_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22204455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22204456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22204457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22204458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22204459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22204460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22204461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22204462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22204463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22204464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22204465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22204466, '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 = 22202621 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': 2737375, 'mtr_portfolio_id': 22202621, 'created_at': datetime.datetime(2025, 4, 18, 15, 46, 59), 'result': '0.05862152506475679', 'result_long': None, 'result_double': None}] Qualite : 0.05862152506475679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22202621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22202621_18-04-2025_15_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22202621 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_P22202621_18-04-2025_15_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22202679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22202680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22202681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22202682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22202683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22202684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22202685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22202686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22202687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22202688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22202689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22202690, 'pht': 3726}}" where mtr_portfolio_id = 22202621 and dashboard_run_id = 1735496 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`=22202621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9984346, 0.05862152506475679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22202621_18-04-2025_15_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22202679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22202680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22202681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22202682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22202683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22202684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22202685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22202686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22202687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22202688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22202689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22202690, '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 = 22203468 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': 2737426, 'mtr_portfolio_id': 22203468, 'created_at': datetime.datetime(2025, 4, 18, 16, 2, 30), 'result': '0.03836131747358875', 'result_long': None, 'result_double': None}] Qualite : 0.03836131747358875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22203468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22203468_18-04-2025_16_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22203468 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_P22203468_18-04-2025_16_02_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22203486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22203487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22203488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22203489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22203490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22203491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22203492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22203493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22203494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22203495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22203496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22203497, 'pht': 3726}}" where mtr_portfolio_id = 22203468 and dashboard_run_id = 1735496 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`=22203468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9984347, 0.03836131747358875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22203468_18-04-2025_16_02_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22203486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22203487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22203488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22203489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22203490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22203491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22203492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22203493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22203494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22203495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22203496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22203497, '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 = 22204432 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': 2737505, 'mtr_portfolio_id': 22204432, 'created_at': datetime.datetime(2025, 4, 18, 16, 16, 59), 'result': '0.0740222560825603', 'result_long': None, 'result_double': None}] Qualite : 0.0740222560825603 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22204432 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22204432_18-04-2025_16_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22204432 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_P22204432_18-04-2025_16_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22204455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22204456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22204457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22204458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22204459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22204460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22204461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22204462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22204463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22204464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22204465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22204466, 'pht': 3726}}" where mtr_portfolio_id = 22204432 and dashboard_run_id = 1735496 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`=22204432 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9984348, 0.0740222560825603, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22204432_18-04-2025_16_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22204455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22204456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22204457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22204458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22204459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22204460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22204461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22204462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22204463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22204464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22204465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22204466, '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 (22202621,22203468,22204432) result : ((1351160478,), (1351160729,), (1351160758,), (1351160784,), (1351160813,), (1351161277,), (1351161281,), (1351161286,), (1351161313,), (1351161369,), (1351161545,), (1351161549,), (1351161574,), (1351161601,), (1351162075,), (1351162211,), (1351162247,), (1351162330,), (1351162774,), (1351162778,), (1351162782,), (1351162786,), (1351162791,), (1351162796,), (1351163074,), (1351163118,), (1351163160,), (1351163187,), (1351163238,), (1351163437,), (1351163488,), (1351163539,), (1351163566,), (1351164166,), (1351164221,), (1351164265,), (1351164298,), (1351164352,), (1351164404,), (1351165040,), (1351165113,), (1351165192,), (1351165796,), (1351165812,), (1351165816,), (1351165847,), (1351165886,), (1351165955,), (1351166540,), (1351166574,), (1351166628,), (1351166665,), (1351167296,), (1351167299,), (1351167340,), (1351167352,), (1351167407,), (1351167614,), (1351167701,), (1351167705,), (1351167709,), (1351167712,), (1351167717,), (1351168117,), (1351168015,), (1351168049,), (1351168548,), (1351168552,), (1351168556,), (1351168562,), (1351168601,), (1351168658,), (1351169168,), (1351169213,), (1351169310,), (1351169392,), (1351170227,), (1351170282,), (1351170336,), (1351170386,), (1351170437,), (1351170497,), (1351170934,), (1351171084,), (1351171152,), (1351171404,), (1351171716,), (1351172049,), (1351172652,), (1351172717,), (1351172849,), (1351172902,), (1351173974,), (1351173994,), (1351174016,), (1351174160,), (1351174343,), (1351174428,), (1351174829,), (1351174901,), (1351174980,), (1351175054,), (1351175144,), (1351175830,), (1351175872,), (1351175941,), (1351175963,), (1351175986,), (1351176014,), (1351176190,), (1351176219,), (1351176248,), (1351176275,), (1351176312,), (1351176342,), (1351176465,), (1351176467,), (1351176470,), (1351176473,), (1351176730,), (1351176762,), (1351176777,), (1351176784,), (1351176787,), (1351176987,), (1351177014,), (1351177041,), (1351177070,), (1351177102,), (1351177129,), (1351177877,), (1351177935,), (1351178268,), (1351178394,), (1351178508,), (1351178616,), (1351179478,), (1351179246,), (1351179324,), (1351179402,), (1351180699,), (1351180777,), (1351180853,), (1351180908,), (1351180965,), (1351181474,), (1351181493,), (1351181537,), (1351181583,), (1351181616,), (1351181670,), (1351182256,), (1351182372,), (1351182609,), (1351183867,), (1351183943,), (1351184017,), (1351184077,), (1351184125,), (1351184246,), (1351184933,), (1351184995,), (1351185075,), (1351185142,), (1351185227,), (1351186007,), (1351186047,), (1351186082,), (1351186115,), (1351186159,), (1351186524,), (1351186530,), (1351186569,), (1351186598,), (1351186625,), (1351186660,), (1351187047,), (1351187118,), (1351187186,), (1351187216,), (1351187240,), (1351187404,), (1351187433,), (1351187478,), (1351187529,), (1351187561,), (1351187591,), (1351187795,), (1351187828,), (1351187856,), (1351187902,), (1351188318,), (1351188382,), (1351188483,), (1351188557,), (1351188638,), (1351188697,), (1351189170,), (1351189195,), (1351189222,), (1351189251,), (1351189281,), (1351189647,), (1351189675,), (1351189705,), (1351189729,), (1351189757,), (1351189785,), (1351190173,), (1351190201,), (1351190250,), (1351190274,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18042025': {'nb_upload': 75, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22204432]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351190274, 1351190250, 1351190201, 1351190173, 1351189785, 1351189757, 1351189729, 1351189705, 1351189675, 1351189647] map_info['map_portfolio_photo'] : {22204432: [1351190274, 1351190250, 1351190201, 1351190173, 1351189785, 1351189757, 1351189729, 1351189705, 1351189675, 1351189647, 1351189281, 1351189251, 1351189222, 1351189195, 1351189170, 1351188697, 1351188638, 1351188557, 1351188483, 1351188382, 1351188318, 1351187902, 1351187856, 1351187828, 1351187795, 1351187591, 1351187561, 1351187529, 1351187478, 1351187433, 1351187404, 1351187240, 1351187216, 1351187186, 1351187118, 1351187047, 1351186660, 1351186625, 1351186598, 1351186569, 1351186530, 1351186524, 1351186159, 1351186115, 1351186082, 1351186047, 1351186007, 1351185227, 1351185142, 1351185075, 1351184995, 1351184933, 1351184246, 1351184125, 1351184077, 1351184017, 1351183943, 1351183867, 1351182609, 1351182372, 1351182256, 1351181670, 1351181616, 1351181583, 1351181537, 1351181493, 1351181474, 1351180965, 1351180908, 1351180853, 1351180777, 1351180699, 1351179402, 1351179324, 1351179246]} final : True mtd_id 4302 list_pids : [1351190274, 1351190250, 1351190201, 1351190173, 1351189785, 1351189757, 1351189729, 1351189705, 1351189675, 1351189647] Looping around the photos to save general results len do output : 1 /22204432Didn'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, '2737505') ('4302', '22204432', '1351190274', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351190250', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351190201', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351190173', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189785', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189757', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189729', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189705', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189675', None, None, None, None, None, '2737505') ('4302', None, None, None, None, None, None, None, '2737505') ('4302', '22204432', '1351189647', None, None, None, None, None, '2737505') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22204432', 'None', None, None, None, None, '2737505'), ('4302', '22204432', '1351190274', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351190250', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351190201', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351190173', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189785', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189757', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189729', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189705', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189675', None, None, None, None, None, '2737505'), ('4302', '22204432', '1351189647', None, None, None, None, None, '2737505')] time used for this insertion : 0.013962268829345703 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3215062618255615 time spend to save output : 0.014312982559204102 total time spend for step 5 : 0.3358192443847656 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 (2737505) 2.66user 2.31system 0:12.69elapsed 39%CPU (0avgtext+0avgdata 159336maxresident)k 39344inputs+21032outputs (155major+75219minor)pagefaults 0swaps