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 : 2777242 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 (3666994) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3666994) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26555560 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3666994'] with mtr_portfolio_ids : ['26555560'] and first list_photo_ids : [] new path : /proc/2777242/ Name: python3 Umask: 0002 State: R (running) Tgid: 2777242 Ngid: 0 Pid: 2777242 PPid: 2777241 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2777242 NSpid: 2777242 NSpgid: 2776334 NSsid: 2776334 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99140 kB VmRSS: 99140 kB RssAnon: 60164 kB RssFile: 38976 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 51 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2777242', 'Ngid': '0', 'Pid': '2777242', 'PPid': '2777241', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2777242', 'NSpid': '2777242', 'NSpgid': '2776334', 'NSsid': '2776334', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99140 kB', 'VmRSS': '99140 kB', 'RssAnon': '60164 kB', 'RssFile': '38976 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '51', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '2777242', '1107252', '0', '1107252', '866004', '99140', b'', 'marlene', '3666994') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26555560) 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 (3666994 ) ) 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 (26555560) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1381597640, 'portfolio_id': 26555560}, {'photo_id': 1381597339, 'portfolio_id': 26555560}, {'photo_id': 1381597336, 'portfolio_id': 26555560}, {'photo_id': 1381597334, 'portfolio_id': 26555560}, {'photo_id': 1381597332, 'portfolio_id': 26555560}, {'photo_id': 1381597329, 'portfolio_id': 26555560}, {'photo_id': 1381597327, 'portfolio_id': 26555560}, {'photo_id': 1381597290, 'portfolio_id': 26555560}, {'photo_id': 1381597289, 'portfolio_id': 26555560}, {'photo_id': 1381597288, 'portfolio_id': 26555560}, {'photo_id': 1381597287, 'portfolio_id': 26555560}, {'photo_id': 1381597212, 'portfolio_id': 26555560}, {'photo_id': 1381597211, 'portfolio_id': 26555560}, {'photo_id': 1381597210, 'portfolio_id': 26555560}, {'photo_id': 1381597209, 'portfolio_id': 26555560}, {'photo_id': 1381597207, 'portfolio_id': 26555560}, {'photo_id': 1381597203, 'portfolio_id': 26555560}, {'photo_id': 1381597201, 'portfolio_id': 26555560}, {'photo_id': 1381597200, 'portfolio_id': 26555560}, {'photo_id': 1381597199, 'portfolio_id': 26555560}, {'photo_id': 1381597198, 'portfolio_id': 26555560}, {'photo_id': 1381597197, 'portfolio_id': 26555560}, {'photo_id': 1381597155, 'portfolio_id': 26555560}, {'photo_id': 1381597154, 'portfolio_id': 26555560}, {'photo_id': 1381597153, 'portfolio_id': 26555560}, {'photo_id': 1381597152, 'portfolio_id': 26555560}, {'photo_id': 1381597151, 'portfolio_id': 26555560}, {'photo_id': 1381597103, 'portfolio_id': 26555560}, {'photo_id': 1381597102, 'portfolio_id': 26555560}, {'photo_id': 1381597101, 'portfolio_id': 26555560}, {'photo_id': 1381597100, 'portfolio_id': 26555560}, {'photo_id': 1381597099, 'portfolio_id': 26555560}, {'photo_id': 1381597097, 'portfolio_id': 26555560}, {'photo_id': 1381597069, 'portfolio_id': 26555560}, {'photo_id': 1381597068, 'portfolio_id': 26555560}, {'photo_id': 1381597066, 'portfolio_id': 26555560}, {'photo_id': 1381597065, 'portfolio_id': 26555560}, {'photo_id': 1381597064, 'portfolio_id': 26555560}, {'photo_id': 1381597023, 'portfolio_id': 26555560}, {'photo_id': 1381597022, 'portfolio_id': 26555560}, {'photo_id': 1381597021, 'portfolio_id': 26555560}, {'photo_id': 1381597020, 'portfolio_id': 26555560}, {'photo_id': 1381596954, 'portfolio_id': 26555560}, {'photo_id': 1381596952, 'portfolio_id': 26555560}, {'photo_id': 1381596951, 'portfolio_id': 26555560}, {'photo_id': 1381596950, 'portfolio_id': 26555560}, {'photo_id': 1381596948, 'portfolio_id': 26555560}, {'photo_id': 1381596897, 'portfolio_id': 26555560}, {'photo_id': 1381596896, 'portfolio_id': 26555560}, {'photo_id': 1381596895, 'portfolio_id': 26555560}, {'photo_id': 1381596894, 'portfolio_id': 26555560}, {'photo_id': 1381596893, 'portfolio_id': 26555560}, {'photo_id': 1381596892, 'portfolio_id': 26555560}, {'photo_id': 1381596849, 'portfolio_id': 26555560}, {'photo_id': 1381596848, 'portfolio_id': 26555560}, {'photo_id': 1381596847, 'portfolio_id': 26555560}, {'photo_id': 1381596846, 'portfolio_id': 26555560}, {'photo_id': 1381596845, 'portfolio_id': 26555560}, {'photo_id': 1381596803, 'portfolio_id': 26555560}, {'photo_id': 1381596802, 'portfolio_id': 26555560}, {'photo_id': 1381596801, 'portfolio_id': 26555560}, {'photo_id': 1381596712, 'portfolio_id': 26555560}, {'photo_id': 1381596711, 'portfolio_id': 26555560}, {'photo_id': 1381596710, 'portfolio_id': 26555560}, {'photo_id': 1381596667, 'portfolio_id': 26555560}, {'photo_id': 1381596666, 'portfolio_id': 26555560}, {'photo_id': 1381596665, 'portfolio_id': 26555560}, {'photo_id': 1381596664, 'portfolio_id': 26555560}, {'photo_id': 1381596627, 'portfolio_id': 26555560}, {'photo_id': 1381596626, 'portfolio_id': 26555560}, {'photo_id': 1381596625, 'portfolio_id': 26555560}] map_portfolio_id_photo_id: {26555560: [1381597640, 1381597339, 1381597336, 1381597334, 1381597332, 1381597329, 1381597327, 1381597290, 1381597289, 1381597288, 1381597287, 1381597212, 1381597211, 1381597210, 1381597209, 1381597207, 1381597203, 1381597201, 1381597200, 1381597199, 1381597198, 1381597197, 1381597155, 1381597154, 1381597153, 1381597152, 1381597151, 1381597103, 1381597102, 1381597101, 1381597100, 1381597099, 1381597097, 1381597069, 1381597068, 1381597066, 1381597065, 1381597064, 1381597023, 1381597022, 1381597021, 1381597020, 1381596954, 1381596952, 1381596951, 1381596950, 1381596948, 1381596897, 1381596896, 1381596895, 1381596894, 1381596893, 1381596892, 1381596849, 1381596848, 1381596847, 1381596846, 1381596845, 1381596803, 1381596802, 1381596801, 1381596712, 1381596711, 1381596710, 1381596667, 1381596666, 1381596665, 1381596664, 1381596627, 1381596626, 1381596625]} ##### 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.016356945037841797 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Sep 5 02:33:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26555560) 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 : 26555560 get user id for portfolio 26555560 get sub ptf for main ptf 26555560, type 3726 and hashtags ['environnement', 'mal_croppe', 'autre_refus', 'cartonnette', 'flou', 'Carton_gris', 'Teint_Dans_La_Masse', 'metal', 'plastique', 'papier', 'Carton_brun', 'kraft'] 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`=26555560 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','autre_refus','cartonnette','flou','Carton_gris','Teint_Dans_La_Masse','metal','plastique','papier','Carton_brun','kraft')) 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`=26555560 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','autre_refus','cartonnette','flou','Carton_gris','Teint_Dans_La_Masse','metal','plastique','papier','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 26555560, 'sub_port_id': 26555564, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884118, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 26555560, 'sub_port_id': 26555565, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884119, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 29)}, 'papier': {'main_port_id': 26555560, 'sub_port_id': 26555566, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884120, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 29)}, 'mal_croppe': {'main_port_id': 26555560, 'sub_port_id': 26555567, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884121, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 29)}, 'metal': {'main_port_id': 26555560, 'sub_port_id': 26555568, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884122, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 29)}, 'flou': {'main_port_id': 26555560, 'sub_port_id': 26555569, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884123, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 29)}, 'autre_refus': {'main_port_id': 26555560, 'sub_port_id': 26555570, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884124, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 29)}, 'kraft': {'main_port_id': 26555560, 'sub_port_id': 26555571, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884125, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 29)}, 'plastique': {'main_port_id': 26555560, 'sub_port_id': 26555572, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884126, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 29)}, 'Carton_brun': {'main_port_id': 26555560, 'sub_port_id': 26555573, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884127, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 29)}, 'environnement': {'main_port_id': 26555560, 'sub_port_id': 26555574, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884128, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 29)}, 'cartonnette': {'main_port_id': 26555560, 'sub_port_id': 26555575, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884129, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26555564 , 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=26555560 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 (26555564) result : ((1381596924,), (1381597136,), (1381597279,), (1381597321,), (1381597741,), (1381597838,), (1381598175,), (1381601462,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26555560) result : ((1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,)) 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 (1381597200,1381597100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26555565 , 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=26555560 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 (26555565) result : ((1381596693,), (1381596835,), (1381596919,), (1381596920,), (1381596921,), (1381596922,), (1381596923,), (1381596933,), (1381596934,), (1381597056,), (1381597132,), (1381597133,), (1381597272,), (1381597273,), (1381597274,), (1381597275,), (1381597837,), (1381598172,), (1381598173,), (1381598174,), (1381601435,), (1381601439,), (1381601445,), (1381601449,), (1381601453,), (1381604546,), (1381604550,), (1381604910,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26555560) result : ((1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,)) 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 (1381597200,1381597100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26555566 , 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=26555560 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 (26555566) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26555560) result : ((1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,)) 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 (1381597200,1381597100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26555567 , 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=26555560 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 (26555567) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26555560) result : ((1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,)) 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 (1381597200,1381597100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26555568 , 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=26555560 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 (26555568) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26555560) result : ((1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,)) 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 (1381597200,1381597100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26555569 , 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=26555560 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 (26555569) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26555560) result : ((1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,)) 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 (1381597200,1381597100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26555570 , 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=26555560 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 (26555570) result : ((1381596836,), (1381597134,), (1381597222,), (1381597223,), (1381597276,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26555560) result : ((1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,)) 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 (1381597200,1381597100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26555571 , 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=26555560 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 (26555571) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26555560) result : ((1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,)) 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 (1381597200,1381597100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26555572 , 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=26555560 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 (26555572) result : ((1381596938,), (1381596939,), (1381597141,), (1381597230,), (1381597231,), (1381597291,), (1381597292,), (1381598200,), (1381598202,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26555560) result : ((1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,)) 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 (1381597200,1381597100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26555573 , 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=26555560 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 (26555573) result : ((1381596695,), (1381596927,), (1381597037,), (1381597139,), (1381597140,), (1381597229,), (1381597286,), (1381598189,), (1381598226,), (1381598228,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26555560) result : ((1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,)) 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 (1381597200,1381597100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26555574 , 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=26555560 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 (26555574) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26555560) result : ((1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,)) 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 (1381597200,1381597100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26555575 , 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=26555560 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 (26555575) result : ((1381596694,), (1381596925,), (1381596936,), (1381596937,), (1381597137,), (1381597138,), (1381597225,), (1381597226,), (1381597285,), (1381597749,), (1381597751,), (1381597753,), (1381598177,), (1381598178,), (1381598179,), (1381598180,), (1381598182,), (1381601471,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26555560) result : ((1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,)) 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 (1381597200,1381597100) and cspi.crop_hashtag_id = chi.id; 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`=26555560 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','autre_refus','cartonnette','flou','Carton_gris','Teint_Dans_La_Masse','metal','plastique','papier','Carton_brun','kraft')) 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`=26555560 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','autre_refus','cartonnette','flou','Carton_gris','Teint_Dans_La_Masse','metal','plastique','papier','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 26555560, 'sub_port_id': 26555577, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884130, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 26555560, 'sub_port_id': 26555578, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884131, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 30)}, 'papier': {'main_port_id': 26555560, 'sub_port_id': 26555579, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884132, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 30)}, 'mal_croppe': {'main_port_id': 26555560, 'sub_port_id': 26555580, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884133, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 30)}, 'metal': {'main_port_id': 26555560, 'sub_port_id': 26555581, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884134, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 30)}, 'flou': {'main_port_id': 26555560, 'sub_port_id': 26555582, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884135, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 30)}, 'autre_refus': {'main_port_id': 26555560, 'sub_port_id': 26555583, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884136, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 30)}, 'kraft': {'main_port_id': 26555560, 'sub_port_id': 26555584, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884137, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 30)}, 'plastique': {'main_port_id': 26555560, 'sub_port_id': 26555585, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884138, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 30)}, 'Carton_brun': {'main_port_id': 26555560, 'sub_port_id': 26555586, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884139, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 30)}, 'environnement': {'main_port_id': 26555560, 'sub_port_id': 26555587, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884140, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 30)}, 'cartonnette': {'main_port_id': 26555560, 'sub_port_id': 26555588, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17884141, 'last_updated_at': datetime.datetime(2025, 9, 5, 2, 1, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 2, 1, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 2, 1, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26555577,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26555564 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26555578,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26555565 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26555579,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26555566 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26555580,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26555567 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26555581,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26555568 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26555582,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26555569 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26555583,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26555570 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26555584,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26555571 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26555585,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26555572 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26555586,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26555573 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26555587,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26555574 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26555588,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26555575 lien utilise dans velours : https://marlene.fotonower.com/velours/26555577,26555578,26555579,26555580,26555581,26555582,26555583,26555584,26555585,26555586,26555587,26555588?tags=Carton_gris,Teint_Dans_La_Masse,papier,mal_croppe,metal,flou,autre_refus,kraft,plastique,Carton_brun,environnement,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26555560]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1381597640] map_info['map_portfolio_photo'] : {26555560: [1381597640, 1381597339, 1381597336, 1381597334, 1381597332, 1381597329, 1381597327, 1381597290, 1381597289, 1381597288, 1381597287, 1381597212, 1381597211, 1381597210, 1381597209, 1381597207, 1381597203, 1381597201, 1381597200, 1381597199, 1381597198, 1381597197, 1381597155, 1381597154, 1381597153, 1381597152, 1381597151, 1381597103, 1381597102, 1381597101, 1381597100, 1381597099, 1381597097, 1381597069, 1381597068, 1381597066, 1381597065, 1381597064, 1381597023, 1381597022, 1381597021, 1381597020, 1381596954, 1381596952, 1381596951, 1381596950, 1381596948, 1381596897, 1381596896, 1381596895, 1381596894, 1381596893, 1381596892, 1381596849, 1381596848, 1381596847, 1381596846, 1381596845, 1381596803, 1381596802, 1381596801, 1381596712, 1381596711, 1381596710, 1381596667, 1381596666, 1381596665, 1381596664, 1381596627, 1381596626, 1381596625]} final : False mtd_id 4302 list_pids : [1381597640] Looping around the photos to save general results len do output : 1 /26555560. 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, '3666994') ('4302', '26555560', '1381597640', None, None, None, None, None, '3666994') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '26555560', "{'Carton_gris': 26555564, 'Teint_Dans_La_Masse': 26555565, 'papier': 26555566, 'mal_croppe': 26555567, 'metal': 26555568, 'flou': 26555569, 'autre_refus': 26555570, 'kraft': 26555571, 'plastique': 26555572, 'Carton_brun': 26555573, 'environnement': 26555574, 'cartonnette': 26555575}", None, None, None, None, '3666994'), ('4302', '26555560', '1381597640', None, None, None, None, None, '3666994')] time used for this insertion : 0.011825799942016602 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.47934865951538086 time spend to save output : 0.012034893035888672 total time spend for step 1 : 0.49138355255126953 step2:final Fri Sep 5 02:34: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 (26555560) 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 26555560 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1381596627,1381596626,1381596625,1381596667,1381596666,1381596665,1381596664,1381596712,1381596711,1381596710,1381596803,1381596802,1381596801,1381596849,1381596848,1381596847,1381596846,1381596845,1381596897,1381596896,1381596895,1381596894,1381596893,1381596892,1381596954,1381596952,1381596951,1381596950,1381596948,1381597023,1381597022,1381597021,1381597020,1381597069,1381597068,1381597066,1381597065,1381597064,1381597103,1381597102,1381597101,1381597100,1381597099,1381597097,1381597155,1381597212,1381597211,1381597154,1381597153,1381597210,1381597152,1381597209,1381597151,1381597207,1381597203,1381597201,1381597200,1381597199,1381597198,1381597197,1381597290,1381597289,1381597288,1381597287,1381597339,1381597336,1381597334,1381597332,1381597329,1381597327,1381597640); 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([26555560]) Inside saveOutput : final : False verbose : True original output for save of step final : {1381597640: ('0.043526961330972676',)} new output for save of step final : {1381597640: ('0.043526961330972676',)} [1381597640] map_info['map_portfolio_photo'] : {26555560: [1381597640, 1381597339, 1381597336, 1381597334, 1381597332, 1381597329, 1381597327, 1381597290, 1381597289, 1381597288, 1381597287, 1381597212, 1381597211, 1381597210, 1381597209, 1381597207, 1381597203, 1381597201, 1381597200, 1381597199, 1381597198, 1381597197, 1381597155, 1381597154, 1381597153, 1381597152, 1381597151, 1381597103, 1381597102, 1381597101, 1381597100, 1381597099, 1381597097, 1381597069, 1381597068, 1381597066, 1381597065, 1381597064, 1381597023, 1381597022, 1381597021, 1381597020, 1381596954, 1381596952, 1381596951, 1381596950, 1381596948, 1381596897, 1381596896, 1381596895, 1381596894, 1381596893, 1381596892, 1381596849, 1381596848, 1381596847, 1381596846, 1381596845, 1381596803, 1381596802, 1381596801, 1381596712, 1381596711, 1381596710, 1381596667, 1381596666, 1381596665, 1381596664, 1381596627, 1381596626, 1381596625]} final : False mtd_id 4302 list_pids : [1381597640] Looping around the photos to save general results len do output : 1 /1381597640.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, '3666994') ('4302', '26555560', '1381597640', None, None, None, None, None, '3666994') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '26555560', '1381597640', '0.043526961330972676', None, None, None, None, '3666994')] time used for this insertion : 0.011875391006469727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0759420394897461 time spend to save output : 0.012048006057739258 total time spend for step 2 : 0.08799004554748535 step3:velours_tree Fri Sep 5 02:34: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 : {26555560: [{'Carton_gris': 26555564, 'Teint_Dans_La_Masse': 26555565, 'papier': 26555566, 'mal_croppe': 26555567, 'metal': 26555568, 'flou': 26555569, 'autre_refus': 26555570, 'kraft': 26555571, 'plastique': 26555572, 'Carton_brun': 26555573, 'environnement': 26555574, 'cartonnette': 26555575}]} input_args_next_step : {26555560: ()} output_args : {26555560: [{'Carton_gris': 26555564, 'Teint_Dans_La_Masse': 26555565, 'papier': 26555566, 'mal_croppe': 26555567, 'metal': 26555568, 'flou': 26555569, 'autre_refus': 26555570, 'kraft': 26555571, 'plastique': 26555572, 'Carton_brun': 26555573, 'environnement': 26555574, 'cartonnette': 26555575}]} args : 26555560 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': 26555564, 'Teint_Dans_La_Masse': 26555565, 'papier': 26555566, 'mal_croppe': 26555567, 'metal': 26555568, 'flou': 26555569, 'autre_refus': 26555570, 'kraft': 26555571, 'plastique': 26555572, 'Carton_brun': 26555573, 'environnement': 26555574, 'cartonnette': 26555575},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26555560) 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([26555560]) 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.30086803436279297 time spend to save output : 5.8650970458984375e-05 total time spend for step 3 : 0.30092668533325195 step4:send_mail_cod Fri Sep 5 02:34: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 : {1381597640: ('0.043526961330972676',)} input_args_next_step : {1381597640: ()} output_args : {1381597640: ('0.043526961330972676',)} args : 1381597640 depend.output_id : 0 complete output_args for input 3 : {26555560: [{'Carton_gris': 26555564, 'Teint_Dans_La_Masse': 26555565, 'papier': 26555566, 'mal_croppe': 26555567, 'metal': 26555568, 'flou': 26555569, 'autre_refus': 26555570, 'kraft': 26555571, 'plastique': 26555572, 'Carton_brun': 26555573, 'environnement': 26555574, 'cartonnette': 26555575}]} input_args_next_step : {1381597640: ('0.043526961330972676',), 26555560: ()} output_args : {26555560: [{'Carton_gris': 26555564, 'Teint_Dans_La_Masse': 26555565, 'papier': 26555566, 'mal_croppe': 26555567, 'metal': 26555568, 'flou': 26555569, 'autre_refus': 26555570, 'kraft': 26555571, 'plastique': 26555572, 'Carton_brun': 26555573, 'environnement': 26555574, 'cartonnette': 26555575}]} args : 26555560 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 :2, first value : ('0.043526961330972676',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26555560) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1381597640) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1381597640 download finish for photo 1381597640 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette265555671757032440/ imagette265555681757032440/ imagette265555691757032440/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P26555560_05-09-2025_02_34_00.pdf 26555567 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26555567 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265555671757032440 26555568 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26555568 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265555681757032440 26555569 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26555569 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265555691757032440 26555570 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26555570 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381596836: '1757029768_388249_1381596710_1e9d75579dc48b95b5b1896d8404d9de_58452537_rle_crop_3945215786_0.png', 1381597134: '1757030104_405197_1381596892_4055f6d508b713eb68317f2176823327_36447775_rle_crop_3945216760_0.png', 1381597222: '1757030225_411900_1381597066_716b2f1279714d78fc81a23b150f7d21_1055299_rle_crop_3945217008_0.png', 1381597223: '1757030225_411900_1381597064_9a0a3a6a0a5e7efbcec1a67346726b52_73416987_rle_crop_3945217026_0.png', 1381597276: '1757030246_412258_1381597100_29746d0bd3beb8f550a702447dce1479_74563484_rle_crop_3945217205_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8d017675972c7c8471adce900895af27_44902281.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/c357c186477fe457358f9707595d0be4_61055791.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/55a6deb8b5b2e7a828a2e64c86392fe0_73847823.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/0aaca9b2fc9724c259aa77a4034cb16d_86630788.png change filename to text .imagette265555701757032440/ imagette265555701757032440/1757030225_411900_1381597066_716b2f1279714d78fc81a23b150f7d21_1055299_rle_crop_3945217008_0.png.png imagette265555701757032440/1757029768_388249_1381596710_1e9d75579dc48b95b5b1896d8404d9de_58452537_rle_crop_3945215786_0.png.png imagette265555701757032440/1757030225_411900_1381597064_9a0a3a6a0a5e7efbcec1a67346726b52_73416987_rle_crop_3945217026_0.png.png imagette265555701757032440/1757030104_405197_1381596892_4055f6d508b713eb68317f2176823327_36447775_rle_crop_3945216760_0.png.png imagette265555701757032440/1757030246_412258_1381597100_29746d0bd3beb8f550a702447dce1479_74563484_rle_crop_3945217205_0.png.png imagette265555711757032441/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/70ffc81396bbc25dd208494a80792660_26792390.png imagette265555701757032440 26555571 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26555571 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265555711757032441 26555572 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26555572 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381596938: '1757029887_394342_1381596846_5b688f295f7c7db4aa3cec18c2288a93_6244096_rle_crop_3945216267_0.png', 1381596939: '1757029887_394342_1381596845_c8aad4a2fde94d522088fa7aca0b0fb9_75216144_rle_crop_3945216277_0.png', 1381597141: '1757030104_405197_1381596896_d4fb84b806317c74025f99d33b262b28_92745075_rle_crop_3945216708_0.png', 1381597230: '1757030225_411900_1381597064_9a0a3a6a0a5e7efbcec1a67346726b52_73416987_rle_crop_3945217029_0.png', 1381597231: '1757030225_411900_1381597064_9a0a3a6a0a5e7efbcec1a67346726b52_73416987_rle_crop_3945217028_0.png', 1381597291: '1757030246_412258_1381597100_29746d0bd3beb8f550a702447dce1479_74563484_rle_crop_3945217194_0.png', 1381597292: '1757030246_412258_1381597100_29746d0bd3beb8f550a702447dce1479_74563484_rle_crop_3945217198_0.png', 1381598200: '1757030586_531108_1381597332_b5bd00757c87ef479448fce28ab5c7b8_92790994_rle_crop_3945232056_0.png', 1381598202: '1757030586_531108_1381597329_e633dea739b0efbcfcce00e3102cb15f_93122569_rle_crop_3945232062_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7b922d3097200e28f3b5ae984f0135d9_56795082.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/9e7afcca18b7bf3227f5750e47cb9cc7_92482519.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/435d859b4f59d85fdc643527192fa4da_80689933.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6d0ea9baa7beac5a26f472f836c699df_96499992.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/5ff5ae58fd31b83dcc46d5d4bce4744b_80324285.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/0536f30ae711476e1b114ffd890d59fd_60329631.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/08976a6fae668bf18631269c04f57f9c_74631155.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/0ca9115395cc1f39423945b352c2bb9a_65552125.png change filename to text .imagette265555721757032441/ imagette265555721757032441/1757030246_412258_1381597100_29746d0bd3beb8f550a702447dce1479_74563484_rle_crop_3945217198_0.png.png imagette265555721757032441/1757030225_411900_1381597064_9a0a3a6a0a5e7efbcec1a67346726b52_73416987_rle_crop_3945217028_0.png.png imagette265555721757032441/1757029887_394342_1381596846_5b688f295f7c7db4aa3cec18c2288a93_6244096_rle_crop_3945216267_0.png.png imagette265555721757032441/1757030104_405197_1381596896_d4fb84b806317c74025f99d33b262b28_92745075_rle_crop_3945216708_0.png.png imagette265555721757032441/1757030586_531108_1381597332_b5bd00757c87ef479448fce28ab5c7b8_92790994_rle_crop_3945232056_0.png.png imagette265555721757032441/1757030586_531108_1381597329_e633dea739b0efbcfcce00e3102cb15f_93122569_rle_crop_3945232062_0.png.png imagette265555721757032441/1757030246_412258_1381597100_29746d0bd3beb8f550a702447dce1479_74563484_rle_crop_3945217194_0.png.png imagette265555721757032441/1757029887_394342_1381596845_c8aad4a2fde94d522088fa7aca0b0fb9_75216144_rle_crop_3945216277_0.png.png imagette265555721757032441/1757030225_411900_1381597064_9a0a3a6a0a5e7efbcec1a67346726b52_73416987_rle_crop_3945217029_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7cff77ed8dcdab14cbf15fc25dc8469d_52150791.png imagette265555721757032441 26555575 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26555575 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381597749: '1757030466_520715_1381597289_ecbd6e0a0120328fa982485b7eb63850_15778473_rle_crop_3945222429_0.png', 1381601471: '1757031207_561268_1381597290_2a3c4b2979284a5e546c7325cf55ca08_90574358_rle_crop_3945262519_0.png', 1381598182: '1757030586_531108_1381597329_e633dea739b0efbcfcce00e3102cb15f_93122569_rle_crop_3945232066_0.png', 1381598180: '1757030586_531108_1381597329_e633dea739b0efbcfcce00e3102cb15f_93122569_rle_crop_3945232063_0.png', 1381598179: '1757030586_531108_1381597332_b5bd00757c87ef479448fce28ab5c7b8_92790994_rle_crop_3945232051_0.png', 1381598178: '1757030586_531108_1381597334_e999040f6a9802a4b923c49eb3667ffb_35294917_rle_crop_3945232038_0.png', 1381598177: '1757030586_531108_1381597334_e999040f6a9802a4b923c49eb3667ffb_35294917_rle_crop_3945232037_0.png', 1381597753: '1757030466_520715_1381597288_b5dcea627428d0f279d450d1e6d5dc9e_12506938_rle_crop_3945222438_0.png', 1381597751: '1757030466_520715_1381597289_ecbd6e0a0120328fa982485b7eb63850_15778473_rle_crop_3945222427_0.png', 1381596694: '1757029646_382318_1381596625_522679b23b6c991ef5eb183b68b9d146_36878719_rle_crop_3945215542_0.png', 1381597285: '1757030246_412258_1381597099_07b1962862d9984d4743c5793e44552c_96123050_rle_crop_3945217214_0.png', 1381597226: '1757030225_411900_1381597064_9a0a3a6a0a5e7efbcec1a67346726b52_73416987_rle_crop_3945217027_0.png', 1381597225: '1757030225_411900_1381597068_82b079a546d37708f78b762117da310c_3572481_rle_crop_3945216993_0.png', 1381597138: '1757030104_405197_1381596892_4055f6d508b713eb68317f2176823327_36447775_rle_crop_3945216761_0.png', 1381597137: '1757030104_405197_1381596896_d4fb84b806317c74025f99d33b262b28_92745075_rle_crop_3945216704_0.png', 1381596937: '1757029887_394342_1381596845_c8aad4a2fde94d522088fa7aca0b0fb9_75216144_rle_crop_3945216275_0.png', 1381596936: '1757029887_394342_1381596845_c8aad4a2fde94d522088fa7aca0b0fb9_75216144_rle_crop_3945216273_0.png', 1381596925: '1757029866_393930_1381596666_e4bc03bbcac7752cc626942ecab2c82f_2890889_rle_crop_3945216115_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8a17451e6c288f84303085e6c338919f_11675776.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/bc0b912813baddf93d81cc0cbbb89a18_73564111.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/44290f7a9d1acb126f0d1eb7c6c8ee88_24045700.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/0c6b6a197f470427ff1f01b22b04dc5b_21422802.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/126642d5d6707f0810d5487ee3dab450_56619485.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6e30fc7c00f466ef6f939b55f8b09b8b_98951087.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/5c27db92a8885d2abcf260ee36025bcb_11980392.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/c0aae41852ad602e3a0746aa1f436bfc_10326027.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8cfd0e90e56ee16b979109a0a16a4e2e_90298867.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/3a0de1e2e5ec27b29252f53642f9c2fb_11546816.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7d92d46a280bf2b6b2cf063c92fe974a_53012844.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/d6e0037132e56ea7948d62cdf7c79273_68390780.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/ab19f9b5b07c0482d20ea7fee8f19299_73304710.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8fd6d46d92ff818c1646906f55c6740f_28438887.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/f39408e1981955a582546c51e49eea20_71028287.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8fbfe21328621f4a3554f9bcf868be6a_71137001.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/4dd0a87e68480f67be25ea8d39e95c37_89603045.png change filename to text .imagette265555751757032442/ imagette265555751757032442/1757030466_520715_1381597288_b5dcea627428d0f279d450d1e6d5dc9e_12506938_rle_crop_3945222438_0.png.png imagette265555751757032442/1757030246_412258_1381597099_07b1962862d9984d4743c5793e44552c_96123050_rle_crop_3945217214_0.png.png imagette265555751757032442/1757030225_411900_1381597064_9a0a3a6a0a5e7efbcec1a67346726b52_73416987_rle_crop_3945217027_0.png.png imagette265555751757032442/1757031207_561268_1381597290_2a3c4b2979284a5e546c7325cf55ca08_90574358_rle_crop_3945262519_0.png.png imagette265555751757032442/1757030466_520715_1381597289_ecbd6e0a0120328fa982485b7eb63850_15778473_rle_crop_3945222427_0.png.png imagette265555751757032442/1757030104_405197_1381596896_d4fb84b806317c74025f99d33b262b28_92745075_rle_crop_3945216704_0.png.png imagette265555751757032442/1757029646_382318_1381596625_522679b23b6c991ef5eb183b68b9d146_36878719_rle_crop_3945215542_0.png.png imagette265555751757032442/1757030104_405197_1381596892_4055f6d508b713eb68317f2176823327_36447775_rle_crop_3945216761_0.png.png imagette265555751757032442/1757030586_531108_1381597329_e633dea739b0efbcfcce00e3102cb15f_93122569_rle_crop_3945232063_0.png.png imagette265555751757032442/1757030586_531108_1381597332_b5bd00757c87ef479448fce28ab5c7b8_92790994_rle_crop_3945232051_0.png.png imagette265555751757032442/1757030586_531108_1381597329_e633dea739b0efbcfcce00e3102cb15f_93122569_rle_crop_3945232066_0.png.png imagette265555751757032442/1757030586_531108_1381597334_e999040f6a9802a4b923c49eb3667ffb_35294917_rle_crop_3945232037_0.png.png imagette265555751757032442/1757029887_394342_1381596845_c8aad4a2fde94d522088fa7aca0b0fb9_75216144_rle_crop_3945216273_0.png.png imagette265555751757032442/1757030466_520715_1381597289_ecbd6e0a0120328fa982485b7eb63850_15778473_rle_crop_3945222429_0.png.png imagette265555751757032442/1757030586_531108_1381597334_e999040f6a9802a4b923c49eb3667ffb_35294917_rle_crop_3945232038_0.png.png imagette265555751757032442/1757029887_394342_1381596845_c8aad4a2fde94d522088fa7aca0b0fb9_75216144_rle_crop_3945216275_0.png.png imagette265555751757032442/1757029866_393930_1381596666_e4bc03bbcac7752cc626942ecab2c82f_2890889_rle_crop_3945216115_0.png.png imagette265555751757032442/1757030225_411900_1381597068_82b079a546d37708f78b762117da310c_3572481_rle_crop_3945216993_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/371ebbadfdfb211c33ea96682c2d0a93_5388204.png imagette265555751757032442 26555564 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26555564 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381596924: '1757029866_393930_1381596665_a9421568d602563222cc36818b39db5c_69170847_rle_crop_3945216134_0.png', 1381597136: '1757030104_405197_1381596896_d4fb84b806317c74025f99d33b262b28_92745075_rle_crop_3945216711_0.png', 1381597279: '1757030246_412258_1381597099_07b1962862d9984d4743c5793e44552c_96123050_rle_crop_3945217217_0.png', 1381597321: '1757030347_417380_1381597151_b0e730a8122589e0d55b440e157364d6_19449016_rle_crop_3945222241_0.png', 1381597741: '1757030466_520715_1381597288_b5dcea627428d0f279d450d1e6d5dc9e_12506938_rle_crop_3945222444_0.png', 1381597838: '1757030486_526311_1381597207_b0e730a8122589e0d55b440e157364d6_76124558_rle_crop_3945228970_0.png', 1381598175: '1757030586_531108_1381597336_222157d22ef92a49f2bf837fc5c2999b_87640189_rle_crop_3945232027_0.png', 1381601462: '1757031207_561268_1381597200_c8429c28caae2c32adc91cdbbbf281d3_69285289_rle_crop_3945262570_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e7904923667b8091a04769261c7c53d4_76294055.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/c2e4a1988bba9f3899f2a7b6d35b6df1_37506384.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2b54c123eb56a8e33249b0d7d470a8e0_73706388.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/199fa3e48c24bb694c20732a99be70d1_97652173.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/66d8bec6bd4888f2ac9885c74567540c_46143337.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/199fa3e48c24bb694c20732a99be70d1_6974650.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/0fadc288fa59168fb6a96232fecf6fba_43251680.png change filename to text .imagette265555641757032443/ imagette265555641757032443/1757030466_520715_1381597288_b5dcea627428d0f279d450d1e6d5dc9e_12506938_rle_crop_3945222444_0.png.png imagette265555641757032443/1757030347_417380_1381597151_b0e730a8122589e0d55b440e157364d6_19449016_rle_crop_3945222241_0.png.png imagette265555641757032443/1757030486_526311_1381597207_b0e730a8122589e0d55b440e157364d6_76124558_rle_crop_3945228970_0.png.png imagette265555641757032443/1757030104_405197_1381596896_d4fb84b806317c74025f99d33b262b28_92745075_rle_crop_3945216711_0.png.png imagette265555641757032443/1757030586_531108_1381597336_222157d22ef92a49f2bf837fc5c2999b_87640189_rle_crop_3945232027_0.png.png imagette265555641757032443/1757030246_412258_1381597099_07b1962862d9984d4743c5793e44552c_96123050_rle_crop_3945217217_0.png.png imagette265555641757032443/1757029866_393930_1381596665_a9421568d602563222cc36818b39db5c_69170847_rle_crop_3945216134_0.png.png imagette265555641757032443/1757031207_561268_1381597200_c8429c28caae2c32adc91cdbbbf281d3_69285289_rle_crop_3945262570_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e1eaba72ca8a6386c33638261c7e152e_83897796.png imagette265555641757032443 26555565 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26555565 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381597274: '1757030246_412258_1381597099_07b1962862d9984d4743c5793e44552c_96123050_rle_crop_3945217215_0.png', 1381604910: '1757031908_595423_1381597103_35ff57f06b5a161930b5e5e5e4b699b9_24349341_rle_crop_3945266729_0.png', 1381604550: '1757031687_586195_1381597640_54d7fc1fe2684d0db0a128ec4c428f1e_89961429_rle_crop_3945266666_0.png', 1381604546: '1757031687_586195_1381597640_54d7fc1fe2684d0db0a128ec4c428f1e_89961429_rle_crop_3945266667_0.png', 1381601453: '1757031207_561268_1381597197_f756a9e7675d64c91254cf93bc823d35_92574362_rle_crop_3945262637_0.png', 1381601449: '1757031207_561268_1381597197_f756a9e7675d64c91254cf93bc823d35_92574362_rle_crop_3945262640_0.png', 1381601445: '1757031207_561268_1381597201_d7f04160f411ba034cb4e21bb5a649f4_91343218_rle_crop_3945262545_0.png', 1381601439: '1757031207_561268_1381597201_d7f04160f411ba034cb4e21bb5a649f4_91343218_rle_crop_3945262551_0.png', 1381601435: '1757031207_561268_1381597290_2a3c4b2979284a5e546c7325cf55ca08_90574358_rle_crop_3945262520_0.png', 1381598174: '1757030586_531108_1381597327_b04849e8341f13da4923b0cca8cf320b_37802173_rle_crop_3945232075_0.png', 1381598173: '1757030586_531108_1381597332_b5bd00757c87ef479448fce28ab5c7b8_92790994_rle_crop_3945232049_0.png', 1381598172: '1757030586_531108_1381597334_e999040f6a9802a4b923c49eb3667ffb_35294917_rle_crop_3945232042_0.png', 1381597837: '1757030486_526311_1381597203_c01879901d99e234e40ae96008ed2da4_73816295_rle_crop_3945228986_0.png', 1381597275: '1757030246_412258_1381597097_4bab1f69733062e86c5a9d8644311f4c_26154458_rle_crop_3945217226_0.png', 1381596693: '1757029646_382318_1381596627_b73afc0d93fdfb7a5b1635dec0d8fcc7_7830081_rle_crop_3945215505_0.png', 1381597273: '1757030246_412258_1381597100_29746d0bd3beb8f550a702447dce1479_74563484_rle_crop_3945217202_0.png', 1381597272: '1757030246_412258_1381597101_9240ffbc789ae1d05d12ec1f7cd9a9a2_52967336_rle_crop_3945217186_0.png', 1381597133: '1757030104_405197_1381596893_17f2e451f96adff70a7da9524b411c2a_70719694_rle_crop_3945216734_0.png', 1381597132: '1757030104_405197_1381596954_2fda929d9bf3d564f28f41427f781804_67774596_rle_crop_3945216697_0.png', 1381597056: '1757030007_400350_1381596952_751688bbb80e14238c12ada0520eeef1_20730251_rle_crop_3945216497_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2e7c7754b2f71a67b0c73327a8d3d3c5_58323793.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6a61b0ee987c16cc8719ee4806c83190_90592522.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/abb71b12dbb532d1e19541103ee5608f_78633718.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/4c6ac8c2aea49fbcbd6d1be90d2a0921_21887056.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/0ff7cfe33ef5882c5bc3c185c3ca6989_64489423.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/849263fdb7817b08dd7af25d4b6199d4_42536374.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/695348189df02c397a6ff5880d39ed84_93728840.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/19c438cda92b5644b70ce8a3ce431ed8_18204215.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/34801427574493b23aa9686d05aeae29_54619907.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/1b912266c6b0663bc16b3ae3f58359bb_31563326.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/68ef4f38fce8c5fa119a0a9b7a24df50_35846904.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2ee88ecd8baccec537500f4784cbdc34_67358280.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/0f4c834550261f16708b148f680c116b_22264107.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/51ac4cdd5e9b4a24dd7eccf186ab0aa4_57993741.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2b4a9a3645ddd6012a782e4e332af685_13739442.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/bd360e1a6a19817566a9e0ed615c2297_85728846.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/96e92a8d02828da2f845fb48e0ba1bdd_92360851.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7fe5fafe68545ad766950a5f85f46435_22294927.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/d99fd244ee4b3cbe4d2046c372cfceed_21438426.png change filename to text .imagette265555651757032444/ imagette265555651757032444/1757030104_405197_1381596954_2fda929d9bf3d564f28f41427f781804_67774596_rle_crop_3945216697_0.png.png imagette265555651757032444/1757031207_561268_1381597290_2a3c4b2979284a5e546c7325cf55ca08_90574358_rle_crop_3945262520_0.png.png imagette265555651757032444/1757030586_531108_1381597327_b04849e8341f13da4923b0cca8cf320b_37802173_rle_crop_3945232075_0.png.png imagette265555651757032444/1757031207_561268_1381597197_f756a9e7675d64c91254cf93bc823d35_92574362_rle_crop_3945262640_0.png.png imagette265555651757032444/1757029646_382318_1381596627_b73afc0d93fdfb7a5b1635dec0d8fcc7_7830081_rle_crop_3945215505_0.png.png imagette265555651757032444/1757031207_561268_1381597201_d7f04160f411ba034cb4e21bb5a649f4_91343218_rle_crop_3945262551_0.png.png imagette265555651757032444/1757030586_531108_1381597332_b5bd00757c87ef479448fce28ab5c7b8_92790994_rle_crop_3945232049_0.png.png imagette265555651757032444/1757030486_526311_1381597203_c01879901d99e234e40ae96008ed2da4_73816295_rle_crop_3945228986_0.png.png imagette265555651757032444/1757030007_400350_1381596952_751688bbb80e14238c12ada0520eeef1_20730251_rle_crop_3945216497_0.png.png imagette265555651757032444/1757031687_586195_1381597640_54d7fc1fe2684d0db0a128ec4c428f1e_89961429_rle_crop_3945266667_0.png.png imagette265555651757032444/1757031207_561268_1381597197_f756a9e7675d64c91254cf93bc823d35_92574362_rle_crop_3945262637_0.png.png imagette265555651757032444/1757031687_586195_1381597640_54d7fc1fe2684d0db0a128ec4c428f1e_89961429_rle_crop_3945266666_0.png.png imagette265555651757032444/1757030246_412258_1381597099_07b1962862d9984d4743c5793e44552c_96123050_rle_crop_3945217215_0.png.png imagette265555651757032444/1757031908_595423_1381597103_35ff57f06b5a161930b5e5e5e4b699b9_24349341_rle_crop_3945266729_0.png.png imagette265555651757032444/1757030246_412258_1381597101_9240ffbc789ae1d05d12ec1f7cd9a9a2_52967336_rle_crop_3945217186_0.png.png imagette265555651757032444/1757030246_412258_1381597100_29746d0bd3beb8f550a702447dce1479_74563484_rle_crop_3945217202_0.png.png imagette265555651757032444/1757031207_561268_1381597201_d7f04160f411ba034cb4e21bb5a649f4_91343218_rle_crop_3945262545_0.png.png imagette265555651757032444/1757030246_412258_1381597097_4bab1f69733062e86c5a9d8644311f4c_26154458_rle_crop_3945217226_0.png.png imagette265555651757032444/1757030586_531108_1381597334_e999040f6a9802a4b923c49eb3667ffb_35294917_rle_crop_3945232042_0.png.png imagette265555651757032444/1757030104_405197_1381596893_17f2e451f96adff70a7da9524b411c2a_70719694_rle_crop_3945216734_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/930fb8353158007648e485b6ac87f0ac_31523196.png imagette265555651757032444 26555573 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26555573 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381596695: '1757029646_382318_1381596625_522679b23b6c991ef5eb183b68b9d146_36878719_rle_crop_3945215547_0.png', 1381596927: '1757029866_393930_1381596664_2b7553c1c07b4b64b0f6dfef859299f7_97754240_rle_crop_3945216148_0.png', 1381597037: '1757029986_399955_1381596803_0ecb1cdaf54f170ba9ac2b57f54bd9c9_58538064_rle_crop_3945216378_0.png', 1381597139: '1757030104_405197_1381596896_d4fb84b806317c74025f99d33b262b28_92745075_rle_crop_3945216709_0.png', 1381597140: '1757030104_405197_1381596894_9e6efed050cc0f6c07e9ed1fd7cf5597_85240206_rle_crop_3945216724_0.png', 1381597229: '1757030225_411900_1381597068_82b079a546d37708f78b762117da310c_3572481_rle_crop_3945216996_0.png', 1381597286: '1757030246_412258_1381597099_07b1962862d9984d4743c5793e44552c_96123050_rle_crop_3945217213_0.png', 1381598189: '1757030586_531108_1381597327_b04849e8341f13da4923b0cca8cf320b_37802173_rle_crop_3945232077_0.png', 1381598226: '1757030608_531447_1381597069_82a17379f60bfcc21688fc9b14e64d63_85921400_rle_crop_3945232125_0.png', 1381598228: '1757030608_531447_1381597020_b851c7d4ae545479dfad87688a73cbc7_83838314_rle_crop_3945232143_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/9d793771f8c4b4da7eaff48067cbbe06_65800888.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/74a0a95ff56fc3b286981c7fe75f71da_94769073.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/78f55743ab7954a662e752787ad227d8_42345359.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/913d39577c4ab32783b5c1963b85dbec_18955710.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8970f7dcc89e73022d6f390967f969d7_63966.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/5e9037d30879b2a1bf4365e4ffc6a16f_16493705.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/9d99ddd5ec73f76b4d50504e2fbd0c7a_30837944.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/3497524f559e4b3d8085dd7588859f12_86117140.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e795988a5cc6d78cff3fe3a1e7a61852_88378651.png change filename to text .imagette265555731757032445/ imagette265555731757032445/1757030104_405197_1381596896_d4fb84b806317c74025f99d33b262b28_92745075_rle_crop_3945216709_0.png.png imagette265555731757032445/1757030586_531108_1381597327_b04849e8341f13da4923b0cca8cf320b_37802173_rle_crop_3945232077_0.png.png imagette265555731757032445/1757030246_412258_1381597099_07b1962862d9984d4743c5793e44552c_96123050_rle_crop_3945217213_0.png.png imagette265555731757032445/1757030225_411900_1381597068_82b079a546d37708f78b762117da310c_3572481_rle_crop_3945216996_0.png.png imagette265555731757032445/1757029986_399955_1381596803_0ecb1cdaf54f170ba9ac2b57f54bd9c9_58538064_rle_crop_3945216378_0.png.png imagette265555731757032445/1757030608_531447_1381597069_82a17379f60bfcc21688fc9b14e64d63_85921400_rle_crop_3945232125_0.png.png imagette265555731757032445/1757029866_393930_1381596664_2b7553c1c07b4b64b0f6dfef859299f7_97754240_rle_crop_3945216148_0.png.png imagette265555731757032445/1757029646_382318_1381596625_522679b23b6c991ef5eb183b68b9d146_36878719_rle_crop_3945215547_0.png.png imagette265555731757032445/1757030608_531447_1381597020_b851c7d4ae545479dfad87688a73cbc7_83838314_rle_crop_3945232143_0.png.png imagette265555731757032445/1757030104_405197_1381596894_9e6efed050cc0f6c07e9ed1fd7cf5597_85240206_rle_crop_3945216724_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/707c72d3252fc94aa43d367d8e34b449_15975875.png imagette265555731757032445 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26555560 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26555577,26555578,26555579,26555580,26555581,26555582,26555583,26555584,26555585,26555586,26555587,26555588?tags=Carton_gris,Teint_Dans_La_Masse,papier,mal_croppe,metal,flou,autre_refus,kraft,plastique,Carton_brun,environnement,cartonnette your option no_mail is active, we will not send the real mail to your client args[1381597640] : ('0.043526961330972676',) no score found for photo 1381597640 We are sending mail with results at report@fotonower.com refus_total : 0.043526961330972676 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26555560 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_P26555560_05-09-2025_02_34_00.pdf results_Auto_P26555560_05-09-2025_02_34_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_02_34_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','26555560','results_Auto_P26555560_05-09-2025_02_34_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_02_34_00.pdf','pdf','','0.21','0.043526961330972676') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26555560]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1381597640] map_info['map_portfolio_photo'] : {26555560: [1381597640, 1381597339, 1381597336, 1381597334, 1381597332, 1381597329, 1381597327, 1381597290, 1381597289, 1381597288, 1381597287, 1381597212, 1381597211, 1381597210, 1381597209, 1381597207, 1381597203, 1381597201, 1381597200, 1381597199, 1381597198, 1381597197, 1381597155, 1381597154, 1381597153, 1381597152, 1381597151, 1381597103, 1381597102, 1381597101, 1381597100, 1381597099, 1381597097, 1381597069, 1381597068, 1381597066, 1381597065, 1381597064, 1381597023, 1381597022, 1381597021, 1381597020, 1381596954, 1381596952, 1381596951, 1381596950, 1381596948, 1381596897, 1381596896, 1381596895, 1381596894, 1381596893, 1381596892, 1381596849, 1381596848, 1381596847, 1381596846, 1381596845, 1381596803, 1381596802, 1381596801, 1381596712, 1381596711, 1381596710, 1381596667, 1381596666, 1381596665, 1381596664, 1381596627, 1381596626, 1381596625]} final : False mtd_id 4302 list_pids : [1381597640] 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, '3666994') ('4302', '26555560', '1381597640', None, None, None, None, None, '3666994') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '26555560', '1381597640', None, None, None, None, None, '3666994')] time used for this insertion : 0.01193857192993164 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.403028249740601 time spend to save output : 0.012118101119995117 total time spend for step 4 : 6.415146350860596 step5:split_time_score Fri Sep 5 02:34:07 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26555560'] 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 : [('26555560',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26555560) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1381597640: {'path': 'temp/1757032440_2777242_1381597640_54d7fc1fe2684d0db0a128ec4c428f1e_89961429.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 = 26555560; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26555560 group by h (('01', 71),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26555560 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 (26555560) 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 (26555560) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05092025 26555560 Nombre de photos uploadées : 71 / 23040 (0%) 05092025 26555560 Nombre de photos taguées (types de déchets): 0 / 71 (0%) 05092025 26555560 Nombre de photos taguées (volume) : 0 / 71 (0%) [{'photo_id': 1381596627, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/b73afc0d93fdfb7a5b1635dec0d8fcc7_7830081.jpg', 'username': None, 'uploaded_at': 1757029573, 'text': 'image_05092025_01_45_04_009147m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1381596626, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6836c3bee756977b73c0ae0db6d568d9_10814571.jpg', 'username': None, 'uploaded_at': 1757029573, 'text': 'image_05092025_01_45_34_010145m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1381596625, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/522679b23b6c991ef5eb183b68b9d146_36878719.jpg', 'username': None, 'uploaded_at': 1757029573, 'text': 'image_05092025_01_45_44_010143m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1381596667, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/ffc0bb95da8b08c9d1c454a0fa10c7fb_55683930.jpg', 'username': None, 'uploaded_at': 1757029632, 'text': 'image_05092025_01_45_54_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ??????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0032660961151123047 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26555560, '2025-09-05' ) 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-09-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2234129,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2080397605895996 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= 2234129 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2234129, 'dashboard_run_id': 2241895, 'mtr_portfolio_id': 26552286, 'dashboard_result_id': 14778941, '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_P26552286_05-09-2025_00_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2241895, 'mtr_portfolio_id': 26552950, 'dashboard_result_id': 14778942, '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_P26552950_05-09-2025_00_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2241895, 'mtr_portfolio_id': 26553483, 'dashboard_result_id': 14778943, '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_P26553483_05-09-2025_00_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2241895, 'mtr_portfolio_id': 26553954, 'dashboard_result_id': 14778944, '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_P26553954_05-09-2025_00_59_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2241895, 'mtr_portfolio_id': 26554624, 'dashboard_result_id': 14778945, '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_P26554624_05-09-2025_01_11_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26554625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26554626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26554627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26554628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26554629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26554630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26554631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26554632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26554633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26554634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26554635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26554636, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2241895, 'mtr_portfolio_id': 26555558, 'dashboard_result_id': 14778946, '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_P26555558_05-09-2025_02_02_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2241895, 'mtr_portfolio_id': 26555560, 'dashboard_result_id': 14778947, '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_P26555560_05-09-2025_02_01_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, '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 = 26552286 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': 3666584, 'mtr_portfolio_id': 26552286, 'created_at': datetime.datetime(2025, 9, 5, 0, 17), 'result': '0.04774675192080819', 'result_long': None, 'result_double': None}] Qualite : 0.04774675192080819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26552286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_00_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26552286 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_P26552286_05-09-2025_00_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}" where mtr_portfolio_id = 26552286 and dashboard_run_id = 2241895 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`=26552286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14778941, 0.04774675192080819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_00_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, '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 = 26552950 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': 3666648, 'mtr_portfolio_id': 26552950, 'created_at': datetime.datetime(2025, 9, 5, 0, 32, 57), 'result': '0.053637049482939146', 'result_long': None, 'result_double': None}] Qualite : 0.053637049482939146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26552950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_00_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26552950 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_P26552950_05-09-2025_00_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}" where mtr_portfolio_id = 26552950 and dashboard_run_id = 2241895 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`=26552950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14778942, 0.053637049482939146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_00_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, '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 = 26553483 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': 3666712, 'mtr_portfolio_id': 26553483, 'created_at': datetime.datetime(2025, 9, 5, 0, 47, 1), 'result': '0.0521622743835702', 'result_long': None, 'result_double': None}] Qualite : 0.0521622743835702 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26553483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_00_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26553483 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_P26553483_05-09-2025_00_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}" where mtr_portfolio_id = 26553483 and dashboard_run_id = 2241895 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`=26553483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14778943, 0.0521622743835702, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_00_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, '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 = 26553954 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': 3666772, 'mtr_portfolio_id': 26553954, 'created_at': datetime.datetime(2025, 9, 5, 2, 1, 2), 'result': '0.038686864708222954', 'result_long': None, 'result_double': None}] Qualite : 0.038686864708222954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26553954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_02_01_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26553954 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_P26553954_05-09-2025_02_01_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}" where mtr_portfolio_id = 26553954 and dashboard_run_id = 2241895 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`=26553954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14778944, 0.038686864708222954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_02_01_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, '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 = 26554624 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26554624 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26554624 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26554624 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26554624 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26554624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26554624_05-09-2025_01_11_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26554624 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_P26554624_05-09-2025_01_11_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26554625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26554626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26554627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26554628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26554629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26554630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26554631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26554632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26554633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26554634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26554635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26554636, 'pht': 3726}}" where mtr_portfolio_id = 26554624 and dashboard_run_id = 2241895 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 = 26555558 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': 3666993, 'mtr_portfolio_id': 26555558, 'created_at': datetime.datetime(2025, 9, 5, 2, 2, 2), 'result': '0.05771406143431616', 'result_long': None, 'result_double': None}] Qualite : 0.05771406143431616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26555558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_02_02_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26555558 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_P26555558_05-09-2025_02_02_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}" where mtr_portfolio_id = 26555558 and dashboard_run_id = 2241895 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`=26555558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14778946, 0.05771406143431616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_02_02_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, '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 = 26555560 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': 3666994, 'mtr_portfolio_id': 26555560, 'created_at': datetime.datetime(2025, 9, 5, 2, 34), 'result': '0.043526961330972676', 'result_long': None, 'result_double': None}] Qualite : 0.043526961330972676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26555560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_02_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26555560 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_P26555560_05-09-2025_02_34_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, 'pht': 3726}}" where mtr_portfolio_id = 26555560 and dashboard_run_id = 2241893 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`=26555560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14778947, 0.043526961330972676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_02_34_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, '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 (26552286,26552950,26553483,26553954,26554624,26555558,26555560) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,), (1381588093,), (1381588095,), (1381588097,), (1381588099,), (1381588102,), (1381588104,), (1381588400,), (1381588393,), (1381588395,), (1381588397,), (1381588567,), (1381588569,), (1381588571,), (1381588573,), (1381588575,), (1381588743,), (1381588744,), (1381588745,), (1381588746,), (1381588747,), (1381588749,), (1381588979,), (1381588981,), (1381588984,), (1381588986,), (1381589178,), (1381589180,), (1381589182,), (1381589184,), (1381589187,), (1381589189,), (1381589294,), (1381589295,), (1381589296,), (1381589297,), (1381589298,), (1381589300,), (1381589350,), (1381589351,), (1381589352,), (1381589353,), (1381589392,), (1381589394,), (1381589395,), (1381589397,), (1381589398,), (1381589435,), (1381589443,), (1381589444,), (1381589446,), (1381589447,), (1381589489,), (1381589490,), (1381589491,), (1381589492,), (1381589540,), (1381589541,), (1381589542,), (1381589543,), (1381589545,), (1381589546,), (1381589611,), (1381589613,), (1381589616,), (1381589620,), (1381589623,), (1381589726,), (1381589727,), (1381589728,), (1381589729,), (1381589730,), (1381589765,), (1381589766,), (1381589821,), (1381589822,), (1381589823,), (1381589824,), (1381589865,), (1381589860,), (1381589861,), (1381589862,), (1381589863,), (1381589970,), (1381589971,), (1381589973,), (1381589974,), (1381590017,), (1381590018,), (1381590019,), (1381590020,), (1381590021,), (1381590022,), (1381590076,), (1381590078,), (1381590079,), (1381590080,), (1381590082,), (1381590157,), (1381590159,), (1381590160,), (1381590161,), (1381590196,), (1381590197,), (1381590198,), (1381590199,), (1381590234,), (1381590235,), (1381590236,), (1381590237,), (1381590239,), (1381590316,), (1381590317,), (1381590318,), (1381590319,), (1381590321,), (1381590351,), (1381590352,), (1381590353,), (1381590354,), (1381590355,), (1381590356,), (1381590404,), (1381590405,), (1381590407,), (1381590408,), (1381590409,), (1381590410,), (1381590454,), (1381590456,), (1381590457,), (1381590458,), (1381590504,), (1381590505,), (1381590506,), (1381590507,), (1381590508,), (1381590509,), (1381590543,), (1381590544,), (1381590545,), (1381590546,), (1381590548,), (1381590617,), (1381590618,), (1381590619,), (1381590661,), (1381590663,), (1381590664,), (1381590665,), (1381590666,), (1381590667,), (1381590717,), (1381590712,), (1381590713,), (1381590714,), (1381590715,), (1381590716,), (1381590753,), (1381590754,), (1381590828,), (1381590830,), (1381590832,), (1381590835,), (1381590837,), (1381590877,), (1381590878,), (1381590879,), (1381590880,), (1381590881,), (1381590927,), (1381590928,), (1381590929,), (1381590930,), (1381590964,), (1381590965,), (1381590966,), (1381590967,), (1381591124,), (1381591169,), (1381591170,), (1381591171,), (1381591172,), (1381591173,), (1381591217,), (1381591218,), (1381591220,), (1381591224,), (1381591227,), (1381591229,), (1381591243,), (1381591244,), (1381591245,), (1381591246,), (1381591248,), (1381591413,), (1381591415,), (1381591417,), (1381591419,), (1381591421,), (1381595847,), (1381591996,), (1381594672,), (1381595882,), (1381595883,), (1381595884,), (1381595886,), (1381595887,), (1381595947,), (1381595948,), (1381595949,), (1381596040,), (1381596041,), (1381596042,), (1381596099,), (1381596100,), (1381596101,), (1381596102,), (1381596147,), (1381596148,), (1381596149,), (1381596150,), (1381596151,), (1381596152,), (1381596199,), (1381596200,), (1381596202,), (1381596203,), (1381596205,), (1381596237,), (1381596238,), (1381596239,), (1381596296,), (1381596297,), (1381596298,), (1381596299,), (1381596300,), (1381596349,), (1381596350,), (1381596352,), (1381596354,), (1381596355,), (1381596389,), (1381596391,), (1381596392,), (1381596393,), (1381596449,), (1381596450,), (1381596488,), (1381596489,), (1381596535,), (1381596536,), (1381596537,), (1381596539,), (1381596541,), (1381596577,), (1381596579,), (1381596580,), (1381596582,), (1381596628,), (1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05092025': {'nb_upload': 71, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26555560]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1381597640] map_info['map_portfolio_photo'] : {26555560: [1381597640, 1381597339, 1381597336, 1381597334, 1381597332, 1381597329, 1381597327, 1381597290, 1381597289, 1381597288, 1381597287, 1381597212, 1381597211, 1381597210, 1381597209, 1381597207, 1381597203, 1381597201, 1381597200, 1381597199, 1381597198, 1381597197, 1381597155, 1381597154, 1381597153, 1381597152, 1381597151, 1381597103, 1381597102, 1381597101, 1381597100, 1381597099, 1381597097, 1381597069, 1381597068, 1381597066, 1381597065, 1381597064, 1381597023, 1381597022, 1381597021, 1381597020, 1381596954, 1381596952, 1381596951, 1381596950, 1381596948, 1381596897, 1381596896, 1381596895, 1381596894, 1381596893, 1381596892, 1381596849, 1381596848, 1381596847, 1381596846, 1381596845, 1381596803, 1381596802, 1381596801, 1381596712, 1381596711, 1381596710, 1381596667, 1381596666, 1381596665, 1381596664, 1381596627, 1381596626, 1381596625]} final : True mtd_id 4302 list_pids : [1381597640] Looping around the photos to save general results len do output : 1 /26555560Didn'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, '3666994') ('4302', '26555560', '1381597640', None, None, None, None, None, '3666994') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '26555560', 'None', None, None, None, None, '3666994'), ('4302', '26555560', '1381597640', None, None, None, None, None, '3666994')] time used for this insertion : 0.012619256973266602 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6860535144805908 time spend to save output : 0.012847661972045898 total time spend for step 5 : 0.6989011764526367 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 (3666994) 1.87user 2.39system 0:11.52elapsed 37%CPU (0avgtext+0avgdata 156936maxresident)k 472inputs+9136outputs (20major+62131minor)pagefaults 0swaps