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 : 3336304 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 (2573094) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2573094) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20411932 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2573094'] with mtr_portfolio_ids : ['20411932'] and first list_photo_ids : [] new path : /proc/3336304/ Name: python3 Umask: 0002 State: R (running) Tgid: 3336304 Ngid: 0 Pid: 3336304 PPid: 3336303 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3336304 NSpid: 3336304 NSpgid: 3333567 NSsid: 3333567 VmPeak: 1106580 kB VmSize: 1106556 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97224 kB VmRSS: 97224 kB RssAnon: 59740 kB RssFile: 37484 kB RssShmem: 0 kB VmData: 865308 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 624 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 152 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3336304', 'Ngid': '0', 'Pid': '3336304', 'PPid': '3336303', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3336304', 'NSpid': '3336304', 'NSpgid': '3333567', 'NSsid': '3333567', 'VmPeak': '1106580 kB', 'VmSize': '1106556 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97224 kB', 'VmRSS': '97224 kB', 'RssAnon': '59740 kB', 'RssFile': '37484 kB', 'RssShmem': '0 kB', 'VmData': '865308 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '624 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '152'} ('datou_batch_current', '3336304', '1106580', '0', '1106556', '865308', '97224', b'', 'marlene', '2573094') 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 (20411932) 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 (2573094 ) ) 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 (20411932) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1336546230, 'portfolio_id': 20411932}, {'photo_id': 1336546227, 'portfolio_id': 20411932}, {'photo_id': 1336546224, 'portfolio_id': 20411932}, {'photo_id': 1336546222, 'portfolio_id': 20411932}, {'photo_id': 1336546194, 'portfolio_id': 20411932}, {'photo_id': 1336546191, 'portfolio_id': 20411932}, {'photo_id': 1336546188, 'portfolio_id': 20411932}, {'photo_id': 1336546186, 'portfolio_id': 20411932}, {'photo_id': 1336546051, 'portfolio_id': 20411932}, {'photo_id': 1336545979, 'portfolio_id': 20411932}, {'photo_id': 1336545925, 'portfolio_id': 20411932}, {'photo_id': 1336545853, 'portfolio_id': 20411932}, {'photo_id': 1336545794, 'portfolio_id': 20411932}, {'photo_id': 1336545788, 'portfolio_id': 20411932}, {'photo_id': 1336545577, 'portfolio_id': 20411932}, {'photo_id': 1336545574, 'portfolio_id': 20411932}, {'photo_id': 1336545262, 'portfolio_id': 20411932}, {'photo_id': 1336545228, 'portfolio_id': 20411932}, {'photo_id': 1336545215, 'portfolio_id': 20411932}, {'photo_id': 1336545212, 'portfolio_id': 20411932}, {'photo_id': 1336545168, 'portfolio_id': 20411932}, {'photo_id': 1336544509, 'portfolio_id': 20411932}, {'photo_id': 1336544505, 'portfolio_id': 20411932}, {'photo_id': 1336544502, 'portfolio_id': 20411932}, {'photo_id': 1336544459, 'portfolio_id': 20411932}, {'photo_id': 1336544456, 'portfolio_id': 20411932}, {'photo_id': 1336544408, 'portfolio_id': 20411932}, {'photo_id': 1336544405, 'portfolio_id': 20411932}, {'photo_id': 1336544402, 'portfolio_id': 20411932}, {'photo_id': 1336544399, 'portfolio_id': 20411932}, {'photo_id': 1336544352, 'portfolio_id': 20411932}, {'photo_id': 1336544349, 'portfolio_id': 20411932}, {'photo_id': 1336544347, 'portfolio_id': 20411932}, {'photo_id': 1336544344, 'portfolio_id': 20411932}, {'photo_id': 1336544342, 'portfolio_id': 20411932}, {'photo_id': 1336544288, 'portfolio_id': 20411932}, {'photo_id': 1336544286, 'portfolio_id': 20411932}, {'photo_id': 1336544284, 'portfolio_id': 20411932}, {'photo_id': 1336544282, 'portfolio_id': 20411932}, {'photo_id': 1336544280, 'portfolio_id': 20411932}, {'photo_id': 1336544243, 'portfolio_id': 20411932}, {'photo_id': 1336544240, 'portfolio_id': 20411932}, {'photo_id': 1336544238, 'portfolio_id': 20411932}, {'photo_id': 1336544236, 'portfolio_id': 20411932}, {'photo_id': 1336544233, 'portfolio_id': 20411932}, {'photo_id': 1336544231, 'portfolio_id': 20411932}, {'photo_id': 1336544167, 'portfolio_id': 20411932}, {'photo_id': 1336544165, 'portfolio_id': 20411932}, {'photo_id': 1336544163, 'portfolio_id': 20411932}, {'photo_id': 1336544123, 'portfolio_id': 20411932}, {'photo_id': 1336544119, 'portfolio_id': 20411932}, {'photo_id': 1336544113, 'portfolio_id': 20411932}, {'photo_id': 1336544092, 'portfolio_id': 20411932}, {'photo_id': 1336544088, 'portfolio_id': 20411932}, {'photo_id': 1336543996, 'portfolio_id': 20411932}, {'photo_id': 1336543949, 'portfolio_id': 20411932}, {'photo_id': 1336543943, 'portfolio_id': 20411932}, {'photo_id': 1336543941, 'portfolio_id': 20411932}, {'photo_id': 1336543940, 'portfolio_id': 20411932}, {'photo_id': 1336543939, 'portfolio_id': 20411932}, {'photo_id': 1336543776, 'portfolio_id': 20411932}, {'photo_id': 1336543687, 'portfolio_id': 20411932}, {'photo_id': 1336543682, 'portfolio_id': 20411932}, {'photo_id': 1336543680, 'portfolio_id': 20411932}, {'photo_id': 1336543669, 'portfolio_id': 20411932}] map_portfolio_id_photo_id: {20411932: [1336546230, 1336546227, 1336546224, 1336546222, 1336546194, 1336546191, 1336546188, 1336546186, 1336546051, 1336545979, 1336545925, 1336545853, 1336545794, 1336545788, 1336545577, 1336545574, 1336545262, 1336545228, 1336545215, 1336545212, 1336545168, 1336544509, 1336544505, 1336544502, 1336544459, 1336544456, 1336544408, 1336544405, 1336544402, 1336544399, 1336544352, 1336544349, 1336544347, 1336544344, 1336544342, 1336544288, 1336544286, 1336544284, 1336544282, 1336544280, 1336544243, 1336544240, 1336544238, 1336544236, 1336544233, 1336544231, 1336544167, 1336544165, 1336544163, 1336544123, 1336544119, 1336544113, 1336544092, 1336544088, 1336543996, 1336543949, 1336543943, 1336543941, 1336543940, 1336543939, 1336543776, 1336543687, 1336543682, 1336543680, 1336543669]} ##### 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.015903472900390625 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Feb 10 17:31: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20411932) 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 : 20411932 get user id for portfolio 20411932 get sub ptf for main ptf 20411932, type 3726 and hashtags ['environnement', 'metal', 'papier', 'autre_refus', 'Carton_gris', 'cartonnette', 'kraft', 'plastique', 'Teint_Dans_La_Masse', 'Carton_brun', 'mal_croppe', 'flou'] 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`=20411932 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','papier','autre_refus','Carton_gris','cartonnette','kraft','plastique','Teint_Dans_La_Masse','Carton_brun','mal_croppe','flou')) 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`=20411932 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','papier','autre_refus','Carton_gris','cartonnette','kraft','plastique','Teint_Dans_La_Masse','Carton_brun','mal_croppe','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20411932, 'sub_port_id': 20411939, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089856, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 27)}, 'autre_refus': {'main_port_id': 20411932, 'sub_port_id': 20411940, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089857, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 27)}, 'environnement': {'main_port_id': 20411932, 'sub_port_id': 20411941, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089858, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 20411932, 'sub_port_id': 20411942, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089859, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 27)}, 'metal': {'main_port_id': 20411932, 'sub_port_id': 20411943, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089860, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 27)}, 'kraft': {'main_port_id': 20411932, 'sub_port_id': 20411944, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089861, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 27)}, 'papier': {'main_port_id': 20411932, 'sub_port_id': 20411945, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089862, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 27)}, 'mal_croppe': {'main_port_id': 20411932, 'sub_port_id': 20411946, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089863, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 27)}, 'flou': {'main_port_id': 20411932, 'sub_port_id': 20411947, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089864, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 27)}, 'Carton_brun': {'main_port_id': 20411932, 'sub_port_id': 20411948, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089865, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 27)}, 'plastique': {'main_port_id': 20411932, 'sub_port_id': 20411949, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089866, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 27)}, 'cartonnette': {'main_port_id': 20411932, 'sub_port_id': 20411950, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089867, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20411939 , 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=20411932 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 (20411939) result : ((1336544317,), (1336544318,), (1336544329,), (1336544330,), (1336544414,), (1336544415,), (1336544416,), (1336544425,), (1336544426,), (1336544427,), (1336544428,), (1336544471,), (1336544472,), (1336545294,), (1336545559,), (1336546137,), (1336546143,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20411932) result : ((1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,)) 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 20411940 , 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=20411932 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 (20411940) result : ((1336544412,), (1336545291,), (1336545292,), (1336545558,), (1336545787,), (1336546120,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20411932) result : ((1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,)) 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 20411941 , 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=20411932 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 (20411941) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20411932) result : ((1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,)) 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 20411942 , 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=20411932 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 (20411942) result : ((1336544314,), (1336544316,), (1336544322,), (1336544323,), (1336544324,), (1336544409,), (1336544410,), (1336544411,), (1336544468,), (1336544469,), (1336544470,), (1336544521,), (1336545289,), (1336545765,), (1336546099,), (1336546100,), (1336546101,), (1336546103,), (1336546104,), (1336546105,), (1336546140,), (1336546180,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20411932) result : ((1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,)) 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 20411943 , 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=20411932 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 (20411943) result : ((1336544543,), (1336545778,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20411932) result : ((1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,)) 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 20411944 , 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=20411932 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 (20411944) result : ((1336546184,), (1336546185,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20411932) result : ((1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,)) 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 20411945 , 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=20411932 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 (20411945) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20411932) result : ((1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,)) 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 20411946 , 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=20411932 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 (20411946) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20411932) result : ((1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,)) 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 20411947 , 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=20411932 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 (20411947) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20411932) result : ((1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,)) 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 20411948 , 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=20411932 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 (20411948) result : ((1336544326,), (1336544334,), (1336544421,), (1336544422,), (1336544477,), (1336544524,), (1336545295,), (1336545296,), (1336545570,), (1336545571,), (1336545572,), (1336545770,), (1336545771,), (1336545789,), (1336545790,), (1336546153,), (1336546154,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20411932) result : ((1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,)) 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 20411949 , 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=20411932 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 (20411949) result : ((1336544331,), (1336544332,), (1336544430,), (1336544478,), (1336544479,), (1336544528,), (1336544529,), (1336544530,), (1336544531,), (1336545774,), (1336545775,), (1336545776,), (1336545777,), (1336545792,), (1336545793,), (1336546141,), (1336546142,), (1336546161,), (1336546182,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20411932) result : ((1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,)) 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 20411950 , 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=20411932 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 (20411950) result : ((1336544320,), (1336544321,), (1336544333,), (1336544420,), (1336544429,), (1336544474,), (1336544475,), (1336544522,), (1336545566,), (1336545766,), (1336546181,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20411932) result : ((1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,)) 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`=20411932 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','papier','autre_refus','Carton_gris','cartonnette','kraft','plastique','Teint_Dans_La_Masse','Carton_brun','mal_croppe','flou')) 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`=20411932 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','metal','papier','autre_refus','Carton_gris','cartonnette','kraft','plastique','Teint_Dans_La_Masse','Carton_brun','mal_croppe','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20411932, 'sub_port_id': 20411969, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089892, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 29)}, 'autre_refus': {'main_port_id': 20411932, 'sub_port_id': 20411974, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089893, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 29)}, 'environnement': {'main_port_id': 20411932, 'sub_port_id': 20411977, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089894, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20411932, 'sub_port_id': 20411978, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089895, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 29)}, 'metal': {'main_port_id': 20411932, 'sub_port_id': 20411979, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089896, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 29)}, 'kraft': {'main_port_id': 20411932, 'sub_port_id': 20411980, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089897, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 29)}, 'papier': {'main_port_id': 20411932, 'sub_port_id': 20411981, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089898, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 29)}, 'mal_croppe': {'main_port_id': 20411932, 'sub_port_id': 20411982, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089899, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 29)}, 'flou': {'main_port_id': 20411932, 'sub_port_id': 20411983, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089900, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 29)}, 'Carton_brun': {'main_port_id': 20411932, 'sub_port_id': 20411984, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089901, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 29)}, 'plastique': {'main_port_id': 20411932, 'sub_port_id': 20411985, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089902, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 29)}, 'cartonnette': {'main_port_id': 20411932, 'sub_port_id': 20411986, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13089903, 'last_updated_at': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 17, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 17, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20411969,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20411939 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20411974,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20411940 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20411977,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20411941 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20411978,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20411942 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20411979,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20411943 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20411980,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20411944 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20411981,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20411945 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20411982,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20411946 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20411983,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20411947 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20411984,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20411948 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20411985,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20411949 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20411986,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20411950 lien utilise dans velours : https://www.fotonower.com/velours/20411969,20411974,20411977,20411978,20411979,20411980,20411981,20411982,20411983,20411984,20411985,20411986?tags=Carton_gris,autre_refus,environnement,Teint_Dans_La_Masse,metal,kraft,papier,mal_croppe,flou,Carton_brun,plastique,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20411932]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336546230, 1336546227, 1336546224, 1336546222, 1336546194, 1336546191, 1336546188, 1336546186, 1336546051, 1336545979, 1336545925, 1336545853, 1336545794, 1336545788] map_info['map_portfolio_photo'] : {20411932: [1336546230, 1336546227, 1336546224, 1336546222, 1336546194, 1336546191, 1336546188, 1336546186, 1336546051, 1336545979, 1336545925, 1336545853, 1336545794, 1336545788, 1336545577, 1336545574, 1336545262, 1336545228, 1336545215, 1336545212, 1336545168, 1336544509, 1336544505, 1336544502, 1336544459, 1336544456, 1336544408, 1336544405, 1336544402, 1336544399, 1336544352, 1336544349, 1336544347, 1336544344, 1336544342, 1336544288, 1336544286, 1336544284, 1336544282, 1336544280, 1336544243, 1336544240, 1336544238, 1336544236, 1336544233, 1336544231, 1336544167, 1336544165, 1336544163, 1336544123, 1336544119, 1336544113, 1336544092, 1336544088, 1336543996, 1336543949, 1336543943, 1336543941, 1336543940, 1336543939, 1336543776, 1336543687, 1336543682, 1336543680, 1336543669]} final : False mtd_id 4302 list_pids : [1336546230, 1336546227, 1336546224, 1336546222, 1336546194, 1336546191, 1336546188, 1336546186, 1336546051, 1336545979, 1336545925, 1336545853, 1336545794, 1336545788] Looping around the photos to save general results len do output : 1 /20411932. 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, '2573094') ('4302', '20411932', '1336546230', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546227', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546224', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546222', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546194', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546191', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546188', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546186', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546051', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545979', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545925', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545853', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545794', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545788', None, None, None, None, None, '2573094') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '20411932', "{'Carton_gris': 20411939, 'autre_refus': 20411940, 'environnement': 20411941, 'Teint_Dans_La_Masse': 20411942, 'metal': 20411943, 'kraft': 20411944, 'papier': 20411945, 'mal_croppe': 20411946, 'flou': 20411947, 'Carton_brun': 20411948, 'plastique': 20411949, 'cartonnette': 20411950}", None, None, None, None, '2573094'), ('4302', '20411932', '1336546230', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546227', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546224', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546222', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546194', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546191', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546188', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546186', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546051', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545979', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545925', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545853', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545794', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545788', None, None, None, None, None, '2573094')] time used for this insertion : 0.013710737228393555 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4791114330291748 time spend to save output : 0.014183521270751953 total time spend for step 1 : 1.4932949542999268 step2:final Mon Feb 10 17:31:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20411932) 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 20411932 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1336543776,1336543687,1336543682,1336543680,1336543669,1336543996,1336543949,1336543943,1336543941,1336543940,1336543939,1336544123,1336544119,1336544113,1336544092,1336544088,1336544167,1336544165,1336544163,1336544243,1336544240,1336544238,1336544236,1336544233,1336544231,1336544288,1336544286,1336544284,1336544282,1336544280,1336544352,1336544349,1336544347,1336544344,1336544342,1336544408,1336544405,1336544402,1336544399,1336544459,1336544456,1336544509,1336544505,1336544502,1336545262,1336545228,1336545215,1336545212,1336545168,1336545577,1336545574,1336546051,1336545979,1336545925,1336545853,1336545794,1336545788,1336546194,1336546191,1336546188,1336546230,1336546186,1336546227,1336546224,1336546222); 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([20411932]) Inside saveOutput : final : False verbose : True original output for save of step final : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} new output for save of step final : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} [1336546230, 1336546227, 1336546224, 1336546222, 1336546194, 1336546191, 1336546188, 1336546186, 1336546051, 1336545979, 1336545925, 1336545853, 1336545794, 1336545788] map_info['map_portfolio_photo'] : {20411932: [1336546230, 1336546227, 1336546224, 1336546222, 1336546194, 1336546191, 1336546188, 1336546186, 1336546051, 1336545979, 1336545925, 1336545853, 1336545794, 1336545788, 1336545577, 1336545574, 1336545262, 1336545228, 1336545215, 1336545212, 1336545168, 1336544509, 1336544505, 1336544502, 1336544459, 1336544456, 1336544408, 1336544405, 1336544402, 1336544399, 1336544352, 1336544349, 1336544347, 1336544344, 1336544342, 1336544288, 1336544286, 1336544284, 1336544282, 1336544280, 1336544243, 1336544240, 1336544238, 1336544236, 1336544233, 1336544231, 1336544167, 1336544165, 1336544163, 1336544123, 1336544119, 1336544113, 1336544092, 1336544088, 1336543996, 1336543949, 1336543943, 1336543941, 1336543940, 1336543939, 1336543776, 1336543687, 1336543682, 1336543680, 1336543669]} final : False mtd_id 4302 list_pids : [1336546230, 1336546227, 1336546224, 1336546222, 1336546194, 1336546191, 1336546188, 1336546186, 1336546051, 1336545979, 1336545925, 1336545853, 1336545794, 1336545788] Looping around the photos to save general results len do output : 14 /1336546230.Didn't retrieve data . /1336546227.Didn't retrieve data . /1336546224.Didn't retrieve data . /1336546222.Didn't retrieve data . /1336546194.Didn't retrieve data . /1336546191.Didn't retrieve data . /1336546188.Didn't retrieve data . /1336546186.Didn't retrieve data . /1336546051.Didn't retrieve data . /1336545979.Didn't retrieve data . /1336545925.Didn't retrieve data . /1336545853.Didn't retrieve data . /1336545794.Didn't retrieve data . /1336545788.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, '2573094') ('4302', '20411932', '1336546230', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546227', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546224', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546222', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546194', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546191', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546188', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546186', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546051', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545979', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545925', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545853', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545794', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545788', None, None, None, None, None, '2573094') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '20411932', '1336546230', '0.045234612719489566', None, None, None, None, '2573094'), ('4302', '20411932', '1336546227', '0.045234612719489566', None, None, None, None, '2573094'), ('4302', '20411932', '1336546224', '0.045234612719489566', None, None, None, None, '2573094'), ('4302', '20411932', '1336546222', '0.045234612719489566', None, None, None, None, '2573094'), ('4302', '20411932', '1336546194', '0.045234612719489566', None, None, None, None, '2573094'), ('4302', '20411932', '1336546191', '0.045234612719489566', None, None, None, None, '2573094'), ('4302', '20411932', '1336546188', '0.045234612719489566', None, None, None, None, '2573094'), ('4302', '20411932', '1336546186', '0.045234612719489566', None, None, None, None, '2573094'), ('4302', '20411932', '1336546051', '0.045234612719489566', None, None, None, None, '2573094'), ('4302', '20411932', '1336545979', '0.045234612719489566', None, None, None, None, '2573094'), ('4302', '20411932', '1336545925', '0.045234612719489566', None, None, None, None, '2573094'), ('4302', '20411932', '1336545853', '0.045234612719489566', None, None, None, None, '2573094'), ('4302', '20411932', '1336545794', '0.045234612719489566', None, None, None, None, '2573094'), ('4302', '20411932', '1336545788', '0.045234612719489566', None, None, None, None, '2573094')] time used for this insertion : 0.013468027114868164 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0727689266204834 time spend to save output : 0.014173269271850586 total time spend for step 2 : 0.08694219589233398 step3:velours_tree Mon Feb 10 17:31:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20411932: [{'Carton_gris': 20411939, 'autre_refus': 20411940, 'environnement': 20411941, 'Teint_Dans_La_Masse': 20411942, 'metal': 20411943, 'kraft': 20411944, 'papier': 20411945, 'mal_croppe': 20411946, 'flou': 20411947, 'Carton_brun': 20411948, 'plastique': 20411949, 'cartonnette': 20411950}]} input_args_next_step : {20411932: ()} output_args : {20411932: [{'Carton_gris': 20411939, 'autre_refus': 20411940, 'environnement': 20411941, 'Teint_Dans_La_Masse': 20411942, 'metal': 20411943, 'kraft': 20411944, 'papier': 20411945, 'mal_croppe': 20411946, 'flou': 20411947, 'Carton_brun': 20411948, 'plastique': 20411949, 'cartonnette': 20411950}]} args : 20411932 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 20411939, 'autre_refus': 20411940, 'environnement': 20411941, 'Teint_Dans_La_Masse': 20411942, 'metal': 20411943, 'kraft': 20411944, 'papier': 20411945, 'mal_croppe': 20411946, 'flou': 20411947, 'Carton_brun': 20411948, 'plastique': 20411949, 'cartonnette': 20411950},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20411932) 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([20411932]) 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.6139442920684814 time spend to save output : 0.00010895729064941406 total time spend for step 3 : 0.6140532493591309 step4:send_mail_cod Mon Feb 10 17:31:02 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 : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} input_args_next_step : {1336546230: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336546230 depend.output_id : 0 input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336546227 depend.output_id : 0 input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336546224 depend.output_id : 0 input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336546222 depend.output_id : 0 input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336546194 depend.output_id : 0 input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336546191 depend.output_id : 0 input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336546188 depend.output_id : 0 input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336546186 depend.output_id : 0 input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336546051 depend.output_id : 0 input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336545979 depend.output_id : 0 input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336545925 depend.output_id : 0 input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336545853 depend.output_id : 0 input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336545794 depend.output_id : 0 input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ()} output_args : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',)} args : 1336545788 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 : {20411932: [{'Carton_gris': 20411939, 'autre_refus': 20411940, 'environnement': 20411941, 'Teint_Dans_La_Masse': 20411942, 'metal': 20411943, 'kraft': 20411944, 'papier': 20411945, 'mal_croppe': 20411946, 'flou': 20411947, 'Carton_brun': 20411948, 'plastique': 20411949, 'cartonnette': 20411950}]} input_args_next_step : {1336546230: ('0.045234612719489566',), 1336546227: ('0.045234612719489566',), 1336546224: ('0.045234612719489566',), 1336546222: ('0.045234612719489566',), 1336546194: ('0.045234612719489566',), 1336546191: ('0.045234612719489566',), 1336546188: ('0.045234612719489566',), 1336546186: ('0.045234612719489566',), 1336546051: ('0.045234612719489566',), 1336545979: ('0.045234612719489566',), 1336545925: ('0.045234612719489566',), 1336545853: ('0.045234612719489566',), 1336545794: ('0.045234612719489566',), 1336545788: ('0.045234612719489566',), 20411932: ()} output_args : {20411932: [{'Carton_gris': 20411939, 'autre_refus': 20411940, 'environnement': 20411941, 'Teint_Dans_La_Masse': 20411942, 'metal': 20411943, 'kraft': 20411944, 'papier': 20411945, 'mal_croppe': 20411946, 'flou': 20411947, 'Carton_brun': 20411948, 'plastique': 20411949, 'cartonnette': 20411950}]} args : 20411932 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 :15, first value : ('0.045234612719489566',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20411932) 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 (1336546230,1336546227,1336546224,1336546222,1336546194,1336546191,1336546188,1336546186,1336546051,1336545979,1336545925,1336545853,1336545794,1336545788) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1336545788 begin to download photo : 1336545925 begin to download photo : 1336546186 begin to download photo : 1336546194 begin to download photo : 1336546227 download finish for photo 1336546194 begin to download photo : 1336546222 download finish for photo 1336545925 begin to download photo : 1336545979 download finish for photo 1336545788 begin to download photo : 1336545794 download finish for photo 1336546186 begin to download photo : 1336546188 download finish for photo 1336546227 begin to download photo : 1336546230 download finish for photo 1336545979 begin to download photo : 1336546051 download finish for photo 1336546222 begin to download photo : 1336546224 download finish for photo 1336546188 begin to download photo : 1336546191 download finish for photo 1336546230 download finish for photo 1336545794 begin to download photo : 1336545853 download finish for photo 1336546051 download finish for photo 1336546224 download finish for photo 1336546191 download finish for photo 1336545853 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P20411932_10-02-2025_17_31_02.pdf 20411940 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=20411940 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336544412: '1739204493_400414_1336544123_91614eeb20c9b154495dd71cab53630b_rle_crop_3668261596_0.png', 1336545291: '1739204732_410516_1336544349_cfbbe4a123dda4a7ffc3d5d76a74565b_rle_crop_3668275766_0.png', 1336545292: '1739204732_410516_1336544349_cfbbe4a123dda4a7ffc3d5d76a74565b_rle_crop_3668275759_0.png', 1336545558: '1739204751_410690_1336544459_a7818f6ef22b6b33f9fc8c67284e9b66_rle_crop_3668276721_0.png', 1336545787: '1739204794_411110_1336544231_fa568ad8e836a25a490f72fa3a3dbcdb_rle_crop_3668277548_0.png', 1336546120: '1739204833_411590_1336545212_b1d2b7b2040a141ba791937a44f8516c_rle_crop_3668277663_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/2010e04c231ac5e64abf09dbc35f7a76_12070943.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8a6ea538550827423b52a52dc81a2d0c_98494952.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/24e0991b1277c3c08db324edf7955ad9_65301652.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/217191a2a10197136027c36651c08bc5_89826458.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/766e9a49b2f004e968c70be56fb9d1d6_30866220.png change filename to text .imagette204119401739205062/ imagette204119401739205062/1739204794_411110_1336544231_fa568ad8e836a25a490f72fa3a3dbcdb_rle_crop_3668277548_0.png.png imagette204119401739205062/1739204833_411590_1336545212_b1d2b7b2040a141ba791937a44f8516c_rle_crop_3668277663_0.png.png imagette204119401739205062/1739204732_410516_1336544349_cfbbe4a123dda4a7ffc3d5d76a74565b_rle_crop_3668275759_0.png.png imagette204119401739205062/1739204751_410690_1336544459_a7818f6ef22b6b33f9fc8c67284e9b66_rle_crop_3668276721_0.png.png imagette204119401739205062/1739204493_400414_1336544123_91614eeb20c9b154495dd71cab53630b_rle_crop_3668261596_0.png.png imagette204119401739205062/1739204732_410516_1336544349_cfbbe4a123dda4a7ffc3d5d76a74565b_rle_crop_3668275766_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/bb7eb2eb3af11c001f33da2b3de8881f_71601127.png imagette204119401739205062 20411943 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=20411943 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336544543: '1739204658_404456_1336544286_e456251616642a6ea817024ccad75974_rle_crop_3668272170_0.png', 1336545778: '1739204774_410880_1336544286_e456251616642a6ea817024ccad75974_rle_crop_3668272170_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/be8f01d27b9fd5ef6957eb5a61ea3663_796086.png change filename to text .imagette204119431739205063/ imagette204119431739205063/1739204774_410880_1336544286_e456251616642a6ea817024ccad75974_rle_crop_3668272170_0.png.png imagette204119431739205063/1739204658_404456_1336544286_e456251616642a6ea817024ccad75974_rle_crop_3668272170_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/be8f01d27b9fd5ef6957eb5a61ea3663_6693732.png imagette204119431739205063 20411944 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=20411944 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336546184: '1739204873_412107_1336544505_cc6bc10b7df10f3a12088ef8c649f5a7_rle_crop_3668277924_0.png', 1336546185: '1739204873_412107_1336544502_5d72a9f75527d20ab024f17f8f39e142_rle_crop_3668277937_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/9f66a02b30d3a5ae172444b4d97f29dd_50795912.png change filename to text .imagette204119441739205063/ imagette204119441739205063/1739204873_412107_1336544502_5d72a9f75527d20ab024f17f8f39e142_rle_crop_3668277937_0.png.png imagette204119441739205063/1739204873_412107_1336544505_cc6bc10b7df10f3a12088ef8c649f5a7_rle_crop_3668277924_0.png.png imagette204119461739205063/ imagette204119471739205063/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/2c5cfc3fe3a211372105f55ddef8193a_19218967.png imagette204119441739205063 20411946 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=20411946 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204119461739205063 20411947 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=20411947 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204119471739205063 20411949 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=20411949 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336545774: '1739204774_410880_1336544286_e456251616642a6ea817024ccad75974_rle_crop_3668272169_0.png', 1336546182: '1739204873_412107_1336545262_42ca74148d3cd08f386c7f01005b54ff_rle_crop_3668277911_0.png', 1336546161: '1739204854_411827_1336544456_acf14f58222e4c581e2e2de3d211434a_rle_crop_3668277840_0.png', 1336546142: '1739204833_411590_1336545212_b1d2b7b2040a141ba791937a44f8516c_rle_crop_3668277658_0.png', 1336546141: '1739204833_411590_1336545215_78c55de954d5d2b049410d7d407da73e_rle_crop_3668277643_0.png', 1336545793: '1739204794_411110_1336544236_612881b30aea6f202e52252bcf8ae8ab_rle_crop_3668277390_0.png', 1336545792: '1739204794_411110_1336544236_612881b30aea6f202e52252bcf8ae8ab_rle_crop_3668277394_0.png', 1336545777: '1739204774_410880_1336544282_228a91ee114e4f02e41cadc360e2473e_rle_crop_3668272479_0.png', 1336545776: '1739204774_410880_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272450_0.png', 1336545775: '1739204774_410880_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272457_0.png', 1336544331: '1739204411_399018_1336543996_9fd41a3f32f1448eced7472a23c44666_rle_crop_3668256211_0.png', 1336544531: '1739204658_404456_1336544282_228a91ee114e4f02e41cadc360e2473e_rle_crop_3668272479_0.png', 1336544530: '1739204658_404456_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272450_0.png', 1336544529: '1739204658_404456_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272457_0.png', 1336544528: '1739204658_404456_1336544286_e456251616642a6ea817024ccad75974_rle_crop_3668272169_0.png', 1336544479: '1739204535_400928_1336543687_eaaed09aded929671ccd8d7db8410481_rle_crop_3668256241_0.png', 1336544478: '1739204535_400928_1336543996_9fd41a3f32f1448eced7472a23c44666_bib_crop_3668256211_0.jpg', 1336544430: '1739204512_400605_1336544119_57c8cb3bca6aaf2a0d50a79764c02933_rle_crop_3668262362_0.png', 1336544332: '1739204411_399018_1336543687_eaaed09aded929671ccd8d7db8410481_rle_crop_3668256241_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/edd12e33ed399d305df256c824d6acb1_67196864.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/96f97acc3b319c3ce9ccc2ea965b8e5c_82043333.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/35bdd96b3c0ec7049e8de3f50e8198e0_28471631.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/516056f88830192ad5a4ada169b0adb0_76071558.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b66fdaac6cd0fef68dfb46649e04ed84_60296886.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/578de458e781c8d49e69d310731d085d_72117501.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/fa45e34fe0e604339eff12e8cc08f811_64935943.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e171c516bd6359158199a6be0cbd2b13_23828564.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3cbae083761ecc3b82bc4666a5903c65_21770339.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/efde2b1175ec7e90b31c90b2de2bf0d8_74711588.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/dd4264cd484e3344b1313dfd1688c521_71566347.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e171c516bd6359158199a6be0cbd2b13_99339214.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3cbae083761ecc3b82bc4666a5903c65_4476921.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/efde2b1175ec7e90b31c90b2de2bf0d8_58313722.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/edd12e33ed399d305df256c824d6acb1_17985266.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/69a8e0f554e50e385ccb95e9a1fd690e_26883360.png change filename to text .wget -O 17.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/a89bb56c9bb05a71f9eb67b6d7543a8b_9683843.jpg change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/63970de67e0a67a0da9c4a24abe005d3_6327490.png change filename to text .imagette204119491739205063/ imagette204119491739205063/1739204411_399018_1336543687_eaaed09aded929671ccd8d7db8410481_rle_crop_3668256241_0.png.png imagette204119491739205063/1739204658_404456_1336544286_e456251616642a6ea817024ccad75974_rle_crop_3668272169_0.png.png imagette204119491739205063/1739204873_412107_1336545262_42ca74148d3cd08f386c7f01005b54ff_rle_crop_3668277911_0.png.png imagette204119491739205063/1739204794_411110_1336544236_612881b30aea6f202e52252bcf8ae8ab_rle_crop_3668277390_0.png.png imagette204119491739205063/1739204774_410880_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272450_0.png.png imagette204119491739205063/1739204658_404456_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272457_0.png.png imagette204119491739205063/1739204833_411590_1336545212_b1d2b7b2040a141ba791937a44f8516c_rle_crop_3668277658_0.png.png imagette204119491739205063/1739204833_411590_1336545215_78c55de954d5d2b049410d7d407da73e_rle_crop_3668277643_0.png.png imagette204119491739205063/1739204512_400605_1336544119_57c8cb3bca6aaf2a0d50a79764c02933_rle_crop_3668262362_0.png.png imagette204119491739205063/1739204411_399018_1336543996_9fd41a3f32f1448eced7472a23c44666_rle_crop_3668256211_0.png.png imagette204119491739205063/1739204535_400928_1336543996_9fd41a3f32f1448eced7472a23c44666_bib_crop_3668256211_0.jpg.jpg imagette204119491739205063/1739204854_411827_1336544456_acf14f58222e4c581e2e2de3d211434a_rle_crop_3668277840_0.png.png imagette204119491739205063/1739204794_411110_1336544236_612881b30aea6f202e52252bcf8ae8ab_rle_crop_3668277394_0.png.png imagette204119491739205063/1739204535_400928_1336543687_eaaed09aded929671ccd8d7db8410481_rle_crop_3668256241_0.png.png imagette204119491739205063/1739204658_404456_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272450_0.png.png imagette204119491739205063/1739204774_410880_1336544286_e456251616642a6ea817024ccad75974_rle_crop_3668272169_0.png.png imagette204119491739205063/1739204658_404456_1336544282_228a91ee114e4f02e41cadc360e2473e_rle_crop_3668272479_0.png.png imagette204119491739205063/1739204774_410880_1336544282_228a91ee114e4f02e41cadc360e2473e_rle_crop_3668272479_0.png.png imagette204119491739205063/1739204774_410880_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272457_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/69a8e0f554e50e385ccb95e9a1fd690e_1374871.png imagette204119491739205063 20411950 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=20411950 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336544320: '1739204411_399018_1336543680_a6aa7072b0f320ec148904d6696c7c9e_rle_crop_3668260044_0.png', 1336544321: '1739204411_399018_1336543680_a6aa7072b0f320ec148904d6696c7c9e_rle_crop_3668260048_0.png', 1336544333: '1739204431_399745_1336543941_00b1ed718b7dbbda1a4456297bf9251d_rle_crop_3668260067_0.png', 1336544420: '1739204493_400414_1336543941_00b1ed718b7dbbda1a4456297bf9251d_rle_crop_3668260067_0.png', 1336544429: '1739204512_400605_1336544167_34c13b21041718fc99c4870d6892af25_rle_crop_3668261930_0.png', 1336544474: '1739204535_400928_1336543680_a6aa7072b0f320ec148904d6696c7c9e_rle_crop_3668260044_0.png', 1336544475: '1739204535_400928_1336543680_a6aa7072b0f320ec148904d6696c7c9e_rle_crop_3668260048_0.png', 1336544522: '1739204658_404456_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272454_0.png', 1336545566: '1739204751_410690_1336544402_aa7fc12d4b4feace6cba9fcfe4462dce_rle_crop_3668276818_0.png', 1336545766: '1739204774_410880_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272454_0.png', 1336546181: '1739204873_412107_1336545262_42ca74148d3cd08f386c7f01005b54ff_rle_crop_3668277905_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/81205a8c0a537190ca3b6917a5ffe07b_68109724.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d5c9523aae3e6fad5792c6067719d4d5_53609974.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/cb7ef54af0c87bb7afa681a8aac03cab_35702381.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/cb7ef54af0c87bb7afa681a8aac03cab_6205918.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/9e6ccbc5f18c6f9731e0ecfe463390cc_20005540.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/81205a8c0a537190ca3b6917a5ffe07b_99971130.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d5c9523aae3e6fad5792c6067719d4d5_82151005.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e4bdde43d00746d34577e1631f067766_59689685.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/864ff057e92b8b5cb866ae836b14f0cd_66200992.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e4bdde43d00746d34577e1631f067766_26119815.png change filename to text .imagette204119501739205064/ imagette204119501739205064/1739204751_410690_1336544402_aa7fc12d4b4feace6cba9fcfe4462dce_rle_crop_3668276818_0.png.png imagette204119501739205064/1739204512_400605_1336544167_34c13b21041718fc99c4870d6892af25_rle_crop_3668261930_0.png.png imagette204119501739205064/1739204411_399018_1336543680_a6aa7072b0f320ec148904d6696c7c9e_rle_crop_3668260048_0.png.png imagette204119501739205064/1739204411_399018_1336543680_a6aa7072b0f320ec148904d6696c7c9e_rle_crop_3668260044_0.png.png imagette204119501739205064/1739204535_400928_1336543680_a6aa7072b0f320ec148904d6696c7c9e_rle_crop_3668260044_0.png.png imagette204119501739205064/1739204658_404456_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272454_0.png.png imagette204119501739205064/1739204493_400414_1336543941_00b1ed718b7dbbda1a4456297bf9251d_rle_crop_3668260067_0.png.png imagette204119501739205064/1739204535_400928_1336543680_a6aa7072b0f320ec148904d6696c7c9e_rle_crop_3668260048_0.png.png imagette204119501739205064/1739204873_412107_1336545262_42ca74148d3cd08f386c7f01005b54ff_rle_crop_3668277905_0.png.png imagette204119501739205064/1739204431_399745_1336543941_00b1ed718b7dbbda1a4456297bf9251d_rle_crop_3668260067_0.png.png imagette204119501739205064/1739204774_410880_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272454_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/6c9417b20666fda155d6f9b55c692ded_86424714.png imagette204119501739205064 20411939 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=20411939 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336544426: '1739204512_400605_1336544119_57c8cb3bca6aaf2a0d50a79764c02933_rle_crop_3668262361_0.png', 1336546143: '1739204854_411827_1336544509_6cc99ac8ba0d930e644838c3cdb78251_rle_crop_3668277799_0.png', 1336546137: '1739204833_411590_1336545215_78c55de954d5d2b049410d7d407da73e_rle_crop_3668277644_0.png', 1336545559: '1739204751_410690_1336544402_aa7fc12d4b4feace6cba9fcfe4462dce_rle_crop_3668276824_0.png', 1336545294: '1739204732_410516_1336544349_cfbbe4a123dda4a7ffc3d5d76a74565b_rle_crop_3668275764_0.png', 1336544472: '1739204535_400928_1336543669_459038cd6360ac105bd3f90905b43629_bib_crop_3668260088_0.jpg', 1336544471: '1739204535_400928_1336543669_459038cd6360ac105bd3f90905b43629_rle_crop_3668260094_0.png', 1336544428: '1739204512_400605_1336544088_f4faa9b73f6d314fe0132f6375af9553_rle_crop_3668263584_0.png', 1336544427: '1739204512_400605_1336544113_ba062a80e885c57296f42f8b15a397c2_rle_crop_3668262381_0.png', 1336544317: '1739204411_399018_1336543669_459038cd6360ac105bd3f90905b43629_rle_crop_3668260094_0.png', 1336544425: '1739204512_400605_1336544167_34c13b21041718fc99c4870d6892af25_rle_crop_3668261937_0.png', 1336544416: '1739204493_400414_1336543939_ca6802e2b75da3308b5ddac8feb7b781_rle_crop_3668260127_0.png', 1336544415: '1739204493_400414_1336543940_0e7a3344702011911b78147ff518b9f3_rle_crop_3668260077_0.png', 1336544414: '1739204493_400414_1336544123_91614eeb20c9b154495dd71cab53630b_rle_crop_3668261604_0.png', 1336544330: '1739204431_399745_1336543939_ca6802e2b75da3308b5ddac8feb7b781_rle_crop_3668260127_0.png', 1336544329: '1739204431_399745_1336543940_0e7a3344702011911b78147ff518b9f3_rle_crop_3668260077_0.png', 1336544318: '1739204411_399018_1336543669_459038cd6360ac105bd3f90905b43629_rle_crop_3668260088_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8566e9f817bab3c124f61f8794b9eaa5_68894130.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/1cc82eacf9b543fa19f2a387425a3926_2830601.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/eaf2465abd7d12b75d13c192ceb2bcbb_42349505.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/34a4b93c957084110422d3c3c1c2488e_84864191.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/f550b26188b48d863c706545ff45f977_856677.png change filename to text .wget -O 6.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/1f5f26d07d7362017744fd6df0f6c21d_51587350.jpg change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3d45c3e71caa412ff2285e522bbbcc6d_13942080.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/285eb620f514195d70b910afef356a20_95069905.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/408bf849ea49aacc273a801e7e85946d_39776710.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3d45c3e71caa412ff2285e522bbbcc6d_52135537.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/80bc0a7bbe1b067fa794a52fd4ff14a1_71515275.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/4f292613c7ac0c34172d9abd01c905b1_33053940.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/be32eeda44eeac4fe10b1b9df4d1dc47_45278434.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d1e0d0efcc4e7c73a46530881a07265d_23475032.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/4f292613c7ac0c34172d9abd01c905b1_54711287.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/be32eeda44eeac4fe10b1b9df4d1dc47_77984296.png change filename to text .imagette204119391739205065/ imagette204119391739205065/1739204833_411590_1336545215_78c55de954d5d2b049410d7d407da73e_rle_crop_3668277644_0.png.png imagette204119391739205065/1739204493_400414_1336544123_91614eeb20c9b154495dd71cab53630b_rle_crop_3668261604_0.png.png imagette204119391739205065/1739204535_400928_1336543669_459038cd6360ac105bd3f90905b43629_rle_crop_3668260094_0.png.png imagette204119391739205065/1739204732_410516_1336544349_cfbbe4a123dda4a7ffc3d5d76a74565b_rle_crop_3668275764_0.png.png imagette204119391739205065/1739204431_399745_1336543939_ca6802e2b75da3308b5ddac8feb7b781_rle_crop_3668260127_0.png.png imagette204119391739205065/1739204431_399745_1336543940_0e7a3344702011911b78147ff518b9f3_rle_crop_3668260077_0.png.png imagette204119391739205065/1739204493_400414_1336543940_0e7a3344702011911b78147ff518b9f3_rle_crop_3668260077_0.png.png imagette204119391739205065/1739204854_411827_1336544509_6cc99ac8ba0d930e644838c3cdb78251_rle_crop_3668277799_0.png.png imagette204119391739205065/1739204512_400605_1336544113_ba062a80e885c57296f42f8b15a397c2_rle_crop_3668262381_0.png.png imagette204119391739205065/1739204411_399018_1336543669_459038cd6360ac105bd3f90905b43629_rle_crop_3668260088_0.png.png imagette204119391739205065/1739204512_400605_1336544119_57c8cb3bca6aaf2a0d50a79764c02933_rle_crop_3668262361_0.png.png imagette204119391739205065/1739204751_410690_1336544402_aa7fc12d4b4feace6cba9fcfe4462dce_rle_crop_3668276824_0.png.png imagette204119391739205065/1739204512_400605_1336544167_34c13b21041718fc99c4870d6892af25_rle_crop_3668261937_0.png.png imagette204119391739205065/1739204512_400605_1336544088_f4faa9b73f6d314fe0132f6375af9553_rle_crop_3668263584_0.png.png imagette204119391739205065/1739204411_399018_1336543669_459038cd6360ac105bd3f90905b43629_rle_crop_3668260094_0.png.png imagette204119391739205065/1739204535_400928_1336543669_459038cd6360ac105bd3f90905b43629_bib_crop_3668260088_0.jpg.jpg imagette204119391739205065/1739204493_400414_1336543939_ca6802e2b75da3308b5ddac8feb7b781_rle_crop_3668260127_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/fb376a0b3471cd7912bb5c801552ec74_23736635.png imagette204119391739205065 20411942 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=20411942 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336544521: '1739204658_404456_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272453_0.png', 1336546180: '1739204873_412107_1336545262_42ca74148d3cd08f386c7f01005b54ff_rle_crop_3668277913_0.png', 1336546140: '1739204854_411827_1336544509_6cc99ac8ba0d930e644838c3cdb78251_rle_crop_3668277801_0.png', 1336546105: '1739204833_411590_1336545212_b1d2b7b2040a141ba791937a44f8516c_rle_crop_3668277664_0.png', 1336546104: '1739204833_411590_1336545212_b1d2b7b2040a141ba791937a44f8516c_rle_crop_3668277660_0.png', 1336546103: '1739204833_411590_1336545215_78c55de954d5d2b049410d7d407da73e_rle_crop_3668277650_0.png', 1336546101: '1739204833_411590_1336545215_78c55de954d5d2b049410d7d407da73e_rle_crop_3668277652_0.png', 1336546100: '1739204833_411590_1336545228_5384bcafd257450fc97e32780c09d2e5_rle_crop_3668277636_0.png', 1336546099: '1739204833_411590_1336545228_5384bcafd257450fc97e32780c09d2e5_rle_crop_3668277637_0.png', 1336545765: '1739204774_410880_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272453_0.png', 1336545289: '1739204732_410516_1336544347_e60a7d3749c0c4f76f834ae5251bc451_rle_crop_3668275789_0.png', 1336544314: '1739204411_399018_1336543776_f078a88b3a8008dac928449da2632e09_rle_crop_3668256227_0.png', 1336544470: '1739204535_400928_1336543680_a6aa7072b0f320ec148904d6696c7c9e_rle_crop_3668260051_0.png', 1336544469: '1739204535_400928_1336543776_f078a88b3a8008dac928449da2632e09_rle_crop_3668269593_0.png', 1336544468: '1739204535_400928_1336543776_f078a88b3a8008dac928449da2632e09_rle_crop_3668256227_0.png', 1336544411: '1739204493_400414_1336543939_ca6802e2b75da3308b5ddac8feb7b781_rle_crop_3668260130_0.png', 1336544410: '1739204493_400414_1336543941_00b1ed718b7dbbda1a4456297bf9251d_rle_crop_3668260071_0.png', 1336544409: '1739204493_400414_1336543943_335ec2672a7e5241ee9f7418d24c87e0_rle_crop_3668260036_0.png', 1336544324: '1739204431_399745_1336543939_ca6802e2b75da3308b5ddac8feb7b781_rle_crop_3668260130_0.png', 1336544323: '1739204431_399745_1336543941_00b1ed718b7dbbda1a4456297bf9251d_rle_crop_3668260071_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/42030ad182e9102bbc42d5d33ace3930_52361327.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/ac83debc18f3ceadef2e4b99811a06d9_73212499.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3fc7c7a9084dc9dd543b99d326d390c9_51674618.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/83247db718f3560abd1ad720c070822b_26779402.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8cd78248f73caa0e7913457b43664cb6_79061669.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/25d5da719363d17fc30b46434dd702cb_11249959.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/390f777b05dd90115dc3feace1f66194_47036628.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/652bfea9c3c334fc674053db5728f8b4_11450988.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/caec045579f3e2af2980a4c0d3655bc0_42873876.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/42030ad182e9102bbc42d5d33ace3930_45218531.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3f3e98f07d33b79ef5640ecf2593ec32_85896888.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/4b6b51370af800f049b56ac9075a3e41_14517820.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/24aa1d3225ee4b976196230e7ab1a446_69084377.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/6b8ee4973d480855be4034d32aaaa9b0_14713363.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/4b6b51370af800f049b56ac9075a3e41_90736385.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b9c43d13d447fcb5a554c08be73ac52d_84098095.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b76d897c4e81cb1accce92527b22f748_45112342.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/011b14be3b6cf4c0202dae00c8f35b40_89139616.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b9c43d13d447fcb5a554c08be73ac52d_26555510.png change filename to text .imagette204119421739205066/ imagette204119421739205066/1739204854_411827_1336544509_6cc99ac8ba0d930e644838c3cdb78251_rle_crop_3668277801_0.png.png imagette204119421739205066/1739204774_410880_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272453_0.png.png imagette204119421739205066/1739204873_412107_1336545262_42ca74148d3cd08f386c7f01005b54ff_rle_crop_3668277913_0.png.png imagette204119421739205066/1739204431_399745_1336543939_ca6802e2b75da3308b5ddac8feb7b781_rle_crop_3668260130_0.png.png imagette204119421739205066/1739204431_399745_1336543941_00b1ed718b7dbbda1a4456297bf9251d_rle_crop_3668260071_0.png.png imagette204119421739205066/1739204535_400928_1336543776_f078a88b3a8008dac928449da2632e09_rle_crop_3668256227_0.png.png imagette204119421739205066/1739204833_411590_1336545228_5384bcafd257450fc97e32780c09d2e5_rle_crop_3668277637_0.png.png imagette204119421739205066/1739204833_411590_1336545212_b1d2b7b2040a141ba791937a44f8516c_rle_crop_3668277664_0.png.png imagette204119421739205066/1739204493_400414_1336543939_ca6802e2b75da3308b5ddac8feb7b781_rle_crop_3668260130_0.png.png imagette204119421739205066/1739204833_411590_1336545228_5384bcafd257450fc97e32780c09d2e5_rle_crop_3668277636_0.png.png imagette204119421739205066/1739204411_399018_1336543776_f078a88b3a8008dac928449da2632e09_rle_crop_3668256227_0.png.png imagette204119421739205066/1739204833_411590_1336545212_b1d2b7b2040a141ba791937a44f8516c_rle_crop_3668277660_0.png.png imagette204119421739205066/1739204833_411590_1336545215_78c55de954d5d2b049410d7d407da73e_rle_crop_3668277652_0.png.png imagette204119421739205066/1739204833_411590_1336545215_78c55de954d5d2b049410d7d407da73e_rle_crop_3668277650_0.png.png imagette204119421739205066/1739204493_400414_1336543943_335ec2672a7e5241ee9f7418d24c87e0_rle_crop_3668260036_0.png.png imagette204119421739205066/1739204732_410516_1336544347_e60a7d3749c0c4f76f834ae5251bc451_rle_crop_3668275789_0.png.png imagette204119421739205066/1739204493_400414_1336543941_00b1ed718b7dbbda1a4456297bf9251d_rle_crop_3668260071_0.png.png imagette204119421739205066/1739204658_404456_1336544284_d2e773bed3fd0201d43d66de937af0aa_rle_crop_3668272453_0.png.png imagette204119421739205066/1739204535_400928_1336543680_a6aa7072b0f320ec148904d6696c7c9e_rle_crop_3668260051_0.png.png imagette204119421739205066/1739204535_400928_1336543776_f078a88b3a8008dac928449da2632e09_rle_crop_3668269593_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b76d897c4e81cb1accce92527b22f748_44799872.png imagette204119421739205066 20411948 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=20411948 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336545570: '1739204751_410690_1336544459_a7818f6ef22b6b33f9fc8c67284e9b66_rle_crop_3668276727_0.png', 1336546154: '1739204854_411827_1336544456_acf14f58222e4c581e2e2de3d211434a_rle_crop_3668277837_0.png', 1336546153: '1739204854_411827_1336544509_6cc99ac8ba0d930e644838c3cdb78251_rle_crop_3668277804_0.png', 1336545790: '1739204794_411110_1336544231_fa568ad8e836a25a490f72fa3a3dbcdb_rle_crop_3668277547_0.png', 1336545789: '1739204794_411110_1336544288_df2579d12471f6882d864d4a5cf3ca1d_rle_crop_3668277364_0.png', 1336545771: '1739204774_410880_1336544280_8adb681640052017efe584cb7cd69640_rle_crop_3668272844_0.png', 1336545770: '1739204774_410880_1336544352_9d92dd92023b64b649a44c0634bd13a3_rle_crop_3668277073_0.png', 1336545572: '1739204751_410690_1336544399_92c1b9382445ae564037cc5cc0852024_rle_crop_3668276858_0.png', 1336545571: '1739204751_410690_1336544402_aa7fc12d4b4feace6cba9fcfe4462dce_rle_crop_3668276826_0.png', 1336544326: '1739204411_399018_1336543996_9fd41a3f32f1448eced7472a23c44666_rle_crop_3668256216_0.png', 1336545296: '1739204732_410516_1336544344_4ae23091138a370ee478d3e64408793d_rle_crop_3668276079_0.png', 1336545295: '1739204732_410516_1336544347_e60a7d3749c0c4f76f834ae5251bc451_rle_crop_3668275792_0.png', 1336544524: '1739204658_404456_1336544280_8adb681640052017efe584cb7cd69640_rle_crop_3668272844_0.png', 1336544477: '1739204535_400928_1336543996_9fd41a3f32f1448eced7472a23c44666_rle_crop_3668256216_0.png', 1336544422: '1739204493_400414_1336543949_295f725ceeacd133ada81b48f606952b_rle_crop_3668261702_0.png', 1336544421: '1739204493_400414_1336543949_295f725ceeacd133ada81b48f606952b_bib_crop_3668258056_0.jpg', 1336544334: '1739204431_399745_1336543949_295f725ceeacd133ada81b48f606952b_rle_crop_3668258056_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/7514e30614b81da469d5934884be5835_93671283.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e22fbc8797ab2c62d390a50ef736814c_6121552.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/0d11a313a2c9b598c0b1606959a9827f_18086197.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/dba0e682ceff353f34dbb8040e15f2b8_25602187.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/0eb1cde7730451f5314aa59a361ac569_54735825.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/cd771e35471420aa8b32ad6caddad94f_80390813.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/fee474add2edd3292b29219c8e45e5d8_47153161.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/cbda41cc8afa8e9a6de9da704d84adc5_61395319.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/685aea770524d791e74d2ef39baec3a7_65479796.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/70b739e3b4ad4d7b6e322e0ee1a59971_89127833.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/575da65c43b906917b35cdbed88033eb_52614544.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/5875fb1d78508764b9d06c2d27db03ce_90660626.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/cd771e35471420aa8b32ad6caddad94f_10537031.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/70b739e3b4ad4d7b6e322e0ee1a59971_46831531.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/416e4bc18636a5ae6c008a097736fc18_69798004.png change filename to text .wget -O 16.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/f84b0f3e2388b6fdf3ab7f71886e3188_99142006.jpg change filename to text .imagette204119481739205067/ imagette204119481739205067/1739204732_410516_1336544344_4ae23091138a370ee478d3e64408793d_rle_crop_3668276079_0.png.png imagette204119481739205067/1739204732_410516_1336544347_e60a7d3749c0c4f76f834ae5251bc451_rle_crop_3668275792_0.png.png imagette204119481739205067/1739204794_411110_1336544231_fa568ad8e836a25a490f72fa3a3dbcdb_rle_crop_3668277547_0.png.png imagette204119481739205067/1739204794_411110_1336544288_df2579d12471f6882d864d4a5cf3ca1d_rle_crop_3668277364_0.png.png imagette204119481739205067/1739204854_411827_1336544509_6cc99ac8ba0d930e644838c3cdb78251_rle_crop_3668277804_0.png.png imagette204119481739205067/1739204751_410690_1336544402_aa7fc12d4b4feace6cba9fcfe4462dce_rle_crop_3668276826_0.png.png imagette204119481739205067/1739204658_404456_1336544280_8adb681640052017efe584cb7cd69640_rle_crop_3668272844_0.png.png imagette204119481739205067/1739204535_400928_1336543996_9fd41a3f32f1448eced7472a23c44666_rle_crop_3668256216_0.png.png imagette204119481739205067/1739204493_400414_1336543949_295f725ceeacd133ada81b48f606952b_rle_crop_3668261702_0.png.png imagette204119481739205067/1739204431_399745_1336543949_295f725ceeacd133ada81b48f606952b_rle_crop_3668258056_0.png.png imagette204119481739205067/1739204774_410880_1336544280_8adb681640052017efe584cb7cd69640_rle_crop_3668272844_0.png.png imagette204119481739205067/1739204854_411827_1336544456_acf14f58222e4c581e2e2de3d211434a_rle_crop_3668277837_0.png.png imagette204119481739205067/1739204493_400414_1336543949_295f725ceeacd133ada81b48f606952b_bib_crop_3668258056_0.jpg.jpg imagette204119481739205067/1739204751_410690_1336544399_92c1b9382445ae564037cc5cc0852024_rle_crop_3668276858_0.png.png imagette204119481739205067/1739204411_399018_1336543996_9fd41a3f32f1448eced7472a23c44666_rle_crop_3668256216_0.png.png imagette204119481739205067/1739204751_410690_1336544459_a7818f6ef22b6b33f9fc8c67284e9b66_rle_crop_3668276727_0.png.png imagette204119481739205067/1739204774_410880_1336544352_9d92dd92023b64b649a44c0634bd13a3_rle_crop_3668277073_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/cf86bc33d73037b488621df1111aab05_3424400.png imagette204119481739205067 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20411932 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20411969,20411974,20411977,20411978,20411979,20411980,20411981,20411982,20411983,20411984,20411985,20411986?tags=Carton_gris,autre_refus,environnement,Teint_Dans_La_Masse,metal,kraft,papier,mal_croppe,flou,Carton_brun,plastique,cartonnette your option no_mail is active, we will not send the real mail to your client args[1336546230] : ('0.045234612719489566',) no score found for photo 1336546230 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com args[1336546227] : ('0.045234612719489566',) no score found for photo 1336546227 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com args[1336546224] : ('0.045234612719489566',) no score found for photo 1336546224 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com args[1336546222] : ('0.045234612719489566',) no score found for photo 1336546222 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com args[1336546194] : ('0.045234612719489566',) no score found for photo 1336546194 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com args[1336546191] : ('0.045234612719489566',) no score found for photo 1336546191 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com args[1336546188] : ('0.045234612719489566',) no score found for photo 1336546188 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com args[1336546186] : ('0.045234612719489566',) no score found for photo 1336546186 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com args[1336546051] : ('0.045234612719489566',) no score found for photo 1336546051 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com args[1336545979] : ('0.045234612719489566',) no score found for photo 1336545979 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com args[1336545925] : ('0.045234612719489566',) no score found for photo 1336545925 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com args[1336545853] : ('0.045234612719489566',) no score found for photo 1336545853 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com args[1336545794] : ('0.045234612719489566',) no score found for photo 1336545794 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com args[1336545788] : ('0.045234612719489566',) no score found for photo 1336545788 apple ('0.045234612719489566',) We are sending mail with results at report@fotonower.com refus_total : 0.045234612719489566 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=20411932 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_P20411932_10-02-2025_17_31_02.pdf results_Auto_P20411932_10-02-2025_17_31_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411932_10-02-2025_17_31_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20411932','results_Auto_P20411932_10-02-2025_17_31_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411932_10-02-2025_17_31_02.pdf','pdf','','0.33','0.045234612719489566') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20411932]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336546230, 1336546227, 1336546224, 1336546222, 1336546194, 1336546191, 1336546188, 1336546186, 1336546051, 1336545979, 1336545925, 1336545853, 1336545794, 1336545788] map_info['map_portfolio_photo'] : {20411932: [1336546230, 1336546227, 1336546224, 1336546222, 1336546194, 1336546191, 1336546188, 1336546186, 1336546051, 1336545979, 1336545925, 1336545853, 1336545794, 1336545788, 1336545577, 1336545574, 1336545262, 1336545228, 1336545215, 1336545212, 1336545168, 1336544509, 1336544505, 1336544502, 1336544459, 1336544456, 1336544408, 1336544405, 1336544402, 1336544399, 1336544352, 1336544349, 1336544347, 1336544344, 1336544342, 1336544288, 1336544286, 1336544284, 1336544282, 1336544280, 1336544243, 1336544240, 1336544238, 1336544236, 1336544233, 1336544231, 1336544167, 1336544165, 1336544163, 1336544123, 1336544119, 1336544113, 1336544092, 1336544088, 1336543996, 1336543949, 1336543943, 1336543941, 1336543940, 1336543939, 1336543776, 1336543687, 1336543682, 1336543680, 1336543669]} final : False mtd_id 4302 list_pids : [1336546230, 1336546227, 1336546224, 1336546222, 1336546194, 1336546191, 1336546188, 1336546186, 1336546051, 1336545979, 1336545925, 1336545853, 1336545794, 1336545788] 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, '2573094') ('4302', '20411932', '1336546230', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546227', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546224', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546222', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546194', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546191', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546188', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546186', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546051', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545979', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545925', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545853', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545794', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545788', None, None, None, None, None, '2573094') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '20411932', '1336546230', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546227', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546224', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546222', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546194', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546191', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546188', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546186', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546051', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545979', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545925', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545853', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545794', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545788', None, None, None, None, None, '2573094')] time used for this insertion : 0.014300107955932617 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.144010305404663 time spend to save output : 0.014839887619018555 total time spend for step 4 : 7.158850193023682 step5:split_time_score Mon Feb 10 17:31:09 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 : ['20411932'] 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 : [('20411932',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20411932) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1336546227: {'path': 'temp/1739205062_3336304_1336546227_bc65379f80b1baf66631935f92de5f20.jpg', 'extension': 'jpg'}, 1336546230: {'path': 'temp/1739205062_3336304_1336546230_38bbad5d1bc32270529db9ea2f5109aa.jpg', 'extension': 'jpg'}, 1336545925: {'path': 'temp/1739205062_3336304_1336545925_7ca6c350c2858aa9d644e8dd23db9308.jpg', 'extension': 'jpg'}, 1336545979: {'path': 'temp/1739205062_3336304_1336545979_c446644f3fa1151a86248200ef653ba7.jpg', 'extension': 'jpg'}, 1336546051: {'path': 'temp/1739205062_3336304_1336546051_e083c12247f87dc574e0eca90c695226.jpg', 'extension': 'jpg'}, 1336546194: {'path': 'temp/1739205062_3336304_1336546194_aecdcd083ea8219c7eda31b5c3314cda.jpg', 'extension': 'jpg'}, 1336546222: {'path': 'temp/1739205062_3336304_1336546222_8a593d8b58438c3895140693fbd911ad.jpg', 'extension': 'jpg'}, 1336546224: {'path': 'temp/1739205062_3336304_1336546224_89480941e7b65ef4d558e30daa5f3bad.jpg', 'extension': 'jpg'}, 1336546186: {'path': 'temp/1739205062_3336304_1336546186_8de8320f8067cca382adfc47aa95b297.jpg', 'extension': 'jpg'}, 1336546188: {'path': 'temp/1739205062_3336304_1336546188_5672ae7d9fcc465faf363b9c3d201000.jpg', 'extension': 'jpg'}, 1336546191: {'path': 'temp/1739205062_3336304_1336546191_b187c9c3195ffadab4dd46b2da792a82.jpg', 'extension': 'jpg'}, 1336545788: {'path': 'temp/1739205062_3336304_1336545788_cb0d3e7a0fdb9714a6d074a182bdfcb6.jpg', 'extension': 'jpg'}, 1336545794: {'path': 'temp/1739205062_3336304_1336545794_d9b8e6cf1165a151f53b1e9722550c79.jpg', 'extension': 'jpg'}, 1336545853: {'path': 'temp/1739205062_3336304_1336545853_f8a5dd626aa0492ecc10d2c6fd196fac.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 = 20411932; (('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 = 20411932 group by h (('17', 65),) 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=20411932 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 (20411932) 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 (20411932) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10022025 20411932 Nombre de photos uploadées : 65 / 23040 (0%) 10022025 20411932 Nombre de photos taguées (types de déchets): 0 / 65 (0%) 10022025 20411932 Nombre de photos taguées (volume) : 0 / 65 (0%) [{'photo_id': 1336543776, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/f078a88b3a8008dac928449da2632e09.jpg', 'username': None, 'uploaded_at': 1739204167, 'text': 'image_10022025_17_15_05_010150m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336543687, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/eaaed09aded929671ccd8d7db8410481.jpg', 'username': None, 'uploaded_at': 1739204167, 'text': 'image_10022025_17_15_15_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336543682, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/ec5afdea444c69d4a2492c8c25e59a76.jpg', 'username': None, 'uploaded_at': 1739204167, 'text': 'image_10022025_17_15_25_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336543680, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/a6aa7072b0f320ec148904d6696c7c9e.jpg', 'username': None, 'uploaded_at': 1739204167, 'text': 'image_10022025_17_15_34_009134m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.0067901611328125e-06 elapsed_time : order_list_meta_photo_and_scores 1.1205673217773438e-05 ????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003472566604614258 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20411932, '2025-02-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1590566,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02330756187438965 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= 1590566 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1590566, 'dashboard_run_id': 1599606, 'mtr_portfolio_id': 20410281, 'dashboard_result_id': 8796302, '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_P20410281_10-02-2025_16_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20410285, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20410286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20410287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20410288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20410289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20410290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20410291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20410292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20410293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20410294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20410295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20410296, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1599606, 'mtr_portfolio_id': 20410712, 'dashboard_result_id': 8796303, '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_P20410712_10-02-2025_16_56_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20410743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20410744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20410745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20410746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20410747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20410748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20410749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20410750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20410751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20410752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20410753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20410754, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1599606, 'mtr_portfolio_id': 20411318, 'dashboard_result_id': 8796304, '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_P20411318_10-02-2025_17_18_56.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20411319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20411320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20411321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20411322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20411323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20411324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20411325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20411326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20411327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20411328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20411329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20411330, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1599606, 'mtr_portfolio_id': 20411932, 'dashboard_result_id': 8796305, '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_P20411932_10-02-2025_17_28_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20411939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20411940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20411941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20411942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20411943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20411944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20411945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20411946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20411947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20411948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20411949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20411950, '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 = 20410281 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': 2571911, 'mtr_portfolio_id': 20410281, 'created_at': datetime.datetime(2025, 2, 10, 16, 47), 'result': '0.04693606610190485', 'result_long': None, 'result_double': None}] Qualite : 0.04693606610190485 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20410281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20410281_10-02-2025_16_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20410281 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_P20410281_10-02-2025_16_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20410285, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20410286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20410287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20410288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20410289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20410290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20410291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20410292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20410293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20410294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20410295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20410296, 'pht': 3726}}" where mtr_portfolio_id = 20410281 and dashboard_run_id = 1599606 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`=20410281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8796302, 0.04693606610190485, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20410281_10-02-2025_16_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20410285, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20410286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20410287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20410288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20410289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20410290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20410291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20410292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20410293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20410294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20410295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20410296, '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 = 20410712 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': 2571944, 'mtr_portfolio_id': 20410712, 'created_at': datetime.datetime(2025, 2, 10, 16, 56, 58), 'result': '0.03039747664629459', 'result_long': None, 'result_double': None}] Qualite : 0.03039747664629459 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20410712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20410712_10-02-2025_16_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20410712 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_P20410712_10-02-2025_16_56_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20410743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20410744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20410745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20410746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20410747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20410748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20410749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20410750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20410751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20410752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20410753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20410754, 'pht': 3726}}" where mtr_portfolio_id = 20410712 and dashboard_run_id = 1599606 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`=20410712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8796303, 0.03039747664629459, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20410712_10-02-2025_16_56_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20410743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20410744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20410745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20410746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20410747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20410748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20410749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20410750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20410751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20410752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20410753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20410754, '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 = 20411318 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': 2573040, 'mtr_portfolio_id': 20411318, 'created_at': datetime.datetime(2025, 2, 10, 17, 18, 56), 'result': '0.02863896691993974', 'result_long': None, 'result_double': None}] Qualite : 0.02863896691993974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20411318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411318_10-02-2025_17_18_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20411318 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_P20411318_10-02-2025_17_18_56.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20411319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20411320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20411321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20411322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20411323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20411324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20411325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20411326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20411327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20411328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20411329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20411330, 'pht': 3726}}" where mtr_portfolio_id = 20411318 and dashboard_run_id = 1599606 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`=20411318 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8796304, 0.02863896691993974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411318_10-02-2025_17_18_56.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20411319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20411320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20411321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20411322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20411323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20411324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20411325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20411326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20411327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20411328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20411329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20411330, '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 = 20411932 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': 2573094, 'mtr_portfolio_id': 20411932, 'created_at': datetime.datetime(2025, 2, 10, 17, 31, 1), 'result': '0.045234612719489566', 'result_long': None, 'result_double': None}] Qualite : 0.045234612719489566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20411932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411932_10-02-2025_17_31_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20411932 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_P20411932_10-02-2025_17_31_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20411939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20411940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20411941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20411942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20411943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20411944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20411945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20411946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20411947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20411948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20411949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20411950, 'pht': 3726}}" where mtr_portfolio_id = 20411932 and dashboard_run_id = 1599606 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`=20411932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8796305, 0.045234612719489566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20411932_10-02-2025_17_31_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20411939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20411940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20411941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20411942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20411943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20411944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20411945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20411946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20411947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20411948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20411949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20411950, '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 (20410281,20410712,20411318,20411932) result : ((1336534926,), (1336535135,), (1336535172,), (1336535180,), (1336535181,), (1336535191,), (1336535197,), (1336535288,), (1336535290,), (1336535293,), (1336535295,), (1336535446,), (1336535448,), (1336535450,), (1336535451,), (1336535484,), (1336535490,), (1336535494,), (1336535496,), (1336535498,), (1336535584,), (1336535585,), (1336535587,), (1336535589,), (1336535591,), (1336535667,), (1336535669,), (1336535675,), (1336535683,), (1336535784,), (1336535786,), (1336535789,), (1336535793,), (1336535877,), (1336536228,), (1336536231,), (1336536247,), (1336536264,), (1336536273,), (1336536278,), (1336536512,), (1336536516,), (1336536518,), (1336536521,), (1336536522,), (1336536525,), (1336536626,), (1336536628,), (1336536663,), (1336536815,), (1336536805,), (1336536809,), (1336537068,), (1336537071,), (1336537074,), (1336537077,), (1336537081,), (1336537115,), (1336537118,), (1336537122,), (1336537165,), (1336537167,), (1336537215,), (1336537282,), (1336537285,), (1336537327,), (1336537330,), (1336537335,), (1336537386,), (1336537389,), (1336537392,), (1336537398,), (1336537416,), (1336537424,), (1336537509,), (1336537513,), (1336537515,), (1336537568,), (1336537571,), (1336537608,), (1336537613,), (1336537661,), (1336537665,), (1336538436,), (1336538440,), (1336538955,), (1336538989,), (1336538995,), (1336539001,), (1336539007,), (1336539013,), (1336539126,), (1336539113,), (1336539118,), (1336539121,), (1336539124,), (1336539151,), (1336539163,), (1336539166,), (1336539171,), (1336539174,), (1336539215,), (1336539221,), (1336539227,), (1336539233,), (1336539281,), (1336539285,), (1336539294,), (1336539296,), (1336539301,), (1336539421,), (1336539423,), (1336539426,), (1336539428,), (1336539433,), (1336539440,), (1336539483,), (1336539489,), (1336539491,), (1336539494,), (1336539527,), (1336539529,), (1336539533,), (1336539535,), (1336540335,), (1336540337,), (1336540341,), (1336541333,), (1336541456,), (1336541546,), (1336542510,), (1336542611,), (1336542700,), (1336543229,), (1336543250,), (1336543257,), (1336543358,), (1336543363,), (1336543369,), (1336543376,), (1336543421,), (1336543425,), (1336543433,), (1336543436,), (1336543446,), (1336543483,), (1336543486,), (1336543489,), (1336543492,), (1336543496,), (1336543500,), (1336543582,), (1336543585,), (1336543588,), (1336543777,), (1336543669,), (1336543680,), (1336543682,), (1336543687,), (1336543776,), (1336543939,), (1336543940,), (1336543941,), (1336543943,), (1336543949,), (1336543996,), (1336544088,), (1336544092,), (1336544113,), (1336544119,), (1336544123,), (1336544163,), (1336544165,), (1336544167,), (1336544231,), (1336544233,), (1336544236,), (1336544238,), (1336544240,), (1336544243,), (1336544280,), (1336544282,), (1336544284,), (1336544286,), (1336544288,), (1336544342,), (1336544344,), (1336544347,), (1336544349,), (1336544352,), (1336544399,), (1336544402,), (1336544405,), (1336544408,), (1336544456,), (1336544459,), (1336544502,), (1336544505,), (1336544509,), (1336545168,), (1336545212,), (1336545215,), (1336545228,), (1336545262,), (1336545574,), (1336545577,), (1336545788,), (1336545794,), (1336545853,), (1336545925,), (1336545979,), (1336546051,), (1336546186,), (1336546188,), (1336546191,), (1336546194,), (1336546222,), (1336546224,), (1336546227,), (1336546230,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10022025': {'nb_upload': 65, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20411932]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1336546230, 1336546227, 1336546224, 1336546222, 1336546194, 1336546191, 1336546188, 1336546186, 1336546051, 1336545979, 1336545925, 1336545853, 1336545794, 1336545788] map_info['map_portfolio_photo'] : {20411932: [1336546230, 1336546227, 1336546224, 1336546222, 1336546194, 1336546191, 1336546188, 1336546186, 1336546051, 1336545979, 1336545925, 1336545853, 1336545794, 1336545788, 1336545577, 1336545574, 1336545262, 1336545228, 1336545215, 1336545212, 1336545168, 1336544509, 1336544505, 1336544502, 1336544459, 1336544456, 1336544408, 1336544405, 1336544402, 1336544399, 1336544352, 1336544349, 1336544347, 1336544344, 1336544342, 1336544288, 1336544286, 1336544284, 1336544282, 1336544280, 1336544243, 1336544240, 1336544238, 1336544236, 1336544233, 1336544231, 1336544167, 1336544165, 1336544163, 1336544123, 1336544119, 1336544113, 1336544092, 1336544088, 1336543996, 1336543949, 1336543943, 1336543941, 1336543940, 1336543939, 1336543776, 1336543687, 1336543682, 1336543680, 1336543669]} final : True mtd_id 4302 list_pids : [1336546230, 1336546227, 1336546224, 1336546222, 1336546194, 1336546191, 1336546188, 1336546186, 1336546051, 1336545979, 1336545925, 1336545853, 1336545794, 1336545788] Looping around the photos to save general results len do output : 1 /20411932Didn'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, '2573094') ('4302', '20411932', '1336546230', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546227', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546224', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546222', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546194', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546191', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546188', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546186', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336546051', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545979', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545925', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545853', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545794', None, None, None, None, None, '2573094') ('4302', None, None, None, None, None, None, None, '2573094') ('4302', '20411932', '1336545788', None, None, None, None, None, '2573094') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '20411932', 'None', None, None, None, None, '2573094'), ('4302', '20411932', '1336546230', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546227', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546224', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546222', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546194', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546191', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546188', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546186', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336546051', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545979', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545925', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545853', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545794', None, None, None, None, None, '2573094'), ('4302', '20411932', '1336545788', None, None, None, None, None, '2573094')] time used for this insertion : 0.014504671096801758 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.37636804580688477 time spend to save output : 0.014886856079101562 total time spend for step 5 : 0.39125490188598633 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 (2573094) 3.06user 2.51system 0:14.16elapsed 39%CPU (0avgtext+0avgdata 160400maxresident)k 44816inputs+21520outputs (171major+85370minor)pagefaults 0swaps