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 : 179362 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 (2540444) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2540444) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20180407 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2540444'] with mtr_portfolio_ids : ['20180407'] and first list_photo_ids : [] new path : /proc/179362/ Name: python3 Umask: 0002 State: R (running) Tgid: 179362 Ngid: 0 Pid: 179362 PPid: 179361 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 179362 NSpid: 179362 NSpgid: 177389 NSsid: 177389 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97380 kB VmRSS: 97380 kB RssAnon: 59764 kB RssFile: 37616 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 604 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: 49 nonvoluntary_ctxt_switches: 97 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '179362', 'Ngid': '0', 'Pid': '179362', 'PPid': '179361', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '179362', 'NSpid': '179362', 'NSpgid': '177389', 'NSsid': '177389', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97380 kB', 'VmRSS': '97380 kB', 'RssAnon': '59764 kB', 'RssFile': '37616 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '49', 'nonvoluntary_ctxt_switches': '97'} ('datou_batch_current', '179362', '1106932', '0', '1106932', '865684', '97380', b'', 'marlene', '2540444') 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 (20180407) 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 (2540444 ) ) 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 (20180407) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1334218961, 'portfolio_id': 20180407}, {'photo_id': 1334218578, 'portfolio_id': 20180407}, {'photo_id': 1334218569, 'portfolio_id': 20180407}, {'photo_id': 1334218562, 'portfolio_id': 20180407}, {'photo_id': 1334218559, 'portfolio_id': 20180407}, {'photo_id': 1334218493, 'portfolio_id': 20180407}, {'photo_id': 1334218479, 'portfolio_id': 20180407}, {'photo_id': 1334218467, 'portfolio_id': 20180407}, {'photo_id': 1334218461, 'portfolio_id': 20180407}, {'photo_id': 1334218457, 'portfolio_id': 20180407}, {'photo_id': 1334218454, 'portfolio_id': 20180407}, {'photo_id': 1334218419, 'portfolio_id': 20180407}, {'photo_id': 1334218413, 'portfolio_id': 20180407}, {'photo_id': 1334218409, 'portfolio_id': 20180407}, {'photo_id': 1334218404, 'portfolio_id': 20180407}, {'photo_id': 1334218370, 'portfolio_id': 20180407}, {'photo_id': 1334218367, 'portfolio_id': 20180407}, {'photo_id': 1334218361, 'portfolio_id': 20180407}, {'photo_id': 1334218356, 'portfolio_id': 20180407}, {'photo_id': 1334218351, 'portfolio_id': 20180407}, {'photo_id': 1334218348, 'portfolio_id': 20180407}, {'photo_id': 1334218315, 'portfolio_id': 20180407}, {'photo_id': 1334218311, 'portfolio_id': 20180407}, {'photo_id': 1334218308, 'portfolio_id': 20180407}, {'photo_id': 1334218304, 'portfolio_id': 20180407}, {'photo_id': 1334218302, 'portfolio_id': 20180407}, {'photo_id': 1334218299, 'portfolio_id': 20180407}, {'photo_id': 1334218241, 'portfolio_id': 20180407}, {'photo_id': 1334218221, 'portfolio_id': 20180407}, {'photo_id': 1334218217, 'portfolio_id': 20180407}, {'photo_id': 1334218213, 'portfolio_id': 20180407}, {'photo_id': 1334218210, 'portfolio_id': 20180407}, {'photo_id': 1334218057, 'portfolio_id': 20180407}, {'photo_id': 1334217943, 'portfolio_id': 20180407}, {'photo_id': 1334217940, 'portfolio_id': 20180407}, {'photo_id': 1334217938, 'portfolio_id': 20180407}, {'photo_id': 1334217865, 'portfolio_id': 20180407}, {'photo_id': 1334217857, 'portfolio_id': 20180407}, {'photo_id': 1334217815, 'portfolio_id': 20180407}, {'photo_id': 1334217809, 'portfolio_id': 20180407}, {'photo_id': 1334217790, 'portfolio_id': 20180407}, {'photo_id': 1334216935, 'portfolio_id': 20180407}, {'photo_id': 1334216867, 'portfolio_id': 20180407}, {'photo_id': 1334216809, 'portfolio_id': 20180407}, {'photo_id': 1334216581, 'portfolio_id': 20180407}, {'photo_id': 1334216541, 'portfolio_id': 20180407}, {'photo_id': 1334216537, 'portfolio_id': 20180407}, {'photo_id': 1334216369, 'portfolio_id': 20180407}, {'photo_id': 1334216140, 'portfolio_id': 20180407}, {'photo_id': 1334215908, 'portfolio_id': 20180407}, {'photo_id': 1334215872, 'portfolio_id': 20180407}, {'photo_id': 1334215827, 'portfolio_id': 20180407}, {'photo_id': 1334215824, 'portfolio_id': 20180407}, {'photo_id': 1334215821, 'portfolio_id': 20180407}, {'photo_id': 1334215817, 'portfolio_id': 20180407}, {'photo_id': 1334215814, 'portfolio_id': 20180407}, {'photo_id': 1334215718, 'portfolio_id': 20180407}, {'photo_id': 1334215712, 'portfolio_id': 20180407}, {'photo_id': 1334215707, 'portfolio_id': 20180407}, {'photo_id': 1334215703, 'portfolio_id': 20180407}, {'photo_id': 1334215622, 'portfolio_id': 20180407}, {'photo_id': 1334215614, 'portfolio_id': 20180407}, {'photo_id': 1334215593, 'portfolio_id': 20180407}, {'photo_id': 1334215555, 'portfolio_id': 20180407}, {'photo_id': 1334215052, 'portfolio_id': 20180407}, {'photo_id': 1334215047, 'portfolio_id': 20180407}, {'photo_id': 1334215042, 'portfolio_id': 20180407}, {'photo_id': 1334215038, 'portfolio_id': 20180407}, {'photo_id': 1334214973, 'portfolio_id': 20180407}, {'photo_id': 1334214970, 'portfolio_id': 20180407}] map_portfolio_id_photo_id: {20180407: [1334218961, 1334218578, 1334218569, 1334218562, 1334218559, 1334218493, 1334218479, 1334218467, 1334218461, 1334218457, 1334218454, 1334218419, 1334218413, 1334218409, 1334218404, 1334218370, 1334218367, 1334218361, 1334218356, 1334218351, 1334218348, 1334218315, 1334218311, 1334218308, 1334218304, 1334218302, 1334218299, 1334218241, 1334218221, 1334218217, 1334218213, 1334218210, 1334218057, 1334217943, 1334217940, 1334217938, 1334217865, 1334217857, 1334217815, 1334217809, 1334217790, 1334216935, 1334216867, 1334216809, 1334216581, 1334216541, 1334216537, 1334216369, 1334216140, 1334215908, 1334215872, 1334215827, 1334215824, 1334215821, 1334215817, 1334215814, 1334215718, 1334215712, 1334215707, 1334215703, 1334215622, 1334215614, 1334215593, 1334215555, 1334215052, 1334215047, 1334215042, 1334215038, 1334214973, 1334214970]} ##### 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.014528512954711914 #### 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 3 15:18:56 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 (20180407) 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 : 20180407 get user id for portfolio 20180407 get sub ptf for main ptf 20180407, type 3726 and hashtags ['kraft', 'autre_refus', 'Carton_brun', 'papier', 'mal_croppe', 'Teint_Dans_La_Masse', 'Carton_gris', 'environnement', 'flou', 'metal', 'cartonnette', 'plastique'] 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`=20180407 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','Carton_brun','papier','mal_croppe','Teint_Dans_La_Masse','Carton_gris','environnement','flou','metal','cartonnette','plastique')) 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`=20180407 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','Carton_brun','papier','mal_croppe','Teint_Dans_La_Masse','Carton_gris','environnement','flou','metal','cartonnette','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 20180407, 'sub_port_id': 20180440, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890191, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 57)}, 'autre_refus': {'main_port_id': 20180407, 'sub_port_id': 20180441, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890192, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 57)}, 'papier': {'main_port_id': 20180407, 'sub_port_id': 20180442, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890193, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 57)}, 'metal': {'main_port_id': 20180407, 'sub_port_id': 20180443, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890194, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 57)}, 'mal_croppe': {'main_port_id': 20180407, 'sub_port_id': 20180444, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890195, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20180407, 'sub_port_id': 20180445, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890196, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 57)}, 'plastique': {'main_port_id': 20180407, 'sub_port_id': 20180446, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890197, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 57)}, 'Carton_brun': {'main_port_id': 20180407, 'sub_port_id': 20180447, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890198, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 57)}, 'Carton_gris': {'main_port_id': 20180407, 'sub_port_id': 20180448, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890199, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 57)}, 'kraft': {'main_port_id': 20180407, 'sub_port_id': 20180449, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890200, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 57)}, 'flou': {'main_port_id': 20180407, 'sub_port_id': 20180450, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890201, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 57)}, 'cartonnette': {'main_port_id': 20180407, 'sub_port_id': 20180451, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890202, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20180440 , 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=20180407 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 (20180440) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20180407) result : ((1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,)) 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 20180441 , 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=20180407 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 (20180441) result : ((1334218395,), (1334218566,), (1334219316,), (1334219317,), (1334219318,), (1334219319,), (1334219371,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20180407) result : ((1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,)) 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 20180442 , 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=20180407 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 (20180442) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20180407) result : ((1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,)) 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 20180443 , 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=20180407 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 (20180443) result : ((1334217859,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20180407) result : ((1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,)) 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 20180444 , 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=20180407 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 (20180444) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20180407) result : ((1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,)) 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 20180445 , 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=20180407 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 (20180445) result : ((1334216269,), (1334216785,), (1334217819,), (1334217822,), (1334217824,), (1334217826,), (1334218278,), (1334218279,), (1334218321,), (1334218393,), (1334218394,), (1334218563,), (1334218564,), (1334219309,), (1334219310,), (1334219311,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20180407) result : ((1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,)) 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 20180446 , 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=20180407 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 (20180446) result : ((1334216402,), (1334217863,), (1334218296,), (1334219375,), (1334219376,), (1334219377,), (1334219378,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20180407) result : ((1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,)) 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 20180447 , 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=20180407 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 (20180447) result : ((1334216333,), (1334217860,), (1334218293,), (1334218294,), (1334218399,), (1334218400,), (1334218574,), (1334218575,), (1334218576,), (1334218577,), (1334219417,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20180407) result : ((1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,)) 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 20180448 , 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=20180407 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 (20180448) result : ((1334217821,), (1334217856,), (1334218281,), (1334218282,), (1334218283,), (1334218284,), (1334218396,), (1334218567,), (1334219320,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20180407) result : ((1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,)) 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 20180449 , 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=20180407 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 (20180449) result : ((1334219368,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20180407) result : ((1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,)) 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 20180450 , 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=20180407 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 (20180450) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20180407) result : ((1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,)) 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 20180451 , 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=20180407 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 (20180451) result : ((1334216830,), (1334217854,), (1334217855,), (1334218287,), (1334218288,), (1334218324,), (1334218325,), (1334218326,), (1334218327,), (1334218328,), (1334218397,), (1334218398,), (1334218570,), (1334218571,), (1334219364,), (1334219365,), (1334219414,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20180407) result : ((1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,)) 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`=20180407 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','Carton_brun','papier','mal_croppe','Teint_Dans_La_Masse','Carton_gris','environnement','flou','metal','cartonnette','plastique')) 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`=20180407 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','Carton_brun','papier','mal_croppe','Teint_Dans_La_Masse','Carton_gris','environnement','flou','metal','cartonnette','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 20180407, 'sub_port_id': 20180452, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890203, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 59)}, 'autre_refus': {'main_port_id': 20180407, 'sub_port_id': 20180453, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890204, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 59)}, 'papier': {'main_port_id': 20180407, 'sub_port_id': 20180454, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890205, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 59)}, 'metal': {'main_port_id': 20180407, 'sub_port_id': 20180455, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890206, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 59)}, 'mal_croppe': {'main_port_id': 20180407, 'sub_port_id': 20180456, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890207, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20180407, 'sub_port_id': 20180457, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890208, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 59)}, 'plastique': {'main_port_id': 20180407, 'sub_port_id': 20180458, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890209, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 59)}, 'Carton_brun': {'main_port_id': 20180407, 'sub_port_id': 20180459, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890210, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 59)}, 'Carton_gris': {'main_port_id': 20180407, 'sub_port_id': 20180460, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890211, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 59)}, 'kraft': {'main_port_id': 20180407, 'sub_port_id': 20180461, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890212, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 59)}, 'flou': {'main_port_id': 20180407, 'sub_port_id': 20180462, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890213, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 59)}, 'cartonnette': {'main_port_id': 20180407, 'sub_port_id': 20180463, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12890214, 'last_updated_at': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 15, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 15, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20180452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20180440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20180453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20180441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20180454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20180442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20180455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20180443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20180456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20180444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20180457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20180445 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20180458,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20180446 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20180459,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20180447 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20180460,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20180448 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20180461,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20180449 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20180462,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20180450 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20180463,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20180451 lien utilise dans velours : https://www.fotonower.com/velours/20180452,20180453,20180454,20180455,20180456,20180457,20180458,20180459,20180460,20180461,20180462,20180463?tags=environnement,autre_refus,papier,metal,mal_croppe,Teint_Dans_La_Masse,plastique,Carton_brun,Carton_gris,kraft,flou,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20180407]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1334218961, 1334218578, 1334218569, 1334218562, 1334218559, 1334218493, 1334218479, 1334218467, 1334218461, 1334218457, 1334218454, 1334218419, 1334218413, 1334218409, 1334218404, 1334218370, 1334218367, 1334218361, 1334218356, 1334218351, 1334218348] map_info['map_portfolio_photo'] : {20180407: [1334218961, 1334218578, 1334218569, 1334218562, 1334218559, 1334218493, 1334218479, 1334218467, 1334218461, 1334218457, 1334218454, 1334218419, 1334218413, 1334218409, 1334218404, 1334218370, 1334218367, 1334218361, 1334218356, 1334218351, 1334218348, 1334218315, 1334218311, 1334218308, 1334218304, 1334218302, 1334218299, 1334218241, 1334218221, 1334218217, 1334218213, 1334218210, 1334218057, 1334217943, 1334217940, 1334217938, 1334217865, 1334217857, 1334217815, 1334217809, 1334217790, 1334216935, 1334216867, 1334216809, 1334216581, 1334216541, 1334216537, 1334216369, 1334216140, 1334215908, 1334215872, 1334215827, 1334215824, 1334215821, 1334215817, 1334215814, 1334215718, 1334215712, 1334215707, 1334215703, 1334215622, 1334215614, 1334215593, 1334215555, 1334215052, 1334215047, 1334215042, 1334215038, 1334214973, 1334214970]} final : False mtd_id 4302 list_pids : [1334218961, 1334218578, 1334218569, 1334218562, 1334218559, 1334218493, 1334218479, 1334218467, 1334218461, 1334218457, 1334218454, 1334218419, 1334218413, 1334218409, 1334218404, 1334218370, 1334218367, 1334218361, 1334218356, 1334218351, 1334218348] Looping around the photos to save general results len do output : 1 /20180407. 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, '2540444') ('4302', '20180407', '1334218961', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218578', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218569', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218562', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218559', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218493', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218479', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218467', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218461', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218457', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218454', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218419', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218413', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218409', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218404', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218370', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218367', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218361', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218356', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218351', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218348', None, None, None, None, None, '2540444') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '20180407', "{'environnement': 20180440, 'autre_refus': 20180441, 'papier': 20180442, 'metal': 20180443, 'mal_croppe': 20180444, 'Teint_Dans_La_Masse': 20180445, 'plastique': 20180446, 'Carton_brun': 20180447, 'Carton_gris': 20180448, 'kraft': 20180449, 'flou': 20180450, 'cartonnette': 20180451}", None, None, None, None, '2540444'), ('4302', '20180407', '1334218961', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218578', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218569', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218562', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218559', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218493', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218479', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218467', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218461', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218457', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218454', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218419', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218413', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218409', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218404', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218370', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218367', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218361', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218356', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218351', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218348', None, None, None, None, None, '2540444')] time used for this insertion : 0.016324996948242188 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.632840633392334 time spend to save output : 0.016668319702148438 total time spend for step 1 : 1.6495089530944824 step2:final Mon Feb 3 15:18:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (20180407) 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 20180407 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1334214973,1334214970,1334215052,1334215047,1334215042,1334215038,1334215622,1334215614,1334215593,1334215555,1334215718,1334215712,1334215707,1334215703,1334215827,1334215824,1334215821,1334215817,1334215814,1334216541,1334216537,1334216369,1334216140,1334215908,1334215872,1334216935,1334216867,1334216809,1334216581,1334217865,1334217857,1334217815,1334217809,1334217790,1334218057,1334217943,1334217940,1334217938,1334218241,1334218221,1334218217,1334218213,1334218210,1334218315,1334218311,1334218308,1334218304,1334218302,1334218299,1334218370,1334218367,1334218361,1334218356,1334218351,1334218348,1334218419,1334218413,1334218409,1334218404,1334218493,1334218479,1334218467,1334218461,1334218457,1334218454,1334218578,1334218569,1334218562,1334218559,1334218961); 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([20180407]) Inside saveOutput : final : False verbose : True original output for save of step final : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} new output for save of step final : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} [1334218961, 1334218578, 1334218569, 1334218562, 1334218559, 1334218493, 1334218479, 1334218467, 1334218461, 1334218457, 1334218454, 1334218419, 1334218413, 1334218409, 1334218404, 1334218370, 1334218367, 1334218361, 1334218356, 1334218351, 1334218348] map_info['map_portfolio_photo'] : {20180407: [1334218961, 1334218578, 1334218569, 1334218562, 1334218559, 1334218493, 1334218479, 1334218467, 1334218461, 1334218457, 1334218454, 1334218419, 1334218413, 1334218409, 1334218404, 1334218370, 1334218367, 1334218361, 1334218356, 1334218351, 1334218348, 1334218315, 1334218311, 1334218308, 1334218304, 1334218302, 1334218299, 1334218241, 1334218221, 1334218217, 1334218213, 1334218210, 1334218057, 1334217943, 1334217940, 1334217938, 1334217865, 1334217857, 1334217815, 1334217809, 1334217790, 1334216935, 1334216867, 1334216809, 1334216581, 1334216541, 1334216537, 1334216369, 1334216140, 1334215908, 1334215872, 1334215827, 1334215824, 1334215821, 1334215817, 1334215814, 1334215718, 1334215712, 1334215707, 1334215703, 1334215622, 1334215614, 1334215593, 1334215555, 1334215052, 1334215047, 1334215042, 1334215038, 1334214973, 1334214970]} final : False mtd_id 4302 list_pids : [1334218961, 1334218578, 1334218569, 1334218562, 1334218559, 1334218493, 1334218479, 1334218467, 1334218461, 1334218457, 1334218454, 1334218419, 1334218413, 1334218409, 1334218404, 1334218370, 1334218367, 1334218361, 1334218356, 1334218351, 1334218348] Looping around the photos to save general results len do output : 21 /1334218961.Didn't retrieve data . /1334218578.Didn't retrieve data . /1334218569.Didn't retrieve data . /1334218562.Didn't retrieve data . /1334218559.Didn't retrieve data . /1334218493.Didn't retrieve data . /1334218479.Didn't retrieve data . /1334218467.Didn't retrieve data . /1334218461.Didn't retrieve data . /1334218457.Didn't retrieve data . /1334218454.Didn't retrieve data . /1334218419.Didn't retrieve data . /1334218413.Didn't retrieve data . /1334218409.Didn't retrieve data . /1334218404.Didn't retrieve data . /1334218370.Didn't retrieve data . /1334218367.Didn't retrieve data . /1334218361.Didn't retrieve data . /1334218356.Didn't retrieve data . /1334218351.Didn't retrieve data . /1334218348.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, '2540444') ('4302', '20180407', '1334218961', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218578', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218569', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218562', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218559', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218493', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218479', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218467', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218461', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218457', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218454', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218419', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218413', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218409', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218404', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218370', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218367', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218361', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218356', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218351', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218348', None, None, None, None, None, '2540444') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 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', '20180407', '1334218961', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218578', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218569', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218562', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218559', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218493', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218479', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218467', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218461', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218457', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218454', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218419', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218413', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218409', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218404', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218370', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218367', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218361', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218356', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218351', '0.04297138435771968', None, None, None, None, '2540444'), ('4302', '20180407', '1334218348', '0.04297138435771968', None, None, None, None, '2540444')] time used for this insertion : 0.015864849090576172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07249712944030762 time spend to save output : 0.016769886016845703 total time spend for step 2 : 0.08926701545715332 step3:velours_tree Mon Feb 3 15:18:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {20180407: [{'environnement': 20180440, 'autre_refus': 20180441, 'papier': 20180442, 'metal': 20180443, 'mal_croppe': 20180444, 'Teint_Dans_La_Masse': 20180445, 'plastique': 20180446, 'Carton_brun': 20180447, 'Carton_gris': 20180448, 'kraft': 20180449, 'flou': 20180450, 'cartonnette': 20180451}]} input_args_next_step : {20180407: ()} output_args : {20180407: [{'environnement': 20180440, 'autre_refus': 20180441, 'papier': 20180442, 'metal': 20180443, 'mal_croppe': 20180444, 'Teint_Dans_La_Masse': 20180445, 'plastique': 20180446, 'Carton_brun': 20180447, 'Carton_gris': 20180448, 'kraft': 20180449, 'flou': 20180450, 'cartonnette': 20180451}]} args : 20180407 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 20180440, 'autre_refus': 20180441, 'papier': 20180442, 'metal': 20180443, 'mal_croppe': 20180444, 'Teint_Dans_La_Masse': 20180445, 'plastique': 20180446, 'Carton_brun': 20180447, 'Carton_gris': 20180448, 'kraft': 20180449, 'flou': 20180450, 'cartonnette': 20180451},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20180407) 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([20180407]) 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.5303380489349365 time spend to save output : 5.459785461425781e-05 total time spend for step 3 : 0.5303926467895508 step4:send_mail_cod Mon Feb 3 15:18:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} input_args_next_step : {1334218961: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218961 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218578 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218569 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218562 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218559 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218493 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218479 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218467 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218461 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218457 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218454 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218419 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218413 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218409 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218404 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218370 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218367 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218361 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218356 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218351 depend.output_id : 0 input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ()} output_args : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',)} args : 1334218348 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 : {20180407: [{'environnement': 20180440, 'autre_refus': 20180441, 'papier': 20180442, 'metal': 20180443, 'mal_croppe': 20180444, 'Teint_Dans_La_Masse': 20180445, 'plastique': 20180446, 'Carton_brun': 20180447, 'Carton_gris': 20180448, 'kraft': 20180449, 'flou': 20180450, 'cartonnette': 20180451}]} input_args_next_step : {1334218961: ('0.04297138435771968',), 1334218578: ('0.04297138435771968',), 1334218569: ('0.04297138435771968',), 1334218562: ('0.04297138435771968',), 1334218559: ('0.04297138435771968',), 1334218493: ('0.04297138435771968',), 1334218479: ('0.04297138435771968',), 1334218467: ('0.04297138435771968',), 1334218461: ('0.04297138435771968',), 1334218457: ('0.04297138435771968',), 1334218454: ('0.04297138435771968',), 1334218419: ('0.04297138435771968',), 1334218413: ('0.04297138435771968',), 1334218409: ('0.04297138435771968',), 1334218404: ('0.04297138435771968',), 1334218370: ('0.04297138435771968',), 1334218367: ('0.04297138435771968',), 1334218361: ('0.04297138435771968',), 1334218356: ('0.04297138435771968',), 1334218351: ('0.04297138435771968',), 1334218348: ('0.04297138435771968',), 20180407: ()} output_args : {20180407: [{'environnement': 20180440, 'autre_refus': 20180441, 'papier': 20180442, 'metal': 20180443, 'mal_croppe': 20180444, 'Teint_Dans_La_Masse': 20180445, 'plastique': 20180446, 'Carton_brun': 20180447, 'Carton_gris': 20180448, 'kraft': 20180449, 'flou': 20180450, 'cartonnette': 20180451}]} args : 20180407 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 :22, first value : ('0.04297138435771968',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20180407) 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 (1334218961,1334218578,1334218569,1334218562,1334218559,1334218493,1334218479,1334218467,1334218461,1334218457,1334218454,1334218419,1334218413,1334218409,1334218404,1334218370,1334218367,1334218361,1334218356,1334218351,1334218348) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1334218348 begin to download photo : 1334218370 begin to download photo : 1334218454 begin to download photo : 1334218493 begin to download photo : 1334218961 download finish for photo 1334218348 begin to download photo : 1334218351 download finish for photo 1334218454 begin to download photo : 1334218457 download finish for photo 1334218370 begin to download photo : 1334218404 download finish for photo 1334218961 download finish for photo 1334218493 begin to download photo : 1334218559 download finish for photo 1334218457 begin to download photo : 1334218461 download finish for photo 1334218351 begin to download photo : 1334218356 download finish for photo 1334218559 begin to download photo : 1334218562 download finish for photo 1334218404 begin to download photo : 1334218409 download finish for photo 1334218461 begin to download photo : 1334218467 download finish for photo 1334218356 begin to download photo : 1334218361 download finish for photo 1334218562 begin to download photo : 1334218569 download finish for photo 1334218409 begin to download photo : 1334218413 download finish for photo 1334218467 begin to download photo : 1334218479 download finish for photo 1334218569 begin to download photo : 1334218578 download finish for photo 1334218413 begin to download photo : 1334218419 download finish for photo 1334218361 begin to download photo : 1334218367 download finish for photo 1334218419 download finish for photo 1334218479 download finish for photo 1334218578 download finish for photo 1334218367 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 : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P20180407_03-02-2025_15_18_59.pdf 20180441 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=20180441 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334218395: '1738591852_1624411_1334215052_d816f7d562b35728aefa6f94990c2530_rle_crop_3651568712_0.png', 1334218566: '1738591924_1625120_1334218057_dd4a2a692c220db1df2f09630d66c0ed_rle_crop_3651578700_0.png', 1334219316: '1738592212_1644604_1334218311_83d58095ade0b05490dd12f2833b33f6_rle_crop_3651591101_0.png', 1334219317: '1738592212_1644604_1334218308_9dd5f6c0c464220d485981988853f441_rle_crop_3651591132_0.png', 1334219318: '1738592212_1644604_1334218304_426b4a251a63bcb1b71119dd9bf4d501_rle_crop_3651591183_0.png', 1334219319: '1738592212_1644604_1334218302_e235128e7538049bf9d4997704bcc3fd_rle_crop_3651591289_0.png', 1334219371: '1738592233_1645226_1334218315_c5ea4dd38fa153be52bd3ecd18bfee0a_rle_crop_3651591387_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/80b5b605de3730e4e404d62810884293_47680827.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/e448dd5ea4533faf74ad003e4a13ac27_53947205.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/4ee44160d717b46db3133366ba81b06b_3368535.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/9b2fdcc65986c67eaf867455a806167a_86398143.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/5638ba11c7121408b1c7224f790fb08b_30810224.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/87fc661537747b97e6e4d8b1ed2da312_61772069.png change filename to text .imagette201804411738592339/ imagette201804411738592339/1738592212_1644604_1334218304_426b4a251a63bcb1b71119dd9bf4d501_rle_crop_3651591183_0.png.png imagette201804411738592339/1738592212_1644604_1334218311_83d58095ade0b05490dd12f2833b33f6_rle_crop_3651591101_0.png.png imagette201804411738592339/1738592212_1644604_1334218302_e235128e7538049bf9d4997704bcc3fd_rle_crop_3651591289_0.png.png imagette201804411738592339/1738591852_1624411_1334215052_d816f7d562b35728aefa6f94990c2530_rle_crop_3651568712_0.png.png imagette201804411738592339/1738592233_1645226_1334218315_c5ea4dd38fa153be52bd3ecd18bfee0a_rle_crop_3651591387_0.png.png imagette201804411738592339/1738592212_1644604_1334218308_9dd5f6c0c464220d485981988853f441_rle_crop_3651591132_0.png.png imagette201804411738592339/1738591924_1625120_1334218057_dd4a2a692c220db1df2f09630d66c0ed_rle_crop_3651578700_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/1ebc0765d08354c8676c0e6361ad4828_56341450.png imagette201804411738592339 20180443 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=20180443 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334217859: '1738591594_1615357_1334215593_347594e72c0219abe59fd17ecedc8ab3_rle_crop_3651560424_0.png'} change filename to text .imagette201804431738592339/ imagette201804431738592339/1738591594_1615357_1334215593_347594e72c0219abe59fd17ecedc8ab3_rle_crop_3651560424_0.png.png imagette201804441738592339/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/9fa5a81e95540e46ea4d2879e76f2244_24752546.png imagette201804431738592339 20180444 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=20180444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette201804441738592339 20180446 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=20180446 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334216402: '1738591533_1614487_1334215042_0a5a8f7c680d5faeab2bc2d5975960b6_rle_crop_3651559732_0.png', 1334217863: '1738591612_1615715_1334215042_0a5a8f7c680d5faeab2bc2d5975960b6_rle_crop_3651559732_0.png', 1334218296: '1738591792_1623582_1334215824_3782bc38eb07ac2019b8c25e7ccee18a_rle_crop_3651562154_0.png', 1334219375: '1738592233_1645226_1334218217_f88d9ef5cd0b7c79654524afb1ed489f_rle_crop_3651591412_0.png', 1334219376: '1738592233_1645226_1334218213_f1d1e2841be1e53f9746eb781ef528bb_rle_crop_3651591420_0.png', 1334219377: '1738592233_1645226_1334218210_b3a0556ec8b1f71d34ea4d7720f101c1_rle_crop_3651591496_0.png', 1334219378: '1738592233_1645226_1334218210_b3a0556ec8b1f71d34ea4d7720f101c1_rle_crop_3651591495_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/f10f97205c10eb5473097819954144b7_39442540.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/f10f97205c10eb5473097819954144b7_39354656.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/f7f990233f0421b3605c30fd494f226c_97353550.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/362e8fe05e1f731d0227703cf8c2090d_70485616.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/334d44f0ae43054425d150624411b1ea_64549837.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/560c63feb3ac04068334c1ebc99e6832_73638257.png change filename to text .imagette201804461738592339/ imagette201804461738592339/1738592233_1645226_1334218210_b3a0556ec8b1f71d34ea4d7720f101c1_rle_crop_3651591496_0.png.png imagette201804461738592339/1738591612_1615715_1334215042_0a5a8f7c680d5faeab2bc2d5975960b6_rle_crop_3651559732_0.png.png imagette201804461738592339/1738591792_1623582_1334215824_3782bc38eb07ac2019b8c25e7ccee18a_rle_crop_3651562154_0.png.png imagette201804461738592339/1738592233_1645226_1334218213_f1d1e2841be1e53f9746eb781ef528bb_rle_crop_3651591420_0.png.png imagette201804461738592339/1738592233_1645226_1334218217_f88d9ef5cd0b7c79654524afb1ed489f_rle_crop_3651591412_0.png.png imagette201804461738592339/1738592233_1645226_1334218210_b3a0556ec8b1f71d34ea4d7720f101c1_rle_crop_3651591495_0.png.png imagette201804461738592339/1738591533_1614487_1334215042_0a5a8f7c680d5faeab2bc2d5975960b6_rle_crop_3651559732_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/d7855308e45c03ce91c73df84227d1fd_81803471.png imagette201804461738592339 20180449 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=20180449 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334219368: '1738592212_1644604_1334218302_e235128e7538049bf9d4997704bcc3fd_rle_crop_3651591290_0.png'} change filename to text .imagette201804491738592340/ imagette201804491738592340/1738592212_1644604_1334218302_e235128e7538049bf9d4997704bcc3fd_rle_crop_3651591290_0.png.png imagette201804501738592340/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/f332c70aa3626f974122a7a2a8f9db1e_43125096.png imagette201804491738592340 20180450 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=20180450 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette201804501738592340 20180451 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=20180451 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334218327: '1738591812_1623844_1334216140_37a2f2cd28ac88d2ca655e90126c64ec_rle_crop_3651563537_0.png', 1334219414: '1738592254_1645479_1334217943_dd1cfcd7dd5a30933367bde9a8ce01d4_rle_crop_3651591722_0.png', 1334219365: '1738592212_1644604_1334218308_9dd5f6c0c464220d485981988853f441_rle_crop_3651591123_0.png', 1334219364: '1738592212_1644604_1334218311_83d58095ade0b05490dd12f2833b33f6_rle_crop_3651591107_0.png', 1334218571: '1738591924_1625120_1334217857_fb7bd495b0915d58b3d444538c339d9d_rle_crop_3651578709_0.png', 1334218570: '1738591924_1625120_1334217857_fb7bd495b0915d58b3d444538c339d9d_rle_crop_3651578710_0.png', 1334218398: '1738591852_1624411_1334214970_4377ba264a6ce6a05f0210f91a2a5274_rle_crop_3651574289_0.png', 1334218397: '1738591852_1624411_1334215052_d816f7d562b35728aefa6f94990c2530_rle_crop_3651568723_0.png', 1334218328: '1738591812_1623844_1334215908_4a065b972fdff829edde2380400691a9_rle_crop_3651563548_0.png', 1334216830: '1738591572_1614996_1334215712_4f78e7a3da1da9235310a529caf00aff_rle_crop_3651560065_0.png', 1334218326: '1738591812_1623844_1334216369_dd1d4331b8d3f4978b8b2e7c805b45dd_rle_crop_3651563415_0.png', 1334218325: '1738591812_1623844_1334216369_dd1d4331b8d3f4978b8b2e7c805b45dd_rle_crop_3651563414_0.png', 1334218324: '1738591812_1623844_1334216369_dd1d4331b8d3f4978b8b2e7c805b45dd_rle_crop_3651563408_0.png', 1334218288: '1738591792_1623582_1334215817_29c357264ecf99b6de726ecd9f82a344_rle_crop_3651562335_0.png', 1334218287: '1738591792_1623582_1334215824_3782bc38eb07ac2019b8c25e7ccee18a_rle_crop_3651562157_0.png', 1334217855: '1738591594_1615357_1334215555_e24f83896f1ceaca7be6ba89a0013dd1_rle_crop_3651560466_0.png', 1334217854: '1738591594_1615357_1334215614_921c37c21e8dc32bd7a00bb21d18aa89_rle_crop_3651560407_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/66f5929a29a17f7c734f9dbca06aaa0d_11486394.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/96db94c61ef423416dd463bc4d5d28cc_4076618.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/86ccd9a08d720a9f4d77b61478707286_13709705.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/896bc546a448f37b9f67e5f46c743823_86781702.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/02d7fb405aebe70efb97e57447492961_61482114.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/2f569c51c52f79eab202444b5d5fc977_71008149.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/af270287630d2e8b5ce0a972b7df1a6a_26102620.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/e96b867bef0f8c6f51e72ca54e6d02b8_68711114.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/ba6945167250e610825cf27de7936f76_78789898.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/3a61fd2ab79f78c478cb99be511f3344_78478943.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/58167f3769e22ea9f5b253c8f9088324_30356026.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/1d8eb0f6a8fb745850166a44a4d15a09_31834290.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/645ec1afff0622e4c1b958f7c9999d21_63961326.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/84071ba586840875c455ed7bd8a75973_57917689.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/347ef045ac66f03b4b42f45ae1185b85_63345602.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/900c3813e200f1aa0058225792db0b88_2677916.png change filename to text .imagette201804511738592340/ imagette201804511738592340/1738591594_1615357_1334215614_921c37c21e8dc32bd7a00bb21d18aa89_rle_crop_3651560407_0.png.png imagette201804511738592340/1738591812_1623844_1334216140_37a2f2cd28ac88d2ca655e90126c64ec_rle_crop_3651563537_0.png.png imagette201804511738592340/1738592212_1644604_1334218311_83d58095ade0b05490dd12f2833b33f6_rle_crop_3651591107_0.png.png imagette201804511738592340/1738591812_1623844_1334216369_dd1d4331b8d3f4978b8b2e7c805b45dd_rle_crop_3651563414_0.png.png imagette201804511738592340/1738592212_1644604_1334218308_9dd5f6c0c464220d485981988853f441_rle_crop_3651591123_0.png.png imagette201804511738592340/1738591812_1623844_1334216369_dd1d4331b8d3f4978b8b2e7c805b45dd_rle_crop_3651563408_0.png.png imagette201804511738592340/1738591924_1625120_1334217857_fb7bd495b0915d58b3d444538c339d9d_rle_crop_3651578709_0.png.png imagette201804511738592340/1738591594_1615357_1334215555_e24f83896f1ceaca7be6ba89a0013dd1_rle_crop_3651560466_0.png.png imagette201804511738592340/1738591792_1623582_1334215824_3782bc38eb07ac2019b8c25e7ccee18a_rle_crop_3651562157_0.png.png imagette201804511738592340/1738591852_1624411_1334215052_d816f7d562b35728aefa6f94990c2530_rle_crop_3651568723_0.png.png imagette201804511738592340/1738591852_1624411_1334214970_4377ba264a6ce6a05f0210f91a2a5274_rle_crop_3651574289_0.png.png imagette201804511738592340/1738591924_1625120_1334217857_fb7bd495b0915d58b3d444538c339d9d_rle_crop_3651578710_0.png.png imagette201804511738592340/1738591792_1623582_1334215817_29c357264ecf99b6de726ecd9f82a344_rle_crop_3651562335_0.png.png imagette201804511738592340/1738591812_1623844_1334215908_4a065b972fdff829edde2380400691a9_rle_crop_3651563548_0.png.png imagette201804511738592340/1738591572_1614996_1334215712_4f78e7a3da1da9235310a529caf00aff_rle_crop_3651560065_0.png.png imagette201804511738592340/1738592254_1645479_1334217943_dd1cfcd7dd5a30933367bde9a8ce01d4_rle_crop_3651591722_0.png.png imagette201804511738592340/1738591812_1623844_1334216369_dd1d4331b8d3f4978b8b2e7c805b45dd_rle_crop_3651563415_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/87f033718c914677d9e81ceabfe1a911_43607260.png imagette201804511738592340 20180445 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=20180445 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334216269: '1738591533_1614487_1334215047_c98a8df47c26f6c62e55ab8a94688a15_rle_crop_3651557670_0.png', 1334216785: '1738591572_1614996_1334215712_4f78e7a3da1da9235310a529caf00aff_rle_crop_3651560067_0.png', 1334217819: '1738591594_1615357_1334215614_921c37c21e8dc32bd7a00bb21d18aa89_rle_crop_3651560416_0.png', 1334217822: '1738591612_1615715_1334215622_84892bff32b84ba81f816c6cc02daf60_rle_crop_3651560405_0.png', 1334217824: '1738591612_1615715_1334215622_84892bff32b84ba81f816c6cc02daf60_rle_crop_3651560399_0.png', 1334217826: '1738591612_1615715_1334215047_c98a8df47c26f6c62e55ab8a94688a15_bib_crop_3651557670_0.jpg', 1334218278: '1738591792_1623582_1334216541_9bacfd5b1796df28c57b739ba7428f38_rle_crop_3651562143_0.png', 1334218279: '1738591792_1623582_1334215814_892fb47f9727e02d05f63c020a77fb9e_rle_crop_3651562355_0.png', 1334218321: '1738591812_1623844_1334215872_b6761ab93d3ca1f47a6c0d8733fb6985_rle_crop_3651563564_0.png', 1334218393: '1738591852_1624411_1334214973_2144164594658abd2afe736b6526dcb4_rle_crop_3651571495_0.png', 1334218394: '1738591852_1624411_1334214973_2144164594658abd2afe736b6526dcb4_rle_crop_3651571496_0.png', 1334218563: '1738591924_1625120_1334217809_3358287f852adb382167de15c7327792_rle_crop_3651578747_0.png', 1334218564: '1738591924_1625120_1334217790_6f0a35d7eb5c0996b3399d6e41768dfc_rle_crop_3651578756_0.png', 1334219309: '1738592212_1644604_1334218311_83d58095ade0b05490dd12f2833b33f6_rle_crop_3651591106_0.png', 1334219310: '1738592212_1644604_1334218308_9dd5f6c0c464220d485981988853f441_rle_crop_3651591131_0.png', 1334219311: '1738592212_1644604_1334218302_e235128e7538049bf9d4997704bcc3fd_rle_crop_3651591287_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/acdfdcbbeff5f0e286f9fc2876e553b6_95860924.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/4a445c638e24fe0c2f236bd86e20310e_30375095.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/269df0a84fae7d8bad25a3b56a90ac2e_1656391.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/04afb2c25ab6bfad5411ec0f18889025_23216738.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/890997e45256464dd86fb0a017b88048_81355551.png change filename to text .wget -O 6.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/3c7ac3052dabd04b1c0aa8c1e1270b19_96178554.jpg change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/8da34209e3979f5ddbe3fa5853cfdb99_24408930.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/a304e88545996346df479ccba1e693a3_76466370.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/58e6d1a4f3b7c9e46a3f5e5aa1fb4e14_65024379.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/ef371ddcef1a5168c8f429aa564e1e72_74348909.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/4f5517afcf9573661daad07f038557ee_48965737.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/317bb3d5e6cf860cb77ef84ed1f8d04b_67948338.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/1d6b6face75f6b6f32a696068e8942e1_80238084.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/88ed4caf22759c6b121496aa9beb216c_89539638.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/09503d4affbb85eea14ed3e102a25a9d_11579363.png change filename to text .imagette201804451738592341/ imagette201804451738592341/1738591572_1614996_1334215712_4f78e7a3da1da9235310a529caf00aff_rle_crop_3651560067_0.png.png imagette201804451738592341/1738592212_1644604_1334218311_83d58095ade0b05490dd12f2833b33f6_rle_crop_3651591106_0.png.png imagette201804451738592341/1738592212_1644604_1334218308_9dd5f6c0c464220d485981988853f441_rle_crop_3651591131_0.png.png imagette201804451738592341/1738591924_1625120_1334217790_6f0a35d7eb5c0996b3399d6e41768dfc_rle_crop_3651578756_0.png.png imagette201804451738592341/1738591792_1623582_1334216541_9bacfd5b1796df28c57b739ba7428f38_rle_crop_3651562143_0.png.png imagette201804451738592341/1738591594_1615357_1334215614_921c37c21e8dc32bd7a00bb21d18aa89_rle_crop_3651560416_0.png.png imagette201804451738592341/1738591852_1624411_1334214973_2144164594658abd2afe736b6526dcb4_rle_crop_3651571496_0.png.png imagette201804451738592341/1738592212_1644604_1334218302_e235128e7538049bf9d4997704bcc3fd_rle_crop_3651591287_0.png.png imagette201804451738592341/1738591533_1614487_1334215047_c98a8df47c26f6c62e55ab8a94688a15_rle_crop_3651557670_0.png.png imagette201804451738592341/1738591924_1625120_1334217809_3358287f852adb382167de15c7327792_rle_crop_3651578747_0.png.png imagette201804451738592341/1738591612_1615715_1334215622_84892bff32b84ba81f816c6cc02daf60_rle_crop_3651560399_0.png.png imagette201804451738592341/1738591612_1615715_1334215622_84892bff32b84ba81f816c6cc02daf60_rle_crop_3651560405_0.png.png imagette201804451738592341/1738591852_1624411_1334214973_2144164594658abd2afe736b6526dcb4_rle_crop_3651571495_0.png.png imagette201804451738592341/1738591812_1623844_1334215872_b6761ab93d3ca1f47a6c0d8733fb6985_rle_crop_3651563564_0.png.png imagette201804451738592341/1738591792_1623582_1334215814_892fb47f9727e02d05f63c020a77fb9e_rle_crop_3651562355_0.png.png imagette201804451738592341/1738591612_1615715_1334215047_c98a8df47c26f6c62e55ab8a94688a15_bib_crop_3651557670_0.jpg.jpg wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/7e2a37e1b8959cb1c647238416b309b3_75449642.png imagette201804451738592341 20180447 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=20180447 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334216333: '1738591533_1614487_1334215038_461c1de7698fe53a2be56b4376424f65_rle_crop_3651559742_0.png', 1334217860: '1738591612_1615715_1334215038_461c1de7698fe53a2be56b4376424f65_rle_crop_3651559742_0.png', 1334218293: '1738591792_1623582_1334215821_884ca44d1d738009fe1e103d4fcbc4b1_rle_crop_3651562177_0.png', 1334218294: '1738591792_1623582_1334215821_884ca44d1d738009fe1e103d4fcbc4b1_rle_crop_3651562180_0.png', 1334218399: '1738591852_1624411_1334215052_d816f7d562b35728aefa6f94990c2530_rle_crop_3651568720_0.png', 1334218400: '1738591852_1624411_1334214970_4377ba264a6ce6a05f0210f91a2a5274_rle_crop_3651574295_0.png', 1334218574: '1738591924_1625120_1334217857_fb7bd495b0915d58b3d444538c339d9d_rle_crop_3651578716_0.png', 1334218575: '1738591924_1625120_1334217790_6f0a35d7eb5c0996b3399d6e41768dfc_rle_crop_3651578754_0.png', 1334218576: '1738591924_1625120_1334217790_6f0a35d7eb5c0996b3399d6e41768dfc_rle_crop_3651578758_0.png', 1334218577: '1738591924_1625120_1334217790_6f0a35d7eb5c0996b3399d6e41768dfc_rle_crop_3651578761_0.png', 1334219417: '1738592254_1645479_1334217938_29858514d85fe74f72968dc015dbf659_rle_crop_3651591800_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/07a6202866fdff5674b35961eb945099_82674934.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/07a6202866fdff5674b35961eb945099_64481051.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/e990941d6a7501452f2c0e2d6f51d9a6_44052051.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/5b3f537108544585c5def41cbc5ebc5e_37733389.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/584012698bca71ff4ec671120748a881_70525575.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/c979481bca8b6967a2d19dff6ebb7308_69989383.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/a1fb98804b7183549b7b1aecc589d740_11482499.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/eeeb77fe0d73d7e7f2696b221f069f2a_45657667.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/2e50c1a25cabba085b45aeab44d65d97_22307485.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/be0057ac825874a0b844f8f9da745cc2_48635049.png change filename to text .imagette201804471738592342/ imagette201804471738592342/1738591792_1623582_1334215821_884ca44d1d738009fe1e103d4fcbc4b1_rle_crop_3651562180_0.png.png imagette201804471738592342/1738591533_1614487_1334215038_461c1de7698fe53a2be56b4376424f65_rle_crop_3651559742_0.png.png imagette201804471738592342/1738591924_1625120_1334217857_fb7bd495b0915d58b3d444538c339d9d_rle_crop_3651578716_0.png.png imagette201804471738592342/1738591792_1623582_1334215821_884ca44d1d738009fe1e103d4fcbc4b1_rle_crop_3651562177_0.png.png imagette201804471738592342/1738591852_1624411_1334214970_4377ba264a6ce6a05f0210f91a2a5274_rle_crop_3651574295_0.png.png imagette201804471738592342/1738591924_1625120_1334217790_6f0a35d7eb5c0996b3399d6e41768dfc_rle_crop_3651578758_0.png.png imagette201804471738592342/1738591924_1625120_1334217790_6f0a35d7eb5c0996b3399d6e41768dfc_rle_crop_3651578754_0.png.png imagette201804471738592342/1738592254_1645479_1334217938_29858514d85fe74f72968dc015dbf659_rle_crop_3651591800_0.png.png imagette201804471738592342/1738591612_1615715_1334215038_461c1de7698fe53a2be56b4376424f65_rle_crop_3651559742_0.png.png imagette201804471738592342/1738591852_1624411_1334215052_d816f7d562b35728aefa6f94990c2530_rle_crop_3651568720_0.png.png imagette201804471738592342/1738591924_1625120_1334217790_6f0a35d7eb5c0996b3399d6e41768dfc_rle_crop_3651578761_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/fa8dc6de3a85b1d54fc58d6fb05a1b1c_95004263.png imagette201804471738592342 20180448 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=20180448 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334217821: '1738591594_1615357_1334215593_347594e72c0219abe59fd17ecedc8ab3_rle_crop_3651560432_0.png', 1334217856: '1738591612_1615715_1334215622_84892bff32b84ba81f816c6cc02daf60_rle_crop_3651560401_0.png', 1334218281: '1738591792_1623582_1334215824_3782bc38eb07ac2019b8c25e7ccee18a_rle_crop_3651562162_0.png', 1334218282: '1738591792_1623582_1334215821_884ca44d1d738009fe1e103d4fcbc4b1_rle_crop_3651562178_0.png', 1334218283: '1738591792_1623582_1334215817_29c357264ecf99b6de726ecd9f82a344_rle_crop_3651562334_0.png', 1334218284: '1738591792_1623582_1334215817_29c357264ecf99b6de726ecd9f82a344_rle_crop_3651562345_0.png', 1334218396: '1738591852_1624411_1334214970_4377ba264a6ce6a05f0210f91a2a5274_rle_crop_3651574282_0.png', 1334218567: '1738591924_1625120_1334217815_0df9b79208dbb63ad7515c9fc90c6618_rle_crop_3651578726_0.png', 1334219320: '1738592212_1644604_1334218299_c4980fa82dcdc2c66f57741f96a38d36_rle_crop_3651591377_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/a2f9e33900c042fd8b680cf7e7662686_40273032.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/469c4b6cc52213aa1d707e2662a6907d_17202296.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/650291f625ec2cf095ba1c04735c58fa_5085637.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/1bdc95ea53fed80840d27a9c75bd48bf_12719585.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/2b3fb68229abc993c58778f421916848_39602648.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/88af8bb12937ae58aba7b96a27ae37f4_19456273.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/369f3b7668b162e603cbf1bbcdcdebc9_43604217.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/9e0f0c349ee93c23dbf756d01c609ef4_88686306.png change filename to text .imagette201804481738592342/ imagette201804481738592342/1738591792_1623582_1334215821_884ca44d1d738009fe1e103d4fcbc4b1_rle_crop_3651562178_0.png.png imagette201804481738592342/1738592212_1644604_1334218299_c4980fa82dcdc2c66f57741f96a38d36_rle_crop_3651591377_0.png.png imagette201804481738592342/1738591792_1623582_1334215817_29c357264ecf99b6de726ecd9f82a344_rle_crop_3651562334_0.png.png imagette201804481738592342/1738591594_1615357_1334215593_347594e72c0219abe59fd17ecedc8ab3_rle_crop_3651560432_0.png.png imagette201804481738592342/1738591924_1625120_1334217815_0df9b79208dbb63ad7515c9fc90c6618_rle_crop_3651578726_0.png.png imagette201804481738592342/1738591792_1623582_1334215824_3782bc38eb07ac2019b8c25e7ccee18a_rle_crop_3651562162_0.png.png imagette201804481738592342/1738591852_1624411_1334214970_4377ba264a6ce6a05f0210f91a2a5274_rle_crop_3651574282_0.png.png imagette201804481738592342/1738591792_1623582_1334215817_29c357264ecf99b6de726ecd9f82a344_rle_crop_3651562345_0.png.png imagette201804481738592342/1738591612_1615715_1334215622_84892bff32b84ba81f816c6cc02daf60_rle_crop_3651560401_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/4534b9107e6c10e2d150b12f2c48dc06_74977215.png imagette201804481738592342 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20180407 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20180452,20180453,20180454,20180455,20180456,20180457,20180458,20180459,20180460,20180461,20180462,20180463?tags=environnement,autre_refus,papier,metal,mal_croppe,Teint_Dans_La_Masse,plastique,Carton_brun,Carton_gris,kraft,flou,cartonnette your option no_mail is active, we will not send the real mail to your client args[1334218961] : ('0.04297138435771968',) no score found for photo 1334218961 We are sending mail with results at report@fotonower.com args[1334218578] : ('0.04297138435771968',) no score found for photo 1334218578 We are sending mail with results at report@fotonower.com args[1334218569] : ('0.04297138435771968',) no score found for photo 1334218569 We are sending mail with results at report@fotonower.com args[1334218562] : ('0.04297138435771968',) no score found for photo 1334218562 We are sending mail with results at report@fotonower.com args[1334218559] : ('0.04297138435771968',) no score found for photo 1334218559 We are sending mail with results at report@fotonower.com args[1334218493] : ('0.04297138435771968',) no score found for photo 1334218493 We are sending mail with results at report@fotonower.com args[1334218479] : ('0.04297138435771968',) no score found for photo 1334218479 We are sending mail with results at report@fotonower.com args[1334218467] : ('0.04297138435771968',) no score found for photo 1334218467 We are sending mail with results at report@fotonower.com args[1334218461] : ('0.04297138435771968',) no score found for photo 1334218461 We are sending mail with results at report@fotonower.com args[1334218457] : ('0.04297138435771968',) no score found for photo 1334218457 We are sending mail with results at report@fotonower.com args[1334218454] : ('0.04297138435771968',) no score found for photo 1334218454 We are sending mail with results at report@fotonower.com args[1334218419] : ('0.04297138435771968',) no score found for photo 1334218419 We are sending mail with results at report@fotonower.com args[1334218413] : ('0.04297138435771968',) no score found for photo 1334218413 We are sending mail with results at report@fotonower.com args[1334218409] : ('0.04297138435771968',) no score found for photo 1334218409 We are sending mail with results at report@fotonower.com args[1334218404] : ('0.04297138435771968',) no score found for photo 1334218404 We are sending mail with results at report@fotonower.com args[1334218370] : ('0.04297138435771968',) no score found for photo 1334218370 We are sending mail with results at report@fotonower.com args[1334218367] : ('0.04297138435771968',) no score found for photo 1334218367 We are sending mail with results at report@fotonower.com args[1334218361] : ('0.04297138435771968',) no score found for photo 1334218361 We are sending mail with results at report@fotonower.com args[1334218356] : ('0.04297138435771968',) no score found for photo 1334218356 We are sending mail with results at report@fotonower.com args[1334218351] : ('0.04297138435771968',) no score found for photo 1334218351 We are sending mail with results at report@fotonower.com args[1334218348] : ('0.04297138435771968',) no score found for photo 1334218348 We are sending mail with results at report@fotonower.com refus_total : 0.04297138435771968 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=20180407 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_P20180407_03-02-2025_15_18_59.pdf results_Auto_P20180407_03-02-2025_15_18_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20180407_03-02-2025_15_18_59.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','20180407','results_Auto_P20180407_03-02-2025_15_18_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20180407_03-02-2025_15_18_59.pdf','pdf','','0.34','0.04297138435771968') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20180407]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1334218961, 1334218578, 1334218569, 1334218562, 1334218559, 1334218493, 1334218479, 1334218467, 1334218461, 1334218457, 1334218454, 1334218419, 1334218413, 1334218409, 1334218404, 1334218370, 1334218367, 1334218361, 1334218356, 1334218351, 1334218348] map_info['map_portfolio_photo'] : {20180407: [1334218961, 1334218578, 1334218569, 1334218562, 1334218559, 1334218493, 1334218479, 1334218467, 1334218461, 1334218457, 1334218454, 1334218419, 1334218413, 1334218409, 1334218404, 1334218370, 1334218367, 1334218361, 1334218356, 1334218351, 1334218348, 1334218315, 1334218311, 1334218308, 1334218304, 1334218302, 1334218299, 1334218241, 1334218221, 1334218217, 1334218213, 1334218210, 1334218057, 1334217943, 1334217940, 1334217938, 1334217865, 1334217857, 1334217815, 1334217809, 1334217790, 1334216935, 1334216867, 1334216809, 1334216581, 1334216541, 1334216537, 1334216369, 1334216140, 1334215908, 1334215872, 1334215827, 1334215824, 1334215821, 1334215817, 1334215814, 1334215718, 1334215712, 1334215707, 1334215703, 1334215622, 1334215614, 1334215593, 1334215555, 1334215052, 1334215047, 1334215042, 1334215038, 1334214973, 1334214970]} final : False mtd_id 4302 list_pids : [1334218961, 1334218578, 1334218569, 1334218562, 1334218559, 1334218493, 1334218479, 1334218467, 1334218461, 1334218457, 1334218454, 1334218419, 1334218413, 1334218409, 1334218404, 1334218370, 1334218367, 1334218361, 1334218356, 1334218351, 1334218348] 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, '2540444') ('4302', '20180407', '1334218961', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218578', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218569', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218562', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218559', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218493', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218479', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218467', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218461', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218457', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218454', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218419', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218413', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218409', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218404', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218370', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218367', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218361', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218356', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218351', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218348', None, None, None, None, None, '2540444') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '20180407', '1334218961', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218578', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218569', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218562', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218559', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218493', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218479', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218467', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218461', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218457', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218454', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218419', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218413', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218409', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218404', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218370', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218367', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218361', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218356', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218351', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218348', None, None, None, None, None, '2540444')] time used for this insertion : 0.013868331909179688 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.857845306396484 time spend to save output : 0.01411294937133789 total time spend for step 4 : 5.871958255767822 step5:split_time_score Mon Feb 3 15:19:04 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 : ['20180407'] 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 : [('20180407',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20180407) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1334218961: {'path': 'temp/1738592338_179362_1334218961_e83d7334a4827771208815ace1019509.jpg', 'extension': 'jpg'}, 1334218370: {'path': 'temp/1738592338_179362_1334218370_7addf0085a290aa8370d2056b4517c9a.jpg', 'extension': 'jpg'}, 1334218404: {'path': 'temp/1738592338_179362_1334218404_e3866e9188811be74e1832f27cd3190b.jpg', 'extension': 'jpg'}, 1334218409: {'path': 'temp/1738592338_179362_1334218409_d3bc810e16f1073fc7609fcd3c4d08e7.jpg', 'extension': 'jpg'}, 1334218413: {'path': 'temp/1738592338_179362_1334218413_16dbfa76a6824ede2beb4449475245f2.jpg', 'extension': 'jpg'}, 1334218419: {'path': 'temp/1738592338_179362_1334218419_d9c3cfdcc2bd9ae8bf7387b1933a7ec2.jpg', 'extension': 'jpg'}, 1334218454: {'path': 'temp/1738592338_179362_1334218454_7005e8be161553881a92afd8ce3636c9.jpg', 'extension': 'jpg'}, 1334218457: {'path': 'temp/1738592338_179362_1334218457_6949ba31b00310478beb75c756228b81.jpg', 'extension': 'jpg'}, 1334218461: {'path': 'temp/1738592338_179362_1334218461_a1f5cd0c9cda646df5b79f80da33327a.jpg', 'extension': 'jpg'}, 1334218467: {'path': 'temp/1738592338_179362_1334218467_ee4940b3bdf873a4abacc6b3a576bfb6.jpg', 'extension': 'jpg'}, 1334218479: {'path': 'temp/1738592338_179362_1334218479_3f6475239cc61286e5965251d7eccd2b.jpg', 'extension': 'jpg'}, 1334218493: {'path': 'temp/1738592338_179362_1334218493_03cf041a888f995ccb0bd13f2e990ec2.jpg', 'extension': 'jpg'}, 1334218559: {'path': 'temp/1738592338_179362_1334218559_d8eb4102c906cdaf6e1eca8d6741c68c.jpg', 'extension': 'jpg'}, 1334218562: {'path': 'temp/1738592338_179362_1334218562_a27496d625973218eb6490d5a11d5db8.jpg', 'extension': 'jpg'}, 1334218569: {'path': 'temp/1738592338_179362_1334218569_59cd4e137ab9906606d8649ff6ecaa49.jpg', 'extension': 'jpg'}, 1334218578: {'path': 'temp/1738592338_179362_1334218578_a2a21742bf783eeaaa135eed96ef9ab9.jpg', 'extension': 'jpg'}, 1334218348: {'path': 'temp/1738592338_179362_1334218348_0afb5ec2a1a433f3004d373a0f9b37e6.jpg', 'extension': 'jpg'}, 1334218351: {'path': 'temp/1738592338_179362_1334218351_6e294d3dd5eb9dfcc8a75ad78c62417e.jpg', 'extension': 'jpg'}, 1334218356: {'path': 'temp/1738592338_179362_1334218356_a05411a4f80d29e3d531d32fd115b1e4.jpg', 'extension': 'jpg'}, 1334218361: {'path': 'temp/1738592338_179362_1334218361_5867dae8525fe45adc72f040feed8371.jpg', 'extension': 'jpg'}, 1334218367: {'path': 'temp/1738592338_179362_1334218367_dba919d6d1eb19d07ff76744bf13b5d0.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 = 20180407; (('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 = 20180407 group by h (('15', 70),) 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=20180407 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 (20180407) 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 (20180407) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03022025 20180407 Nombre de photos uploadées : 70 / 23040 (0%) 03022025 20180407 Nombre de photos taguées (types de déchets): 0 / 70 (0%) 03022025 20180407 Nombre de photos taguées (volume) : 0 / 70 (0%) [{'photo_id': 1334214973, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/2144164594658abd2afe736b6526dcb4.jpg', 'username': None, 'uploaded_at': 1738591268, 'text': 'image_03022025_15_00_14_10175.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1334214970, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/4377ba264a6ce6a05f0210f91a2a5274.jpg', 'username': None, 'uploaded_at': 1738591268, 'text': 'image_03022025_15_00_24_10140.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1334215052, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/d816f7d562b35728aefa6f94990c2530.jpg', 'username': None, 'uploaded_at': 1738591328, 'text': 'image_03022025_15_00_54_10137.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1334215047, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/c98a8df47c26f6c62e55ab8a94688a15.jpg', 'username': None, 'uploaded_at': 1738591328, 'text': 'image_03022025_15_01_14_009127m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ?????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003367185592651367 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20180407, '2025-02-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1572874,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022565364837646484 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= 1572874 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1572874, 'dashboard_run_id': 1581518, 'mtr_portfolio_id': 20179073, 'dashboard_result_id': 8660934, '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_P20179073_03-02-2025_14_49_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179160, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1581518, 'mtr_portfolio_id': 20179533, 'dashboard_result_id': 8660935, '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_P20179533_03-02-2025_15_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179617, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1581518, 'mtr_portfolio_id': 20180407, 'dashboard_result_id': 8660936, '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_P20180407_03-02-2025_15_12_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20180440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20180441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20180442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20180443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20180444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20180445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20180446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20180447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20180448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20180449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20180450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20180451, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1581518, 'mtr_portfolio_id': 20181040, 'dashboard_result_id': 8660937, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20179073 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': 2540151, 'mtr_portfolio_id': 20179073, 'created_at': datetime.datetime(2025, 2, 3, 14, 49, 28), 'result': '0.04469096429604301', 'result_long': None, 'result_double': None}] Qualite : 0.04469096429604301 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20179073 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20179073_03-02-2025_14_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20179073 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_P20179073_03-02-2025_14_49_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179160, 'pht': 3726}}" where mtr_portfolio_id = 20179073 and dashboard_run_id = 1581518 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`=20179073 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8660934, 0.04469096429604301, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20179073_03-02-2025_14_49_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179160, '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 = 20179533 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': 2540241, 'mtr_portfolio_id': 20179533, 'created_at': datetime.datetime(2025, 2, 3, 15, 2, 58), 'result': '0.04736227611727434', 'result_long': None, 'result_double': None}] Qualite : 0.04736227611727434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20179533 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20179533_03-02-2025_15_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20179533 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_P20179533_03-02-2025_15_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179617, 'pht': 3726}}" where mtr_portfolio_id = 20179533 and dashboard_run_id = 1581518 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`=20179533 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8660935, 0.04736227611727434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20179533_03-02-2025_15_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179617, '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 = 20180407 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': 2540444, 'mtr_portfolio_id': 20180407, 'created_at': datetime.datetime(2025, 2, 3, 15, 18, 58), 'result': '0.04297138435771968', 'result_long': None, 'result_double': None}] Qualite : 0.04297138435771968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20180407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20180407_03-02-2025_15_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20180407 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_P20180407_03-02-2025_15_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20180440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20180441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20180442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20180443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20180444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20180445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20180446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20180447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20180448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20180449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20180450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20180451, 'pht': 3726}}" where mtr_portfolio_id = 20180407 and dashboard_run_id = 1581518 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`=20180407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8660936, 0.04297138435771968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20180407_03-02-2025_15_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20180440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20180441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20180442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20180443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20180444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20180445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20180446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20180447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20180448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20180449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20180450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20180451, '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 = 20181040 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20181040 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20181040 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20181040%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20181040 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 20181040 and dashboard_run_id = 1581518 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20179073,20179533,20180407,20181040) result : ((1334206936,), (1334206939,), (1334206942,), (1334206967,), (1334206970,), (1334206972,), (1334206999,), (1334207001,), (1334207019,), (1334207022,), (1334207025,), (1334207030,), (1334207043,), (1334207049,), (1334207052,), (1334207055,), (1334207058,), (1334207063,), (1334207071,), (1334207207,), (1334207216,), (1334207322,), (1334207329,), (1334207443,), (1334207447,), (1334207541,), (1334207546,), (1334207577,), (1334207709,), (1334207711,), (1334207717,), (1334207909,), (1334207914,), (1334207917,), (1334207921,), (1334207923,), (1334208540,), (1334208625,), (1334208710,), (1334208799,), (1334209216,), (1334209218,), (1334209222,), (1334209225,), (1334209249,), (1334209319,), (1334209408,), (1334209508,), (1334209598,), (1334209951,), (1334209949,), (1334210072,), (1334210073,), (1334210076,), (1334210078,), (1334210121,), (1334210122,), (1334210126,), (1334210127,), (1334210130,), (1334210131,), (1334210133,), (1334210135,), (1334210203,), (1334210289,), (1334210373,), (1334210464,), (1334211210,), (1334211212,), (1334211216,), (1334211272,), (1334211319,), (1334211413,), (1334211504,), (1334211604,), (1334211799,), (1334211803,), (1334211809,), (1334211841,), (1334211925,), (1334212443,), (1334212467,), (1334212474,), (1334212476,), (1334212481,), (1334212570,), (1334212577,), (1334212584,), (1334213422,), (1334213426,), (1334213428,), (1334213717,), (1334213790,), (1334213809,), (1334213813,), (1334214009,), (1334214015,), (1334214020,), (1334214025,), (1334214775,), (1334214791,), (1334214810,), (1334214815,), (1334214892,), (1334214897,), (1334214901,), (1334214907,), (1334214912,), (1334214977,), (1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,), (1334218617,), (1334218626,), (1334218708,), (1334218799,), (1334218880,), (1334219084,), (1334219087,), (1334219128,), (1334219170,), (1334219174,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03022025': {'nb_upload': 70, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20180407]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1334218961, 1334218578, 1334218569, 1334218562, 1334218559, 1334218493, 1334218479, 1334218467, 1334218461, 1334218457, 1334218454, 1334218419, 1334218413, 1334218409, 1334218404, 1334218370, 1334218367, 1334218361, 1334218356, 1334218351, 1334218348] map_info['map_portfolio_photo'] : {20180407: [1334218961, 1334218578, 1334218569, 1334218562, 1334218559, 1334218493, 1334218479, 1334218467, 1334218461, 1334218457, 1334218454, 1334218419, 1334218413, 1334218409, 1334218404, 1334218370, 1334218367, 1334218361, 1334218356, 1334218351, 1334218348, 1334218315, 1334218311, 1334218308, 1334218304, 1334218302, 1334218299, 1334218241, 1334218221, 1334218217, 1334218213, 1334218210, 1334218057, 1334217943, 1334217940, 1334217938, 1334217865, 1334217857, 1334217815, 1334217809, 1334217790, 1334216935, 1334216867, 1334216809, 1334216581, 1334216541, 1334216537, 1334216369, 1334216140, 1334215908, 1334215872, 1334215827, 1334215824, 1334215821, 1334215817, 1334215814, 1334215718, 1334215712, 1334215707, 1334215703, 1334215622, 1334215614, 1334215593, 1334215555, 1334215052, 1334215047, 1334215042, 1334215038, 1334214973, 1334214970]} final : True mtd_id 4302 list_pids : [1334218961, 1334218578, 1334218569, 1334218562, 1334218559, 1334218493, 1334218479, 1334218467, 1334218461, 1334218457, 1334218454, 1334218419, 1334218413, 1334218409, 1334218404, 1334218370, 1334218367, 1334218361, 1334218356, 1334218351, 1334218348] Looping around the photos to save general results len do output : 1 /20180407Didn'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, '2540444') ('4302', '20180407', '1334218961', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218578', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218569', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218562', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218559', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218493', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218479', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218467', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218461', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218457', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218454', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218419', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218413', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218409', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218404', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218370', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218367', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218361', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218356', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218351', None, None, None, None, None, '2540444') ('4302', None, None, None, None, None, None, None, '2540444') ('4302', '20180407', '1334218348', None, None, None, None, None, '2540444') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '20180407', 'None', None, None, None, None, '2540444'), ('4302', '20180407', '1334218961', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218578', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218569', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218562', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218559', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218493', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218479', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218467', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218461', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218457', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218454', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218419', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218413', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218409', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218404', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218370', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218367', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218361', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218356', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218351', None, None, None, None, None, '2540444'), ('4302', '20180407', '1334218348', None, None, None, None, None, '2540444')] time used for this insertion : 0.016405820846557617 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0997755527496338 time spend to save output : 0.016719579696655273 total time spend for step 5 : 1.116495132446289 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 (2540444) 2.65user 2.60system 0:11.57elapsed 45%CPU (0avgtext+0avgdata 166472maxresident)k 95296inputs+20880outputs (402major+78931minor)pagefaults 0swaps