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 (21640167) 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 (2684920 ) ) 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 (21640167) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1346760824, 'portfolio_id': 21640167}, {'photo_id': 1346760661, 'portfolio_id': 21640167}, {'photo_id': 1346760652, 'portfolio_id': 21640167}, {'photo_id': 1346760648, 'portfolio_id': 21640167}, {'photo_id': 1346760643, 'portfolio_id': 21640167}, {'photo_id': 1346760634, 'portfolio_id': 21640167}, {'photo_id': 1346760626, 'portfolio_id': 21640167}, {'photo_id': 1346760526, 'portfolio_id': 21640167}, {'photo_id': 1346760520, 'portfolio_id': 21640167}, {'photo_id': 1346760518, 'portfolio_id': 21640167}, {'photo_id': 1346760514, 'portfolio_id': 21640167}, {'photo_id': 1346760510, 'portfolio_id': 21640167}, {'photo_id': 1346760442, 'portfolio_id': 21640167}, {'photo_id': 1346760417, 'portfolio_id': 21640167}, {'photo_id': 1346760349, 'portfolio_id': 21640167}, {'photo_id': 1346760327, 'portfolio_id': 21640167}, {'photo_id': 1346760322, 'portfolio_id': 21640167}, {'photo_id': 1346760306, 'portfolio_id': 21640167}, {'photo_id': 1346760227, 'portfolio_id': 21640167}, {'photo_id': 1346760220, 'portfolio_id': 21640167}, {'photo_id': 1346760216, 'portfolio_id': 21640167}, {'photo_id': 1346760213, 'portfolio_id': 21640167}, {'photo_id': 1346760209, 'portfolio_id': 21640167}, {'photo_id': 1346760108, 'portfolio_id': 21640167}, {'photo_id': 1346760018, 'portfolio_id': 21640167}, {'photo_id': 1346759873, 'portfolio_id': 21640167}, {'photo_id': 1346759869, 'portfolio_id': 21640167}, {'photo_id': 1346759833, 'portfolio_id': 21640167}, {'photo_id': 1346759828, 'portfolio_id': 21640167}, {'photo_id': 1346759824, 'portfolio_id': 21640167}, {'photo_id': 1346759809, 'portfolio_id': 21640167}, {'photo_id': 1346759785, 'portfolio_id': 21640167}, {'photo_id': 1346759533, 'portfolio_id': 21640167}, {'photo_id': 1346759525, 'portfolio_id': 21640167}, {'photo_id': 1346759509, 'portfolio_id': 21640167}, {'photo_id': 1346759498, 'portfolio_id': 21640167}, {'photo_id': 1346759481, 'portfolio_id': 21640167}, {'photo_id': 1346759471, 'portfolio_id': 21640167}, {'photo_id': 1346759394, 'portfolio_id': 21640167}, {'photo_id': 1346759390, 'portfolio_id': 21640167}, {'photo_id': 1346759319, 'portfolio_id': 21640167}, {'photo_id': 1346759298, 'portfolio_id': 21640167}, {'photo_id': 1346759295, 'portfolio_id': 21640167}, {'photo_id': 1346759289, 'portfolio_id': 21640167}, {'photo_id': 1346759283, 'portfolio_id': 21640167}, {'photo_id': 1346759051, 'portfolio_id': 21640167}, {'photo_id': 1346759050, 'portfolio_id': 21640167}, {'photo_id': 1346759046, 'portfolio_id': 21640167}, {'photo_id': 1346759041, 'portfolio_id': 21640167}, {'photo_id': 1346758994, 'portfolio_id': 21640167}, {'photo_id': 1346758990, 'portfolio_id': 21640167}, {'photo_id': 1346758986, 'portfolio_id': 21640167}, {'photo_id': 1346758839, 'portfolio_id': 21640167}, {'photo_id': 1346758784, 'portfolio_id': 21640167}, {'photo_id': 1346758759, 'portfolio_id': 21640167}, {'photo_id': 1346758724, 'portfolio_id': 21640167}, {'photo_id': 1346758693, 'portfolio_id': 21640167}, {'photo_id': 1346758649, 'portfolio_id': 21640167}, {'photo_id': 1346758306, 'portfolio_id': 21640167}, {'photo_id': 1346758274, 'portfolio_id': 21640167}, {'photo_id': 1346758242, 'portfolio_id': 21640167}, {'photo_id': 1346758201, 'portfolio_id': 21640167}, {'photo_id': 1346758168, 'portfolio_id': 21640167}, {'photo_id': 1346758137, 'portfolio_id': 21640167}, {'photo_id': 1346757991, 'portfolio_id': 21640167}, {'photo_id': 1346757954, 'portfolio_id': 21640167}, {'photo_id': 1346757911, 'portfolio_id': 21640167}, {'photo_id': 1346757884, 'portfolio_id': 21640167}, {'photo_id': 1346757646, 'portfolio_id': 21640167}, {'photo_id': 1346757616, 'portfolio_id': 21640167}, {'photo_id': 1346757564, 'portfolio_id': 21640167}, {'photo_id': 1346757521, 'portfolio_id': 21640167}, {'photo_id': 1346757493, 'portfolio_id': 21640167}] map_portfolio_id_photo_id: {21640167: [1346760824, 1346760661, 1346760652, 1346760648, 1346760643, 1346760634, 1346760626, 1346760526, 1346760520, 1346760518, 1346760514, 1346760510, 1346760442, 1346760417, 1346760349, 1346760327, 1346760322, 1346760306, 1346760227, 1346760220, 1346760216, 1346760213, 1346760209, 1346760108, 1346760018, 1346759873, 1346759869, 1346759833, 1346759828, 1346759824, 1346759809, 1346759785, 1346759533, 1346759525, 1346759509, 1346759498, 1346759481, 1346759471, 1346759394, 1346759390, 1346759319, 1346759298, 1346759295, 1346759289, 1346759283, 1346759051, 1346759050, 1346759046, 1346759041, 1346758994, 1346758990, 1346758986, 1346758839, 1346758784, 1346758759, 1346758724, 1346758693, 1346758649, 1346758306, 1346758274, 1346758242, 1346758201, 1346758168, 1346758137, 1346757991, 1346757954, 1346757911, 1346757884, 1346757646, 1346757616, 1346757564, 1346757521, 1346757493]} ##### 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.01648259162902832 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Mar 24 11:34:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21640167) 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 : 21640167 get user id for portfolio 21640167 get sub ptf for main ptf 21640167, type 3726 and hashtags ['Carton_brun', 'environnement', 'kraft', 'Carton_gris', 'mal_croppe', 'autre_refus', 'flou', 'Teint_Dans_La_Masse', 'papier', 'plastique', 'metal', 'cartonnette'] 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`=21640167 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','kraft','Carton_gris','mal_croppe','autre_refus','flou','Teint_Dans_La_Masse','papier','plastique','metal','cartonnette')) 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`=21640167 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','kraft','Carton_gris','mal_croppe','autre_refus','flou','Teint_Dans_La_Masse','papier','plastique','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21640167, 'sub_port_id': 21640171, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177410, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 30)}, 'Carton_gris': {'main_port_id': 21640167, 'sub_port_id': 21640172, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177411, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 30)}, 'metal': {'main_port_id': 21640167, 'sub_port_id': 21640173, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177412, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 30)}, 'kraft': {'main_port_id': 21640167, 'sub_port_id': 21640174, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177413, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 30)}, 'cartonnette': {'main_port_id': 21640167, 'sub_port_id': 21640175, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177414, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 30)}, 'flou': {'main_port_id': 21640167, 'sub_port_id': 21640176, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177415, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 30)}, 'papier': {'main_port_id': 21640167, 'sub_port_id': 21640177, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177416, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 30)}, 'mal_croppe': {'main_port_id': 21640167, 'sub_port_id': 21640178, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177417, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 30)}, 'plastique': {'main_port_id': 21640167, 'sub_port_id': 21640179, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177418, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 30)}, 'environnement': {'main_port_id': 21640167, 'sub_port_id': 21640180, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177419, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 21640167, 'sub_port_id': 21640181, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177420, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 30)}, 'Carton_brun': {'main_port_id': 21640167, 'sub_port_id': 21640182, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177421, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21640171 , 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=21640167 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 (21640171) result : ((1346759087,), (1346759088,), (1346759089,), (1346759090,), (1346759091,), (1346759092,), (1346759093,), (1346759265,), (1346759299,), (1346759300,), (1346759301,), (1346759302,), (1346759303,), (1346759304,), (1346759305,), (1346759306,), (1346759328,), (1346759329,), (1346759330,), (1346759331,), (1346759332,), (1346759487,), (1346759488,), (1346759510,), (1346759512,), (1346759513,), (1346759514,), (1346759516,), (1346759517,), (1346759855,), (1346759856,), (1346759857,), (1346759858,), (1346760270,), (1346760271,), (1346760289,), (1346760290,), (1346760291,), (1346760292,), (1346760312,), (1346760313,), (1346760314,), (1346760632,), (1346760696,), (1346760698,), (1346760700,), (1346761175,), (1346761177,), (1346761287,), (1346761288,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21640167) result : ((1346757493,), (1346757521,), (1346757564,), (1346757616,), (1346757646,), (1346757884,), (1346757911,), (1346757954,), (1346757991,), (1346758137,), (1346758168,), (1346758201,), (1346758242,), (1346758274,), (1346758306,), (1346758649,), (1346758693,), (1346758724,), (1346758759,), (1346758784,), (1346758839,), (1346758986,), (1346758990,), (1346758994,), (1346759041,), (1346759046,), (1346759050,), (1346759051,), (1346759283,), (1346759289,), (1346759295,), (1346759298,), (1346759319,), (1346759390,), (1346759394,), (1346759471,), (1346759481,), (1346759498,), (1346759509,), (1346759525,), (1346759533,), (1346759785,), (1346759809,), (1346759824,), (1346759828,), (1346759833,), (1346759869,), (1346759873,), (1346760018,), (1346760108,), (1346760209,), (1346760213,), (1346760216,), (1346760220,), (1346760227,), (1346760306,), (1346760322,), (1346760327,), (1346760349,), (1346760417,), (1346760442,), (1346760510,), (1346760514,), (1346760518,), (1346760520,), (1346760526,), (1346760626,), (1346760634,), (1346760643,), (1346760648,), (1346760652,), (1346760661,), (1346760824,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21640172 , 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=21640167 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 (21640172) result : ((1346759095,), (1346759307,), (1346759519,), (1346759520,), (1346759522,), (1346759523,), (1346759524,), (1346759860,), (1346760274,), (1346760275,), (1346760276,), (1346760295,), (1346760317,), (1346760635,), (1346760636,), (1346761295,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21640167) result : ((1346757493,), (1346757521,), (1346757564,), (1346757616,), (1346757646,), (1346757884,), (1346757911,), (1346757954,), (1346757991,), (1346758137,), (1346758168,), (1346758201,), (1346758242,), (1346758274,), (1346758306,), (1346758649,), (1346758693,), (1346758724,), (1346758759,), (1346758784,), (1346758839,), (1346758986,), (1346758990,), (1346758994,), (1346759041,), (1346759046,), (1346759050,), (1346759051,), (1346759283,), (1346759289,), (1346759295,), (1346759298,), (1346759319,), (1346759390,), (1346759394,), (1346759471,), (1346759481,), (1346759498,), (1346759509,), (1346759525,), (1346759533,), (1346759785,), (1346759809,), (1346759824,), (1346759828,), (1346759833,), (1346759869,), (1346759873,), (1346760018,), (1346760108,), (1346760209,), (1346760213,), (1346760216,), (1346760220,), (1346760227,), (1346760306,), (1346760322,), (1346760327,), (1346760349,), (1346760417,), (1346760442,), (1346760510,), (1346760514,), (1346760518,), (1346760520,), (1346760526,), (1346760626,), (1346760634,), (1346760643,), (1346760648,), (1346760652,), (1346760661,), (1346760824,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21640173 , 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=21640167 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 (21640173) result : ((1346761337,), (1346761338,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21640167) result : ((1346757493,), (1346757521,), (1346757564,), (1346757616,), (1346757646,), (1346757884,), (1346757911,), (1346757954,), (1346757991,), (1346758137,), (1346758168,), (1346758201,), (1346758242,), (1346758274,), (1346758306,), (1346758649,), (1346758693,), (1346758724,), (1346758759,), (1346758784,), (1346758839,), (1346758986,), (1346758990,), (1346758994,), (1346759041,), (1346759046,), (1346759050,), (1346759051,), (1346759283,), (1346759289,), (1346759295,), (1346759298,), (1346759319,), (1346759390,), (1346759394,), (1346759471,), (1346759481,), (1346759498,), (1346759509,), (1346759525,), (1346759533,), (1346759785,), (1346759809,), (1346759824,), (1346759828,), (1346759833,), (1346759869,), (1346759873,), (1346760018,), (1346760108,), (1346760209,), (1346760213,), (1346760216,), (1346760220,), (1346760227,), (1346760306,), (1346760322,), (1346760327,), (1346760349,), (1346760417,), (1346760442,), (1346760510,), (1346760514,), (1346760518,), (1346760520,), (1346760526,), (1346760626,), (1346760634,), (1346760643,), (1346760648,), (1346760652,), (1346760661,), (1346760824,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21640174 , 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=21640167 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 (21640174) result : ((1346760315,), (1346761330,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21640167) result : ((1346757493,), (1346757521,), (1346757564,), (1346757616,), (1346757646,), (1346757884,), (1346757911,), (1346757954,), (1346757991,), (1346758137,), (1346758168,), (1346758201,), (1346758242,), (1346758274,), (1346758306,), (1346758649,), (1346758693,), (1346758724,), (1346758759,), (1346758784,), (1346758839,), (1346758986,), (1346758990,), (1346758994,), (1346759041,), (1346759046,), (1346759050,), (1346759051,), (1346759283,), (1346759289,), (1346759295,), (1346759298,), (1346759319,), (1346759390,), (1346759394,), (1346759471,), (1346759481,), (1346759498,), (1346759509,), (1346759525,), (1346759533,), (1346759785,), (1346759809,), (1346759824,), (1346759828,), (1346759833,), (1346759869,), (1346759873,), (1346760018,), (1346760108,), (1346760209,), (1346760213,), (1346760216,), (1346760220,), (1346760227,), (1346760306,), (1346760322,), (1346760327,), (1346760349,), (1346760417,), (1346760442,), (1346760510,), (1346760514,), (1346760518,), (1346760520,), (1346760526,), (1346760626,), (1346760634,), (1346760643,), (1346760648,), (1346760652,), (1346760661,), (1346760824,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21640175 , 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=21640167 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 (21640175) result : ((1346759098,), (1346759099,), (1346759100,), (1346759101,), (1346759103,), (1346759104,), (1346759105,), (1346759274,), (1346759311,), (1346759312,), (1346759313,), (1346759314,), (1346759315,), (1346759316,), (1346759317,), (1346759338,), (1346759339,), (1346759527,), (1346759528,), (1346759861,), (1346760296,), (1346760297,), (1346760637,), (1346760638,), (1346760704,), (1346760705,), (1346761182,), (1346761308,), (1346761309,), (1346761310,), (1346761311,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21640167) result : ((1346757493,), (1346757521,), (1346757564,), (1346757616,), (1346757646,), (1346757884,), (1346757911,), (1346757954,), (1346757991,), (1346758137,), (1346758168,), (1346758201,), (1346758242,), (1346758274,), (1346758306,), (1346758649,), (1346758693,), (1346758724,), (1346758759,), (1346758784,), (1346758839,), (1346758986,), (1346758990,), (1346758994,), (1346759041,), (1346759046,), (1346759050,), (1346759051,), (1346759283,), (1346759289,), (1346759295,), (1346759298,), (1346759319,), (1346759390,), (1346759394,), (1346759471,), (1346759481,), (1346759498,), (1346759509,), (1346759525,), (1346759533,), (1346759785,), (1346759809,), (1346759824,), (1346759828,), (1346759833,), (1346759869,), (1346759873,), (1346760018,), (1346760108,), (1346760209,), (1346760213,), (1346760216,), (1346760220,), (1346760227,), (1346760306,), (1346760322,), (1346760327,), (1346760349,), (1346760417,), (1346760442,), (1346760510,), (1346760514,), (1346760518,), (1346760520,), (1346760526,), (1346760626,), (1346760634,), (1346760643,), (1346760648,), (1346760652,), (1346760661,), (1346760824,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21640176 , 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=21640167 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 (21640176) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21640167) result : ((1346757493,), (1346757521,), (1346757564,), (1346757616,), (1346757646,), (1346757884,), (1346757911,), (1346757954,), (1346757991,), (1346758137,), (1346758168,), (1346758201,), (1346758242,), (1346758274,), (1346758306,), (1346758649,), (1346758693,), (1346758724,), (1346758759,), (1346758784,), (1346758839,), (1346758986,), (1346758990,), (1346758994,), (1346759041,), (1346759046,), (1346759050,), (1346759051,), (1346759283,), (1346759289,), (1346759295,), (1346759298,), (1346759319,), (1346759390,), (1346759394,), (1346759471,), (1346759481,), (1346759498,), (1346759509,), (1346759525,), (1346759533,), (1346759785,), (1346759809,), (1346759824,), (1346759828,), (1346759833,), (1346759869,), (1346759873,), (1346760018,), (1346760108,), (1346760209,), (1346760213,), (1346760216,), (1346760220,), (1346760227,), (1346760306,), (1346760322,), (1346760327,), (1346760349,), (1346760417,), (1346760442,), (1346760510,), (1346760514,), (1346760518,), (1346760520,), (1346760526,), (1346760626,), (1346760634,), (1346760643,), (1346760648,), (1346760652,), (1346760661,), (1346760824,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21640177 , 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=21640167 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 (21640177) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21640167) result : ((1346757493,), (1346757521,), (1346757564,), (1346757616,), (1346757646,), (1346757884,), (1346757911,), (1346757954,), (1346757991,), (1346758137,), (1346758168,), (1346758201,), (1346758242,), (1346758274,), (1346758306,), (1346758649,), (1346758693,), (1346758724,), (1346758759,), (1346758784,), (1346758839,), (1346758986,), (1346758990,), (1346758994,), (1346759041,), (1346759046,), (1346759050,), (1346759051,), (1346759283,), (1346759289,), (1346759295,), (1346759298,), (1346759319,), (1346759390,), (1346759394,), (1346759471,), (1346759481,), (1346759498,), (1346759509,), (1346759525,), (1346759533,), (1346759785,), (1346759809,), (1346759824,), (1346759828,), (1346759833,), (1346759869,), (1346759873,), (1346760018,), (1346760108,), (1346760209,), (1346760213,), (1346760216,), (1346760220,), (1346760227,), (1346760306,), (1346760322,), (1346760327,), (1346760349,), (1346760417,), (1346760442,), (1346760510,), (1346760514,), (1346760518,), (1346760520,), (1346760526,), (1346760626,), (1346760634,), (1346760643,), (1346760648,), (1346760652,), (1346760661,), (1346760824,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21640178 , 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=21640167 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 (21640178) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21640167) result : ((1346757493,), (1346757521,), (1346757564,), (1346757616,), (1346757646,), (1346757884,), (1346757911,), (1346757954,), (1346757991,), (1346758137,), (1346758168,), (1346758201,), (1346758242,), (1346758274,), (1346758306,), (1346758649,), (1346758693,), (1346758724,), (1346758759,), (1346758784,), (1346758839,), (1346758986,), (1346758990,), (1346758994,), (1346759041,), (1346759046,), (1346759050,), (1346759051,), (1346759283,), (1346759289,), (1346759295,), (1346759298,), (1346759319,), (1346759390,), (1346759394,), (1346759471,), (1346759481,), (1346759498,), (1346759509,), (1346759525,), (1346759533,), (1346759785,), (1346759809,), (1346759824,), (1346759828,), (1346759833,), (1346759869,), (1346759873,), (1346760018,), (1346760108,), (1346760209,), (1346760213,), (1346760216,), (1346760220,), (1346760227,), (1346760306,), (1346760322,), (1346760327,), (1346760349,), (1346760417,), (1346760442,), (1346760510,), (1346760514,), (1346760518,), (1346760520,), (1346760526,), (1346760626,), (1346760634,), (1346760643,), (1346760648,), (1346760652,), (1346760661,), (1346760824,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21640179 , 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=21640167 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 (21640179) result : ((1346759343,), (1346759344,), (1346759530,), (1346759531,), (1346761185,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21640167) result : ((1346757493,), (1346757521,), (1346757564,), (1346757616,), (1346757646,), (1346757884,), (1346757911,), (1346757954,), (1346757991,), (1346758137,), (1346758168,), (1346758201,), (1346758242,), (1346758274,), (1346758306,), (1346758649,), (1346758693,), (1346758724,), (1346758759,), (1346758784,), (1346758839,), (1346758986,), (1346758990,), (1346758994,), (1346759041,), (1346759046,), (1346759050,), (1346759051,), (1346759283,), (1346759289,), (1346759295,), (1346759298,), (1346759319,), (1346759390,), (1346759394,), (1346759471,), (1346759481,), (1346759498,), (1346759509,), (1346759525,), (1346759533,), (1346759785,), (1346759809,), (1346759824,), (1346759828,), (1346759833,), (1346759869,), (1346759873,), (1346760018,), (1346760108,), (1346760209,), (1346760213,), (1346760216,), (1346760220,), (1346760227,), (1346760306,), (1346760322,), (1346760327,), (1346760349,), (1346760417,), (1346760442,), (1346760510,), (1346760514,), (1346760518,), (1346760520,), (1346760526,), (1346760626,), (1346760634,), (1346760643,), (1346760648,), (1346760652,), (1346760661,), (1346760824,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21640180 , 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=21640167 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 (21640180) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21640167) result : ((1346757493,), (1346757521,), (1346757564,), (1346757616,), (1346757646,), (1346757884,), (1346757911,), (1346757954,), (1346757991,), (1346758137,), (1346758168,), (1346758201,), (1346758242,), (1346758274,), (1346758306,), (1346758649,), (1346758693,), (1346758724,), (1346758759,), (1346758784,), (1346758839,), (1346758986,), (1346758990,), (1346758994,), (1346759041,), (1346759046,), (1346759050,), (1346759051,), (1346759283,), (1346759289,), (1346759295,), (1346759298,), (1346759319,), (1346759390,), (1346759394,), (1346759471,), (1346759481,), (1346759498,), (1346759509,), (1346759525,), (1346759533,), (1346759785,), (1346759809,), (1346759824,), (1346759828,), (1346759833,), (1346759869,), (1346759873,), (1346760018,), (1346760108,), (1346760209,), (1346760213,), (1346760216,), (1346760220,), (1346760227,), (1346760306,), (1346760322,), (1346760327,), (1346760349,), (1346760417,), (1346760442,), (1346760510,), (1346760514,), (1346760518,), (1346760520,), (1346760526,), (1346760626,), (1346760634,), (1346760643,), (1346760648,), (1346760652,), (1346760661,), (1346760824,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21640181 , 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=21640167 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 (21640181) result : ((1346759263,), (1346759325,), (1346759326,), (1346759472,), (1346759473,), (1346759474,), (1346759503,), (1346759504,), (1346759505,), (1346759506,), (1346759507,), (1346760286,), (1346760287,), (1346760288,), (1346760303,), (1346760305,), (1346760308,), (1346760694,), (1346761165,), (1346761283,), (1346761284,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21640167) result : ((1346757493,), (1346757521,), (1346757564,), (1346757616,), (1346757646,), (1346757884,), (1346757911,), (1346757954,), (1346757991,), (1346758137,), (1346758168,), (1346758201,), (1346758242,), (1346758274,), (1346758306,), (1346758649,), (1346758693,), (1346758724,), (1346758759,), (1346758784,), (1346758839,), (1346758986,), (1346758990,), (1346758994,), (1346759041,), (1346759046,), (1346759050,), (1346759051,), (1346759283,), (1346759289,), (1346759295,), (1346759298,), (1346759319,), (1346759390,), (1346759394,), (1346759471,), (1346759481,), (1346759498,), (1346759509,), (1346759525,), (1346759533,), (1346759785,), (1346759809,), (1346759824,), (1346759828,), (1346759833,), (1346759869,), (1346759873,), (1346760018,), (1346760108,), (1346760209,), (1346760213,), (1346760216,), (1346760220,), (1346760227,), (1346760306,), (1346760322,), (1346760327,), (1346760349,), (1346760417,), (1346760442,), (1346760510,), (1346760514,), (1346760518,), (1346760520,), (1346760526,), (1346760626,), (1346760634,), (1346760643,), (1346760648,), (1346760652,), (1346760661,), (1346760824,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21640182 , 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=21640167 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 (21640182) result : ((1346759276,), (1346759340,), (1346759341,), (1346759491,), (1346759862,), (1346759863,), (1346760301,), (1346760302,), (1346760304,), (1346760307,), (1346760309,), (1346760310,), (1346760319,), (1346760320,), (1346760707,), (1346761321,), (1346761322,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21640167) result : ((1346757493,), (1346757521,), (1346757564,), (1346757616,), (1346757646,), (1346757884,), (1346757911,), (1346757954,), (1346757991,), (1346758137,), (1346758168,), (1346758201,), (1346758242,), (1346758274,), (1346758306,), (1346758649,), (1346758693,), (1346758724,), (1346758759,), (1346758784,), (1346758839,), (1346758986,), (1346758990,), (1346758994,), (1346759041,), (1346759046,), (1346759050,), (1346759051,), (1346759283,), (1346759289,), (1346759295,), (1346759298,), (1346759319,), (1346759390,), (1346759394,), (1346759471,), (1346759481,), (1346759498,), (1346759509,), (1346759525,), (1346759533,), (1346759785,), (1346759809,), (1346759824,), (1346759828,), (1346759833,), (1346759869,), (1346759873,), (1346760018,), (1346760108,), (1346760209,), (1346760213,), (1346760216,), (1346760220,), (1346760227,), (1346760306,), (1346760322,), (1346760327,), (1346760349,), (1346760417,), (1346760442,), (1346760510,), (1346760514,), (1346760518,), (1346760520,), (1346760526,), (1346760626,), (1346760634,), (1346760643,), (1346760648,), (1346760652,), (1346760661,), (1346760824,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21640167 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','kraft','Carton_gris','mal_croppe','autre_refus','flou','Teint_Dans_La_Masse','papier','plastique','metal','cartonnette')) 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`=21640167 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','kraft','Carton_gris','mal_croppe','autre_refus','flou','Teint_Dans_La_Masse','papier','plastique','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21640167, 'sub_port_id': 21640183, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177422, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 31)}, 'Carton_gris': {'main_port_id': 21640167, 'sub_port_id': 21640184, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177423, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 31)}, 'metal': {'main_port_id': 21640167, 'sub_port_id': 21640185, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177424, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 31)}, 'kraft': {'main_port_id': 21640167, 'sub_port_id': 21640186, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177425, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 31)}, 'cartonnette': {'main_port_id': 21640167, 'sub_port_id': 21640187, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177426, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 31)}, 'flou': {'main_port_id': 21640167, 'sub_port_id': 21640188, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177427, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 31)}, 'papier': {'main_port_id': 21640167, 'sub_port_id': 21640189, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177428, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 31)}, 'mal_croppe': {'main_port_id': 21640167, 'sub_port_id': 21640190, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177429, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 31)}, 'plastique': {'main_port_id': 21640167, 'sub_port_id': 21640191, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177430, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 31)}, 'environnement': {'main_port_id': 21640167, 'sub_port_id': 21640192, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177431, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 21640167, 'sub_port_id': 21640193, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177432, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 20, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 31)}, 'Carton_brun': {'main_port_id': 21640167, 'sub_port_id': 21640194, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14177433, 'last_updated_at': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 11, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 11, 20, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21640183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21640171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21640184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21640172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21640185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21640173 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21640186,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21640174 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21640187,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21640175 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21640188,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21640176 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21640189,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21640177 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21640190,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21640178 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21640191,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21640179 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21640192,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21640180 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21640193,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21640181 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21640194,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21640182 lien utilise dans velours : https://www.fotonower.com/velours/21640183,21640184,21640185,21640186,21640187,21640188,21640189,21640190,21640191,21640192,21640193,21640194?tags=autre_refus,Carton_gris,metal,kraft,cartonnette,flou,papier,mal_croppe,plastique,environnement,Teint_Dans_La_Masse,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21640167]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1346760824] map_info['map_portfolio_photo'] : {21640167: [1346760824, 1346760661, 1346760652, 1346760648, 1346760643, 1346760634, 1346760626, 1346760526, 1346760520, 1346760518, 1346760514, 1346760510, 1346760442, 1346760417, 1346760349, 1346760327, 1346760322, 1346760306, 1346760227, 1346760220, 1346760216, 1346760213, 1346760209, 1346760108, 1346760018, 1346759873, 1346759869, 1346759833, 1346759828, 1346759824, 1346759809, 1346759785, 1346759533, 1346759525, 1346759509, 1346759498, 1346759481, 1346759471, 1346759394, 1346759390, 1346759319, 1346759298, 1346759295, 1346759289, 1346759283, 1346759051, 1346759050, 1346759046, 1346759041, 1346758994, 1346758990, 1346758986, 1346758839, 1346758784, 1346758759, 1346758724, 1346758693, 1346758649, 1346758306, 1346758274, 1346758242, 1346758201, 1346758168, 1346758137, 1346757991, 1346757954, 1346757911, 1346757884, 1346757646, 1346757616, 1346757564, 1346757521, 1346757493]} final : False mtd_id 4302 list_pids : [1346760824] Looping around the photos to save general results len do output : 1 /21640167. 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, '2684920') ('4302', '21640167', '1346760824', None, None, None, None, None, '2684920') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21640167', "{'autre_refus': 21640171, 'Carton_gris': 21640172, 'metal': 21640173, 'kraft': 21640174, 'cartonnette': 21640175, 'flou': 21640176, 'papier': 21640177, 'mal_croppe': 21640178, 'plastique': 21640179, 'environnement': 21640180, 'Teint_Dans_La_Masse': 21640181, 'Carton_brun': 21640182}", None, None, None, None, '2684920'), ('4302', '21640167', '1346760824', None, None, None, None, None, '2684920')] time used for this insertion : 0.012807607650756836 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7214343547821045 time spend to save output : 0.013045549392700195 total time spend for step 1 : 1.7344799041748047 step2:final Mon Mar 24 11:34:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21640167) 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 21640167 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1346757646,1346757616,1346757564,1346757521,1346757493,1346757991,1346757954,1346757911,1346757884,1346758306,1346758274,1346758242,1346758201,1346758168,1346758137,1346758839,1346758784,1346758759,1346758724,1346758693,1346758649,1346758994,1346758990,1346758986,1346759051,1346759050,1346759046,1346759041,1346759319,1346759298,1346759295,1346759289,1346759283,1346759394,1346759390,1346759533,1346759525,1346759509,1346759498,1346759481,1346759471,1346759833,1346759828,1346759824,1346759809,1346759785,1346760108,1346760018,1346759873,1346759869,1346760227,1346760220,1346760216,1346760213,1346760209,1346760442,1346760417,1346760349,1346760327,1346760322,1346760306,1346760526,1346760520,1346760518,1346760514,1346760510,1346760661,1346760652,1346760648,1346760643,1346760634,1346760626,1346760824); 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([21640167]) Inside saveOutput : final : False verbose : True original output for save of step final : {1346760824: ('0.07521718840364347',)} new output for save of step final : {1346760824: ('0.07521718840364347',)} [1346760824] map_info['map_portfolio_photo'] : {21640167: [1346760824, 1346760661, 1346760652, 1346760648, 1346760643, 1346760634, 1346760626, 1346760526, 1346760520, 1346760518, 1346760514, 1346760510, 1346760442, 1346760417, 1346760349, 1346760327, 1346760322, 1346760306, 1346760227, 1346760220, 1346760216, 1346760213, 1346760209, 1346760108, 1346760018, 1346759873, 1346759869, 1346759833, 1346759828, 1346759824, 1346759809, 1346759785, 1346759533, 1346759525, 1346759509, 1346759498, 1346759481, 1346759471, 1346759394, 1346759390, 1346759319, 1346759298, 1346759295, 1346759289, 1346759283, 1346759051, 1346759050, 1346759046, 1346759041, 1346758994, 1346758990, 1346758986, 1346758839, 1346758784, 1346758759, 1346758724, 1346758693, 1346758649, 1346758306, 1346758274, 1346758242, 1346758201, 1346758168, 1346758137, 1346757991, 1346757954, 1346757911, 1346757884, 1346757646, 1346757616, 1346757564, 1346757521, 1346757493]} final : False mtd_id 4302 list_pids : [1346760824] Looping around the photos to save general results len do output : 1 /1346760824.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, '2684920') ('4302', '21640167', '1346760824', None, None, None, None, None, '2684920') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21640167', '1346760824', '0.07521718840364347', None, None, None, None, '2684920')] time used for this insertion : 0.011723518371582031 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07311630249023438 time spend to save output : 0.011909723281860352 total time spend for step 2 : 0.08502602577209473 step3:velours_tree Mon Mar 24 11:34:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21640167: [{'autre_refus': 21640171, 'Carton_gris': 21640172, 'metal': 21640173, 'kraft': 21640174, 'cartonnette': 21640175, 'flou': 21640176, 'papier': 21640177, 'mal_croppe': 21640178, 'plastique': 21640179, 'environnement': 21640180, 'Teint_Dans_La_Masse': 21640181, 'Carton_brun': 21640182}]} input_args_next_step : {21640167: ()} output_args : {21640167: [{'autre_refus': 21640171, 'Carton_gris': 21640172, 'metal': 21640173, 'kraft': 21640174, 'cartonnette': 21640175, 'flou': 21640176, 'papier': 21640177, 'mal_croppe': 21640178, 'plastique': 21640179, 'environnement': 21640180, 'Teint_Dans_La_Masse': 21640181, 'Carton_brun': 21640182}]} args : 21640167 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 : ({'autre_refus': 21640171, 'Carton_gris': 21640172, 'metal': 21640173, 'kraft': 21640174, 'cartonnette': 21640175, 'flou': 21640176, 'papier': 21640177, 'mal_croppe': 21640178, 'plastique': 21640179, 'environnement': 21640180, 'Teint_Dans_La_Masse': 21640181, 'Carton_brun': 21640182},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21640167) 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([21640167]) 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.2741680145263672 time spend to save output : 3.9577484130859375e-05 total time spend for step 3 : 0.27420759201049805 step4:send_mail_cod Mon Mar 24 11:34:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1346760824: ('0.07521718840364347',)} input_args_next_step : {1346760824: ()} output_args : {1346760824: ('0.07521718840364347',)} args : 1346760824 depend.output_id : 0 complete output_args for input 3 : {21640167: [{'autre_refus': 21640171, 'Carton_gris': 21640172, 'metal': 21640173, 'kraft': 21640174, 'cartonnette': 21640175, 'flou': 21640176, 'papier': 21640177, 'mal_croppe': 21640178, 'plastique': 21640179, 'environnement': 21640180, 'Teint_Dans_La_Masse': 21640181, 'Carton_brun': 21640182}]} input_args_next_step : {1346760824: ('0.07521718840364347',), 21640167: ()} output_args : {21640167: [{'autre_refus': 21640171, 'Carton_gris': 21640172, 'metal': 21640173, 'kraft': 21640174, 'cartonnette': 21640175, 'flou': 21640176, 'papier': 21640177, 'mal_croppe': 21640178, 'plastique': 21640179, 'environnement': 21640180, 'Teint_Dans_La_Masse': 21640181, 'Carton_brun': 21640182}]} args : 21640167 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :2, first value : ('0.07521718840364347',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21640167) 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 (1346760824) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1346760824 download finish for photo 1346760824 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P21640167_24-03-2025_11_34_59.pdf 21640171 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=21640171 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346760292: '1742812105_2813184_1346759471_9d66a900d17e0ecce67d3b8f99a88057_rle_crop_3726470031_0.png', 1346759514: '1742811881_933420_1346758201_c8f3a39d4c413719a9c88a196ae70221_rle_crop_3726466948_0.png', 1346759516: '1742811881_933420_1346758168_a4f78c584193e7ac77366868f2a75413_rle_crop_3726466957_0.png', 1346759517: '1742811881_933420_1346758137_cd7e699fe4d57188069ac5b82cf47219_rle_crop_3726466979_0.png', 1346759855: '1742811973_2847839_1346759298_da76bcb373c6e185945e689c129c4965_rle_crop_3726468681_0.png', 1346759856: '1742811973_2847839_1346759295_9982823db009b670bc8bc83df722207a_rle_crop_3726468698_0.png', 1346759857: '1742811973_2847839_1346759289_853a993068b521efc8c0971dbfbc2597_rle_crop_3726468714_0.png', 1346759858: '1742811973_2847839_1346759283_0a926ad6ff54e00acaa282cf191960ef_rle_crop_3726468845_0.png', 1346760270: '1742812093_2848752_1346759533_99890f3d451d54fbf255b78b7d7e5c54_rle_crop_3726469525_0.png', 1346760271: '1742812093_2848752_1346759390_3392c0564d85d5c2732f7a623b953d06_rle_crop_3726469533_0.png', 1346760289: '1742812105_2813184_1346759525_11d2c07e3e24aaac6f871600ec28fb60_rle_crop_3726469974_0.png', 1346760290: '1742812105_2813184_1346759498_c9c45b19f7e0a5cf37055b95db6858e7_rle_crop_3726470003_0.png', 1346760291: '1742812105_2813184_1346759481_5f66f0ff1ad5b01aff6928d2f29ff19c_rle_crop_3726470025_0.png', 1346759513: '1742811881_933420_1346758274_6c930518120059bf3510bd01c825057c_rle_crop_3726467697_0.png', 1346760312: '1742812121_937808_1346759828_90ef0353bc1571ffca78f24577fc0378_rle_crop_3726470051_0.png', 1346760313: '1742812121_937808_1346759828_90ef0353bc1571ffca78f24577fc0378_rle_crop_3726470056_0.png', 1346760314: '1742812121_937808_1346759824_4b9d92f85f3a5d1a964ba94d1cbb828c_rle_crop_3726470070_0.png', 1346760632: '1742812213_2849624_1346759873_668b87e9284df12a41dc52cfaf7295d0_rle_crop_3726471064_0.png', 1346760696: '1742812233_2850125_1346760220_97596aa5c0a708e16e461938d76a5a95_rle_crop_3726472061_0.png', 1346760698: '1742812233_2850125_1346760213_3840d7c19b2e7c0d2d98c700b854b91e_rle_crop_3726472326_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/900b5fe4a14d917724ce0809be3d397b_60178467.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a073acdb7c7bbb95ff2828badcf7b73b_90883668.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/441970ccc349b0e0dc28b1a4347b91d8_45605700.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/80969deb6e94d585a7bec958bc64c955_26596599.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3084ca6eb42e168ee58f3f98d0a6e2e5_34157054.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/126a0d679fb1d27ed9e28ec83441f62c_16862426.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/82b41fffdbdb8ad81ab3649b24f126a1_83050874.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f1f31d6627157b6c6bb96b036d95b94a_97690871.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fcf2c770e92376c480dcafe6d4221a3d_31103097.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f83f8cc824a9647b24ed9fa056adb1cb_66428210.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e314a3d1b681967ebf0918c30c87b4d2_33207444.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a54fb467ba822fad7a71a1fec494b4e8_16981531.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ab0713b009418247987070cbc6c4f219_66526356.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/16148a2176b75ce04ace6eef60261f37_49878672.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9bdbc296158c390399f07c176bbe02f5_42163337.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a1268472627c9fd0dbe55174e6c42407_2647064.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c7ab71021bfdc76c03899062567ac647_96643742.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ff320920441b5e2934b30bcbcc121568_96295634.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ad742387c5032f03c2fe124a435b37f4_33998178.png change filename to text .imagette216401711742812499/ imagette216401711742812499/1742812105_2813184_1346759481_5f66f0ff1ad5b01aff6928d2f29ff19c_rle_crop_3726470025_0.png.png imagette216401711742812499/1742811973_2847839_1346759298_da76bcb373c6e185945e689c129c4965_rle_crop_3726468681_0.png.png imagette216401711742812499/1742812121_937808_1346759828_90ef0353bc1571ffca78f24577fc0378_rle_crop_3726470056_0.png.png imagette216401711742812499/1742812105_2813184_1346759498_c9c45b19f7e0a5cf37055b95db6858e7_rle_crop_3726470003_0.png.png imagette216401711742812499/1742811881_933420_1346758201_c8f3a39d4c413719a9c88a196ae70221_rle_crop_3726466948_0.png.png imagette216401711742812499/1742812121_937808_1346759824_4b9d92f85f3a5d1a964ba94d1cbb828c_rle_crop_3726470070_0.png.png imagette216401711742812499/1742812105_2813184_1346759525_11d2c07e3e24aaac6f871600ec28fb60_rle_crop_3726469974_0.png.png imagette216401711742812499/1742811973_2847839_1346759295_9982823db009b670bc8bc83df722207a_rle_crop_3726468698_0.png.png imagette216401711742812499/1742811973_2847839_1346759283_0a926ad6ff54e00acaa282cf191960ef_rle_crop_3726468845_0.png.png imagette216401711742812499/1742812121_937808_1346759828_90ef0353bc1571ffca78f24577fc0378_rle_crop_3726470051_0.png.png imagette216401711742812499/1742812213_2849624_1346759873_668b87e9284df12a41dc52cfaf7295d0_rle_crop_3726471064_0.png.png imagette216401711742812499/1742811973_2847839_1346759289_853a993068b521efc8c0971dbfbc2597_rle_crop_3726468714_0.png.png imagette216401711742812499/1742811881_933420_1346758137_cd7e699fe4d57188069ac5b82cf47219_rle_crop_3726466979_0.png.png imagette216401711742812499/1742812105_2813184_1346759471_9d66a900d17e0ecce67d3b8f99a88057_rle_crop_3726470031_0.png.png imagette216401711742812499/1742811881_933420_1346758274_6c930518120059bf3510bd01c825057c_rle_crop_3726467697_0.png.png imagette216401711742812499/1742812233_2850125_1346760213_3840d7c19b2e7c0d2d98c700b854b91e_rle_crop_3726472326_0.png.png imagette216401711742812499/1742812093_2848752_1346759390_3392c0564d85d5c2732f7a623b953d06_rle_crop_3726469533_0.png.png imagette216401711742812499/1742812233_2850125_1346760220_97596aa5c0a708e16e461938d76a5a95_rle_crop_3726472061_0.png.png imagette216401711742812499/1742812093_2848752_1346759533_99890f3d451d54fbf255b78b7d7e5c54_rle_crop_3726469525_0.png.png imagette216401711742812499/1742811881_933420_1346758168_a4f78c584193e7ac77366868f2a75413_rle_crop_3726466957_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e717240092073a3a1d72af651d828741_32718807.png imagette216401711742812499 21640173 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=21640173 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346761337: '1742812354_2852074_1346760349_06358ac2db1b3819d9b59c7b73a9ae22_rle_crop_3726475678_0.png', 1346761338: '1742812354_2852074_1346760327_b12051d99a811ed93e00fd51473caf0d_rle_crop_3726475695_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e04f79b8b41cb5bb86d44bb26811b2e8_70289019.png change filename to text .imagette216401731742812499/ imagette216401731742812499/1742812354_2852074_1346760349_06358ac2db1b3819d9b59c7b73a9ae22_rle_crop_3726475678_0.png.png imagette216401731742812499/1742812354_2852074_1346760327_b12051d99a811ed93e00fd51473caf0d_rle_crop_3726475695_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/efa0412a15b9169252b452058bfeb098_69139108.png imagette216401731742812499 21640174 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=21640174 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346760315: '1742812105_2813184_1346759471_9d66a900d17e0ecce67d3b8f99a88057_rle_crop_3726470030_0.png', 1346761330: '1742812354_2852074_1346760327_b12051d99a811ed93e00fd51473caf0d_rle_crop_3726475692_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/95e99fac9a38dbff6daf9e534030382b_18078575.png change filename to text .imagette216401741742812500/ imagette216401741742812500/1742812105_2813184_1346759471_9d66a900d17e0ecce67d3b8f99a88057_rle_crop_3726470030_0.png.png imagette216401741742812500/1742812354_2852074_1346760327_b12051d99a811ed93e00fd51473caf0d_rle_crop_3726475692_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fb3e2c6960ee92f8517957b2d51d70af_7162755.png imagette216401741742812500 21640175 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=21640175 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346759338: '1742811752_2842833_1346758649_7bc0402542d77b14be0b669e63fa887b_rle_crop_3726466684_0.png', 1346761311: '1742812354_2852074_1346760322_59d970f566f5770de6528ee5c3177802_rle_crop_3726475703_0.png', 1346761310: '1742812354_2852074_1346760327_b12051d99a811ed93e00fd51473caf0d_rle_crop_3726475690_0.png', 1346761309: '1742812354_2852074_1346760349_06358ac2db1b3819d9b59c7b73a9ae22_rle_crop_3726475674_0.png', 1346761308: '1742812354_2852074_1346760349_06358ac2db1b3819d9b59c7b73a9ae22_rle_crop_3726475676_0.png', 1346761182: '1742812362_942414_1346760518_00f72fba012e7adf0ab2e42e3a9e43d7_rle_crop_3726475185_0.png', 1346760705: '1742812233_2850125_1346760213_3840d7c19b2e7c0d2d98c700b854b91e_rle_crop_3726472317_0.png', 1346760704: '1742812233_2850125_1346760213_3840d7c19b2e7c0d2d98c700b854b91e_rle_crop_3726472322_0.png', 1346760638: '1742812213_2849624_1346759869_eeabbaeb55c6de1e0a55bdbd7f87e01b_rle_crop_3726471076_0.png', 1346760637: '1742812213_2849624_1346760018_a5dd91af1ca3f22bf9143c5b80280c30_rle_crop_3726471044_0.png', 1346760297: '1742812105_2813184_1346759509_ca6c205446ec91ee91bc4525c2079cdc_rle_crop_3726469977_0.png', 1346760296: '1742812105_2813184_1346759833_dcd07c9c5fe871c6f5cc278f2cf43de0_rle_crop_3726469961_0.png', 1346759861: '1742811973_2847839_1346759298_da76bcb373c6e185945e689c129c4965_rle_crop_3726468675_0.png', 1346759528: '1742811881_933420_1346758201_c8f3a39d4c413719a9c88a196ae70221_rle_crop_3726466938_0.png', 1346759527: '1742811881_933420_1346758274_6c930518120059bf3510bd01c825057c_rle_crop_3726466909_0.png', 1346759339: '1742811752_2842833_1346758649_7bc0402542d77b14be0b669e63fa887b_rle_crop_3726466683_0.png', 1346759098: '1742811691_2841310_1346757991_b45f0c75c8008908cf47d553bc001812_rle_crop_3726465218_0.png', 1346759317: '1742811733_2842602_1346757493_c1610de00e8a0d5d76b39af2286252d7_rle_crop_3726465284_0.png', 1346759316: '1742811733_2842602_1346757493_c1610de00e8a0d5d76b39af2286252d7_rle_crop_3726465285_0.png', 1346759315: '1742811733_2842602_1346757521_b090945c1b9cd96a5a2802849d2a312e_rle_crop_3726465270_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b08c45847aff5c9e4d1191ad262fad92_4321363.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7a81d963c1bd4df7feed94392ecd653e_65075251.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/dd0c8081469074cb098c7d759dd736ad_2171781.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/70b04a220209db1b2b7ce65a515fb9ba_49310801.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1b9402e17331370cb7329d78903ba171_24688542.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ee2fa43f9ced49b432a9eb4761d984f7_5531226.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a38f3332c34d8f936a1363e258b6aea0_20650897.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3745cfa6dd8aca5fc16dc7e4a067aad8_25485806.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f8176eb98ea99222041af53060d61e20_75583640.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5afcd7c64b0481c0b8b2df74f66592ae_88542212.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/524672282823358aad310fb5c4801232_76200616.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/39e40ed01b58bd2b6e8c339904080d89_77208365.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/2779eea7f8e24240b38ab82a80bf2863_12364426.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d5d6757d733558e54b1568bf8c90885b_26942625.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/dda6fa5bb42fdc377be10fbb6f4082bd_51553520.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/848214431603ac1ba503c0d3c3396d99_95083029.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3c3e16d7c744823c28dfaa702d2033f5_29985127.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f9695b1ae188432de1abedb21b455ab8_33633981.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/291034558db3e6c52a453c3e8c67c2e8_51788923.png change filename to text .imagette216401751742812500/ imagette216401751742812500/1742812362_942414_1346760518_00f72fba012e7adf0ab2e42e3a9e43d7_rle_crop_3726475185_0.png.png imagette216401751742812500/1742812354_2852074_1346760327_b12051d99a811ed93e00fd51473caf0d_rle_crop_3726475690_0.png.png imagette216401751742812500/1742812354_2852074_1346760349_06358ac2db1b3819d9b59c7b73a9ae22_rle_crop_3726475676_0.png.png imagette216401751742812500/1742812213_2849624_1346760018_a5dd91af1ca3f22bf9143c5b80280c30_rle_crop_3726471044_0.png.png imagette216401751742812500/1742811733_2842602_1346757521_b090945c1b9cd96a5a2802849d2a312e_rle_crop_3726465270_0.png.png imagette216401751742812500/1742812213_2849624_1346759869_eeabbaeb55c6de1e0a55bdbd7f87e01b_rle_crop_3726471076_0.png.png imagette216401751742812500/1742811733_2842602_1346757493_c1610de00e8a0d5d76b39af2286252d7_rle_crop_3726465284_0.png.png imagette216401751742812500/1742811881_933420_1346758201_c8f3a39d4c413719a9c88a196ae70221_rle_crop_3726466938_0.png.png imagette216401751742812500/1742812354_2852074_1346760322_59d970f566f5770de6528ee5c3177802_rle_crop_3726475703_0.png.png imagette216401751742812500/1742811881_933420_1346758274_6c930518120059bf3510bd01c825057c_rle_crop_3726466909_0.png.png imagette216401751742812500/1742811752_2842833_1346758649_7bc0402542d77b14be0b669e63fa887b_rle_crop_3726466684_0.png.png imagette216401751742812500/1742811691_2841310_1346757991_b45f0c75c8008908cf47d553bc001812_rle_crop_3726465218_0.png.png imagette216401751742812500/1742812233_2850125_1346760213_3840d7c19b2e7c0d2d98c700b854b91e_rle_crop_3726472317_0.png.png imagette216401751742812500/1742812233_2850125_1346760213_3840d7c19b2e7c0d2d98c700b854b91e_rle_crop_3726472322_0.png.png imagette216401751742812500/1742812354_2852074_1346760349_06358ac2db1b3819d9b59c7b73a9ae22_rle_crop_3726475674_0.png.png imagette216401751742812500/1742811733_2842602_1346757493_c1610de00e8a0d5d76b39af2286252d7_rle_crop_3726465285_0.png.png imagette216401751742812500/1742812105_2813184_1346759833_dcd07c9c5fe871c6f5cc278f2cf43de0_rle_crop_3726469961_0.png.png imagette216401751742812500/1742811752_2842833_1346758649_7bc0402542d77b14be0b669e63fa887b_rle_crop_3726466683_0.png.png imagette216401751742812500/1742811973_2847839_1346759298_da76bcb373c6e185945e689c129c4965_rle_crop_3726468675_0.png.png imagette216401751742812500/1742812105_2813184_1346759509_ca6c205446ec91ee91bc4525c2079cdc_rle_crop_3726469977_0.png.png imagette216401761742812504/ imagette216401781742812504/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/de5d4de702e48777e968583a8677f145_12299306.png imagette216401751742812500 21640176 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=21640176 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216401761742812504 21640178 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=21640178 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216401781742812504 21640179 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=21640179 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346759343: '1742811752_2842833_1346758784_c4bfda0a9fc2758779c32e7813ecd57b_rle_crop_3726466394_0.png', 1346759344: '1742811752_2842833_1346758759_976b84134d4a032e8f702ec69b80918a_rle_crop_3726466617_0.png', 1346759530: '1742811881_933420_1346758274_6c930518120059bf3510bd01c825057c_rle_crop_3726466916_0.png', 1346759531: '1742811881_933420_1346758242_3e0d95612efcba762d311172fa1424b9_rle_crop_3726466933_0.png', 1346761185: '1742812362_942414_1346760514_a28b14cbbbdb5c7cd565de8ae15d9f94_rle_crop_3726475349_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/655b2a4f0173512095e88e7ca4b01337_97179523.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/63c8705bf74938e721255984b5b7a1a4_27639429.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/347ebd895f9c81325f1c3fc51cd97765_42775584.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/eef6d45c1757c0aa3bafc8d4e62c2636_42692981.png change filename to text .imagette216401791742812504/ imagette216401791742812504/1742811752_2842833_1346758759_976b84134d4a032e8f702ec69b80918a_rle_crop_3726466617_0.png.png imagette216401791742812504/1742811881_933420_1346758242_3e0d95612efcba762d311172fa1424b9_rle_crop_3726466933_0.png.png imagette216401791742812504/1742812362_942414_1346760514_a28b14cbbbdb5c7cd565de8ae15d9f94_rle_crop_3726475349_0.png.png imagette216401791742812504/1742811752_2842833_1346758784_c4bfda0a9fc2758779c32e7813ecd57b_rle_crop_3726466394_0.png.png imagette216401791742812504/1742811881_933420_1346758274_6c930518120059bf3510bd01c825057c_rle_crop_3726466916_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b5b8fc570e61ade98ab1a88da56b7842_24714098.png imagette216401791742812504 21640172 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=21640172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346759095: '1742811691_2841310_1346757521_b090945c1b9cd96a5a2802849d2a312e_rle_crop_3726465275_0.png', 1346759307: '1742811733_2842602_1346757521_b090945c1b9cd96a5a2802849d2a312e_rle_crop_3726465275_0.png', 1346759519: '1742811881_933420_1346758242_3e0d95612efcba762d311172fa1424b9_rle_crop_3726466929_0.png', 1346759520: '1742811881_933420_1346758201_c8f3a39d4c413719a9c88a196ae70221_rle_crop_3726466942_0.png', 1346759522: '1742811881_933420_1346758201_c8f3a39d4c413719a9c88a196ae70221_rle_crop_3726466941_0.png', 1346759523: '1742811881_933420_1346758137_cd7e699fe4d57188069ac5b82cf47219_rle_crop_3726466985_0.png', 1346759524: '1742811881_933420_1346758137_cd7e699fe4d57188069ac5b82cf47219_bib_crop_3726466980_0.jpg', 1346759860: '1742811973_2847839_1346759298_da76bcb373c6e185945e689c129c4965_rle_crop_3726468679_0.png', 1346760274: '1742812093_2848752_1346759533_99890f3d451d54fbf255b78b7d7e5c54_rle_crop_3726469522_0.png', 1346760275: '1742812093_2848752_1346759533_99890f3d451d54fbf255b78b7d7e5c54_rle_crop_3726469524_0.png', 1346760276: '1742812093_2848752_1346759390_3392c0564d85d5c2732f7a623b953d06_rle_crop_3726469532_0.png', 1346760295: '1742812105_2813184_1346759481_5f66f0ff1ad5b01aff6928d2f29ff19c_rle_crop_3726470011_0.png', 1346760317: '1742812121_937808_1346759785_d376af44fcb1c451b67cea55346bd922_rle_crop_3726470091_0.png', 1346760635: '1742812213_2849624_1346760018_a5dd91af1ca3f22bf9143c5b80280c30_rle_crop_3726471050_0.png', 1346760636: '1742812213_2849624_1346760018_a5dd91af1ca3f22bf9143c5b80280c30_rle_crop_3726471048_0.png', 1346761295: '1742812354_2852074_1346760306_aa41afa03088b25c740d223cc96ab92e_rle_crop_3726475848_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/28b6fa1ac9b89d690be3f754a1704911_38342880.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/28b6fa1ac9b89d690be3f754a1704911_32425288.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/bdb92709da3adf614e771c053cb1614a_92088152.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f4a73e4caf4b964a37561be4613180fb_49384958.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/dc42f73cd37aea7d781c5437b7c2b622_48604480.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a5aa496f3d81981645da374b7974c8d6_14479865.png change filename to text .wget -O 7.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8faf1802b1ea239f1527fa6b8a28c770_91438900.jpg change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/545d9a5b45cee91cba74d6eb591f1b9e_35613764.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/2d5f67ceab8d04010b8eb0edb9780fb4_92876883.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e3e4e684bad06e1aed839381e43a5501_52122677.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/92373f8c52bef123c708d532e1e32254_8600674.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e6a94c5a94e8862a581e202dd1ee5046_19517888.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b0a3d8a91684f8605b4100c451a2a4b2_21800109.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1cc8800e5c397c151bab7f1550f8d6ba_67518291.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8d1610b710fd9679e6f1f3d7384c042b_60127749.png change filename to text .imagette216401721742812504/ imagette216401721742812504/1742811881_933420_1346758137_cd7e699fe4d57188069ac5b82cf47219_bib_crop_3726466980_0.jpg.jpg imagette216401721742812504/1742812121_937808_1346759785_d376af44fcb1c451b67cea55346bd922_rle_crop_3726470091_0.png.png imagette216401721742812504/1742811881_933420_1346758201_c8f3a39d4c413719a9c88a196ae70221_rle_crop_3726466942_0.png.png imagette216401721742812504/1742812093_2848752_1346759390_3392c0564d85d5c2732f7a623b953d06_rle_crop_3726469532_0.png.png imagette216401721742812504/1742811881_933420_1346758137_cd7e699fe4d57188069ac5b82cf47219_rle_crop_3726466985_0.png.png imagette216401721742812504/1742811691_2841310_1346757521_b090945c1b9cd96a5a2802849d2a312e_rle_crop_3726465275_0.png.png imagette216401721742812504/1742811881_933420_1346758201_c8f3a39d4c413719a9c88a196ae70221_rle_crop_3726466941_0.png.png imagette216401721742812504/1742812354_2852074_1346760306_aa41afa03088b25c740d223cc96ab92e_rle_crop_3726475848_0.png.png imagette216401721742812504/1742811881_933420_1346758242_3e0d95612efcba762d311172fa1424b9_rle_crop_3726466929_0.png.png imagette216401721742812504/1742812093_2848752_1346759533_99890f3d451d54fbf255b78b7d7e5c54_rle_crop_3726469524_0.png.png imagette216401721742812504/1742811973_2847839_1346759298_da76bcb373c6e185945e689c129c4965_rle_crop_3726468679_0.png.png imagette216401721742812504/1742812093_2848752_1346759533_99890f3d451d54fbf255b78b7d7e5c54_rle_crop_3726469522_0.png.png imagette216401721742812504/1742812213_2849624_1346760018_a5dd91af1ca3f22bf9143c5b80280c30_rle_crop_3726471048_0.png.png imagette216401721742812504/1742811733_2842602_1346757521_b090945c1b9cd96a5a2802849d2a312e_rle_crop_3726465275_0.png.png imagette216401721742812504/1742812213_2849624_1346760018_a5dd91af1ca3f22bf9143c5b80280c30_rle_crop_3726471050_0.png.png imagette216401721742812504/1742812105_2813184_1346759481_5f66f0ff1ad5b01aff6928d2f29ff19c_rle_crop_3726470011_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f344096f1670a308dee26c6ed4fe6c35_50341949.png imagette216401721742812504 21640181 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=21640181 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346759507: '1742811881_933420_1346758137_cd7e699fe4d57188069ac5b82cf47219_rle_crop_3726466989_0.png', 1346761284: '1742812354_2852074_1346760306_aa41afa03088b25c740d223cc96ab92e_rle_crop_3726475845_0.png', 1346761283: '1742812354_2852074_1346760349_06358ac2db1b3819d9b59c7b73a9ae22_rle_crop_3726475683_0.png', 1346761165: '1742812362_942414_1346760510_85745ada7f60e701876e8ee576134da5_rle_crop_3726475359_0.png', 1346760694: '1742812233_2850125_1346760216_349652fa2d6e49c08d6a8ab5e859e435_rle_crop_3726472075_0.png', 1346760308: '1742812121_937808_1346759809_9834e0f573948cd1e4cd841f88c31298_rle_crop_3726470080_0.png', 1346760305: '1742812121_937808_1346759809_9834e0f573948cd1e4cd841f88c31298_rle_crop_3726470081_0.png', 1346760303: '1742812121_937808_1346759824_4b9d92f85f3a5d1a964ba94d1cbb828c_rle_crop_3726470065_0.png', 1346760288: '1742812105_2813184_1346759471_9d66a900d17e0ecce67d3b8f99a88057_rle_crop_3726470033_0.png', 1346760287: '1742812105_2813184_1346759498_c9c45b19f7e0a5cf37055b95db6858e7_rle_crop_3726469999_0.png', 1346760286: '1742812105_2813184_1346759525_11d2c07e3e24aaac6f871600ec28fb60_rle_crop_3726469970_0.png', 1346759263: '1742811762_930117_1346758986_3be9298e492b6788850555bfd6c03dd2_rle_crop_3726465643_0.png', 1346759506: '1742811881_933420_1346758168_a4f78c584193e7ac77366868f2a75413_rle_crop_3726466961_0.png', 1346759505: '1742811881_933420_1346758201_c8f3a39d4c413719a9c88a196ae70221_rle_crop_3726466943_0.png', 1346759504: '1742811881_933420_1346758242_3e0d95612efcba762d311172fa1424b9_rle_crop_3726466927_0.png', 1346759503: '1742811881_933420_1346758839_99997444cbe67b348ec5e1d883fc50c5_rle_crop_3726466710_0.png', 1346759474: '1742811855_2844345_1346759046_6dcd1fd1d3864019cd0a0b364530fe8d_rle_crop_3726467691_0.png', 1346759473: '1742811855_2844345_1346759046_6dcd1fd1d3864019cd0a0b364530fe8d_rle_crop_3726467692_0.png', 1346759472: '1742811855_2844345_1346759046_6dcd1fd1d3864019cd0a0b364530fe8d_rle_crop_3726467688_0.png', 1346759326: '1742811752_2842833_1346758759_976b84134d4a032e8f702ec69b80918a_rle_crop_3726466618_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d8d1f47c9e64f2bcd080bf8276f3fef5_31467229.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4d617ff05fb3db521ce52391b1bffc42_89030541.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/bdce998648b384941d64a1508357509d_90782153.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cb98d7583c1c2bd6b6cd1f5e3d111f93_43465842.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a5a1e84e2d0b20df3b38badcd397144d_49625668.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e344dbff5540f334b4827410c862386f_35707375.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fbc66ad2a9b16cfc27cfdf2ca77b391f_93164964.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5fb7fd7e47ba5609a1bd56cf4a300cc5_29740040.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4cf0df0efa00a3f6e3b999afc9e65ded_69652206.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/434152a82b1c6256a787a3a1c688fc32_13339434.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8d18b151d93b71967ddc509cf3209075_35776884.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ce9e645855f6eab2f1f4288d126117c3_39697876.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ff009ef64cb3080eab996e63d6114a37_7518518.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fee6532a4361e0991bce0ae0dac60f70_57004252.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/48f4bc032433ce8b0aa47ec66105d2c8_71045711.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d57f8c53715c051fc1d36088c56d2611_91994357.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e6a089277a7ff3ce5d7278077e494e6e_5721894.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/25471d6d73bcca58625bbff85fec3d3f_8619146.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3654aef5cb37e907f981af86e40ba7b9_99809547.png change filename to text .imagette216401811742812505/ imagette216401811742812505/1742811881_933420_1346758839_99997444cbe67b348ec5e1d883fc50c5_rle_crop_3726466710_0.png.png imagette216401811742812505/1742811881_933420_1346758137_cd7e699fe4d57188069ac5b82cf47219_rle_crop_3726466989_0.png.png imagette216401811742812505/1742812105_2813184_1346759498_c9c45b19f7e0a5cf37055b95db6858e7_rle_crop_3726469999_0.png.png imagette216401811742812505/1742811881_933420_1346758242_3e0d95612efcba762d311172fa1424b9_rle_crop_3726466927_0.png.png imagette216401811742812505/1742811752_2842833_1346758759_976b84134d4a032e8f702ec69b80918a_rle_crop_3726466618_0.png.png imagette216401811742812505/1742811855_2844345_1346759046_6dcd1fd1d3864019cd0a0b364530fe8d_rle_crop_3726467691_0.png.png imagette216401811742812505/1742812121_937808_1346759809_9834e0f573948cd1e4cd841f88c31298_rle_crop_3726470080_0.png.png imagette216401811742812505/1742812121_937808_1346759809_9834e0f573948cd1e4cd841f88c31298_rle_crop_3726470081_0.png.png imagette216401811742812505/1742812121_937808_1346759824_4b9d92f85f3a5d1a964ba94d1cbb828c_rle_crop_3726470065_0.png.png imagette216401811742812505/1742811855_2844345_1346759046_6dcd1fd1d3864019cd0a0b364530fe8d_rle_crop_3726467692_0.png.png imagette216401811742812505/1742811881_933420_1346758168_a4f78c584193e7ac77366868f2a75413_rle_crop_3726466961_0.png.png imagette216401811742812505/1742812233_2850125_1346760216_349652fa2d6e49c08d6a8ab5e859e435_rle_crop_3726472075_0.png.png imagette216401811742812505/1742812105_2813184_1346759471_9d66a900d17e0ecce67d3b8f99a88057_rle_crop_3726470033_0.png.png imagette216401811742812505/1742812354_2852074_1346760349_06358ac2db1b3819d9b59c7b73a9ae22_rle_crop_3726475683_0.png.png imagette216401811742812505/1742812105_2813184_1346759525_11d2c07e3e24aaac6f871600ec28fb60_rle_crop_3726469970_0.png.png imagette216401811742812505/1742811881_933420_1346758201_c8f3a39d4c413719a9c88a196ae70221_rle_crop_3726466943_0.png.png imagette216401811742812505/1742812354_2852074_1346760306_aa41afa03088b25c740d223cc96ab92e_rle_crop_3726475845_0.png.png imagette216401811742812505/1742811855_2844345_1346759046_6dcd1fd1d3864019cd0a0b364530fe8d_rle_crop_3726467688_0.png.png imagette216401811742812505/1742811762_930117_1346758986_3be9298e492b6788850555bfd6c03dd2_rle_crop_3726465643_0.png.png imagette216401811742812505/1742812362_942414_1346760510_85745ada7f60e701876e8ee576134da5_rle_crop_3726475359_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/35bb925dcd65245c82319e28884d9f51_73399386.png imagette216401811742812505 21640182 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=21640182 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346760304: '1742812105_2813184_1346759509_ca6c205446ec91ee91bc4525c2079cdc_rle_crop_3726469982_0.png', 1346761322: '1742812354_2852074_1346760349_06358ac2db1b3819d9b59c7b73a9ae22_rle_crop_3726475673_0.png', 1346761321: '1742812354_2852074_1346760417_04be3e88b7646f4a7526c208f77d6094_rle_crop_3726475663_0.png', 1346760707: '1742812233_2850125_1346760220_97596aa5c0a708e16e461938d76a5a95_rle_crop_3726472063_0.png', 1346760320: '1742812121_937808_1346759824_4b9d92f85f3a5d1a964ba94d1cbb828c_rle_crop_3726470066_0.png', 1346760319: '1742812121_937808_1346759824_4b9d92f85f3a5d1a964ba94d1cbb828c_rle_crop_3726470068_0.png', 1346760310: '1742812105_2813184_1346759471_9d66a900d17e0ecce67d3b8f99a88057_rle_crop_3726470036_0.png', 1346760309: '1742812105_2813184_1346759471_9d66a900d17e0ecce67d3b8f99a88057_rle_crop_3726470038_0.png', 1346760307: '1742812105_2813184_1346759481_5f66f0ff1ad5b01aff6928d2f29ff19c_rle_crop_3726470020_0.png', 1346759276: '1742811762_930117_1346758990_20d5a12344bb63facfcfd511a88aac67_rle_crop_3726465483_0.png', 1346760302: '1742812105_2813184_1346759525_11d2c07e3e24aaac6f871600ec28fb60_rle_crop_3726469972_0.png', 1346760301: '1742812105_2813184_1346759833_dcd07c9c5fe871c6f5cc278f2cf43de0_rle_crop_3726469958_0.png', 1346759863: '1742811973_2847839_1346759295_9982823db009b670bc8bc83df722207a_rle_crop_3726468692_0.png', 1346759862: '1742811973_2847839_1346759298_da76bcb373c6e185945e689c129c4965_rle_crop_3726468682_0.png', 1346759491: '1742811855_2844345_1346759050_1bc23579d1558f49429b7f1a1274f33f_rle_crop_3726467640_0.png', 1346759341: '1742811752_2842833_1346758724_727238bd298f77d960e22b5b89be4047_rle_crop_3726466635_0.png', 1346759340: '1742811752_2842833_1346758784_c4bfda0a9fc2758779c32e7813ecd57b_rle_crop_3726466399_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8f01d274787c43ab21d4824a379826d3_73717517.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e6377877aaaed0ad0721d82e9aa49bd8_27452202.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3e483ee5603fa79c1d11c4b8001d713c_70952947.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7f674f9a3a8db28c010373de3a2f4387_25048370.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c3d9829c6677cc579589438208e89362_88503884.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c2d8ac6617c78cd7202d40ac17bb9dd0_4246186.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/eb524406f81103475b540939f76788df_10038805.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/64242618d28366cd3689126a2d053057_19638067.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7fe577b82cc561b3814ac28ae6a03063_90891008.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5a7cbe414a0e3c60ff519bc5d50f1153_69927166.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8a2edd9672a85ccce1beb4dc396c7d6a_3932890.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/39412c43f47809c5af6e590baccbb817_94034295.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/26caa21c4c28387cb45b2c7fc32be0f9_41276937.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/6a09eaddd45be1b15bf349b5e054f8d4_86861553.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7529193513b3b77b074aa0e34b843268_52719880.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3ceaf6091a9a83a6ec36a739e6da4e9c_53109923.png change filename to text .imagette216401821742812506/ imagette216401821742812506/1742812354_2852074_1346760417_04be3e88b7646f4a7526c208f77d6094_rle_crop_3726475663_0.png.png imagette216401821742812506/1742811752_2842833_1346758784_c4bfda0a9fc2758779c32e7813ecd57b_rle_crop_3726466399_0.png.png imagette216401821742812506/1742812121_937808_1346759824_4b9d92f85f3a5d1a964ba94d1cbb828c_rle_crop_3726470068_0.png.png imagette216401821742812506/1742812105_2813184_1346759481_5f66f0ff1ad5b01aff6928d2f29ff19c_rle_crop_3726470020_0.png.png imagette216401821742812506/1742812105_2813184_1346759471_9d66a900d17e0ecce67d3b8f99a88057_rle_crop_3726470038_0.png.png imagette216401821742812506/1742811752_2842833_1346758724_727238bd298f77d960e22b5b89be4047_rle_crop_3726466635_0.png.png imagette216401821742812506/1742811973_2847839_1346759295_9982823db009b670bc8bc83df722207a_rle_crop_3726468692_0.png.png imagette216401821742812506/1742812121_937808_1346759824_4b9d92f85f3a5d1a964ba94d1cbb828c_rle_crop_3726470066_0.png.png imagette216401821742812506/1742812105_2813184_1346759471_9d66a900d17e0ecce67d3b8f99a88057_rle_crop_3726470036_0.png.png imagette216401821742812506/1742811855_2844345_1346759050_1bc23579d1558f49429b7f1a1274f33f_rle_crop_3726467640_0.png.png imagette216401821742812506/1742812105_2813184_1346759509_ca6c205446ec91ee91bc4525c2079cdc_rle_crop_3726469982_0.png.png imagette216401821742812506/1742812105_2813184_1346759525_11d2c07e3e24aaac6f871600ec28fb60_rle_crop_3726469972_0.png.png imagette216401821742812506/1742812354_2852074_1346760349_06358ac2db1b3819d9b59c7b73a9ae22_rle_crop_3726475673_0.png.png imagette216401821742812506/1742812105_2813184_1346759833_dcd07c9c5fe871c6f5cc278f2cf43de0_rle_crop_3726469958_0.png.png imagette216401821742812506/1742811762_930117_1346758990_20d5a12344bb63facfcfd511a88aac67_rle_crop_3726465483_0.png.png imagette216401821742812506/1742811973_2847839_1346759298_da76bcb373c6e185945e689c129c4965_rle_crop_3726468682_0.png.png imagette216401821742812506/1742812233_2850125_1346760220_97596aa5c0a708e16e461938d76a5a95_rle_crop_3726472063_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8704e5c1ac9bf410cce091b2c14a3716_58163803.png imagette216401821742812506 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21640167 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21640183,21640184,21640185,21640186,21640187,21640188,21640189,21640190,21640191,21640192,21640193,21640194?tags=autre_refus,Carton_gris,metal,kraft,cartonnette,flou,papier,mal_croppe,plastique,environnement,Teint_Dans_La_Masse,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1346760824] : ('0.07521718840364347',) no score found for photo 1346760824 We are sending mail with results at report@fotonower.com refus_total : 0.07521718840364347 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=21640167 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_P21640167_24-03-2025_11_34_59.pdf results_Auto_P21640167_24-03-2025_11_34_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21640167_24-03-2025_11_34_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21640167','results_Auto_P21640167_24-03-2025_11_34_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21640167_24-03-2025_11_34_59.pdf','pdf','','0.35','0.07521718840364347') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21640167]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1346760824] map_info['map_portfolio_photo'] : {21640167: [1346760824, 1346760661, 1346760652, 1346760648, 1346760643, 1346760634, 1346760626, 1346760526, 1346760520, 1346760518, 1346760514, 1346760510, 1346760442, 1346760417, 1346760349, 1346760327, 1346760322, 1346760306, 1346760227, 1346760220, 1346760216, 1346760213, 1346760209, 1346760108, 1346760018, 1346759873, 1346759869, 1346759833, 1346759828, 1346759824, 1346759809, 1346759785, 1346759533, 1346759525, 1346759509, 1346759498, 1346759481, 1346759471, 1346759394, 1346759390, 1346759319, 1346759298, 1346759295, 1346759289, 1346759283, 1346759051, 1346759050, 1346759046, 1346759041, 1346758994, 1346758990, 1346758986, 1346758839, 1346758784, 1346758759, 1346758724, 1346758693, 1346758649, 1346758306, 1346758274, 1346758242, 1346758201, 1346758168, 1346758137, 1346757991, 1346757954, 1346757911, 1346757884, 1346757646, 1346757616, 1346757564, 1346757521, 1346757493]} final : False mtd_id 4302 list_pids : [1346760824] 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, '2684920') ('4302', '21640167', '1346760824', None, None, None, None, None, '2684920') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21640167', '1346760824', None, None, None, None, None, '2684920')] time used for this insertion : 0.012384653091430664 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.368046283721924 time spend to save output : 0.012539863586425781 total time spend for step 4 : 9.38058614730835 step5:split_time_score Mon Mar 24 11:35:08 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 : ['21640167'] 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 : [('21640167',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21640167) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1346760824: {'path': 'temp/1742812498_4025085_1346760824_369417dfa5f825e65115a0967e3e8e32.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 = 21640167; (('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 = 21640167 group by h (('11', 73),) 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=21640167 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 (21640167) 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 (21640167) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24032025 21640167 Nombre de photos uploadées : 73 / 23040 (0%) 24032025 21640167 Nombre de photos taguées (types de déchets): 0 / 73 (0%) 24032025 21640167 Nombre de photos taguées (volume) : 0 / 73 (0%) [{'photo_id': 1346757646, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/55902e35287eb26c05e6c1b179555fd0.jpg', 'username': None, 'uploaded_at': 1742811434, 'text': 'image_24032025_11_15_04_010157m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1346757616, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b788d782edb1510e1045b5538f4e2e3f.jpg', 'username': None, 'uploaded_at': 1742811434, 'text': 'image_24032025_11_15_14_010141m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1346757564, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ee7258b3c751ed81bc2456c2f35001d8.jpg', 'username': None, 'uploaded_at': 1742811434, 'text': 'image_24032025_11_15_23_009125m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1346757521, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b090945c1b9cd96a5a2802849d2a312e.jpg', 'username': None, 'uploaded_at': 1742811434, 'text': 'image_24032025_11_15_34_010137m0.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 7.62939453125e-06 ????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003284454345703125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21640167, '2025-03-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1682789,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023195981979370117 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= 1682789 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1682789, 'dashboard_run_id': 1691165, 'mtr_portfolio_id': 21638619, 'dashboard_result_id': 9573976, '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_P21638619_24-03-2025_11_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21638620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21638621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21638622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21638623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21638624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21638625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21638626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21638627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21638628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21638629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21638630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21638631, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1691165, 'mtr_portfolio_id': 21639313, 'dashboard_result_id': 9573977, '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_P21639313_24-03-2025_11_19_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21639410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21639411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21639412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21639413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21639414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21639415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21639416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21639417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21639418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21639419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21639420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21639421, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1691165, 'mtr_portfolio_id': 21640167, 'dashboard_result_id': 9573978, '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_P21640167_24-03-2025_11_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21640171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21640172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21640173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21640174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21640175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21640176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21640177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21640178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21640179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21640180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21640181, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21640182, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1691165, 'mtr_portfolio_id': 21641025, 'dashboard_result_id': 9573980, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21638619 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': 2684803, 'mtr_portfolio_id': 21638619, 'created_at': datetime.datetime(2025, 3, 24, 11, 5), 'result': '0.08947101264544254', 'result_long': None, 'result_double': None}] Qualite : 0.08947101264544254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21638619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21638619_24-03-2025_11_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21638619 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_P21638619_24-03-2025_11_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21638620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21638621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21638622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21638623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21638624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21638625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21638626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21638627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21638628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21638629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21638630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21638631, 'pht': 3726}}" where mtr_portfolio_id = 21638619 and dashboard_run_id = 1691165 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`=21638619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9573976, 0.08947101264544254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21638619_24-03-2025_11_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21638620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21638621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21638622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21638623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21638624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21638625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21638626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21638627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21638628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21638629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21638630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21638631, '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 = 21639313 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': 2684873, 'mtr_portfolio_id': 21639313, 'created_at': datetime.datetime(2025, 3, 24, 11, 19, 58), 'result': '0.05499586777422603', 'result_long': None, 'result_double': None}] Qualite : 0.05499586777422603 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21639313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21639313_24-03-2025_11_19_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21639313 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_P21639313_24-03-2025_11_19_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21639410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21639411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21639412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21639413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21639414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21639415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21639416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21639417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21639418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21639419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21639420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21639421, 'pht': 3726}}" where mtr_portfolio_id = 21639313 and dashboard_run_id = 1691165 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`=21639313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9573977, 0.05499586777422603, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21639313_24-03-2025_11_19_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21639410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21639411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21639412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21639413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21639414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21639415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21639416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21639417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21639418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21639419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21639420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21639421, '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 = 21640167 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': 2684920, 'mtr_portfolio_id': 21640167, 'created_at': datetime.datetime(2025, 3, 24, 11, 34, 58), 'result': '0.07521718840364347', 'result_long': None, 'result_double': None}] Qualite : 0.07521718840364347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21640167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21640167_24-03-2025_11_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21640167 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_P21640167_24-03-2025_11_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21640171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21640172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21640173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21640174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21640175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21640176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21640177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21640178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21640179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21640180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21640181, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21640182, 'pht': 3726}}" where mtr_portfolio_id = 21640167 and dashboard_run_id = 1691165 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`=21640167 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9573978, 0.07521718840364347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21640167_24-03-2025_11_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21640171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21640172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21640173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21640174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21640175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21640176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21640177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21640178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21640179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21640180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21640181, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21640182, '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 = 21641025 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21641025 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21641025 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21641025%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21641025 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21641025 and dashboard_run_id = 1691165 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21638619,21639313,21640167,21641025) result : ((1346750714,), (1346750728,), (1346750735,), (1346750738,), (1346750912,), (1346750927,), (1346750962,), (1346750969,), (1346751005,), (1346751013,), (1346751017,), (1346751060,), (1346751075,), (1346751256,), (1346751268,), (1346751276,), (1346751280,), (1346751445,), (1346751448,), (1346751451,), (1346751453,), (1346751510,), (1346751513,), (1346751516,), (1346751518,), (1346751523,), (1346751674,), (1346751731,), (1346751737,), (1346751747,), (1346751941,), (1346751945,), (1346751949,), (1346751952,), (1346752134,), (1346752143,), (1346752154,), (1346752167,), (1346752182,), (1346752188,), (1346752267,), (1346752278,), (1346752294,), (1346752308,), (1346752339,), (1346752352,), (1346752370,), (1346752372,), (1346752522,), (1346752527,), (1346752566,), (1346752613,), (1346753170,), (1346753240,), (1346753305,), (1346753384,), (1346753466,), (1346754441,), (1346754475,), (1346754525,), (1346755113,), (1346754754,), (1346754799,), (1346754934,), (1346755082,), (1346755306,), (1346755319,), (1346755331,), (1346755340,), (1346755400,), (1346755406,), (1346755416,), (1346755421,), (1346755426,), (1346755446,), (1346755686,), (1346755696,), (1346755732,), (1346755741,), (1346755744,), (1346755794,), (1346755806,), (1346755810,), (1346755813,), (1346755854,), (1346755864,), (1346755869,), (1346755874,), (1346755885,), (1346755895,), (1346755922,), (1346755954,), (1346756029,), (1346756085,), (1346756096,), (1346756102,), (1346756199,), (1346756226,), (1346756235,), (1346756248,), (1346756328,), (1346756412,), (1346756417,), (1346756571,), (1346756574,), (1346756583,), (1346756596,), (1346756714,), (1346756730,), (1346756822,), (1346756825,), (1346756829,), (1346756840,), (1346757037,), (1346757067,), (1346757093,), (1346757112,), (1346757139,), (1346757219,), (1346757227,), (1346757231,), (1346757295,), (1346757303,), (1346757309,), (1346757327,), (1346757336,), (1346757345,), (1346757666,), (1346757493,), (1346757521,), (1346757564,), (1346757616,), (1346757646,), (1346757884,), (1346757911,), (1346757954,), (1346757991,), (1346758137,), (1346758168,), (1346758201,), (1346758242,), (1346758274,), (1346758306,), (1346758649,), (1346758693,), (1346758724,), (1346758759,), (1346758784,), (1346758839,), (1346758986,), (1346758990,), (1346758994,), (1346759041,), (1346759046,), (1346759050,), (1346759051,), (1346759283,), (1346759289,), (1346759295,), (1346759298,), (1346759319,), (1346759390,), (1346759394,), (1346759471,), (1346759481,), (1346759498,), (1346759509,), (1346759525,), (1346759533,), (1346759785,), (1346759809,), (1346759824,), (1346759828,), (1346759833,), (1346759869,), (1346759873,), (1346760018,), (1346760108,), (1346760209,), (1346760213,), (1346760216,), (1346760220,), (1346760227,), (1346760306,), (1346760322,), (1346760327,), (1346760349,), (1346760417,), (1346760442,), (1346760510,), (1346760514,), (1346760518,), (1346760520,), (1346760526,), (1346760626,), (1346760634,), (1346760643,), (1346760648,), (1346760652,), (1346760661,), (1346760824,), (1346760738,), (1346760749,), (1346760779,), (1346760795,), (1346761142,), (1346761174,), (1346761181,), (1346761201,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24032025': {'nb_upload': 73, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21640167]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1346760824] map_info['map_portfolio_photo'] : {21640167: [1346760824, 1346760661, 1346760652, 1346760648, 1346760643, 1346760634, 1346760626, 1346760526, 1346760520, 1346760518, 1346760514, 1346760510, 1346760442, 1346760417, 1346760349, 1346760327, 1346760322, 1346760306, 1346760227, 1346760220, 1346760216, 1346760213, 1346760209, 1346760108, 1346760018, 1346759873, 1346759869, 1346759833, 1346759828, 1346759824, 1346759809, 1346759785, 1346759533, 1346759525, 1346759509, 1346759498, 1346759481, 1346759471, 1346759394, 1346759390, 1346759319, 1346759298, 1346759295, 1346759289, 1346759283, 1346759051, 1346759050, 1346759046, 1346759041, 1346758994, 1346758990, 1346758986, 1346758839, 1346758784, 1346758759, 1346758724, 1346758693, 1346758649, 1346758306, 1346758274, 1346758242, 1346758201, 1346758168, 1346758137, 1346757991, 1346757954, 1346757911, 1346757884, 1346757646, 1346757616, 1346757564, 1346757521, 1346757493]} final : True mtd_id 4302 list_pids : [1346760824] Looping around the photos to save general results len do output : 1 /21640167Didn'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, '2684920') ('4302', '21640167', '1346760824', None, None, None, None, None, '2684920') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21640167', 'None', None, None, None, None, '2684920'), ('4302', '21640167', '1346760824', None, None, None, None, None, '2684920')] time used for this insertion : 0.011901378631591797 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.236865758895874 time spend to save output : 0.012093305587768555 total time spend for step 5 : 1.2489590644836426 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 (2684920) 2.04user 2.47system 0:14.92elapsed 30%CPU (0avgtext+0avgdata 156368maxresident)k 128inputs+15880outputs (1major+63104minor)pagefaults 0swaps