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 : 455368 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 (4196402) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4196402) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29257386 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4196402'] with mtr_portfolio_ids : ['29257386'] and first list_photo_ids : [] new path : /proc/455368/ Name: python3 Umask: 0002 State: R (running) Tgid: 455368 Ngid: 0 Pid: 455368 PPid: 455367 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 455368 NSpid: 455368 NSpgid: 453746 NSsid: 453746 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105392 kB VmRSS: 105392 kB RssAnon: 66288 kB RssFile: 39104 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 560 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 40 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '455368', 'Ngid': '0', 'Pid': '455368', 'PPid': '455367', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '455368', 'NSpid': '455368', 'NSpgid': '453746', 'NSsid': '453746', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105392 kB', 'VmRSS': '105392 kB', 'RssAnon': '66288 kB', 'RssFile': '39104 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '560 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '40', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '455368', '1113364', '0', '1113364', '872092', '105392', b'', 'marlene', '4196402') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29257386) 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 (4196402 ) ) 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 (29257386) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398446417, 'portfolio_id': 29257386}, {'photo_id': 1398446394, 'portfolio_id': 29257386}, {'photo_id': 1398446389, 'portfolio_id': 29257386}, {'photo_id': 1398446385, 'portfolio_id': 29257386}, {'photo_id': 1398446384, 'portfolio_id': 29257386}, {'photo_id': 1398446365, 'portfolio_id': 29257386}, {'photo_id': 1398446364, 'portfolio_id': 29257386}, {'photo_id': 1398446363, 'portfolio_id': 29257386}, {'photo_id': 1398446362, 'portfolio_id': 29257386}, {'photo_id': 1398446346, 'portfolio_id': 29257386}, {'photo_id': 1398446344, 'portfolio_id': 29257386}, {'photo_id': 1398446341, 'portfolio_id': 29257386}, {'photo_id': 1398446340, 'portfolio_id': 29257386}, {'photo_id': 1398446339, 'portfolio_id': 29257386}, {'photo_id': 1398446338, 'portfolio_id': 29257386}, {'photo_id': 1398446326, 'portfolio_id': 29257386}, {'photo_id': 1398446323, 'portfolio_id': 29257386}, {'photo_id': 1398446322, 'portfolio_id': 29257386}, {'photo_id': 1398446321, 'portfolio_id': 29257386}, {'photo_id': 1398446313, 'portfolio_id': 29257386}, {'photo_id': 1398446290, 'portfolio_id': 29257386}, {'photo_id': 1398446288, 'portfolio_id': 29257386}, {'photo_id': 1398446286, 'portfolio_id': 29257386}, {'photo_id': 1398446285, 'portfolio_id': 29257386}, {'photo_id': 1398446284, 'portfolio_id': 29257386}, {'photo_id': 1398446283, 'portfolio_id': 29257386}, {'photo_id': 1398446271, 'portfolio_id': 29257386}, {'photo_id': 1398446268, 'portfolio_id': 29257386}, {'photo_id': 1398446267, 'portfolio_id': 29257386}, {'photo_id': 1398446266, 'portfolio_id': 29257386}, {'photo_id': 1398446259, 'portfolio_id': 29257386}, {'photo_id': 1398446258, 'portfolio_id': 29257386}, {'photo_id': 1398446257, 'portfolio_id': 29257386}, {'photo_id': 1398446248, 'portfolio_id': 29257386}, {'photo_id': 1398446245, 'portfolio_id': 29257386}, {'photo_id': 1398446242, 'portfolio_id': 29257386}, {'photo_id': 1398446239, 'portfolio_id': 29257386}, {'photo_id': 1398446238, 'portfolio_id': 29257386}, {'photo_id': 1398446237, 'portfolio_id': 29257386}, {'photo_id': 1398446215, 'portfolio_id': 29257386}, {'photo_id': 1398446214, 'portfolio_id': 29257386}, {'photo_id': 1398446212, 'portfolio_id': 29257386}, {'photo_id': 1398446197, 'portfolio_id': 29257386}, {'photo_id': 1398446195, 'portfolio_id': 29257386}, {'photo_id': 1398446192, 'portfolio_id': 29257386}, {'photo_id': 1398446191, 'portfolio_id': 29257386}, {'photo_id': 1398446190, 'portfolio_id': 29257386}, {'photo_id': 1398446189, 'portfolio_id': 29257386}, {'photo_id': 1398446166, 'portfolio_id': 29257386}, {'photo_id': 1398446164, 'portfolio_id': 29257386}, {'photo_id': 1398446163, 'portfolio_id': 29257386}, {'photo_id': 1398446162, 'portfolio_id': 29257386}, {'photo_id': 1398446161, 'portfolio_id': 29257386}, {'photo_id': 1398446143, 'portfolio_id': 29257386}, {'photo_id': 1398446140, 'portfolio_id': 29257386}, {'photo_id': 1398446137, 'portfolio_id': 29257386}, {'photo_id': 1398446136, 'portfolio_id': 29257386}, {'photo_id': 1398446135, 'portfolio_id': 29257386}, {'photo_id': 1398446134, 'portfolio_id': 29257386}, {'photo_id': 1398446109, 'portfolio_id': 29257386}, {'photo_id': 1398446099, 'portfolio_id': 29257386}, {'photo_id': 1398446096, 'portfolio_id': 29257386}, {'photo_id': 1398446095, 'portfolio_id': 29257386}, {'photo_id': 1398446078, 'portfolio_id': 29257386}, {'photo_id': 1398446076, 'portfolio_id': 29257386}, {'photo_id': 1398446075, 'portfolio_id': 29257386}, {'photo_id': 1398446074, 'portfolio_id': 29257386}, {'photo_id': 1398446073, 'portfolio_id': 29257386}, {'photo_id': 1398446057, 'portfolio_id': 29257386}, {'photo_id': 1398446051, 'portfolio_id': 29257386}, {'photo_id': 1398446048, 'portfolio_id': 29257386}, {'photo_id': 1398446047, 'portfolio_id': 29257386}] map_portfolio_id_photo_id: {29257386: [1398446417, 1398446394, 1398446389, 1398446385, 1398446384, 1398446365, 1398446364, 1398446363, 1398446362, 1398446346, 1398446344, 1398446341, 1398446340, 1398446339, 1398446338, 1398446326, 1398446323, 1398446322, 1398446321, 1398446313, 1398446290, 1398446288, 1398446286, 1398446285, 1398446284, 1398446283, 1398446271, 1398446268, 1398446267, 1398446266, 1398446259, 1398446258, 1398446257, 1398446248, 1398446245, 1398446242, 1398446239, 1398446238, 1398446237, 1398446215, 1398446214, 1398446212, 1398446197, 1398446195, 1398446192, 1398446191, 1398446190, 1398446189, 1398446166, 1398446164, 1398446163, 1398446162, 1398446161, 1398446143, 1398446140, 1398446137, 1398446136, 1398446135, 1398446134, 1398446109, 1398446099, 1398446096, 1398446095, 1398446078, 1398446076, 1398446075, 1398446074, 1398446073, 1398446057, 1398446051, 1398446048, 1398446047]} ##### 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.020213603973388672 #### 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 Dec 8 06:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29257386) 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 : 29257386 get user id for portfolio 29257386 get sub ptf for main ptf 29257386, type 3726 and hashtags ['cartonnette', 'plastique', 'kraft', 'papier', 'mal_croppe', 'Carton_brun', 'metal', 'environnement', 'Teint_Dans_La_Masse', 'autre_refus', 'flou', 'Carton_gris'] 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`=29257386 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','kraft','papier','mal_croppe','Carton_brun','metal','environnement','Teint_Dans_La_Masse','autre_refus','flou','Carton_gris')) 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`=29257386 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','kraft','papier','mal_croppe','Carton_brun','metal','environnement','Teint_Dans_La_Masse','autre_refus','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29257386, 'sub_port_id': 29257393, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905669, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 27)}, 'metal': {'main_port_id': 29257386, 'sub_port_id': 29257394, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905670, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 27)}, 'mal_croppe': {'main_port_id': 29257386, 'sub_port_id': 29257395, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905671, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 27)}, 'flou': {'main_port_id': 29257386, 'sub_port_id': 29257396, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905672, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 27)}, 'autre_refus': {'main_port_id': 29257386, 'sub_port_id': 29257397, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905673, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 27)}, 'environnement': {'main_port_id': 29257386, 'sub_port_id': 29257398, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905674, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 27)}, 'cartonnette': {'main_port_id': 29257386, 'sub_port_id': 29257399, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905675, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 27)}, 'plastique': {'main_port_id': 29257386, 'sub_port_id': 29257400, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905676, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 27)}, 'Carton_brun': {'main_port_id': 29257386, 'sub_port_id': 29257401, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905677, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 27)}, 'papier': {'main_port_id': 29257386, 'sub_port_id': 29257402, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905678, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 27)}, 'kraft': {'main_port_id': 29257386, 'sub_port_id': 29257403, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905679, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29257386, 'sub_port_id': 29257404, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905680, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29257393 , 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=29257386 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 (29257393) result : ((1398446205,), (1398446231,), (1398446303,), (1398446308,), (1398446309,), (1398446310,), (1398446353,), (1398446354,), (1398446388,), (1398446402,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29257386) result : ((1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,)) 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 29257394 , 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=29257386 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 (29257394) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29257386) result : ((1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,)) 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 29257395 , 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=29257386 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 (29257395) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29257386) result : ((1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,)) 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 29257396 , 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=29257386 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 (29257396) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29257386) result : ((1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,)) 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 29257397 , 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=29257386 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 (29257397) result : ((1398446307,), (1398446387,), (1398446414,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29257386) result : ((1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,)) 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 29257398 , 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=29257386 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 (29257398) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29257386) result : ((1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,)) 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 29257399 , 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=29257386 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 (29257399) result : ((1398446206,), (1398446207,), (1398446232,), (1398446233,), (1398446311,), (1398446312,), (1398446403,), (1398446415,), (1398446416,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29257386) result : ((1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,)) 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 29257400 , 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=29257386 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 (29257400) result : ((1398446209,), (1398446210,), (1398446235,), (1398446236,), (1398446305,), (1398446317,), (1398446318,), (1398446319,), (1398446356,), (1398446357,), (1398446404,), (1398446405,), (1398446406,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29257386) result : ((1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,)) 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 29257401 , 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=29257386 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 (29257401) result : ((1398446208,), (1398446234,), (1398446304,), (1398446314,), (1398446315,), (1398446316,), (1398446355,), (1398446390,), (1398446391,), (1398446392,), (1398446393,), (1398446418,), (1398446419,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29257386) result : ((1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,)) 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 29257402 , 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=29257386 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 (29257402) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29257386) result : ((1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,)) 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 29257403 , 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=29257386 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 (29257403) result : ((1398446320,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29257386) result : ((1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,)) 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 29257404 , 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=29257386 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 (29257404) result : ((1398446203,), (1398446204,), (1398446229,), (1398446230,), (1398446302,), (1398446306,), (1398446352,), (1398446381,), (1398446386,), (1398446400,), (1398446411,), (1398446412,), (1398446413,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29257386) result : ((1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,)) 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`=29257386 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','kraft','papier','mal_croppe','Carton_brun','metal','environnement','Teint_Dans_La_Masse','autre_refus','flou','Carton_gris')) 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`=29257386 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','kraft','papier','mal_croppe','Carton_brun','metal','environnement','Teint_Dans_La_Masse','autre_refus','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29257386, 'sub_port_id': 29257406, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905681, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 33)}, 'metal': {'main_port_id': 29257386, 'sub_port_id': 29257407, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905682, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 33)}, 'mal_croppe': {'main_port_id': 29257386, 'sub_port_id': 29257408, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905683, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 33)}, 'flou': {'main_port_id': 29257386, 'sub_port_id': 29257409, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905684, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 33)}, 'autre_refus': {'main_port_id': 29257386, 'sub_port_id': 29257410, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905685, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 33)}, 'environnement': {'main_port_id': 29257386, 'sub_port_id': 29257411, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905686, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 33)}, 'cartonnette': {'main_port_id': 29257386, 'sub_port_id': 29257412, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905687, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 33)}, 'plastique': {'main_port_id': 29257386, 'sub_port_id': 29257413, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905688, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 33)}, 'Carton_brun': {'main_port_id': 29257386, 'sub_port_id': 29257414, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905689, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 33)}, 'papier': {'main_port_id': 29257386, 'sub_port_id': 29257415, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905690, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 33)}, 'kraft': {'main_port_id': 29257386, 'sub_port_id': 29257416, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905691, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 29257386, 'sub_port_id': 29257417, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905692, 'last_updated_at': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 6, 19, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29257406,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29257393 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29257407,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29257394 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29257408,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29257395 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29257409,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29257396 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29257410,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29257397 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29257411,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29257398 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29257412,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29257399 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29257413,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29257400 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29257414,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29257401 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29257415,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29257402 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29257416,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29257403 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29257417,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29257404 lien utilise dans velours : https://marlene.fotonower.com/velours/29257406,29257407,29257408,29257409,29257410,29257411,29257412,29257413,29257414,29257415,29257416,29257417?tags=Carton_gris,metal,mal_croppe,flou,autre_refus,environnement,cartonnette,plastique,Carton_brun,papier,kraft,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29257386]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398446417, 1398446394, 1398446389, 1398446385, 1398446384] map_info['map_portfolio_photo'] : {29257386: [1398446417, 1398446394, 1398446389, 1398446385, 1398446384, 1398446365, 1398446364, 1398446363, 1398446362, 1398446346, 1398446344, 1398446341, 1398446340, 1398446339, 1398446338, 1398446326, 1398446323, 1398446322, 1398446321, 1398446313, 1398446290, 1398446288, 1398446286, 1398446285, 1398446284, 1398446283, 1398446271, 1398446268, 1398446267, 1398446266, 1398446259, 1398446258, 1398446257, 1398446248, 1398446245, 1398446242, 1398446239, 1398446238, 1398446237, 1398446215, 1398446214, 1398446212, 1398446197, 1398446195, 1398446192, 1398446191, 1398446190, 1398446189, 1398446166, 1398446164, 1398446163, 1398446162, 1398446161, 1398446143, 1398446140, 1398446137, 1398446136, 1398446135, 1398446134, 1398446109, 1398446099, 1398446096, 1398446095, 1398446078, 1398446076, 1398446075, 1398446074, 1398446073, 1398446057, 1398446051, 1398446048, 1398446047]} final : False mtd_id 4302 list_pids : [1398446417, 1398446394, 1398446389, 1398446385, 1398446384] Looping around the photos to save general results len do output : 1 /29257386. 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, '4196402') ('4302', '29257386', '1398446417', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446394', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446389', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446385', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446384', None, None, None, None, None, '4196402') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '29257386', "{'Carton_gris': 29257393, 'metal': 29257394, 'mal_croppe': 29257395, 'flou': 29257396, 'autre_refus': 29257397, 'environnement': 29257398, 'cartonnette': 29257399, 'plastique': 29257400, 'Carton_brun': 29257401, 'papier': 29257402, 'kraft': 29257403, 'Teint_Dans_La_Masse': 29257404}", None, None, None, None, '4196402'), ('4302', '29257386', '1398446417', None, None, None, None, None, '4196402'), ('4302', '29257386', '1398446394', None, None, None, None, None, '4196402'), ('4302', '29257386', '1398446389', None, None, None, None, None, '4196402'), ('4302', '29257386', '1398446385', None, None, None, None, None, '4196402'), ('4302', '29257386', '1398446384', None, None, None, None, None, '4196402')] time used for this insertion : 0.014936208724975586 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8844692707061768 time spend to save output : 0.015197515487670898 total time spend for step 1 : 1.8996667861938477 step2:final Mon Dec 8 06:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (29257386) 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 29257386 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398446057,1398446051,1398446048,1398446047,1398446078,1398446076,1398446075,1398446074,1398446073,1398446109,1398446099,1398446096,1398446095,1398446143,1398446140,1398446137,1398446136,1398446135,1398446134,1398446166,1398446164,1398446163,1398446162,1398446161,1398446197,1398446195,1398446192,1398446191,1398446190,1398446189,1398446215,1398446259,1398446214,1398446258,1398446212,1398446257,1398446248,1398446245,1398446242,1398446239,1398446238,1398446237,1398446271,1398446268,1398446267,1398446266,1398446290,1398446288,1398446286,1398446285,1398446284,1398446283,1398446326,1398446323,1398446322,1398446321,1398446313,1398446346,1398446344,1398446341,1398446340,1398446339,1398446338,1398446365,1398446364,1398446363,1398446362,1398446394,1398446389,1398446385,1398446384,1398446417); 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([29257386]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398446417: ('0.04192416085356214',), 1398446394: ('0.04192416085356214',), 1398446389: ('0.04192416085356214',), 1398446385: ('0.04192416085356214',), 1398446384: ('0.04192416085356214',)} new output for save of step final : {1398446417: ('0.04192416085356214',), 1398446394: ('0.04192416085356214',), 1398446389: ('0.04192416085356214',), 1398446385: ('0.04192416085356214',), 1398446384: ('0.04192416085356214',)} [1398446417, 1398446394, 1398446389, 1398446385, 1398446384] map_info['map_portfolio_photo'] : {29257386: [1398446417, 1398446394, 1398446389, 1398446385, 1398446384, 1398446365, 1398446364, 1398446363, 1398446362, 1398446346, 1398446344, 1398446341, 1398446340, 1398446339, 1398446338, 1398446326, 1398446323, 1398446322, 1398446321, 1398446313, 1398446290, 1398446288, 1398446286, 1398446285, 1398446284, 1398446283, 1398446271, 1398446268, 1398446267, 1398446266, 1398446259, 1398446258, 1398446257, 1398446248, 1398446245, 1398446242, 1398446239, 1398446238, 1398446237, 1398446215, 1398446214, 1398446212, 1398446197, 1398446195, 1398446192, 1398446191, 1398446190, 1398446189, 1398446166, 1398446164, 1398446163, 1398446162, 1398446161, 1398446143, 1398446140, 1398446137, 1398446136, 1398446135, 1398446134, 1398446109, 1398446099, 1398446096, 1398446095, 1398446078, 1398446076, 1398446075, 1398446074, 1398446073, 1398446057, 1398446051, 1398446048, 1398446047]} final : False mtd_id 4302 list_pids : [1398446417, 1398446394, 1398446389, 1398446385, 1398446384] Looping around the photos to save general results len do output : 5 /1398446417.Didn't retrieve data . /1398446394.Didn't retrieve data . /1398446389.Didn't retrieve data . /1398446385.Didn't retrieve data . /1398446384.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, '4196402') ('4302', '29257386', '1398446417', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446394', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446389', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446385', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446384', None, None, None, None, None, '4196402') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29257386', '1398446417', '0.04192416085356214', None, None, None, None, '4196402'), ('4302', '29257386', '1398446394', '0.04192416085356214', None, None, None, None, '4196402'), ('4302', '29257386', '1398446389', '0.04192416085356214', None, None, None, None, '4196402'), ('4302', '29257386', '1398446385', '0.04192416085356214', None, None, None, None, '4196402'), ('4302', '29257386', '1398446384', '0.04192416085356214', None, None, None, None, '4196402')] time used for this insertion : 0.016988277435302734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08345508575439453 time spend to save output : 0.017329692840576172 total time spend for step 2 : 0.1007847785949707 step3:velours_tree Mon Dec 8 06:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {29257386: [{'Carton_gris': 29257393, 'metal': 29257394, 'mal_croppe': 29257395, 'flou': 29257396, 'autre_refus': 29257397, 'environnement': 29257398, 'cartonnette': 29257399, 'plastique': 29257400, 'Carton_brun': 29257401, 'papier': 29257402, 'kraft': 29257403, 'Teint_Dans_La_Masse': 29257404}]} input_args_next_step : {29257386: ()} output_args : {29257386: [{'Carton_gris': 29257393, 'metal': 29257394, 'mal_croppe': 29257395, 'flou': 29257396, 'autre_refus': 29257397, 'environnement': 29257398, 'cartonnette': 29257399, 'plastique': 29257400, 'Carton_brun': 29257401, 'papier': 29257402, 'kraft': 29257403, 'Teint_Dans_La_Masse': 29257404}]} args : 29257386 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 29257393, 'metal': 29257394, 'mal_croppe': 29257395, 'flou': 29257396, 'autre_refus': 29257397, 'environnement': 29257398, 'cartonnette': 29257399, 'plastique': 29257400, 'Carton_brun': 29257401, 'papier': 29257402, 'kraft': 29257403, 'Teint_Dans_La_Masse': 29257404},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29257386) 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([29257386]) 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.29007887840270996 time spend to save output : 4.7206878662109375e-05 total time spend for step 3 : 0.29012608528137207 step4:send_mail_cod Mon Dec 8 06:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1398446417: ('0.04192416085356214',), 1398446394: ('0.04192416085356214',), 1398446389: ('0.04192416085356214',), 1398446385: ('0.04192416085356214',), 1398446384: ('0.04192416085356214',)} input_args_next_step : {1398446417: ()} output_args : {1398446417: ('0.04192416085356214',), 1398446394: ('0.04192416085356214',), 1398446389: ('0.04192416085356214',), 1398446385: ('0.04192416085356214',), 1398446384: ('0.04192416085356214',)} args : 1398446417 depend.output_id : 0 input_args_next_step : {1398446417: ('0.04192416085356214',), 1398446394: ()} output_args : {1398446417: ('0.04192416085356214',), 1398446394: ('0.04192416085356214',), 1398446389: ('0.04192416085356214',), 1398446385: ('0.04192416085356214',), 1398446384: ('0.04192416085356214',)} args : 1398446394 depend.output_id : 0 input_args_next_step : {1398446417: ('0.04192416085356214',), 1398446394: ('0.04192416085356214',), 1398446389: ()} output_args : {1398446417: ('0.04192416085356214',), 1398446394: ('0.04192416085356214',), 1398446389: ('0.04192416085356214',), 1398446385: ('0.04192416085356214',), 1398446384: ('0.04192416085356214',)} args : 1398446389 depend.output_id : 0 input_args_next_step : {1398446417: ('0.04192416085356214',), 1398446394: ('0.04192416085356214',), 1398446389: ('0.04192416085356214',), 1398446385: ()} output_args : {1398446417: ('0.04192416085356214',), 1398446394: ('0.04192416085356214',), 1398446389: ('0.04192416085356214',), 1398446385: ('0.04192416085356214',), 1398446384: ('0.04192416085356214',)} args : 1398446385 depend.output_id : 0 input_args_next_step : {1398446417: ('0.04192416085356214',), 1398446394: ('0.04192416085356214',), 1398446389: ('0.04192416085356214',), 1398446385: ('0.04192416085356214',), 1398446384: ()} output_args : {1398446417: ('0.04192416085356214',), 1398446394: ('0.04192416085356214',), 1398446389: ('0.04192416085356214',), 1398446385: ('0.04192416085356214',), 1398446384: ('0.04192416085356214',)} args : 1398446384 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 : {29257386: [{'Carton_gris': 29257393, 'metal': 29257394, 'mal_croppe': 29257395, 'flou': 29257396, 'autre_refus': 29257397, 'environnement': 29257398, 'cartonnette': 29257399, 'plastique': 29257400, 'Carton_brun': 29257401, 'papier': 29257402, 'kraft': 29257403, 'Teint_Dans_La_Masse': 29257404}]} input_args_next_step : {1398446417: ('0.04192416085356214',), 1398446394: ('0.04192416085356214',), 1398446389: ('0.04192416085356214',), 1398446385: ('0.04192416085356214',), 1398446384: ('0.04192416085356214',), 29257386: ()} output_args : {29257386: [{'Carton_gris': 29257393, 'metal': 29257394, 'mal_croppe': 29257395, 'flou': 29257396, 'autre_refus': 29257397, 'environnement': 29257398, 'cartonnette': 29257399, 'plastique': 29257400, 'Carton_brun': 29257401, 'papier': 29257402, 'kraft': 29257403, 'Teint_Dans_La_Masse': 29257404}]} args : 29257386 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 :6, first value : ('0.04192416085356214',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29257386) 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_view ph WHERE photo_id IN (1398446417,1398446394,1398446389,1398446385,1398446384) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398446384 begin to download photo : 1398446389 begin to download photo : 1398446417 download finish for photo 1398446384 begin to download photo : 1398446385 download finish for photo 1398446389 begin to download photo : 1398446394 download finish for photo 1398446417 download finish for photo 1398446385 download finish for photo 1398446394 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette292573941765171860/ imagette292573951765171860/ imagette292573961765171860/ length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P29257386_08-12-2025_06_31_00.pdf 29257394 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29257394 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292573941765171860 29257395 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29257395 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292573951765171860 29257396 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29257396 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292573961765171860 29257397 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29257397 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398446307: '1765171506_2228744_1398446195_64be6cb6fceeec7cd599ea7c3f3bbf9a_rle_crop_4063003061_0.png', 1398446387: '1765171465_2226950_1398446051_91466de691e44381aca0b643d7584245_rle_crop_4063003966_0.png', 1398446414: '1765171764_2237687_1398446239_a9072c693f6f7bc1744284c796791659_rle_crop_4063004222_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/06b23742f99ec9698903463e0528f65d_29841566.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/4337929d38ee60e19290640cb2aa74d3_19969058.png change filename to text .imagette292573971765171860/ imagette292573971765171860/1765171506_2228744_1398446195_64be6cb6fceeec7cd599ea7c3f3bbf9a_rle_crop_4063003061_0.png.png imagette292573971765171860/1765171764_2237687_1398446239_a9072c693f6f7bc1744284c796791659_rle_crop_4063004222_0.png.png imagette292573971765171860/1765171465_2226950_1398446051_91466de691e44381aca0b643d7584245_rle_crop_4063003966_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/0b44164cf2dd4202b27c6e463487256e_41739112.png imagette292573971765171860 29257399 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29257399 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398446206: '1765171285_2219473_1398446109_f593a728dbd6a9d7970f041f50672af1_rle_crop_4063001523_0.png', 1398446207: '1765171285_2219473_1398446075_637b2d13acd6077a9cf10e784dc251e2_rle_crop_4063001545_0.png', 1398446232: '1765171345_2222604_1398446109_f593a728dbd6a9d7970f041f50672af1_rle_crop_4063001523_0.png', 1398446233: '1765171345_2222604_1398446075_637b2d13acd6077a9cf10e784dc251e2_rle_crop_4063001545_0.png', 1398446311: '1765171506_2228744_1398446215_5ac8c9c5fe9a00f0baad8ec52d68541a_rle_crop_4063003046_0.png', 1398446312: '1765171506_2228744_1398446189_88a879c5f31dac2fa302d3edec78e39e_rle_crop_4063003102_0.png', 1398446403: '1765171745_2237206_1398446268_696bb30f71c3ed0c5de3057c8c5b31f2_rle_crop_4063004041_0.png', 1398446415: '1765171764_2237687_1398446242_b01f6a3b262ad86f391dbe87cd8f5c73_rle_crop_4063004205_0.png', 1398446416: '1765171764_2237687_1398446238_271e1acb945247724b1c6b4822f63786_rle_crop_4063004229_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/8d793bbcf7ec42cf906ea4bec4bf9eeb_97639050.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/bbd9bd17fe1feefcc79eff1743df3919_68711355.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/8d793bbcf7ec42cf906ea4bec4bf9eeb_43293678.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/bbd9bd17fe1feefcc79eff1743df3919_75914910.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/4c5608c316f4277e9deeb14f41ff7316_86256717.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/29d24ec31a1bd4a9f57f5d21c32cebe2_18463118.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/7ac94c1479d20b0ba07aa6013090df2f_39224310.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/697da8fe8768a5d55c5c2038fe8f5dbe_73355691.png change filename to text .imagette292573991765171861/ imagette292573991765171861/1765171745_2237206_1398446268_696bb30f71c3ed0c5de3057c8c5b31f2_rle_crop_4063004041_0.png.png imagette292573991765171861/1765171345_2222604_1398446075_637b2d13acd6077a9cf10e784dc251e2_rle_crop_4063001545_0.png.png imagette292573991765171861/1765171345_2222604_1398446109_f593a728dbd6a9d7970f041f50672af1_rle_crop_4063001523_0.png.png imagette292573991765171861/1765171285_2219473_1398446109_f593a728dbd6a9d7970f041f50672af1_rle_crop_4063001523_0.png.png imagette292573991765171861/1765171506_2228744_1398446189_88a879c5f31dac2fa302d3edec78e39e_rle_crop_4063003102_0.png.png imagette292573991765171861/1765171285_2219473_1398446075_637b2d13acd6077a9cf10e784dc251e2_rle_crop_4063001545_0.png.png imagette292573991765171861/1765171764_2237687_1398446242_b01f6a3b262ad86f391dbe87cd8f5c73_rle_crop_4063004205_0.png.png imagette292573991765171861/1765171506_2228744_1398446215_5ac8c9c5fe9a00f0baad8ec52d68541a_rle_crop_4063003046_0.png.png imagette292573991765171861/1765171764_2237687_1398446238_271e1acb945247724b1c6b4822f63786_rle_crop_4063004229_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/aecb1bfa1a6b005a1d2a354c245d0208_8911643.png imagette292573991765171861 29257400 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29257400 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398446209: '1765171285_2219473_1398446109_f593a728dbd6a9d7970f041f50672af1_rle_crop_4063001527_0.png', 1398446210: '1765171285_2219473_1398446074_ee70118477558812155c80fb180e2100_rle_crop_4063001567_0.png', 1398446235: '1765171345_2222604_1398446109_f593a728dbd6a9d7970f041f50672af1_rle_crop_4063001527_0.png', 1398446236: '1765171345_2222604_1398446074_ee70118477558812155c80fb180e2100_rle_crop_4063001567_0.png', 1398446305: '1765171528_2229416_1398446212_0d1cdc2d3c3f8cfd12612aca1efa2906_rle_crop_4063003037_0.png', 1398446317: '1765171506_2228744_1398446192_07590650f53a9d9b3510c2fe40beab88_rle_crop_4063003072_0.png', 1398446318: '1765171506_2228744_1398446191_e74b4fbda1fd1a1b9278fe7dc417a4db_rle_crop_4063003088_0.png', 1398446319: '1765171506_2228744_1398446190_944237fd12ba84b5ef05d34f1a3d6a5e_rle_crop_4063003093_0.png', 1398446356: '1765171627_2232682_1398446164_4fdb8631c5487e9294e4797613301d7b_rle_crop_4063003199_0.png', 1398446357: '1765171627_2232682_1398446164_4fdb8631c5487e9294e4797613301d7b_rle_crop_4063003201_0.png', 1398446404: '1765171745_2237206_1398446268_696bb30f71c3ed0c5de3057c8c5b31f2_rle_crop_4063004046_0.png', 1398446405: '1765171745_2237206_1398446267_c30c4efe2ae4ecd30637ba855cfa1803_rle_crop_4063004054_0.png', 1398446406: '1765171745_2237206_1398446266_ecdf0b9489169aa10bda6dfd2e1bae46_rle_crop_4063004066_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/65219ee40c5b8497b2b1fee31a9c349a_75835034.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/8c56917e35b05eacaac947fbb21f83ce_15950956.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/65219ee40c5b8497b2b1fee31a9c349a_50408162.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/8c56917e35b05eacaac947fbb21f83ce_18200888.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/791c5fab79ee6b55ac0dfa06c5720340_70037743.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/eb14a3a89fb7c74ad9060a52bd42fc33_140704.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/759d6068943a0e962ae4269cf1c78750_3438358.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/45671fc4321d4ba908bf77dfc1f95e8b_52378609.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/7c71e25af39c0479f281a74a27538343_51718500.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/1a035e0b7524bd94554e4d100dc4cea2_20365740.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/10dd07135e632c8e3ca06efb0c0cf176_88776585.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/5d1547c03e7554efe98955e8197c8c7b_93861710.png change filename to text .imagette292574001765171861/ imagette292574001765171861/1765171627_2232682_1398446164_4fdb8631c5487e9294e4797613301d7b_rle_crop_4063003201_0.png.png imagette292574001765171861/1765171506_2228744_1398446192_07590650f53a9d9b3510c2fe40beab88_rle_crop_4063003072_0.png.png imagette292574001765171861/1765171345_2222604_1398446074_ee70118477558812155c80fb180e2100_rle_crop_4063001567_0.png.png imagette292574001765171861/1765171285_2219473_1398446109_f593a728dbd6a9d7970f041f50672af1_rle_crop_4063001527_0.png.png imagette292574001765171861/1765171345_2222604_1398446109_f593a728dbd6a9d7970f041f50672af1_rle_crop_4063001527_0.png.png imagette292574001765171861/1765171745_2237206_1398446267_c30c4efe2ae4ecd30637ba855cfa1803_rle_crop_4063004054_0.png.png imagette292574001765171861/1765171285_2219473_1398446074_ee70118477558812155c80fb180e2100_rle_crop_4063001567_0.png.png imagette292574001765171861/1765171528_2229416_1398446212_0d1cdc2d3c3f8cfd12612aca1efa2906_rle_crop_4063003037_0.png.png imagette292574001765171861/1765171506_2228744_1398446191_e74b4fbda1fd1a1b9278fe7dc417a4db_rle_crop_4063003088_0.png.png imagette292574001765171861/1765171506_2228744_1398446190_944237fd12ba84b5ef05d34f1a3d6a5e_rle_crop_4063003093_0.png.png imagette292574001765171861/1765171745_2237206_1398446266_ecdf0b9489169aa10bda6dfd2e1bae46_rle_crop_4063004066_0.png.png imagette292574001765171861/1765171745_2237206_1398446268_696bb30f71c3ed0c5de3057c8c5b31f2_rle_crop_4063004046_0.png.png imagette292574001765171861/1765171627_2232682_1398446164_4fdb8631c5487e9294e4797613301d7b_rle_crop_4063003199_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/97c7cbfe32820f491bee8ac1ca6083f0_37679391.png imagette292574001765171861 29257403 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29257403 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398446320: '1765171506_2228744_1398446190_944237fd12ba84b5ef05d34f1a3d6a5e_rle_crop_4063003092_0.png'} change filename to text .imagette292574031765171862/ imagette292574031765171862/1765171506_2228744_1398446190_944237fd12ba84b5ef05d34f1a3d6a5e_rle_crop_4063003092_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/58fc77d809c6a1f8a23169a173b4a36d_27376173.png imagette292574031765171862 29257393 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29257393 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398446205: '1765171285_2219473_1398446073_3d09022a6746f6da0f1f864da377e793_rle_crop_4063001577_0.png', 1398446231: '1765171345_2222604_1398446073_3d09022a6746f6da0f1f864da377e793_rle_crop_4063001577_0.png', 1398446303: '1765171528_2229416_1398446214_f6c4f420f4dd45c841b827d9d80acd79_rle_crop_4063003028_0.png', 1398446308: '1765171506_2228744_1398446215_5ac8c9c5fe9a00f0baad8ec52d68541a_rle_crop_4063003053_0.png', 1398446309: '1765171506_2228744_1398446215_5ac8c9c5fe9a00f0baad8ec52d68541a_rle_crop_4063003055_0.png', 1398446310: '1765171506_2228744_1398446189_88a879c5f31dac2fa302d3edec78e39e_rle_crop_4063003101_0.png', 1398446353: '1765171627_2232682_1398446163_7225f9e73dfc8b64c1835506498a8f89_rle_crop_4063003212_0.png', 1398446354: '1765171627_2232682_1398446163_7225f9e73dfc8b64c1835506498a8f89_rle_crop_4063003216_0.png', 1398446388: '1765171465_2226950_1398446057_8237284edf86b991bf2aa7ccafc486a2_rle_crop_4063003949_0.png', 1398446402: '1765171745_2237206_1398446267_c30c4efe2ae4ecd30637ba855cfa1803_rle_crop_4063004057_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/5cd91e7f5b80593e0bca6f2ee5708584_86805271.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/5cd91e7f5b80593e0bca6f2ee5708584_99580962.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/dd7906b04070818461189e3f7f145af0_70420837.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/0df49180415dbbdbef32288cb3b79eaf_85777702.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/9c701837845aecee2a9a824a1f053106_29144875.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/ea98ad2584a085a98e12814743a980f1_67972325.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/b5bbc536cf39b856282516cbe6f5da37_95041571.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/1faefb9d652a1131e161ca03cc774693_94890247.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/b5c6e2d96b4369631c1071190d0d528a_69129729.png change filename to text .imagette292573931765171862/ imagette292573931765171862/1765171285_2219473_1398446073_3d09022a6746f6da0f1f864da377e793_rle_crop_4063001577_0.png.png imagette292573931765171862/1765171745_2237206_1398446267_c30c4efe2ae4ecd30637ba855cfa1803_rle_crop_4063004057_0.png.png imagette292573931765171862/1765171506_2228744_1398446215_5ac8c9c5fe9a00f0baad8ec52d68541a_rle_crop_4063003055_0.png.png imagette292573931765171862/1765171528_2229416_1398446214_f6c4f420f4dd45c841b827d9d80acd79_rle_crop_4063003028_0.png.png imagette292573931765171862/1765171506_2228744_1398446215_5ac8c9c5fe9a00f0baad8ec52d68541a_rle_crop_4063003053_0.png.png imagette292573931765171862/1765171465_2226950_1398446057_8237284edf86b991bf2aa7ccafc486a2_rle_crop_4063003949_0.png.png imagette292573931765171862/1765171627_2232682_1398446163_7225f9e73dfc8b64c1835506498a8f89_rle_crop_4063003212_0.png.png imagette292573931765171862/1765171506_2228744_1398446189_88a879c5f31dac2fa302d3edec78e39e_rle_crop_4063003101_0.png.png imagette292573931765171862/1765171627_2232682_1398446163_7225f9e73dfc8b64c1835506498a8f89_rle_crop_4063003216_0.png.png imagette292573931765171862/1765171345_2222604_1398446073_3d09022a6746f6da0f1f864da377e793_rle_crop_4063001577_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/f9e85dac49f06f3cf1e7ee3948b74d83_60713239.png imagette292573931765171862 29257401 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29257401 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398446208: '1765171285_2219473_1398446074_ee70118477558812155c80fb180e2100_rle_crop_4063001563_0.png', 1398446234: '1765171345_2222604_1398446074_ee70118477558812155c80fb180e2100_rle_crop_4063001563_0.png', 1398446304: '1765171528_2229416_1398446214_f6c4f420f4dd45c841b827d9d80acd79_rle_crop_4063003030_0.png', 1398446314: '1765171506_2228744_1398446215_5ac8c9c5fe9a00f0baad8ec52d68541a_rle_crop_4063003051_0.png', 1398446315: '1765171506_2228744_1398446195_64be6cb6fceeec7cd599ea7c3f3bbf9a_rle_crop_4063003063_0.png', 1398446316: '1765171506_2228744_1398446189_88a879c5f31dac2fa302d3edec78e39e_rle_crop_4063003106_0.png', 1398446355: '1765171627_2232682_1398446163_7225f9e73dfc8b64c1835506498a8f89_rle_crop_4063003218_0.png', 1398446390: '1765171465_2226950_1398446057_8237284edf86b991bf2aa7ccafc486a2_rle_crop_4063003956_0.png', 1398446391: '1765171465_2226950_1398446057_8237284edf86b991bf2aa7ccafc486a2_rle_crop_4063003951_0.png', 1398446392: '1765171465_2226950_1398446051_91466de691e44381aca0b643d7584245_rle_crop_4063003962_0.png', 1398446393: '1765171465_2226950_1398446051_91466de691e44381aca0b643d7584245_rle_crop_4063003964_0.png', 1398446418: '1765171764_2237687_1398446242_b01f6a3b262ad86f391dbe87cd8f5c73_rle_crop_4063004209_0.png', 1398446419: '1765171764_2237687_1398446242_b01f6a3b262ad86f391dbe87cd8f5c73_rle_crop_4063004212_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/10e5a62f29bfc2c3b8686c64226d7a0c_63051613.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/10e5a62f29bfc2c3b8686c64226d7a0c_23258230.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/095f5347aaa43ab16779f5facccd1ca8_76187269.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/c542dc028ec26777e898ded71469f79c_26816420.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/e4af253248a8c28d7a50ea2de2c43ca7_16116419.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/853552fd9675ffb11a42fceb7627dd4b_11057621.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/c45554e2af1bd234ce12f09c2fb6047a_42101352.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/125c84ec5fd94d200497b3007470fb68_86603509.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/133b336e4cb330a4ac54ffd3bcfac7be_18655317.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/b9b2c247736bf67260294529366ac591_57801073.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/8c96c79e7866ff8f866397710fca5c39_38426036.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/6282694fd334b68fb339759c00ed201a_434273.png change filename to text .imagette292574011765171863/ imagette292574011765171863/1765171465_2226950_1398446057_8237284edf86b991bf2aa7ccafc486a2_rle_crop_4063003956_0.png.png imagette292574011765171863/1765171345_2222604_1398446074_ee70118477558812155c80fb180e2100_rle_crop_4063001563_0.png.png imagette292574011765171863/1765171506_2228744_1398446195_64be6cb6fceeec7cd599ea7c3f3bbf9a_rle_crop_4063003063_0.png.png imagette292574011765171863/1765171465_2226950_1398446051_91466de691e44381aca0b643d7584245_rle_crop_4063003962_0.png.png imagette292574011765171863/1765171506_2228744_1398446189_88a879c5f31dac2fa302d3edec78e39e_rle_crop_4063003106_0.png.png imagette292574011765171863/1765171764_2237687_1398446242_b01f6a3b262ad86f391dbe87cd8f5c73_rle_crop_4063004209_0.png.png imagette292574011765171863/1765171465_2226950_1398446057_8237284edf86b991bf2aa7ccafc486a2_rle_crop_4063003951_0.png.png imagette292574011765171863/1765171285_2219473_1398446074_ee70118477558812155c80fb180e2100_rle_crop_4063001563_0.png.png imagette292574011765171863/1765171506_2228744_1398446215_5ac8c9c5fe9a00f0baad8ec52d68541a_rle_crop_4063003051_0.png.png imagette292574011765171863/1765171764_2237687_1398446242_b01f6a3b262ad86f391dbe87cd8f5c73_rle_crop_4063004212_0.png.png imagette292574011765171863/1765171465_2226950_1398446051_91466de691e44381aca0b643d7584245_rle_crop_4063003964_0.png.png imagette292574011765171863/1765171627_2232682_1398446163_7225f9e73dfc8b64c1835506498a8f89_rle_crop_4063003218_0.png.png imagette292574011765171863/1765171528_2229416_1398446214_f6c4f420f4dd45c841b827d9d80acd79_rle_crop_4063003030_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/64e0b2c2849601bf1b1259c537523f88_69351696.png imagette292574011765171863 29257404 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29257404 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398446203: '1765171285_2219473_1398446109_f593a728dbd6a9d7970f041f50672af1_rle_crop_4063001528_0.png', 1398446204: '1765171285_2219473_1398446075_637b2d13acd6077a9cf10e784dc251e2_rle_crop_4063001557_0.png', 1398446229: '1765171345_2222604_1398446109_f593a728dbd6a9d7970f041f50672af1_rle_crop_4063001528_0.png', 1398446230: '1765171345_2222604_1398446075_637b2d13acd6077a9cf10e784dc251e2_rle_crop_4063001557_0.png', 1398446302: '1765171528_2229416_1398446214_f6c4f420f4dd45c841b827d9d80acd79_rle_crop_4063003033_0.png', 1398446306: '1765171506_2228744_1398446191_e74b4fbda1fd1a1b9278fe7dc417a4db_rle_crop_4063003085_0.png', 1398446352: '1765171627_2232682_1398446162_7fb1d15fa9089d05bba58fdefb233777_rle_crop_4063003221_0.png', 1398446381: '1765171706_2234141_1398446283_7491c6d2e921a71ef634e8676acb3fb6_rle_crop_4063003876_0.png', 1398446386: '1765171465_2226950_1398446057_8237284edf86b991bf2aa7ccafc486a2_rle_crop_4063003952_0.png', 1398446400: '1765171745_2237206_1398446267_c30c4efe2ae4ecd30637ba855cfa1803_rle_crop_4063004059_0.png', 1398446411: '1765171764_2237687_1398446242_b01f6a3b262ad86f391dbe87cd8f5c73_rle_crop_4063004206_0.png', 1398446412: '1765171764_2237687_1398446239_a9072c693f6f7bc1744284c796791659_rle_crop_4063004223_0.png', 1398446413: '1765171764_2237687_1398446237_0fa2f21906716066d92c69e23ce3c0f3_rle_crop_4063004240_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/480c9c6eded4de5f89195f4f77bfa15e_47275565.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/dc194f3432d0ceebb61e307c511cf61b_57155667.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/480c9c6eded4de5f89195f4f77bfa15e_15938797.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/dc194f3432d0ceebb61e307c511cf61b_95140992.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/7b17d1944c5eb3f31adffd894c9b552d_7770599.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/9d0f8b235d8ffe92fd85a68877b8dbbf_48997457.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/55b7107ac0f63e10f8110e5c0b335b6b_99347868.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/fdf9283771983d25d6e351f6384c94d1_70879030.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/19d32f58a300f45b23f44da0850fa612_44161953.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/cb2389bd70e14ea565d65d38307512dc_86673497.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/5479ae9da870d445cf06ec20912476b2_98583461.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/94560d55bb3fee2f550a75010c526b6e_63242196.png change filename to text .imagette292574041765171864/ imagette292574041765171864/1765171706_2234141_1398446283_7491c6d2e921a71ef634e8676acb3fb6_rle_crop_4063003876_0.png.png imagette292574041765171864/1765171627_2232682_1398446162_7fb1d15fa9089d05bba58fdefb233777_rle_crop_4063003221_0.png.png imagette292574041765171864/1765171506_2228744_1398446191_e74b4fbda1fd1a1b9278fe7dc417a4db_rle_crop_4063003085_0.png.png imagette292574041765171864/1765171285_2219473_1398446075_637b2d13acd6077a9cf10e784dc251e2_rle_crop_4063001557_0.png.png imagette292574041765171864/1765171465_2226950_1398446057_8237284edf86b991bf2aa7ccafc486a2_rle_crop_4063003952_0.png.png imagette292574041765171864/1765171345_2222604_1398446075_637b2d13acd6077a9cf10e784dc251e2_rle_crop_4063001557_0.png.png imagette292574041765171864/1765171764_2237687_1398446239_a9072c693f6f7bc1744284c796791659_rle_crop_4063004223_0.png.png imagette292574041765171864/1765171285_2219473_1398446109_f593a728dbd6a9d7970f041f50672af1_rle_crop_4063001528_0.png.png imagette292574041765171864/1765171745_2237206_1398446267_c30c4efe2ae4ecd30637ba855cfa1803_rle_crop_4063004059_0.png.png imagette292574041765171864/1765171764_2237687_1398446242_b01f6a3b262ad86f391dbe87cd8f5c73_rle_crop_4063004206_0.png.png imagette292574041765171864/1765171764_2237687_1398446237_0fa2f21906716066d92c69e23ce3c0f3_rle_crop_4063004240_0.png.png imagette292574041765171864/1765171345_2222604_1398446109_f593a728dbd6a9d7970f041f50672af1_rle_crop_4063001528_0.png.png imagette292574041765171864/1765171528_2229416_1398446214_f6c4f420f4dd45c841b827d9d80acd79_rle_crop_4063003033_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/b65b6868d14043d93b9f6a3ecc1e7a32_78046666.png imagette292574041765171864 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29257386 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29257406,29257407,29257408,29257409,29257410,29257411,29257412,29257413,29257414,29257415,29257416,29257417?tags=Carton_gris,metal,mal_croppe,flou,autre_refus,environnement,cartonnette,plastique,Carton_brun,papier,kraft,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1398446417] : ('0.04192416085356214',) no score found for photo 1398446417 We are sending mail with results at report@fotonower.com args[1398446394] : ('0.04192416085356214',) no score found for photo 1398446394 We are sending mail with results at report@fotonower.com args[1398446389] : ('0.04192416085356214',) no score found for photo 1398446389 We are sending mail with results at report@fotonower.com args[1398446385] : ('0.04192416085356214',) no score found for photo 1398446385 We are sending mail with results at report@fotonower.com args[1398446384] : ('0.04192416085356214',) no score found for photo 1398446384 We are sending mail with results at report@fotonower.com refus_total : 0.04192416085356214 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29257386 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_P29257386_08-12-2025_06_31_00.pdf results_Auto_P29257386_08-12-2025_06_31_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29257386_08-12-2025_06_31_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29257386','results_Auto_P29257386_08-12-2025_06_31_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29257386_08-12-2025_06_31_00.pdf','pdf','','0.23','0.04192416085356214') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29257386]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398446417, 1398446394, 1398446389, 1398446385, 1398446384] map_info['map_portfolio_photo'] : {29257386: [1398446417, 1398446394, 1398446389, 1398446385, 1398446384, 1398446365, 1398446364, 1398446363, 1398446362, 1398446346, 1398446344, 1398446341, 1398446340, 1398446339, 1398446338, 1398446326, 1398446323, 1398446322, 1398446321, 1398446313, 1398446290, 1398446288, 1398446286, 1398446285, 1398446284, 1398446283, 1398446271, 1398446268, 1398446267, 1398446266, 1398446259, 1398446258, 1398446257, 1398446248, 1398446245, 1398446242, 1398446239, 1398446238, 1398446237, 1398446215, 1398446214, 1398446212, 1398446197, 1398446195, 1398446192, 1398446191, 1398446190, 1398446189, 1398446166, 1398446164, 1398446163, 1398446162, 1398446161, 1398446143, 1398446140, 1398446137, 1398446136, 1398446135, 1398446134, 1398446109, 1398446099, 1398446096, 1398446095, 1398446078, 1398446076, 1398446075, 1398446074, 1398446073, 1398446057, 1398446051, 1398446048, 1398446047]} final : False mtd_id 4302 list_pids : [1398446417, 1398446394, 1398446389, 1398446385, 1398446384] 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, '4196402') ('4302', '29257386', '1398446417', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446394', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446389', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446385', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446384', None, None, None, None, None, '4196402') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '29257386', '1398446417', None, None, None, None, None, '4196402'), ('4302', '29257386', '1398446394', None, None, None, None, None, '4196402'), ('4302', '29257386', '1398446389', None, None, None, None, None, '4196402'), ('4302', '29257386', '1398446385', None, None, None, None, None, '4196402'), ('4302', '29257386', '1398446384', None, None, None, None, None, '4196402')] time used for this insertion : 0.017003536224365234 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.966871976852417 time spend to save output : 0.017194509506225586 total time spend for step 4 : 5.984066486358643 step5:split_time_score Mon Dec 8 06:31:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29257386'] 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 : [('29257386',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29257386) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398446417: {'path': 'temp/1765171860_455368_1398446417_369a7a8673636f7e0ae105460ef39933.jpg', 'extension': 'jpg'}, 1398446384: {'path': 'temp/1765171860_455368_1398446384_12d5f99758539292ed5b952c592ecd88.jpg', 'extension': 'jpg'}, 1398446385: {'path': 'temp/1765171860_455368_1398446385_0a022bf0cc037cf7d8b1de332c66a232.jpg', 'extension': 'jpg'}, 1398446389: {'path': 'temp/1765171860_455368_1398446389_9bea15b30d5400eaa90bab558f780eec.jpg', 'extension': 'jpg'}, 1398446394: {'path': 'temp/1765171860_455368_1398446394_816b015ea7eaed70a3a8c79f3c4b3a34.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 = 29257386; (('arc_en_ciel_jrm_live',), ('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29257386 group by h (('06', 72),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29257386 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 (29257386) 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 (29257386) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08122025 29257386 Nombre de photos uploadées : 72 / 23040 (0%) 08122025 29257386 Nombre de photos taguées (types de déchets): 0 / 72 (0%) 08122025 29257386 Nombre de photos taguées (volume) : 0 / 72 (0%) [{'photo_id': 1398446057, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/8237284edf86b991bf2aa7ccafc486a2.jpg', 'username': None, 'uploaded_at': 1765170968, 'text': 'image_08122025_06_15_04_10137.jpg'}, {'photo_id': 1398446051, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/91466de691e44381aca0b643d7584245.jpg', 'username': None, 'uploaded_at': 1765170968, 'text': 'image_08122025_06_15_14_10137.jpg'}, {'photo_id': 1398446048, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/b5f5b6df88161d57a8c517d506648ce2.jpg', 'username': None, 'uploaded_at': 1765170968, 'text': 'image_08122025_06_15_24_10133.jpg'}, {'photo_id': 1398446047, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/fb7d0228ec2a3bb7e520e6f3e7073b15.jpg', 'username': None, 'uploaded_at': 1765170968, 'text': 'image_08122025_06_15_34_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 1.4066696166992188e-05 ???????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029754638671875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29257386, '2025-12-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-08' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2707961,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24958491325378418 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= 2707961 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2707961, 'dashboard_run_id': 2714908, 'mtr_portfolio_id': 29255719, 'dashboard_result_id': 18156509, '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_P29255719_08-12-2025_05_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29255721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29255722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29255723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29255724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29255725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29255726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29255727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29255728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29255729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29255730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29255731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29255732, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2714908, 'mtr_portfolio_id': 29256022, 'dashboard_result_id': 18156510, '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_P29256022_08-12-2025_05_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256038, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2714908, 'mtr_portfolio_id': 29256393, 'dashboard_result_id': 18156511, '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_P29256393_08-12-2025_05_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256410, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2714908, 'mtr_portfolio_id': 29256636, 'dashboard_result_id': 18156512, '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_P29256636_08-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29256641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256652, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2714908, 'mtr_portfolio_id': 29256977, 'dashboard_result_id': 18156513, '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_P29256977_08-12-2025_06_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256997, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2714908, 'mtr_portfolio_id': 29257386, 'dashboard_result_id': 18156514, '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_P29257386_08-12-2025_06_27_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257404, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29255719 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': 4196026, 'mtr_portfolio_id': 29255719, 'created_at': datetime.datetime(2025, 12, 8, 5, 18, 57), 'result': '0.05990018281379398', 'result_long': None, 'result_double': None}] Qualite : 0.05990018281379398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29255719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29255719_08-12-2025_05_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29255719 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_P29255719_08-12-2025_05_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29255721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29255722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29255723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29255724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29255725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29255726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29255727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29255728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29255729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29255730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29255731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29255732, 'pht': 3726}}" where mtr_portfolio_id = 29255719 and dashboard_run_id = 2714908 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`=29255719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18156509, 0.05990018281379398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29255719_08-12-2025_05_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29255721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29255722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29255723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29255724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29255725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29255726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29255727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29255728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29255729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29255730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29255731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29255732, '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 = 29256022 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': 4196067, 'mtr_portfolio_id': 29256022, 'created_at': datetime.datetime(2025, 12, 8, 5, 33, 28), 'result': '0.04719160142858799', 'result_long': None, 'result_double': None}] Qualite : 0.04719160142858799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256022_08-12-2025_05_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256022 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_P29256022_08-12-2025_05_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256038, 'pht': 3726}}" where mtr_portfolio_id = 29256022 and dashboard_run_id = 2714908 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`=29256022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18156510, 0.04719160142858799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256022_08-12-2025_05_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256038, '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 = 29256393 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': 4196120, 'mtr_portfolio_id': 29256393, 'created_at': datetime.datetime(2025, 12, 8, 5, 47, 32), 'result': '0.0539279006370315', 'result_long': None, 'result_double': None}] Qualite : 0.0539279006370315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256393_08-12-2025_05_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256393 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_P29256393_08-12-2025_05_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256410, 'pht': 3726}}" where mtr_portfolio_id = 29256393 and dashboard_run_id = 2714908 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`=29256393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18156511, 0.0539279006370315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256393_08-12-2025_05_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256410, '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 = 29256636 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': 4196202, 'mtr_portfolio_id': 29256636, 'created_at': datetime.datetime(2025, 12, 8, 6, 3), 'result': '0.04805929919042539', 'result_long': None, 'result_double': None}] Qualite : 0.04805929919042539 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256636_08-12-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256636 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_P29256636_08-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29256641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256652, 'pht': 3726}}" where mtr_portfolio_id = 29256636 and dashboard_run_id = 2714912 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`=29256636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18156512, 0.04805929919042539, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256636_08-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29256641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256652, '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 = 29256977 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': 4196288, 'mtr_portfolio_id': 29256977, 'created_at': datetime.datetime(2025, 12, 8, 6, 18, 58), 'result': '0.05292196535495374', 'result_long': None, 'result_double': None}] Qualite : 0.05292196535495374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256977_08-12-2025_06_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256977 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_P29256977_08-12-2025_06_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256997, 'pht': 3726}}" where mtr_portfolio_id = 29256977 and dashboard_run_id = 2714912 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`=29256977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18156513, 0.05292196535495374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256977_08-12-2025_06_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256997, '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 = 29257386 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': 4196402, 'mtr_portfolio_id': 29257386, 'created_at': datetime.datetime(2025, 12, 8, 6, 31), 'result': '0.04192416085356214', 'result_long': None, 'result_double': None}] Qualite : 0.04192416085356214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29257386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29257386_08-12-2025_06_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29257386 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_P29257386_08-12-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257404, 'pht': 3726}}" where mtr_portfolio_id = 29257386 and dashboard_run_id = 2714912 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`=29257386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18156514, 0.04192416085356214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29257386_08-12-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257404, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29255719,29256022,29256393,29256636,29256977,29257386) result : ((1398441020,), (1398441905,), (1398442335,), (1398442480,), (1398442481,), (1398442482,), (1398442483,), (1398442492,), (1398442493,), (1398442499,), (1398442500,), (1398442501,), (1398442502,), (1398442510,), (1398442511,), (1398442512,), (1398442521,), (1398442523,), (1398442525,), (1398442533,), (1398442534,), (1398442749,), (1398442781,), (1398442812,), (1398442849,), (1398442884,), (1398442916,), (1398443037,), (1398443072,), (1398443109,), (1398443110,), (1398443136,), (1398443241,), (1398443242,), (1398443243,), (1398443244,), (1398443246,), (1398443270,), (1398443267,), (1398443268,), (1398443269,), (1398443291,), (1398443292,), (1398443293,), (1398443294,), (1398443303,), (1398443304,), (1398443305,), (1398443322,), (1398443323,), (1398443324,), (1398443344,), (1398443346,), (1398443347,), (1398443354,), (1398443355,), (1398443356,), (1398443357,), (1398443359,), (1398443393,), (1398443399,), (1398443400,), (1398443401,), (1398443403,), (1398443420,), (1398443423,), (1398443425,), (1398443427,), (1398443429,), (1398443431,), (1398443435,), (1398443436,), (1398443437,), (1398443438,), (1398443439,), (1398443440,), (1398443442,), (1398443444,), (1398443446,), (1398443450,), (1398443451,), (1398443452,), (1398443453,), (1398443455,), (1398443456,), (1398443495,), (1398443498,), (1398443501,), (1398443512,), (1398443515,), (1398443526,), (1398443529,), (1398443532,), (1398443534,), (1398443540,), (1398443542,), (1398443544,), (1398443547,), (1398443554,), (1398443555,), (1398443556,), (1398443557,), (1398443558,), (1398443560,), (1398443580,), (1398443585,), (1398443591,), (1398443592,), (1398443595,), (1398443626,), (1398443623,), (1398443624,), (1398443625,), (1398443634,), (1398443635,), (1398443636,), (1398443637,), (1398443639,), (1398443641,), (1398443649,), (1398443650,), (1398443651,), (1398443653,), (1398443655,), (1398443657,), (1398443672,), (1398443673,), (1398443674,), (1398443675,), (1398443676,), (1398443678,), (1398443679,), (1398443681,), (1398443683,), (1398443685,), (1398443688,), (1398443690,), (1398443695,), (1398443696,), (1398443697,), (1398443721,), (1398443740,), (1398443744,), (1398443745,), (1398443746,), (1398443767,), (1398443768,), (1398443769,), (1398443770,), (1398443772,), (1398443782,), (1398443783,), (1398443784,), (1398443785,), (1398443793,), (1398443795,), (1398443798,), (1398443801,), (1398443804,), (1398443807,), (1398443829,), (1398443830,), (1398443831,), (1398443832,), (1398443833,), (1398443835,), (1398443837,), (1398443839,), (1398443850,), (1398443851,), (1398443852,), (1398443853,), (1398443864,), (1398443865,), (1398443866,), (1398443867,), (1398443869,), (1398443870,), (1398443879,), (1398443880,), (1398443881,), (1398443883,), (1398443885,), (1398443887,), (1398443892,), (1398443893,), (1398443894,), (1398443895,), (1398443896,), (1398443921,), (1398443922,), (1398443924,), (1398443926,), (1398443928,), (1398443934,), (1398443935,), (1398443937,), (1398443938,), (1398443940,), (1398443943,), (1398443965,), (1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,), (1398444127,), (1398444129,), (1398444131,), (1398444133,), (1398444135,), (1398444137,), (1398444141,), (1398444142,), (1398444143,), (1398444144,), (1398444146,), (1398444156,), (1398444157,), (1398444166,), (1398444167,), (1398444169,), (1398444171,), (1398444179,), (1398444181,), (1398444183,), (1398444186,), (1398444189,), (1398444198,), (1398444199,), (1398444200,), (1398444201,), (1398444696,), (1398444718,), (1398444720,), (1398444721,), (1398444751,), (1398444802,), (1398444791,), (1398444792,), (1398444796,), (1398444799,), (1398445088,), (1398445121,), (1398445150,), (1398445186,), (1398445218,), (1398445251,), (1398445399,), (1398445400,), (1398445401,), (1398445404,), (1398445439,), (1398445483,), (1398445633,), (1398445644,), (1398445645,), (1398445646,), (1398445660,), (1398445708,), (1398445741,), (1398445744,), (1398445747,), (1398445750,), (1398445753,), (1398445769,), (1398445770,), (1398445771,), (1398445784,), (1398445785,), (1398445786,), (1398445787,), (1398445790,), (1398445805,), (1398445806,), (1398445807,), (1398445808,), (1398445827,), (1398445828,), (1398445829,), (1398445830,), (1398445833,), (1398445845,), (1398445846,), (1398445847,), (1398445848,), (1398445851,), (1398445873,), (1398445880,), (1398445881,), (1398445882,), (1398445914,), (1398445915,), (1398445916,), (1398445917,), (1398445920,), (1398445923,), (1398445934,), (1398445935,), (1398445936,), (1398445937,), (1398445940,), (1398445964,), (1398445965,), (1398445966,), (1398445969,), (1398445972,), (1398445973,), (1398445984,), (1398445985,), (1398445986,), (1398446000,), (1398446006,), (1398446007,), (1398446010,), (1398446013,), (1398446015,), (1398446023,), (1398446026,), (1398446028,), (1398446032,), (1398446061,), (1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08122025': {'nb_upload': 72, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29257386]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398446417, 1398446394, 1398446389, 1398446385, 1398446384] map_info['map_portfolio_photo'] : {29257386: [1398446417, 1398446394, 1398446389, 1398446385, 1398446384, 1398446365, 1398446364, 1398446363, 1398446362, 1398446346, 1398446344, 1398446341, 1398446340, 1398446339, 1398446338, 1398446326, 1398446323, 1398446322, 1398446321, 1398446313, 1398446290, 1398446288, 1398446286, 1398446285, 1398446284, 1398446283, 1398446271, 1398446268, 1398446267, 1398446266, 1398446259, 1398446258, 1398446257, 1398446248, 1398446245, 1398446242, 1398446239, 1398446238, 1398446237, 1398446215, 1398446214, 1398446212, 1398446197, 1398446195, 1398446192, 1398446191, 1398446190, 1398446189, 1398446166, 1398446164, 1398446163, 1398446162, 1398446161, 1398446143, 1398446140, 1398446137, 1398446136, 1398446135, 1398446134, 1398446109, 1398446099, 1398446096, 1398446095, 1398446078, 1398446076, 1398446075, 1398446074, 1398446073, 1398446057, 1398446051, 1398446048, 1398446047]} final : True mtd_id 4302 list_pids : [1398446417, 1398446394, 1398446389, 1398446385, 1398446384] Looping around the photos to save general results len do output : 1 /29257386Didn'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, '4196402') ('4302', '29257386', '1398446417', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446394', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446389', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446385', None, None, None, None, None, '4196402') ('4302', None, None, None, None, None, None, None, '4196402') ('4302', '29257386', '1398446384', None, None, None, None, None, '4196402') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '29257386', 'None', None, None, None, None, '4196402'), ('4302', '29257386', '1398446417', None, None, None, None, None, '4196402'), ('4302', '29257386', '1398446394', None, None, None, None, None, '4196402'), ('4302', '29257386', '1398446389', None, None, None, None, None, '4196402'), ('4302', '29257386', '1398446385', None, None, None, None, None, '4196402'), ('4302', '29257386', '1398446384', None, None, None, None, None, '4196402')] time used for this insertion : 0.015928030014038086 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0426528453826904 time spend to save output : 0.0161440372467041 total time spend for step 5 : 1.0587968826293945 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 (4196402) 2.16user 2.74system 0:11.41elapsed 43%CPU (0avgtext+0avgdata 164988maxresident)k 1912inputs+12896outputs (30major+67239minor)pagefaults 0swaps