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 (2737913) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2737913) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22203774 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2737913'] with mtr_portfolio_ids : ['22203774'] and first list_photo_ids : [] new path : /proc/835217/ Name: python3 Umask: 0002 State: R (running) Tgid: 835217 Ngid: 0 Pid: 835217 PPid: 835216 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 835217 NSpid: 835217 NSpgid: 819499 NSsid: 819499 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98800 kB VmRSS: 98800 kB RssAnon: 59772 kB RssFile: 39028 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 40 nonvoluntary_ctxt_switches: 296 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '835217', 'Ngid': '0', 'Pid': '835217', 'PPid': '835216', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '835217', 'NSpid': '835217', 'NSpgid': '819499', 'NSsid': '819499', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98800 kB', 'VmRSS': '98800 kB', 'RssAnon': '59772 kB', 'RssFile': '39028 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '40', 'nonvoluntary_ctxt_switches': '296'} ('datou_batch_current', '835217', '1106848', '0', '1106848', '865596', '98800', b'', 'marlene', '2737913') 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 (22203774) 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 (2737913 ) ) 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 (22203774) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351038421, 'portfolio_id': 22203774}, {'photo_id': 1351038407, 'portfolio_id': 22203774}, {'photo_id': 1351038395, 'portfolio_id': 22203774}, {'photo_id': 1351038365, 'portfolio_id': 22203774}, {'photo_id': 1351037832, 'portfolio_id': 22203774}, {'photo_id': 1351037827, 'portfolio_id': 22203774}, {'photo_id': 1351037825, 'portfolio_id': 22203774}, {'photo_id': 1351037819, 'portfolio_id': 22203774}, {'photo_id': 1351037818, 'portfolio_id': 22203774}, {'photo_id': 1351037816, 'portfolio_id': 22203774}, {'photo_id': 1351037758, 'portfolio_id': 22203774}, {'photo_id': 1351037754, 'portfolio_id': 22203774}, {'photo_id': 1351037746, 'portfolio_id': 22203774}, {'photo_id': 1351037651, 'portfolio_id': 22203774}, {'photo_id': 1351037637, 'portfolio_id': 22203774}, {'photo_id': 1351037619, 'portfolio_id': 22203774}, {'photo_id': 1351037613, 'portfolio_id': 22203774}, {'photo_id': 1351037606, 'portfolio_id': 22203774}, {'photo_id': 1351037439, 'portfolio_id': 22203774}, {'photo_id': 1351037406, 'portfolio_id': 22203774}, {'photo_id': 1351037340, 'portfolio_id': 22203774}, {'photo_id': 1351037246, 'portfolio_id': 22203774}, {'photo_id': 1351037147, 'portfolio_id': 22203774}, {'photo_id': 1351037060, 'portfolio_id': 22203774}, {'photo_id': 1351037009, 'portfolio_id': 22203774}, {'photo_id': 1351037007, 'portfolio_id': 22203774}, {'photo_id': 1351036994, 'portfolio_id': 22203774}, {'photo_id': 1351036977, 'portfolio_id': 22203774}, {'photo_id': 1351036916, 'portfolio_id': 22203774}, {'photo_id': 1351036904, 'portfolio_id': 22203774}, {'photo_id': 1351036882, 'portfolio_id': 22203774}, {'photo_id': 1351036829, 'portfolio_id': 22203774}, {'photo_id': 1351036809, 'portfolio_id': 22203774}, {'photo_id': 1351036805, 'portfolio_id': 22203774}, {'photo_id': 1351036803, 'portfolio_id': 22203774}, {'photo_id': 1351036800, 'portfolio_id': 22203774}, {'photo_id': 1351036639, 'portfolio_id': 22203774}, {'photo_id': 1351036632, 'portfolio_id': 22203774}, {'photo_id': 1351036623, 'portfolio_id': 22203774}, {'photo_id': 1351036619, 'portfolio_id': 22203774}, {'photo_id': 1351036504, 'portfolio_id': 22203774}, {'photo_id': 1351036477, 'portfolio_id': 22203774}, {'photo_id': 1351036449, 'portfolio_id': 22203774}, {'photo_id': 1351036443, 'portfolio_id': 22203774}, {'photo_id': 1351036436, 'portfolio_id': 22203774}, {'photo_id': 1351036245, 'portfolio_id': 22203774}, {'photo_id': 1351036242, 'portfolio_id': 22203774}, {'photo_id': 1351036218, 'portfolio_id': 22203774}, {'photo_id': 1351035984, 'portfolio_id': 22203774}, {'photo_id': 1351035935, 'portfolio_id': 22203774}, {'photo_id': 1351035927, 'portfolio_id': 22203774}, {'photo_id': 1351035905, 'portfolio_id': 22203774}, {'photo_id': 1351035846, 'portfolio_id': 22203774}, {'photo_id': 1351035768, 'portfolio_id': 22203774}, {'photo_id': 1351035765, 'portfolio_id': 22203774}, {'photo_id': 1351035761, 'portfolio_id': 22203774}, {'photo_id': 1351035728, 'portfolio_id': 22203774}, {'photo_id': 1351035721, 'portfolio_id': 22203774}, {'photo_id': 1351035707, 'portfolio_id': 22203774}, {'photo_id': 1351035676, 'portfolio_id': 22203774}, {'photo_id': 1351035675, 'portfolio_id': 22203774}, {'photo_id': 1351035642, 'portfolio_id': 22203774}] map_portfolio_id_photo_id: {22203774: [1351038421, 1351038407, 1351038395, 1351038365, 1351037832, 1351037827, 1351037825, 1351037819, 1351037818, 1351037816, 1351037758, 1351037754, 1351037746, 1351037651, 1351037637, 1351037619, 1351037613, 1351037606, 1351037439, 1351037406, 1351037340, 1351037246, 1351037147, 1351037060, 1351037009, 1351037007, 1351036994, 1351036977, 1351036916, 1351036904, 1351036882, 1351036829, 1351036809, 1351036805, 1351036803, 1351036800, 1351036639, 1351036632, 1351036623, 1351036619, 1351036504, 1351036477, 1351036449, 1351036443, 1351036436, 1351036245, 1351036242, 1351036218, 1351035984, 1351035935, 1351035927, 1351035905, 1351035846, 1351035768, 1351035765, 1351035761, 1351035728, 1351035721, 1351035707, 1351035676, 1351035675, 1351035642]} ##### 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.015920639038085938 #### 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 Thu Apr 10 06:00:30 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 (22203774) 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 : 22203774 get user id for portfolio 22203774 get sub ptf for main ptf 22203774, type 3726 and hashtags ['Carton_brun', 'mal_croppe', 'cartonnette', 'Carton_gris', 'environnement', 'plastique', 'flou', 'Teint_Dans_La_Masse', 'kraft', 'autre_refus', 'papier', 'metal'] 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`=22203774 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','cartonnette','Carton_gris','environnement','plastique','flou','Teint_Dans_La_Masse','kraft','autre_refus','papier','metal')) 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`=22203774 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','cartonnette','Carton_gris','environnement','plastique','flou','Teint_Dans_La_Masse','kraft','autre_refus','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22203774, 'sub_port_id': 22203800, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14676999, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 57)}, 'environnement': {'main_port_id': 22203774, 'sub_port_id': 22203801, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677000, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 57)}, 'mal_croppe': {'main_port_id': 22203774, 'sub_port_id': 22203802, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677001, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 57)}, 'kraft': {'main_port_id': 22203774, 'sub_port_id': 22203803, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677002, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 57)}, 'papier': {'main_port_id': 22203774, 'sub_port_id': 22203804, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677003, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 57)}, 'flou': {'main_port_id': 22203774, 'sub_port_id': 22203805, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677004, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 57)}, 'plastique': {'main_port_id': 22203774, 'sub_port_id': 22203806, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677005, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 57)}, 'Carton_gris': {'main_port_id': 22203774, 'sub_port_id': 22203807, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677006, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22203774, 'sub_port_id': 22203808, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677007, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 57)}, 'cartonnette': {'main_port_id': 22203774, 'sub_port_id': 22203809, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677008, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 57)}, 'autre_refus': {'main_port_id': 22203774, 'sub_port_id': 22203810, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677009, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 57)}, 'metal': {'main_port_id': 22203774, 'sub_port_id': 22203811, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677010, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22203800 , 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=22203774 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 (22203800) result : ((1351036428,), (1351036429,), (1351036703,), (1351036704,), (1351036788,), (1351036951,), (1351037398,), (1351037620,), (1351037621,), (1351037622,), (1351037623,), (1351037624,), (1351037625,), (1351037633,), (1351037634,), (1351037809,), (1351037823,), (1351037824,), (1351038321,), (1351038322,), (1351038323,), (1351038324,), (1351038325,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22203774) result : ((1351035642,), (1351035675,), (1351035676,), (1351035707,), (1351035721,), (1351035728,), (1351035761,), (1351035765,), (1351035768,), (1351035846,), (1351035905,), (1351035927,), (1351035935,), (1351035984,), (1351036218,), (1351036242,), (1351036245,), (1351036436,), (1351036443,), (1351036449,), (1351036477,), (1351036504,), (1351036619,), (1351036623,), (1351036632,), (1351036639,), (1351036800,), (1351036803,), (1351036805,), (1351036809,), (1351036829,), (1351036882,), (1351036904,), (1351036916,), (1351036977,), (1351036994,), (1351037007,), (1351037009,), (1351037060,), (1351037147,), (1351037246,), (1351037340,), (1351037406,), (1351037439,), (1351037606,), (1351037613,), (1351037619,), (1351037637,), (1351037651,), (1351037746,), (1351037754,), (1351037758,), (1351037816,), (1351037818,), (1351037819,), (1351037825,), (1351037827,), (1351037832,), (1351038365,), (1351038395,), (1351038407,), (1351038421,)) 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 (1351036800) 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 22203801 , 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=22203774 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 (22203801) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22203774) result : ((1351035642,), (1351035675,), (1351035676,), (1351035707,), (1351035721,), (1351035728,), (1351035761,), (1351035765,), (1351035768,), (1351035846,), (1351035905,), (1351035927,), (1351035935,), (1351035984,), (1351036218,), (1351036242,), (1351036245,), (1351036436,), (1351036443,), (1351036449,), (1351036477,), (1351036504,), (1351036619,), (1351036623,), (1351036632,), (1351036639,), (1351036800,), (1351036803,), (1351036805,), (1351036809,), (1351036829,), (1351036882,), (1351036904,), (1351036916,), (1351036977,), (1351036994,), (1351037007,), (1351037009,), (1351037060,), (1351037147,), (1351037246,), (1351037340,), (1351037406,), (1351037439,), (1351037606,), (1351037613,), (1351037619,), (1351037637,), (1351037651,), (1351037746,), (1351037754,), (1351037758,), (1351037816,), (1351037818,), (1351037819,), (1351037825,), (1351037827,), (1351037832,), (1351038365,), (1351038395,), (1351038407,), (1351038421,)) 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 (1351036800) 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 22203802 , 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=22203774 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 (22203802) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22203774) result : ((1351035642,), (1351035675,), (1351035676,), (1351035707,), (1351035721,), (1351035728,), (1351035761,), (1351035765,), (1351035768,), (1351035846,), (1351035905,), (1351035927,), (1351035935,), (1351035984,), (1351036218,), (1351036242,), (1351036245,), (1351036436,), (1351036443,), (1351036449,), (1351036477,), (1351036504,), (1351036619,), (1351036623,), (1351036632,), (1351036639,), (1351036800,), (1351036803,), (1351036805,), (1351036809,), (1351036829,), (1351036882,), (1351036904,), (1351036916,), (1351036977,), (1351036994,), (1351037007,), (1351037009,), (1351037060,), (1351037147,), (1351037246,), (1351037340,), (1351037406,), (1351037439,), (1351037606,), (1351037613,), (1351037619,), (1351037637,), (1351037651,), (1351037746,), (1351037754,), (1351037758,), (1351037816,), (1351037818,), (1351037819,), (1351037825,), (1351037827,), (1351037832,), (1351038365,), (1351038395,), (1351038407,), (1351038421,)) 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 (1351036800) 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 22203803 , 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=22203774 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 (22203803) result : ((1351036430,), (1351036981,), (1351037630,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22203774) result : ((1351035642,), (1351035675,), (1351035676,), (1351035707,), (1351035721,), (1351035728,), (1351035761,), (1351035765,), (1351035768,), (1351035846,), (1351035905,), (1351035927,), (1351035935,), (1351035984,), (1351036218,), (1351036242,), (1351036245,), (1351036436,), (1351036443,), (1351036449,), (1351036477,), (1351036504,), (1351036619,), (1351036623,), (1351036632,), (1351036639,), (1351036800,), (1351036803,), (1351036805,), (1351036809,), (1351036829,), (1351036882,), (1351036904,), (1351036916,), (1351036977,), (1351036994,), (1351037007,), (1351037009,), (1351037060,), (1351037147,), (1351037246,), (1351037340,), (1351037406,), (1351037439,), (1351037606,), (1351037613,), (1351037619,), (1351037637,), (1351037651,), (1351037746,), (1351037754,), (1351037758,), (1351037816,), (1351037818,), (1351037819,), (1351037825,), (1351037827,), (1351037832,), (1351038365,), (1351038395,), (1351038407,), (1351038421,)) 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 (1351036800) 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 22203804 , 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=22203774 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 (22203804) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22203774) result : ((1351035642,), (1351035675,), (1351035676,), (1351035707,), (1351035721,), (1351035728,), (1351035761,), (1351035765,), (1351035768,), (1351035846,), (1351035905,), (1351035927,), (1351035935,), (1351035984,), (1351036218,), (1351036242,), (1351036245,), (1351036436,), (1351036443,), (1351036449,), (1351036477,), (1351036504,), (1351036619,), (1351036623,), (1351036632,), (1351036639,), (1351036800,), (1351036803,), (1351036805,), (1351036809,), (1351036829,), (1351036882,), (1351036904,), (1351036916,), (1351036977,), (1351036994,), (1351037007,), (1351037009,), (1351037060,), (1351037147,), (1351037246,), (1351037340,), (1351037406,), (1351037439,), (1351037606,), (1351037613,), (1351037619,), (1351037637,), (1351037651,), (1351037746,), (1351037754,), (1351037758,), (1351037816,), (1351037818,), (1351037819,), (1351037825,), (1351037827,), (1351037832,), (1351038365,), (1351038395,), (1351038407,), (1351038421,)) 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 (1351036800) 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 22203805 , 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=22203774 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 (22203805) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22203774) result : ((1351035642,), (1351035675,), (1351035676,), (1351035707,), (1351035721,), (1351035728,), (1351035761,), (1351035765,), (1351035768,), (1351035846,), (1351035905,), (1351035927,), (1351035935,), (1351035984,), (1351036218,), (1351036242,), (1351036245,), (1351036436,), (1351036443,), (1351036449,), (1351036477,), (1351036504,), (1351036619,), (1351036623,), (1351036632,), (1351036639,), (1351036800,), (1351036803,), (1351036805,), (1351036809,), (1351036829,), (1351036882,), (1351036904,), (1351036916,), (1351036977,), (1351036994,), (1351037007,), (1351037009,), (1351037060,), (1351037147,), (1351037246,), (1351037340,), (1351037406,), (1351037439,), (1351037606,), (1351037613,), (1351037619,), (1351037637,), (1351037651,), (1351037746,), (1351037754,), (1351037758,), (1351037816,), (1351037818,), (1351037819,), (1351037825,), (1351037827,), (1351037832,), (1351038365,), (1351038395,), (1351038407,), (1351038421,)) 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 (1351036800) 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 22203806 , 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=22203774 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 (22203806) result : ((1351036770,), (1351036978,), (1351037635,), (1351038327,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22203774) result : ((1351035642,), (1351035675,), (1351035676,), (1351035707,), (1351035721,), (1351035728,), (1351035761,), (1351035765,), (1351035768,), (1351035846,), (1351035905,), (1351035927,), (1351035935,), (1351035984,), (1351036218,), (1351036242,), (1351036245,), (1351036436,), (1351036443,), (1351036449,), (1351036477,), (1351036504,), (1351036619,), (1351036623,), (1351036632,), (1351036639,), (1351036800,), (1351036803,), (1351036805,), (1351036809,), (1351036829,), (1351036882,), (1351036904,), (1351036916,), (1351036977,), (1351036994,), (1351037007,), (1351037009,), (1351037060,), (1351037147,), (1351037246,), (1351037340,), (1351037406,), (1351037439,), (1351037606,), (1351037613,), (1351037619,), (1351037637,), (1351037651,), (1351037746,), (1351037754,), (1351037758,), (1351037816,), (1351037818,), (1351037819,), (1351037825,), (1351037827,), (1351037832,), (1351038365,), (1351038395,), (1351038407,), (1351038421,)) 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 (1351036800) 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 22203807 , 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=22203774 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 (22203807) result : ((1351036419,), (1351037631,), (1351037632,), (1351037804,), (1351037805,), (1351037806,), (1351038320,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22203774) result : ((1351035642,), (1351035675,), (1351035676,), (1351035707,), (1351035721,), (1351035728,), (1351035761,), (1351035765,), (1351035768,), (1351035846,), (1351035905,), (1351035927,), (1351035935,), (1351035984,), (1351036218,), (1351036242,), (1351036245,), (1351036436,), (1351036443,), (1351036449,), (1351036477,), (1351036504,), (1351036619,), (1351036623,), (1351036632,), (1351036639,), (1351036800,), (1351036803,), (1351036805,), (1351036809,), (1351036829,), (1351036882,), (1351036904,), (1351036916,), (1351036977,), (1351036994,), (1351037007,), (1351037009,), (1351037060,), (1351037147,), (1351037246,), (1351037340,), (1351037406,), (1351037439,), (1351037606,), (1351037613,), (1351037619,), (1351037637,), (1351037651,), (1351037746,), (1351037754,), (1351037758,), (1351037816,), (1351037818,), (1351037819,), (1351037825,), (1351037827,), (1351037832,), (1351038365,), (1351038395,), (1351038407,), (1351038421,)) 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 (1351036800) 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 22203808 , 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=22203774 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 (22203808) result : ((1351036402,), (1351036403,), (1351036691,), (1351036693,), (1351036695,), (1351036731,), (1351036736,), (1351036740,), (1351036744,), (1351036748,), (1351036783,), (1351036948,), (1351036949,), (1351036950,), (1351037376,), (1351037377,), (1351037615,), (1351037616,), (1351037626,), (1351037627,), (1351037628,), (1351037629,), (1351037820,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22203774) result : ((1351035642,), (1351035675,), (1351035676,), (1351035707,), (1351035721,), (1351035728,), (1351035761,), (1351035765,), (1351035768,), (1351035846,), (1351035905,), (1351035927,), (1351035935,), (1351035984,), (1351036218,), (1351036242,), (1351036245,), (1351036436,), (1351036443,), (1351036449,), (1351036477,), (1351036504,), (1351036619,), (1351036623,), (1351036632,), (1351036639,), (1351036800,), (1351036803,), (1351036805,), (1351036809,), (1351036829,), (1351036882,), (1351036904,), (1351036916,), (1351036977,), (1351036994,), (1351037007,), (1351037009,), (1351037060,), (1351037147,), (1351037246,), (1351037340,), (1351037406,), (1351037439,), (1351037606,), (1351037613,), (1351037619,), (1351037637,), (1351037651,), (1351037746,), (1351037754,), (1351037758,), (1351037816,), (1351037818,), (1351037819,), (1351037825,), (1351037827,), (1351037832,), (1351038365,), (1351038395,), (1351038407,), (1351038421,)) 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 (1351036800) 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 22203809 , 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=22203774 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 (22203809) result : ((1351036421,), (1351036423,), (1351036701,), (1351036975,), (1351036976,), (1351037383,), (1351037808,), (1351037821,), (1351037822,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22203774) result : ((1351035642,), (1351035675,), (1351035676,), (1351035707,), (1351035721,), (1351035728,), (1351035761,), (1351035765,), (1351035768,), (1351035846,), (1351035905,), (1351035927,), (1351035935,), (1351035984,), (1351036218,), (1351036242,), (1351036245,), (1351036436,), (1351036443,), (1351036449,), (1351036477,), (1351036504,), (1351036619,), (1351036623,), (1351036632,), (1351036639,), (1351036800,), (1351036803,), (1351036805,), (1351036809,), (1351036829,), (1351036882,), (1351036904,), (1351036916,), (1351036977,), (1351036994,), (1351037007,), (1351037009,), (1351037060,), (1351037147,), (1351037246,), (1351037340,), (1351037406,), (1351037439,), (1351037606,), (1351037613,), (1351037619,), (1351037637,), (1351037651,), (1351037746,), (1351037754,), (1351037758,), (1351037816,), (1351037818,), (1351037819,), (1351037825,), (1351037827,), (1351037832,), (1351038365,), (1351038395,), (1351038407,), (1351038421,)) 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 (1351036800) 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 22203810 , 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=22203774 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 (22203810) result : ((1351036412,), (1351036414,), (1351036700,), (1351036786,), (1351036974,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22203774) result : ((1351035642,), (1351035675,), (1351035676,), (1351035707,), (1351035721,), (1351035728,), (1351035761,), (1351035765,), (1351035768,), (1351035846,), (1351035905,), (1351035927,), (1351035935,), (1351035984,), (1351036218,), (1351036242,), (1351036245,), (1351036436,), (1351036443,), (1351036449,), (1351036477,), (1351036504,), (1351036619,), (1351036623,), (1351036632,), (1351036639,), (1351036800,), (1351036803,), (1351036805,), (1351036809,), (1351036829,), (1351036882,), (1351036904,), (1351036916,), (1351036977,), (1351036994,), (1351037007,), (1351037009,), (1351037060,), (1351037147,), (1351037246,), (1351037340,), (1351037406,), (1351037439,), (1351037606,), (1351037613,), (1351037619,), (1351037637,), (1351037651,), (1351037746,), (1351037754,), (1351037758,), (1351037816,), (1351037818,), (1351037819,), (1351037825,), (1351037827,), (1351037832,), (1351038365,), (1351038395,), (1351038407,), (1351038421,)) 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 (1351036800) 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 22203811 , 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=22203774 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 (22203811) result : ((1351036778,), (1351038332,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22203774) result : ((1351035642,), (1351035675,), (1351035676,), (1351035707,), (1351035721,), (1351035728,), (1351035761,), (1351035765,), (1351035768,), (1351035846,), (1351035905,), (1351035927,), (1351035935,), (1351035984,), (1351036218,), (1351036242,), (1351036245,), (1351036436,), (1351036443,), (1351036449,), (1351036477,), (1351036504,), (1351036619,), (1351036623,), (1351036632,), (1351036639,), (1351036800,), (1351036803,), (1351036805,), (1351036809,), (1351036829,), (1351036882,), (1351036904,), (1351036916,), (1351036977,), (1351036994,), (1351037007,), (1351037009,), (1351037060,), (1351037147,), (1351037246,), (1351037340,), (1351037406,), (1351037439,), (1351037606,), (1351037613,), (1351037619,), (1351037637,), (1351037651,), (1351037746,), (1351037754,), (1351037758,), (1351037816,), (1351037818,), (1351037819,), (1351037825,), (1351037827,), (1351037832,), (1351038365,), (1351038395,), (1351038407,), (1351038421,)) 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 (1351036800) 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`=22203774 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','cartonnette','Carton_gris','environnement','plastique','flou','Teint_Dans_La_Masse','kraft','autre_refus','papier','metal')) 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`=22203774 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','cartonnette','Carton_gris','environnement','plastique','flou','Teint_Dans_La_Masse','kraft','autre_refus','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22203774, 'sub_port_id': 22203812, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677011, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 59)}, 'environnement': {'main_port_id': 22203774, 'sub_port_id': 22203813, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677012, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 59)}, 'mal_croppe': {'main_port_id': 22203774, 'sub_port_id': 22203814, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677013, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 59)}, 'kraft': {'main_port_id': 22203774, 'sub_port_id': 22203815, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677014, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 59)}, 'papier': {'main_port_id': 22203774, 'sub_port_id': 22203816, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677015, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 59)}, 'flou': {'main_port_id': 22203774, 'sub_port_id': 22203817, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677016, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 59)}, 'plastique': {'main_port_id': 22203774, 'sub_port_id': 22203818, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677017, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 59)}, 'Carton_gris': {'main_port_id': 22203774, 'sub_port_id': 22203819, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677018, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22203774, 'sub_port_id': 22203820, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677019, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 59)}, 'cartonnette': {'main_port_id': 22203774, 'sub_port_id': 22203821, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677020, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 59)}, 'autre_refus': {'main_port_id': 22203774, 'sub_port_id': 22203822, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677021, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 59)}, 'metal': {'main_port_id': 22203774, 'sub_port_id': 22203823, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14677022, 'last_updated_at': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 5, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22203812,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22203800 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22203813,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22203801 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22203814,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22203802 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22203815,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22203803 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22203816,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22203804 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22203817,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22203805 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22203818,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22203806 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22203819,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22203807 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22203820,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22203808 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22203821,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22203809 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22203822,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22203810 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22203823,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22203811 lien utilise dans velours : https://www.fotonower.com/velours/22203812,22203813,22203814,22203815,22203816,22203817,22203818,22203819,22203820,22203821,22203822,22203823?tags=Carton_brun,environnement,mal_croppe,kraft,papier,flou,plastique,Carton_gris,Teint_Dans_La_Masse,cartonnette,autre_refus,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22203774]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351038421, 1351038407, 1351038395, 1351038365, 1351037832, 1351037827, 1351037825, 1351037819, 1351037818, 1351037816] map_info['map_portfolio_photo'] : {22203774: [1351038421, 1351038407, 1351038395, 1351038365, 1351037832, 1351037827, 1351037825, 1351037819, 1351037818, 1351037816, 1351037758, 1351037754, 1351037746, 1351037651, 1351037637, 1351037619, 1351037613, 1351037606, 1351037439, 1351037406, 1351037340, 1351037246, 1351037147, 1351037060, 1351037009, 1351037007, 1351036994, 1351036977, 1351036916, 1351036904, 1351036882, 1351036829, 1351036809, 1351036805, 1351036803, 1351036800, 1351036639, 1351036632, 1351036623, 1351036619, 1351036504, 1351036477, 1351036449, 1351036443, 1351036436, 1351036245, 1351036242, 1351036218, 1351035984, 1351035935, 1351035927, 1351035905, 1351035846, 1351035768, 1351035765, 1351035761, 1351035728, 1351035721, 1351035707, 1351035676, 1351035675, 1351035642]} final : False mtd_id 4302 list_pids : [1351038421, 1351038407, 1351038395, 1351038365, 1351037832, 1351037827, 1351037825, 1351037819, 1351037818, 1351037816] Looping around the photos to save general results len do output : 1 /22203774. 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, '2737913') ('4302', '22203774', '1351038421', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351038407', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351038395', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351038365', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037832', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037827', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037825', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037819', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037818', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037816', None, None, None, None, None, '2737913') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22203774', "{'Carton_brun': 22203800, 'environnement': 22203801, 'mal_croppe': 22203802, 'kraft': 22203803, 'papier': 22203804, 'flou': 22203805, 'plastique': 22203806, 'Carton_gris': 22203807, 'Teint_Dans_La_Masse': 22203808, 'cartonnette': 22203809, 'autre_refus': 22203810, 'metal': 22203811}", None, None, None, None, '2737913'), ('4302', '22203774', '1351038421', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351038407', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351038395', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351038365', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037832', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037827', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037825', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037819', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037818', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037816', None, None, None, None, None, '2737913')] time used for this insertion : 0.019824743270874023 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5159056186676025 time spend to save output : 0.020110607147216797 total time spend for step 1 : 0.5360162258148193 step2:final Thu Apr 10 06:00:30 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 (22203774) 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 22203774 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351035676,1351035675,1351035642,1351035768,1351035765,1351035761,1351035707,1351035728,1351035721,1351035984,1351035935,1351035927,1351035905,1351035846,1351036245,1351036242,1351036218,1351036504,1351036477,1351036449,1351036443,1351036436,1351036639,1351036632,1351036623,1351036619,1351036829,1351036809,1351036805,1351036803,1351036800,1351036916,1351036904,1351036882,1351037009,1351037007,1351036994,1351036977,1351037439,1351037406,1351037340,1351037246,1351037147,1351037060,1351037651,1351037637,1351037619,1351037613,1351037606,1351037758,1351037754,1351037746,1351037832,1351037827,1351037825,1351037819,1351037818,1351037816,1351038421,1351038407,1351038395,1351038365); 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([22203774]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',)} new output for save of step final : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',)} [1351038421, 1351038407, 1351038395, 1351038365, 1351037832, 1351037827, 1351037825, 1351037819, 1351037818, 1351037816] map_info['map_portfolio_photo'] : {22203774: [1351038421, 1351038407, 1351038395, 1351038365, 1351037832, 1351037827, 1351037825, 1351037819, 1351037818, 1351037816, 1351037758, 1351037754, 1351037746, 1351037651, 1351037637, 1351037619, 1351037613, 1351037606, 1351037439, 1351037406, 1351037340, 1351037246, 1351037147, 1351037060, 1351037009, 1351037007, 1351036994, 1351036977, 1351036916, 1351036904, 1351036882, 1351036829, 1351036809, 1351036805, 1351036803, 1351036800, 1351036639, 1351036632, 1351036623, 1351036619, 1351036504, 1351036477, 1351036449, 1351036443, 1351036436, 1351036245, 1351036242, 1351036218, 1351035984, 1351035935, 1351035927, 1351035905, 1351035846, 1351035768, 1351035765, 1351035761, 1351035728, 1351035721, 1351035707, 1351035676, 1351035675, 1351035642]} final : False mtd_id 4302 list_pids : [1351038421, 1351038407, 1351038395, 1351038365, 1351037832, 1351037827, 1351037825, 1351037819, 1351037818, 1351037816] Looping around the photos to save general results len do output : 10 /1351038421.Didn't retrieve data . /1351038407.Didn't retrieve data . /1351038395.Didn't retrieve data . /1351038365.Didn't retrieve data . /1351037832.Didn't retrieve data . /1351037827.Didn't retrieve data . /1351037825.Didn't retrieve data . /1351037819.Didn't retrieve data . /1351037818.Didn't retrieve data . /1351037816.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, '2737913') ('4302', '22203774', '1351038421', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351038407', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351038395', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351038365', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037832', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037827', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037825', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037819', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037818', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037816', None, None, None, None, None, '2737913') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22203774', '1351038421', '0.03982270789640917', None, None, None, None, '2737913'), ('4302', '22203774', '1351038407', '0.03982270789640917', None, None, None, None, '2737913'), ('4302', '22203774', '1351038395', '0.03982270789640917', None, None, None, None, '2737913'), ('4302', '22203774', '1351038365', '0.03982270789640917', None, None, None, None, '2737913'), ('4302', '22203774', '1351037832', '0.03982270789640917', None, None, None, None, '2737913'), ('4302', '22203774', '1351037827', '0.03982270789640917', None, None, None, None, '2737913'), ('4302', '22203774', '1351037825', '0.03982270789640917', None, None, None, None, '2737913'), ('4302', '22203774', '1351037819', '0.03982270789640917', None, None, None, None, '2737913'), ('4302', '22203774', '1351037818', '0.03982270789640917', None, None, None, None, '2737913'), ('4302', '22203774', '1351037816', '0.03982270789640917', None, None, None, None, '2737913')] time used for this insertion : 0.018574953079223633 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07388114929199219 time spend to save output : 0.01898503303527832 total time spend for step 2 : 0.09286618232727051 step3:velours_tree Thu Apr 10 06:00:31 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 : {22203774: [{'Carton_brun': 22203800, 'environnement': 22203801, 'mal_croppe': 22203802, 'kraft': 22203803, 'papier': 22203804, 'flou': 22203805, 'plastique': 22203806, 'Carton_gris': 22203807, 'Teint_Dans_La_Masse': 22203808, 'cartonnette': 22203809, 'autre_refus': 22203810, 'metal': 22203811}]} input_args_next_step : {22203774: ()} output_args : {22203774: [{'Carton_brun': 22203800, 'environnement': 22203801, 'mal_croppe': 22203802, 'kraft': 22203803, 'papier': 22203804, 'flou': 22203805, 'plastique': 22203806, 'Carton_gris': 22203807, 'Teint_Dans_La_Masse': 22203808, 'cartonnette': 22203809, 'autre_refus': 22203810, 'metal': 22203811}]} args : 22203774 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_brun': 22203800, 'environnement': 22203801, 'mal_croppe': 22203802, 'kraft': 22203803, 'papier': 22203804, 'flou': 22203805, 'plastique': 22203806, 'Carton_gris': 22203807, 'Teint_Dans_La_Masse': 22203808, 'cartonnette': 22203809, 'autre_refus': 22203810, 'metal': 22203811},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22203774) 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([22203774]) 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.3217768669128418 time spend to save output : 9.72747802734375e-05 total time spend for step 3 : 0.32187414169311523 step4:send_mail_cod Thu Apr 10 06:00:31 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 : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',)} input_args_next_step : {1351038421: ()} output_args : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',)} args : 1351038421 depend.output_id : 0 input_args_next_step : {1351038421: ('0.03982270789640917',), 1351038407: ()} output_args : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',)} args : 1351038407 depend.output_id : 0 input_args_next_step : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ()} output_args : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',)} args : 1351038395 depend.output_id : 0 input_args_next_step : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ()} output_args : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',)} args : 1351038365 depend.output_id : 0 input_args_next_step : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ()} output_args : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',)} args : 1351037832 depend.output_id : 0 input_args_next_step : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ()} output_args : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',)} args : 1351037827 depend.output_id : 0 input_args_next_step : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ()} output_args : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',)} args : 1351037825 depend.output_id : 0 input_args_next_step : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ()} output_args : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',)} args : 1351037819 depend.output_id : 0 input_args_next_step : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ()} output_args : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',)} args : 1351037818 depend.output_id : 0 input_args_next_step : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ()} output_args : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',)} args : 1351037816 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {22203774: [{'Carton_brun': 22203800, 'environnement': 22203801, 'mal_croppe': 22203802, 'kraft': 22203803, 'papier': 22203804, 'flou': 22203805, 'plastique': 22203806, 'Carton_gris': 22203807, 'Teint_Dans_La_Masse': 22203808, 'cartonnette': 22203809, 'autre_refus': 22203810, 'metal': 22203811}]} input_args_next_step : {1351038421: ('0.03982270789640917',), 1351038407: ('0.03982270789640917',), 1351038395: ('0.03982270789640917',), 1351038365: ('0.03982270789640917',), 1351037832: ('0.03982270789640917',), 1351037827: ('0.03982270789640917',), 1351037825: ('0.03982270789640917',), 1351037819: ('0.03982270789640917',), 1351037818: ('0.03982270789640917',), 1351037816: ('0.03982270789640917',), 22203774: ()} output_args : {22203774: [{'Carton_brun': 22203800, 'environnement': 22203801, 'mal_croppe': 22203802, 'kraft': 22203803, 'papier': 22203804, 'flou': 22203805, 'plastique': 22203806, 'Carton_gris': 22203807, 'Teint_Dans_La_Masse': 22203808, 'cartonnette': 22203809, 'autre_refus': 22203810, 'metal': 22203811}]} args : 22203774 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.03982270789640917',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22203774) 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 (1351038421,1351038407,1351038395,1351038365,1351037832,1351037827,1351037825,1351037819,1351037818,1351037816) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351037816 begin to download photo : 1351037825 begin to download photo : 1351038365 begin to download photo : 1351038421 download finish for photo 1351038365 begin to download photo : 1351038395 download finish for photo 1351037816 begin to download photo : 1351037818 download finish for photo 1351037825 begin to download photo : 1351037827 download finish for photo 1351038421 download finish for photo 1351037818 begin to download photo : 1351037819 download finish for photo 1351037827 begin to download photo : 1351037832 download finish for photo 1351038395 begin to download photo : 1351038407 download finish for photo 1351037832 download finish for photo 1351037819 download finish for photo 1351038407 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette222038021744257631/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22203774_10-04-2025_06_00_31.pdf 22203802 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=22203802 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222038021744257631 22203803 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=22203803 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351036430: '1744256943_3793835_1351035728_183b464a98adaa02694bf78f98498d78_rle_crop_3753246451_0.png', 1351036981: '1744257211_3796472_1351036443_39e3039129b904f7582b5c15816427fa_rle_crop_3753249323_0.png', 1351037630: '1744257330_3797624_1351036803_8048e801a8113ad663983197e55e761b_rle_crop_3753258060_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/1581155f367828fc2f2a1f9accddf248_85465020.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9d70f18ab724da4e41aa452b3134312b_83801567.png change filename to text .imagette222038031744257631/ imagette222038031744257631/1744256943_3793835_1351035728_183b464a98adaa02694bf78f98498d78_rle_crop_3753246451_0.png.png imagette222038031744257631/1744257211_3796472_1351036443_39e3039129b904f7582b5c15816427fa_rle_crop_3753249323_0.png.png imagette222038031744257631/1744257330_3797624_1351036803_8048e801a8113ad663983197e55e761b_rle_crop_3753258060_0.png.png imagette222038051744257631/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2a9fb01df6a66c23f061db13e89da5ea_93031862.png imagette222038031744257631 22203805 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=22203805 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222038051744257631 22203806 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=22203806 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351036770: '1744257086_3648388_1351035935_3aa2e25cd4dad276118d69d9bb0031ca_rle_crop_3753248524_0.png', 1351036978: '1744257211_3796472_1351036436_e151ca4c02dc35532a9c8624e01bd403_rle_crop_3753249332_0.png', 1351037635: '1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258089_0.png', 1351038327: '1744257551_3799980_1351037619_79ff06a6997aad6ea252741902608f26_rle_crop_3753275313_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/472f357a2afe36676083b5c39ed34499_27001418.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/bfedd855134abb02caa7497580aaa8b8_26517313.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3335d67336958c358558cf33da91aa98_97854128.png change filename to text .imagette222038061744257631/ imagette222038061744257631/1744257551_3799980_1351037619_79ff06a6997aad6ea252741902608f26_rle_crop_3753275313_0.png.png imagette222038061744257631/1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258089_0.png.png imagette222038061744257631/1744257211_3796472_1351036436_e151ca4c02dc35532a9c8624e01bd403_rle_crop_3753249332_0.png.png imagette222038061744257631/1744257086_3648388_1351035935_3aa2e25cd4dad276118d69d9bb0031ca_rle_crop_3753248524_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/dd1ae74883713059424f729afc7d91f8_51469078.png imagette222038061744257631 22203809 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=22203809 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351036421: '1744256943_3793835_1351035761_f65f18f4bd4ef2ba1316132fc2d77efb_rle_crop_3753246434_0.png', 1351036423: '1744256943_3793835_1351035707_1193a7c6edd65b2b016e9dd5632c29ab_rle_crop_3753246544_0.png', 1351036701: '1744257073_3795175_1351036242_c88e098ef9d76fb433ee974cc815eebb_rle_crop_3753248304_0.png', 1351036975: '1744257211_3796472_1351036449_6c592dc0191433d897392ecdf565c7f8_rle_crop_3753249311_0.png', 1351036976: '1744257211_3796472_1351036443_39e3039129b904f7582b5c15816427fa_rle_crop_3753249322_0.png', 1351037383: '1744257311_3797390_1351036829_8a21f70d74baac5abfeac7f4815fde9d_rle_crop_3753250657_0.png', 1351037808: '1744257446_3656087_1351036994_16998fe4fc61fac90cd7cda9c252c116_rle_crop_3753274598_0.png', 1351037821: '1744257453_3799119_1351037340_60679543ae91eb5a81465682de531b0b_rle_crop_3753274760_0.png', 1351037822: '1744257453_3799119_1351037060_7c3883663168a4599ee84412c31d6ecc_rle_crop_3753274868_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/44eb278292d4b97f5ca23b98493673fd_99994463.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/57f62c5201ff6feb83b3adb4dedda4d9_84169839.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/bf952cf70e78d1f66a5080d7623576f9_3359438.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8529377f0180f5e36b134c1528ff39e4_63914373.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/fdfef010dbe17d5b924d0071c75fd5f6_37763235.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e44de32551f73396971aa8977fcc3e67_31799282.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e2bb58887c7a0bb893d320bfc22837b2_46848719.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b4c76ac07c1e01e4619cfecc5bf12447_17918907.png change filename to text .imagette222038091744257632/ imagette222038091744257632/1744257073_3795175_1351036242_c88e098ef9d76fb433ee974cc815eebb_rle_crop_3753248304_0.png.png imagette222038091744257632/1744256943_3793835_1351035761_f65f18f4bd4ef2ba1316132fc2d77efb_rle_crop_3753246434_0.png.png imagette222038091744257632/1744257446_3656087_1351036994_16998fe4fc61fac90cd7cda9c252c116_rle_crop_3753274598_0.png.png imagette222038091744257632/1744257211_3796472_1351036449_6c592dc0191433d897392ecdf565c7f8_rle_crop_3753249311_0.png.png imagette222038091744257632/1744257453_3799119_1351037060_7c3883663168a4599ee84412c31d6ecc_rle_crop_3753274868_0.png.png imagette222038091744257632/1744257311_3797390_1351036829_8a21f70d74baac5abfeac7f4815fde9d_rle_crop_3753250657_0.png.png imagette222038091744257632/1744257211_3796472_1351036443_39e3039129b904f7582b5c15816427fa_rle_crop_3753249322_0.png.png imagette222038091744257632/1744256943_3793835_1351035707_1193a7c6edd65b2b016e9dd5632c29ab_rle_crop_3753246544_0.png.png imagette222038091744257632/1744257453_3799119_1351037340_60679543ae91eb5a81465682de531b0b_rle_crop_3753274760_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/cd4d5150f51f22f84eee3cb18ff5fb29_78105001.png imagette222038091744257632 22203810 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=22203810 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351036412: '1744256943_3793835_1351035728_183b464a98adaa02694bf78f98498d78_rle_crop_3753246454_0.png', 1351036414: '1744256943_3793835_1351035707_1193a7c6edd65b2b016e9dd5632c29ab_rle_crop_3753246543_0.png', 1351036700: '1744257073_3795175_1351036242_c88e098ef9d76fb433ee974cc815eebb_rle_crop_3753248301_0.png', 1351036786: '1744257091_3795406_1351035675_49cf0b8cf626ec643505b395a4d88050_rle_crop_3753248592_0.png', 1351036974: '1744257211_3796472_1351036436_e151ca4c02dc35532a9c8624e01bd403_rle_crop_3753249334_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/ae4b91757ba9dd9097471c11af125b4e_81659178.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/80052dc12e8307122861a64aa9d7d0ec_7213586.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e815c8387df57c824b78cf2b4bdb4f02_68746852.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/fa23197722f8ea2ae5d0a1ab9b3ce299_71836869.png change filename to text .imagette222038101744257632/ imagette222038101744257632/1744256943_3793835_1351035728_183b464a98adaa02694bf78f98498d78_rle_crop_3753246454_0.png.png imagette222038101744257632/1744256943_3793835_1351035707_1193a7c6edd65b2b016e9dd5632c29ab_rle_crop_3753246543_0.png.png imagette222038101744257632/1744257211_3796472_1351036436_e151ca4c02dc35532a9c8624e01bd403_rle_crop_3753249334_0.png.png imagette222038101744257632/1744257073_3795175_1351036242_c88e098ef9d76fb433ee974cc815eebb_rle_crop_3753248301_0.png.png imagette222038101744257632/1744257091_3795406_1351035675_49cf0b8cf626ec643505b395a4d88050_rle_crop_3753248592_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/c86bdebd736f7d09fb6f6e33c1c542da_86203438.png imagette222038101744257632 22203811 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=22203811 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351036778: '1744257086_3648388_1351035935_3aa2e25cd4dad276118d69d9bb0031ca_rle_crop_3753248517_0.png', 1351038332: '1744257551_3799980_1351037606_2f4c5378701e8ba4e2af5fdee986a82e_rle_crop_3753275343_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d657b5da1df134bca6f27c9db0ce5961_33590217.png change filename to text .imagette222038111744257633/ imagette222038111744257633/1744257551_3799980_1351037606_2f4c5378701e8ba4e2af5fdee986a82e_rle_crop_3753275343_0.png.png imagette222038111744257633/1744257086_3648388_1351035935_3aa2e25cd4dad276118d69d9bb0031ca_rle_crop_3753248517_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f9e835f68628d321a23bc252a2ab2698_36854233.png imagette222038111744257633 22203800 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=22203800 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351037624: '1744257330_3797624_1351036803_8048e801a8113ad663983197e55e761b_rle_crop_3753258062_0.png', 1351038325: '1744257551_3799980_1351037613_f14727f0b9308dae1068155590f60403_rle_crop_3753275326_0.png', 1351038324: '1744257551_3799980_1351037613_f14727f0b9308dae1068155590f60403_rle_crop_3753275324_0.png', 1351038323: '1744257551_3799980_1351037637_85882da7a1b869ec81e359129c5b8ec7_rle_crop_3753275289_0.png', 1351038322: '1744257551_3799980_1351037637_85882da7a1b869ec81e359129c5b8ec7_rle_crop_3753275295_0.png', 1351038321: '1744257551_3799980_1351037637_85882da7a1b869ec81e359129c5b8ec7_rle_crop_3753275290_0.png', 1351037824: '1744257453_3799119_1351037060_7c3883663168a4599ee84412c31d6ecc_rle_crop_3753274866_0.png', 1351037823: '1744257453_3799119_1351037147_7389ccc3c30c628f398cd52d3e78d7b8_rle_crop_3753274823_0.png', 1351037809: '1744257446_3656087_1351036977_18f97c3c4a05f43301f7637559f13079_rle_crop_3753274613_0.png', 1351037634: '1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258092_0.png', 1351037633: '1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258085_0.png', 1351037625: '1744257330_3797624_1351036800_beebcb9febef6ec1caa25fecee18a49f_rle_crop_3753258074_0.png', 1351036428: '1744256943_3793835_1351035761_f65f18f4bd4ef2ba1316132fc2d77efb_rle_crop_3753246438_0.png', 1351037623: '1744257330_3797624_1351036803_8048e801a8113ad663983197e55e761b_rle_crop_3753258063_0.png', 1351037622: '1744257330_3797624_1351036805_4f253330c05fe132b96dc4ea20b72959_rle_crop_3753258051_0.png', 1351037621: '1744257330_3797624_1351036805_4f253330c05fe132b96dc4ea20b72959_rle_crop_3753258049_0.png', 1351037620: '1744257330_3797624_1351036809_f9ececd931c5c9a15c7ab425c208ee39_rle_crop_3753258039_0.png', 1351037398: '1744257311_3797390_1351036829_8a21f70d74baac5abfeac7f4815fde9d_rle_crop_3753250656_0.png', 1351036951: '1744257193_3796271_1351036632_e3685d11122389e0a4bf890fb9375687_rle_crop_3753248982_0.png', 1351036788: '1744257091_3795406_1351035675_49cf0b8cf626ec643505b395a4d88050_rle_crop_3753248591_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/085dcb454928c8191fd2cd066cb289bc_61999993.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3a210c7ff488f29b7f315c2ab381390b_79548900.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/78c570ee212b9c94f069fa63612fe55f_56804346.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/7e1134b9d632a50dbb67371b373a8661_93732541.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4e1b6af4cba1f8a2b6dfd02639cfb764_59393991.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/915caf4b57f24083340f22d40dc9bcc1_81425238.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/fc612f12039d4d696c67059920ac4865_18490278.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/029a4c3c703c4156d0ef5a608ec3632f_98826247.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/073649a51e86b9fa78d796f096f39cba_63045059.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/ea410e7523405a815dd4cc2333b92d90_9070135.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/984984a39f5e62fc1f34c864f7559081_4029501.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/1c59427f200f63a73a2b0b5dfba973e3_28943840.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/dde074dd9e124c69a140bf0d4dc280a0_1834054.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f1404b92b442911dc3541e1f1da37e43_72772199.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/15b2a27694eb54fea0da15a950929e69_49588246.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/1955f7b8fc82ddc8741419eb83bda22d_24226436.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/00f594f1e65d0c769c8f80f4d162af1e_97806785.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/894334b764bafc11ad23d8cf5c253720_98707942.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/271f79ead92448371278d72717099434_32098016.png change filename to text .imagette222038001744257633/ imagette222038001744257633/1744257551_3799980_1351037613_f14727f0b9308dae1068155590f60403_rle_crop_3753275326_0.png.png imagette222038001744257633/1744257330_3797624_1351036805_4f253330c05fe132b96dc4ea20b72959_rle_crop_3753258049_0.png.png imagette222038001744257633/1744257091_3795406_1351035675_49cf0b8cf626ec643505b395a4d88050_rle_crop_3753248591_0.png.png imagette222038001744257633/1744257330_3797624_1351036803_8048e801a8113ad663983197e55e761b_rle_crop_3753258063_0.png.png imagette222038001744257633/1744257551_3799980_1351037637_85882da7a1b869ec81e359129c5b8ec7_rle_crop_3753275295_0.png.png imagette222038001744257633/1744257551_3799980_1351037637_85882da7a1b869ec81e359129c5b8ec7_rle_crop_3753275290_0.png.png imagette222038001744257633/1744257446_3656087_1351036977_18f97c3c4a05f43301f7637559f13079_rle_crop_3753274613_0.png.png imagette222038001744257633/1744257453_3799119_1351037060_7c3883663168a4599ee84412c31d6ecc_rle_crop_3753274866_0.png.png imagette222038001744257633/1744256943_3793835_1351035761_f65f18f4bd4ef2ba1316132fc2d77efb_rle_crop_3753246438_0.png.png imagette222038001744257633/1744257330_3797624_1351036805_4f253330c05fe132b96dc4ea20b72959_rle_crop_3753258051_0.png.png imagette222038001744257633/1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258092_0.png.png imagette222038001744257633/1744257330_3797624_1351036809_f9ececd931c5c9a15c7ab425c208ee39_rle_crop_3753258039_0.png.png imagette222038001744257633/1744257551_3799980_1351037613_f14727f0b9308dae1068155590f60403_rle_crop_3753275324_0.png.png imagette222038001744257633/1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258085_0.png.png imagette222038001744257633/1744257453_3799119_1351037147_7389ccc3c30c628f398cd52d3e78d7b8_rle_crop_3753274823_0.png.png imagette222038001744257633/1744257551_3799980_1351037637_85882da7a1b869ec81e359129c5b8ec7_rle_crop_3753275289_0.png.png imagette222038001744257633/1744257311_3797390_1351036829_8a21f70d74baac5abfeac7f4815fde9d_rle_crop_3753250656_0.png.png imagette222038001744257633/1744257330_3797624_1351036800_beebcb9febef6ec1caa25fecee18a49f_rle_crop_3753258074_0.png.png imagette222038001744257633/1744257193_3796271_1351036632_e3685d11122389e0a4bf890fb9375687_rle_crop_3753248982_0.png.png imagette222038001744257633/1744257330_3797624_1351036803_8048e801a8113ad663983197e55e761b_rle_crop_3753258062_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/baf0d0355eb215b9e45ab5dd44d19fcf_75907619.png imagette222038001744257633 22203807 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=22203807 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351036419: '1744256943_3793835_1351035707_1193a7c6edd65b2b016e9dd5632c29ab_rle_crop_3753246547_0.png', 1351037631: '1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258095_0.png', 1351037632: '1744257350_3797858_1351036882_fde9d3b3da08b2b136c7f313ee1d2236_rle_crop_3753260134_0.png', 1351037804: '1744257446_3656087_1351036977_18f97c3c4a05f43301f7637559f13079_rle_crop_3753274610_0.png', 1351037805: '1744257446_3656087_1351036977_18f97c3c4a05f43301f7637559f13079_rle_crop_3753274607_0.png', 1351037806: '1744257446_3656087_1351036977_18f97c3c4a05f43301f7637559f13079_rle_crop_3753274606_0.png', 1351038320: '1744257551_3799980_1351037619_79ff06a6997aad6ea252741902608f26_rle_crop_3753275317_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a17ac5f7e943fafc79c6aa16a5d769ce_92778062.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a5e0b1ca3e6aedaf9aa29534c4a2383b_51529748.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/c72a23e24d2a7699fed0e8442fe1cd5a_42083597.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2d9376c8edc1f7ae55af7834e437e93f_46317643.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/03db9a2d6b8d837b9ae60a2594a6bc64_64951231.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b1fa2b48c33e487b3b187b43997ad535_80744548.png change filename to text .imagette222038071744257634/ imagette222038071744257634/1744257446_3656087_1351036977_18f97c3c4a05f43301f7637559f13079_rle_crop_3753274606_0.png.png imagette222038071744257634/1744257446_3656087_1351036977_18f97c3c4a05f43301f7637559f13079_rle_crop_3753274610_0.png.png imagette222038071744257634/1744257551_3799980_1351037619_79ff06a6997aad6ea252741902608f26_rle_crop_3753275317_0.png.png imagette222038071744257634/1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258095_0.png.png imagette222038071744257634/1744257350_3797858_1351036882_fde9d3b3da08b2b136c7f313ee1d2236_rle_crop_3753260134_0.png.png imagette222038071744257634/1744256943_3793835_1351035707_1193a7c6edd65b2b016e9dd5632c29ab_rle_crop_3753246547_0.png.png imagette222038071744257634/1744257446_3656087_1351036977_18f97c3c4a05f43301f7637559f13079_rle_crop_3753274607_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/0ea2b5801de9c3299a16f850fcbaee58_95812635.png imagette222038071744257634 22203808 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=22203808 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351036948: '1744257193_3796271_1351036632_e3685d11122389e0a4bf890fb9375687_rle_crop_3753248980_0.png', 1351037820: '1744257453_3799119_1351037340_60679543ae91eb5a81465682de531b0b_rle_crop_3753274764_0.png', 1351037629: '1744257350_3797858_1351036882_fde9d3b3da08b2b136c7f313ee1d2236_rle_crop_3753260140_0.png', 1351037628: '1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258087_0.png', 1351037627: '1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258091_0.png', 1351037626: '1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258097_0.png', 1351037616: '1744257330_3797624_1351036800_beebcb9febef6ec1caa25fecee18a49f_rle_crop_3753258077_0.png', 1351037615: '1744257330_3797624_1351036916_d46b4a830090f9b7e025a4ff7c7f743c_rle_crop_3753258031_0.png', 1351037377: '1744257311_3797390_1351036829_8a21f70d74baac5abfeac7f4815fde9d_rle_crop_3753250660_0.png', 1351037376: '1744257311_3797390_1351036829_8a21f70d74baac5abfeac7f4815fde9d_rle_crop_3753250659_0.png', 1351036950: '1744257193_3796271_1351036623_4873424b0eb8364352884e9372fddfa0_rle_crop_3753249004_0.png', 1351036949: '1744257193_3796271_1351036623_4873424b0eb8364352884e9372fddfa0_rle_crop_3753249006_0.png', 1351036402: '1744256943_3793835_1351035761_f65f18f4bd4ef2ba1316132fc2d77efb_rle_crop_3753246442_0.png', 1351036783: '1744257091_3795406_1351035642_b7d10c6ecbaff6e6ef5576733e8b09a1_rle_crop_3753248604_0.png', 1351036748: '1744257086_3648388_1351035846_18ae434c720cda42538a98b51356118d_rle_crop_3753248562_0.png', 1351036744: '1744257086_3648388_1351035905_863ef388360cc44305606693d4ab7ad3_rle_crop_3753248543_0.png', 1351036740: '1744257086_3648388_1351035927_228798dee70deaf654cab2bc6764369d_rle_crop_3753248530_0.png', 1351036736: '1744257086_3648388_1351036245_d6af79e83d799ddf74497885b63f1f8d_rle_crop_3753248411_0.png', 1351036731: '1744257086_3648388_1351036245_d6af79e83d799ddf74497885b63f1f8d_rle_crop_3753248417_0.png', 1351036695: '1744257073_3795175_1351036218_b5a77d18126063e369f43fbe5111d848_rle_crop_3753248316_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/dc6b698af6285f2b826fda67950743f2_82502840.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/589e71249509167e92268efeb4fdcc2f_11113426.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5d04d05b47371909de565648f994086d_90856983.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8fc0a45e6b98c3966193f468e761d435_1670799.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/71369695bc42e0082779a55b35117336_70997864.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/826029ac35cbf9c9482486bc50d42028_79435844.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/819d6a3f1ed62599cfc88e007daa9784_49716192.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9cae16f9af14490d491bdd20ee0c3617_6148835.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d1467174f4019413b28ac769cd362886_72073331.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/57b1d46683e62f85c60890b2b1009f06_14949718.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/661d6284ca48a60342d4145ff78ce8f4_95935163.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/aa83fd8614a7870e56d6cd793a857a38_21127830.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/98d8375b285fe800c9bb386e06bee426_21170055.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5a2243be26291410dbff93e01bf8d699_98149407.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/038fe952a73a47c649f11529b5fb54ec_67371767.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8eda0015773fa0df43d76e3cf1600c92_49228973.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/1f6ae5278785da446e95f2753759b71b_35095912.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/18e6f762d70971d89f187de9c504df8e_67858673.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5b443ee86f6a6f3b4afb44a4ab7be780_90240519.png change filename to text .imagette222038081744257634/ imagette222038081744257634/1744257086_3648388_1351035905_863ef388360cc44305606693d4ab7ad3_rle_crop_3753248543_0.png.png imagette222038081744257634/1744257086_3648388_1351036245_d6af79e83d799ddf74497885b63f1f8d_rle_crop_3753248411_0.png.png imagette222038081744257634/1744257193_3796271_1351036623_4873424b0eb8364352884e9372fddfa0_rle_crop_3753249006_0.png.png imagette222038081744257634/1744257311_3797390_1351036829_8a21f70d74baac5abfeac7f4815fde9d_rle_crop_3753250660_0.png.png imagette222038081744257634/1744257073_3795175_1351036218_b5a77d18126063e369f43fbe5111d848_rle_crop_3753248316_0.png.png imagette222038081744257634/1744257330_3797624_1351036800_beebcb9febef6ec1caa25fecee18a49f_rle_crop_3753258077_0.png.png imagette222038081744257634/1744257330_3797624_1351036916_d46b4a830090f9b7e025a4ff7c7f743c_rle_crop_3753258031_0.png.png imagette222038081744257634/1744257086_3648388_1351035927_228798dee70deaf654cab2bc6764369d_rle_crop_3753248530_0.png.png imagette222038081744257634/1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258091_0.png.png imagette222038081744257634/1744256943_3793835_1351035761_f65f18f4bd4ef2ba1316132fc2d77efb_rle_crop_3753246442_0.png.png imagette222038081744257634/1744257086_3648388_1351036245_d6af79e83d799ddf74497885b63f1f8d_rle_crop_3753248417_0.png.png imagette222038081744257634/1744257311_3797390_1351036829_8a21f70d74baac5abfeac7f4815fde9d_rle_crop_3753250659_0.png.png imagette222038081744257634/1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258087_0.png.png imagette222038081744257634/1744257086_3648388_1351035846_18ae434c720cda42538a98b51356118d_rle_crop_3753248562_0.png.png imagette222038081744257634/1744257091_3795406_1351035642_b7d10c6ecbaff6e6ef5576733e8b09a1_rle_crop_3753248604_0.png.png imagette222038081744257634/1744257193_3796271_1351036623_4873424b0eb8364352884e9372fddfa0_rle_crop_3753249004_0.png.png imagette222038081744257634/1744257453_3799119_1351037340_60679543ae91eb5a81465682de531b0b_rle_crop_3753274764_0.png.png imagette222038081744257634/1744257350_3797858_1351036904_4467ef33d7ae591760bc664c235cc8f4_rle_crop_3753258097_0.png.png imagette222038081744257634/1744257193_3796271_1351036632_e3685d11122389e0a4bf890fb9375687_rle_crop_3753248980_0.png.png imagette222038081744257634/1744257350_3797858_1351036882_fde9d3b3da08b2b136c7f313ee1d2236_rle_crop_3753260140_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a1926c5475ac625983022cc7de25850c_44844444.png imagette222038081744257634 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22203774 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22203812,22203813,22203814,22203815,22203816,22203817,22203818,22203819,22203820,22203821,22203822,22203823?tags=Carton_brun,environnement,mal_croppe,kraft,papier,flou,plastique,Carton_gris,Teint_Dans_La_Masse,cartonnette,autre_refus,metal your option no_mail is active, we will not send the real mail to your client args[1351038421] : ('0.03982270789640917',) no score found for photo 1351038421 We are sending mail with results at report@fotonower.com args[1351038407] : ('0.03982270789640917',) no score found for photo 1351038407 We are sending mail with results at report@fotonower.com args[1351038395] : ('0.03982270789640917',) no score found for photo 1351038395 We are sending mail with results at report@fotonower.com args[1351038365] : ('0.03982270789640917',) no score found for photo 1351038365 We are sending mail with results at report@fotonower.com args[1351037832] : ('0.03982270789640917',) no score found for photo 1351037832 We are sending mail with results at report@fotonower.com args[1351037827] : ('0.03982270789640917',) no score found for photo 1351037827 We are sending mail with results at report@fotonower.com args[1351037825] : ('0.03982270789640917',) no score found for photo 1351037825 We are sending mail with results at report@fotonower.com args[1351037819] : ('0.03982270789640917',) no score found for photo 1351037819 We are sending mail with results at report@fotonower.com args[1351037818] : ('0.03982270789640917',) no score found for photo 1351037818 We are sending mail with results at report@fotonower.com args[1351037816] : ('0.03982270789640917',) no score found for photo 1351037816 We are sending mail with results at report@fotonower.com refus_total : 0.03982270789640917 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=22203774 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_P22203774_10-04-2025_06_00_31.pdf results_Auto_P22203774_10-04-2025_06_00_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22203774_10-04-2025_06_00_31.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','22203774','results_Auto_P22203774_10-04-2025_06_00_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22203774_10-04-2025_06_00_31.pdf','pdf','','0.27','0.03982270789640917') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22203774]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351038421, 1351038407, 1351038395, 1351038365, 1351037832, 1351037827, 1351037825, 1351037819, 1351037818, 1351037816] map_info['map_portfolio_photo'] : {22203774: [1351038421, 1351038407, 1351038395, 1351038365, 1351037832, 1351037827, 1351037825, 1351037819, 1351037818, 1351037816, 1351037758, 1351037754, 1351037746, 1351037651, 1351037637, 1351037619, 1351037613, 1351037606, 1351037439, 1351037406, 1351037340, 1351037246, 1351037147, 1351037060, 1351037009, 1351037007, 1351036994, 1351036977, 1351036916, 1351036904, 1351036882, 1351036829, 1351036809, 1351036805, 1351036803, 1351036800, 1351036639, 1351036632, 1351036623, 1351036619, 1351036504, 1351036477, 1351036449, 1351036443, 1351036436, 1351036245, 1351036242, 1351036218, 1351035984, 1351035935, 1351035927, 1351035905, 1351035846, 1351035768, 1351035765, 1351035761, 1351035728, 1351035721, 1351035707, 1351035676, 1351035675, 1351035642]} final : False mtd_id 4302 list_pids : [1351038421, 1351038407, 1351038395, 1351038365, 1351037832, 1351037827, 1351037825, 1351037819, 1351037818, 1351037816] 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, '2737913') ('4302', '22203774', '1351038421', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351038407', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351038395', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351038365', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037832', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037827', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037825', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037819', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037818', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037816', None, None, None, None, None, '2737913') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22203774', '1351038421', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351038407', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351038395', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351038365', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037832', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037827', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037825', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037819', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037818', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037816', None, None, None, None, None, '2737913')] time used for this insertion : 0.015615701675415039 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.775364398956299 time spend to save output : 0.01592540740966797 total time spend for step 4 : 5.791289806365967 step5:split_time_score Thu Apr 10 06:00:37 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 : ['22203774'] 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 : [('22203774',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22203774) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351038421: {'path': 'temp/1744257631_835217_1351038421_7798df03085ae0e400e550765ac89bec.jpg', 'extension': 'jpg'}, 1351037825: {'path': 'temp/1744257631_835217_1351037825_db33cb742571abc54b0b2b324ab8a0d8.jpg', 'extension': 'jpg'}, 1351037827: {'path': 'temp/1744257631_835217_1351037827_af8399171c3627c0e9b6ef08fe42238a.jpg', 'extension': 'jpg'}, 1351037832: {'path': 'temp/1744257631_835217_1351037832_a5b314a2ad6daafa779569b287041db3.jpg', 'extension': 'jpg'}, 1351037816: {'path': 'temp/1744257631_835217_1351037816_459be734c9544c390867a49c27a614cd.jpg', 'extension': 'jpg'}, 1351037818: {'path': 'temp/1744257631_835217_1351037818_edef8223c72ffaca22454b5256100df8.jpg', 'extension': 'jpg'}, 1351037819: {'path': 'temp/1744257631_835217_1351037819_d36440668f71369ba1b6513469203529.jpg', 'extension': 'jpg'}, 1351038365: {'path': 'temp/1744257631_835217_1351038365_da4f3c14fe611a0deb1e86c9c44c4b6f.jpg', 'extension': 'jpg'}, 1351038395: {'path': 'temp/1744257631_835217_1351038395_4e8e216d4d3477ccf908713e024bd97c.jpg', 'extension': 'jpg'}, 1351038407: {'path': 'temp/1744257631_835217_1351038407_7d974e5c45a8aba44d128bfb4deac32b.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 = 22203774; (('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 = 22203774 group by h (('05', 62),) 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=22203774 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 (22203774) 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 (22203774) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10042025 22203774 Nombre de photos uploadées : 62 / 23040 (0%) 10042025 22203774 Nombre de photos taguées (types de déchets): 0 / 62 (0%) 10042025 22203774 Nombre de photos taguées (volume) : 0 / 62 (0%) [{'photo_id': 1351035676, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/1e5dcc4dc7d7a2070733ebc06f20a2be.jpg', 'username': None, 'uploaded_at': 1744256767, 'text': 'image_10042025_05_45_04_010161m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1351035675, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/49cf0b8cf626ec643505b395a4d88050.jpg', 'username': None, 'uploaded_at': 1744256767, 'text': 'image_10042025_05_45_14_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351035642, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b7d10c6ecbaff6e6ef5576733e8b09a1.jpg', 'username': None, 'uploaded_at': 1744256767, 'text': 'image_10042025_05_45_24_010142m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351035768, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/ce23faf69d6ad232845c06140047b80b.jpg', 'username': None, 'uploaded_at': 1744256837, 'text': 'image_10042025_05_45_34_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 8.106231689453125e-06 ?????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0030548572540283203 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22203774, '2025-04-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1728450,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.032558441162109375 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= 1728450 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1728450, 'dashboard_run_id': 1736971, 'mtr_portfolio_id': 22202435, 'dashboard_result_id': 9974131, '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_P22202435_10-04-2025_05_18_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22202437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22202438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22202439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22202440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22202441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22202442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22202443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22202444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22202445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22202446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22202447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22202448, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1736971, 'mtr_portfolio_id': 22202724, 'dashboard_result_id': 9974132, '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_P22202724_10-04-2025_05_32_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22202728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22202729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22202730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22202731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22202732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22202733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22202734, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22202735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22202736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22202737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22202738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22202739, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1736971, 'mtr_portfolio_id': 22203288, 'dashboard_result_id': 9974133, '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_P22203288_10-04-2025_05_49_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22203291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22203292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22203293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22203294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22203295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22203296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22203297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22203298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22203299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22203300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22203301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22203302, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1736971, 'mtr_portfolio_id': 22203774, 'dashboard_result_id': 9974134, '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_P22203774_10-04-2025_05_59_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22203800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22203801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22203802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22203803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22203804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22203805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22203806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22203807, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22203808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22203809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22203810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22203811, '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 = 22202435 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': 2737708, 'mtr_portfolio_id': 22202435, 'created_at': datetime.datetime(2025, 4, 10, 5, 18, 58), 'result': '0.063834484006443', 'result_long': None, 'result_double': None}] Qualite : 0.063834484006443 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22202435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22202435_10-04-2025_05_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22202435 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_P22202435_10-04-2025_05_18_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22202437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22202438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22202439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22202440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22202441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22202442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22202443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22202444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22202445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22202446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22202447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22202448, 'pht': 3726}}" where mtr_portfolio_id = 22202435 and dashboard_run_id = 1736971 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`=22202435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9974131, 0.063834484006443, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22202435_10-04-2025_05_18_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22202437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22202438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22202439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22202440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22202441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22202442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22202443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22202444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22202445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22202446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22202447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22202448, '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 = 22202724 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': 2737724, 'mtr_portfolio_id': 22202724, 'created_at': datetime.datetime(2025, 4, 10, 5, 32, 31), 'result': '0.05677486642104927', 'result_long': None, 'result_double': None}] Qualite : 0.05677486642104927 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22202724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22202724_10-04-2025_05_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22202724 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_P22202724_10-04-2025_05_32_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22202728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22202729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22202730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22202731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22202732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22202733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22202734, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22202735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22202736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22202737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22202738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22202739, 'pht': 3726}}" where mtr_portfolio_id = 22202724 and dashboard_run_id = 1736971 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`=22202724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9974132, 0.05677486642104927, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22202724_10-04-2025_05_32_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22202728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22202729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22202730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22202731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22202732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22202733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22202734, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22202735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22202736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22202737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22202738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22202739, '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 = 22203288 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': 2737884, 'mtr_portfolio_id': 22203288, 'created_at': datetime.datetime(2025, 4, 10, 5, 49, 33), 'result': '0.0458807192202663', 'result_long': None, 'result_double': None}] Qualite : 0.0458807192202663 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22203288 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22203288_10-04-2025_05_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22203288 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_P22203288_10-04-2025_05_49_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22203291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22203292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22203293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22203294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22203295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22203296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22203297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22203298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22203299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22203300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22203301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22203302, 'pht': 3726}}" where mtr_portfolio_id = 22203288 and dashboard_run_id = 1736971 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`=22203288 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9974133, 0.0458807192202663, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22203288_10-04-2025_05_49_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22203291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22203292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22203293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22203294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22203295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22203296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22203297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22203298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22203299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22203300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22203301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22203302, '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 = 22203774 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': 2737913, 'mtr_portfolio_id': 22203774, 'created_at': datetime.datetime(2025, 4, 10, 6, 0, 31), 'result': '0.03982270789640917', 'result_long': None, 'result_double': None}] Qualite : 0.03982270789640917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22203774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22203774_10-04-2025_06_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22203774 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_P22203774_10-04-2025_06_00_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22203800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22203801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22203802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22203803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22203804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22203805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22203806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22203807, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22203808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22203809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22203810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22203811, 'pht': 3726}}" where mtr_portfolio_id = 22203774 and dashboard_run_id = 1736971 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`=22203774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9974134, 0.03982270789640917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22203774_10-04-2025_06_00_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22203800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22203801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22203802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22203803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22203804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22203805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22203806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22203807, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22203808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22203809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22203810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22203811, '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 (22202435,22202724,22203288,22203774) result : ((1351027965,), (1351028677,), (1351029087,), (1351029115,), (1351029142,), (1351029226,), (1351029233,), (1351029238,), (1351029240,), (1351029242,), (1351029247,), (1351029441,), (1351029470,), (1351029517,), (1351029539,), (1351029588,), (1351029664,), (1351029857,), (1351029871,), (1351029953,), (1351029956,), (1351030050,), (1351030053,), (1351030064,), (1351030177,), (1351030179,), (1351030205,), (1351030215,), (1351030239,), (1351030241,), (1351030337,), (1351030357,), (1351030361,), (1351030370,), (1351030373,), (1351030375,), (1351030507,), (1351030511,), (1351030513,), (1351030576,), (1351030561,), (1351030567,), (1351030569,), (1351030572,), (1351030600,), (1351030604,), (1351030606,), (1351030609,), (1351030613,), (1351030657,), (1351030663,), (1351030672,), (1351030678,), (1351030793,), (1351030819,), (1351030831,), (1351030843,), (1351030861,), (1351030881,), (1351030992,), (1351031006,), (1351031009,), (1351031013,), (1351031021,), (1351031023,), (1351031083,), (1351031086,), (1351031091,), (1351031094,), (1351031188,), (1351031192,), (1351031196,), (1351031200,), (1351031205,), (1351031209,), (1351031227,), (1351031230,), (1351031233,), (1351031236,), (1351031241,), (1351031286,), (1351031288,), (1351031290,), (1351031303,), (1351031467,), (1351031481,), (1351031488,), (1351031489,), (1351031497,), (1351031784,), (1351031790,), (1351031795,), (1351031810,), (1351031816,), (1351031912,), (1351031916,), (1351031932,), (1351031934,), (1351031936,), (1351032034,), (1351032037,), (1351032039,), (1351032092,), (1351032095,), (1351032097,), (1351032100,), (1351032107,), (1351032108,), (1351032139,), (1351032143,), (1351032275,), (1351032263,), (1351032266,), (1351032269,), (1351032272,), (1351032447,), (1351032484,), (1351032521,), (1351032561,), (1351032610,), (1351032612,), (1351032809,), (1351032836,), (1351032878,), (1351032929,), (1351033401,), (1351033490,), (1351033582,), (1351033692,), (1351033750,), (1351033826,), (1351034296,), (1351034322,), (1351034329,), (1351034495,), (1351034499,), (1351034518,), (1351034523,), (1351034537,), (1351034560,), (1351034563,), (1351034567,), (1351034570,), (1351034594,), (1351034599,), (1351034603,), (1351034605,), (1351034608,), (1351034636,), (1351034640,), (1351034641,), (1351034789,), (1351034800,), (1351034817,), (1351034908,), (1351034920,), (1351034927,), (1351034939,), (1351034947,), (1351034972,), (1351035036,), (1351035060,), (1351035080,), (1351035092,), (1351035202,), (1351035206,), (1351035261,), (1351035265,), (1351035298,), (1351035541,), (1351035553,), (1351035600,), (1351035602,), (1351035605,), (1351035678,), (1351035642,), (1351035675,), (1351035676,), (1351035707,), (1351035721,), (1351035728,), (1351035761,), (1351035765,), (1351035768,), (1351035846,), (1351035905,), (1351035927,), (1351035935,), (1351035984,), (1351036218,), (1351036242,), (1351036245,), (1351036436,), (1351036443,), (1351036449,), (1351036477,), (1351036504,), (1351036619,), (1351036623,), (1351036632,), (1351036639,), (1351036800,), (1351036803,), (1351036805,), (1351036809,), (1351036829,), (1351036882,), (1351036904,), (1351036916,), (1351036977,), (1351036994,), (1351037007,), (1351037009,), (1351037060,), (1351037147,), (1351037246,), (1351037340,), (1351037406,), (1351037439,), (1351037606,), (1351037613,), (1351037619,), (1351037637,), (1351037651,), (1351037746,), (1351037754,), (1351037758,), (1351037816,), (1351037818,), (1351037819,), (1351037825,), (1351037827,), (1351037832,), (1351038365,), (1351038395,), (1351038407,), (1351038421,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10042025': {'nb_upload': 62, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22203774]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351038421, 1351038407, 1351038395, 1351038365, 1351037832, 1351037827, 1351037825, 1351037819, 1351037818, 1351037816] map_info['map_portfolio_photo'] : {22203774: [1351038421, 1351038407, 1351038395, 1351038365, 1351037832, 1351037827, 1351037825, 1351037819, 1351037818, 1351037816, 1351037758, 1351037754, 1351037746, 1351037651, 1351037637, 1351037619, 1351037613, 1351037606, 1351037439, 1351037406, 1351037340, 1351037246, 1351037147, 1351037060, 1351037009, 1351037007, 1351036994, 1351036977, 1351036916, 1351036904, 1351036882, 1351036829, 1351036809, 1351036805, 1351036803, 1351036800, 1351036639, 1351036632, 1351036623, 1351036619, 1351036504, 1351036477, 1351036449, 1351036443, 1351036436, 1351036245, 1351036242, 1351036218, 1351035984, 1351035935, 1351035927, 1351035905, 1351035846, 1351035768, 1351035765, 1351035761, 1351035728, 1351035721, 1351035707, 1351035676, 1351035675, 1351035642]} final : True mtd_id 4302 list_pids : [1351038421, 1351038407, 1351038395, 1351038365, 1351037832, 1351037827, 1351037825, 1351037819, 1351037818, 1351037816] Looping around the photos to save general results len do output : 1 /22203774Didn'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, '2737913') ('4302', '22203774', '1351038421', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351038407', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351038395', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351038365', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037832', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037827', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037825', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037819', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037818', None, None, None, None, None, '2737913') ('4302', None, None, None, None, None, None, None, '2737913') ('4302', '22203774', '1351037816', None, None, None, None, None, '2737913') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22203774', 'None', None, None, None, None, '2737913'), ('4302', '22203774', '1351038421', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351038407', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351038395', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351038365', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037832', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037827', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037825', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037819', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037818', None, None, None, None, None, '2737913'), ('4302', '22203774', '1351037816', None, None, None, None, None, '2737913')] time used for this insertion : 0.01610112190246582 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3623807430267334 time spend to save output : 0.0162966251373291 total time spend for step 5 : 0.3786773681640625 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 (2737913) 2.85user 2.13system 0:12.61elapsed 39%CPU (0avgtext+0avgdata 160432maxresident)k 0inputs+14448outputs (0major+77364minor)pagefaults 0swaps