python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 2631240 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2631616) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2631616) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21000676 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2631616'] with mtr_portfolio_ids : ['21000676'] and first list_photo_ids : [] new path : /proc/2631240/ Name: python3 Umask: 0002 State: R (running) Tgid: 2631240 Ngid: 0 Pid: 2631240 PPid: 2631239 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2631240 NSpid: 2631240 NSpgid: 2628017 NSsid: 2628017 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99012 kB VmRSS: 99012 kB RssAnon: 59808 kB RssFile: 39204 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 54 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2631240', 'Ngid': '0', 'Pid': '2631240', 'PPid': '2631239', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2631240', 'NSpid': '2631240', 'NSpgid': '2628017', 'NSsid': '2628017', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99012 kB', 'VmRSS': '99012 kB', 'RssAnon': '59808 kB', 'RssFile': '39204 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '54', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '2631240', '1106840', '0', '1106840', '865588', '99012', b'', 'marlene', '2631616') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (21000676) 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 (2631616 ) ) 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 (21000676) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340765050, 'portfolio_id': 21000676}, {'photo_id': 1340765046, 'portfolio_id': 21000676}, {'photo_id': 1340765042, 'portfolio_id': 21000676}, {'photo_id': 1340764542, 'portfolio_id': 21000676}, {'photo_id': 1340763321, 'portfolio_id': 21000676}, {'photo_id': 1340763287, 'portfolio_id': 21000676}, {'photo_id': 1340763251, 'portfolio_id': 21000676}, {'photo_id': 1340763239, 'portfolio_id': 21000676}, {'photo_id': 1340763233, 'portfolio_id': 21000676}, {'photo_id': 1340763229, 'portfolio_id': 21000676}, {'photo_id': 1340763224, 'portfolio_id': 21000676}, {'photo_id': 1340763187, 'portfolio_id': 21000676}, {'photo_id': 1340763173, 'portfolio_id': 21000676}, {'photo_id': 1340763122, 'portfolio_id': 21000676}, {'photo_id': 1340763118, 'portfolio_id': 21000676}, {'photo_id': 1340763113, 'portfolio_id': 21000676}, {'photo_id': 1340763109, 'portfolio_id': 21000676}, {'photo_id': 1340763083, 'portfolio_id': 21000676}, {'photo_id': 1340763080, 'portfolio_id': 21000676}, {'photo_id': 1340763077, 'portfolio_id': 21000676}, {'photo_id': 1340763074, 'portfolio_id': 21000676}, {'photo_id': 1340763071, 'portfolio_id': 21000676}, {'photo_id': 1340763066, 'portfolio_id': 21000676}, {'photo_id': 1340762811, 'portfolio_id': 21000676}, {'photo_id': 1340762806, 'portfolio_id': 21000676}, {'photo_id': 1340762801, 'portfolio_id': 21000676}, {'photo_id': 1340762621, 'portfolio_id': 21000676}, {'photo_id': 1340762599, 'portfolio_id': 21000676}, {'photo_id': 1340762596, 'portfolio_id': 21000676}, {'photo_id': 1340762591, 'portfolio_id': 21000676}, {'photo_id': 1340762586, 'portfolio_id': 21000676}, {'photo_id': 1340762580, 'portfolio_id': 21000676}, {'photo_id': 1340762062, 'portfolio_id': 21000676}, {'photo_id': 1340762057, 'portfolio_id': 21000676}, {'photo_id': 1340762052, 'portfolio_id': 21000676}, {'photo_id': 1340762047, 'portfolio_id': 21000676}, {'photo_id': 1340762043, 'portfolio_id': 21000676}, {'photo_id': 1340762038, 'portfolio_id': 21000676}, {'photo_id': 1340762011, 'portfolio_id': 21000676}, {'photo_id': 1340762007, 'portfolio_id': 21000676}, {'photo_id': 1340762005, 'portfolio_id': 21000676}, {'photo_id': 1340762000, 'portfolio_id': 21000676}, {'photo_id': 1340761679, 'portfolio_id': 21000676}, {'photo_id': 1340761674, 'portfolio_id': 21000676}, {'photo_id': 1340761668, 'portfolio_id': 21000676}, {'photo_id': 1340761656, 'portfolio_id': 21000676}] map_portfolio_id_photo_id: {21000676: [1340765050, 1340765046, 1340765042, 1340764542, 1340763321, 1340763287, 1340763251, 1340763239, 1340763233, 1340763229, 1340763224, 1340763187, 1340763173, 1340763122, 1340763118, 1340763113, 1340763109, 1340763083, 1340763080, 1340763077, 1340763074, 1340763071, 1340763066, 1340762811, 1340762806, 1340762801, 1340762621, 1340762599, 1340762596, 1340762591, 1340762586, 1340762580, 1340762062, 1340762057, 1340762052, 1340762047, 1340762043, 1340762038, 1340762011, 1340762007, 1340762005, 1340762000, 1340761679, 1340761674, 1340761668, 1340761656]} ##### 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.014865398406982422 #### 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 Tue Mar 4 08:46: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 (21000676) 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 : 21000676 get user id for portfolio 21000676 get sub ptf for main ptf 21000676, type 3726 and hashtags ['plastique', 'cartonnette', 'Carton_gris', 'autre_refus', 'papier', 'mal_croppe', 'flou', 'kraft', 'Teint_Dans_La_Masse', 'metal', 'environnement', 'Carton_brun'] 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`=21000676 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','Carton_gris','autre_refus','papier','mal_croppe','flou','kraft','Teint_Dans_La_Masse','metal','environnement','Carton_brun')) 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`=21000676 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','Carton_gris','autre_refus','papier','mal_croppe','flou','kraft','Teint_Dans_La_Masse','metal','environnement','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21000676, 'sub_port_id': 21000678, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619008, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'mal_croppe': {'main_port_id': 21000676, 'sub_port_id': 21000679, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619009, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'flou': {'main_port_id': 21000676, 'sub_port_id': 21000680, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619010, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21000676, 'sub_port_id': 21000681, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619011, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'cartonnette': {'main_port_id': 21000676, 'sub_port_id': 21000682, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619012, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'metal': {'main_port_id': 21000676, 'sub_port_id': 21000683, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619013, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'papier': {'main_port_id': 21000676, 'sub_port_id': 21000684, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619014, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'plastique': {'main_port_id': 21000676, 'sub_port_id': 21000685, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619015, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'autre_refus': {'main_port_id': 21000676, 'sub_port_id': 21000686, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619016, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'Carton_brun': {'main_port_id': 21000676, 'sub_port_id': 21000687, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619017, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'environnement': {'main_port_id': 21000676, 'sub_port_id': 21000688, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619018, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'kraft': {'main_port_id': 21000676, 'sub_port_id': 21000689, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619019, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 42, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21000678 , 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=21000676 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 (21000678) result : ((1340762820,), (1340763254,), (1340763474,), (1340764229,), (1340764253,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000676) result : ((1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,)) 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 (1340762000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21000679 , 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=21000676 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 (21000679) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000676) result : ((1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,)) 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 (1340762000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21000680 , 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=21000676 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 (21000680) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000676) result : ((1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,)) 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 (1340762000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21000681 , 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=21000676 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 (21000681) result : ((1340762938,), (1340762939,), (1340762941,), (1340762942,), (1340763114,), (1340763148,), (1340763149,), (1340763150,), (1340763151,), (1340763152,), (1340763153,), (1340763237,), (1340763355,), (1340763357,), (1340763358,), (1340764232,), (1340764252,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000676) result : ((1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,)) 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 (1340762000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21000682 , 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=21000676 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 (21000682) result : ((1340762078,), (1340762822,), (1340763165,), (1340763166,), (1340763247,), (1340763248,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000676) result : ((1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,)) 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 (1340762000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21000683 , 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=21000676 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 (21000683) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000676) result : ((1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,)) 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 (1340762000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21000684 , 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=21000676 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 (21000684) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000676) result : ((1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,)) 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 (1340762000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21000685 , 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=21000676 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 (21000685) result : ((1340762823,), (1340762824,), (1340763055,), (1340763056,), (1340763057,), (1340763176,), (1340763177,), (1340763179,), (1340763252,), (1340764250,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000676) result : ((1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,)) 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 (1340762000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21000686 , 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=21000676 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 (21000686) result : ((1340762073,), (1340762074,), (1340762075,), (1340762076,), (1340762814,), (1340762815,), (1340762816,), (1340762817,), (1340762997,), (1340762999,), (1340763000,), (1340763001,), (1340763003,), (1340763004,), (1340763117,), (1340763157,), (1340763158,), (1340763159,), (1340763160,), (1340763161,), (1340763162,), (1340763163,), (1340763164,), (1340763241,), (1340763242,), (1340763243,), (1340763244,), (1340763253,), (1340763435,), (1340763436,), (1340763437,), (1340763439,), (1340763440,), (1340763442,), (1340763444,), (1340763445,), (1340763446,), (1340763448,), (1340764226,), (1340764227,), (1340764228,), (1340764235,), (1340764967,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000676) result : ((1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,)) 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 (1340762000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21000687 , 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=21000676 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 (21000687) result : ((1340763030,), (1340763031,), (1340763170,), (1340763171,), (1340763172,), (1340763174,), (1340763175,), (1340763250,), (1340763490,), (1340764230,), (1340764231,), (1340764248,), (1340764968,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000676) result : ((1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,)) 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 (1340762000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21000688 , 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=21000676 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 (21000688) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000676) result : ((1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,)) 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 (1340762000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21000689 , 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=21000676 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 (21000689) result : ((1340762825,), (1340763185,), (1340763186,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000676) result : ((1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,)) 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 (1340762000) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21000676 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','Carton_gris','autre_refus','papier','mal_croppe','flou','kraft','Teint_Dans_La_Masse','metal','environnement','Carton_brun')) 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`=21000676 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','Carton_gris','autre_refus','papier','mal_croppe','flou','kraft','Teint_Dans_La_Masse','metal','environnement','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21000676, 'sub_port_id': 21000690, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619020, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'mal_croppe': {'main_port_id': 21000676, 'sub_port_id': 21000691, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619021, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'flou': {'main_port_id': 21000676, 'sub_port_id': 21000692, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619022, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21000676, 'sub_port_id': 21000693, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619023, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'cartonnette': {'main_port_id': 21000676, 'sub_port_id': 21000694, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619024, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'metal': {'main_port_id': 21000676, 'sub_port_id': 21000695, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619025, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'papier': {'main_port_id': 21000676, 'sub_port_id': 21000696, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619026, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'plastique': {'main_port_id': 21000676, 'sub_port_id': 21000697, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619027, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'autre_refus': {'main_port_id': 21000676, 'sub_port_id': 21000698, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619028, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'Carton_brun': {'main_port_id': 21000676, 'sub_port_id': 21000699, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619029, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'environnement': {'main_port_id': 21000676, 'sub_port_id': 21000700, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619030, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}, 'kraft': {'main_port_id': 21000676, 'sub_port_id': 21000701, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13619031, 'last_updated_at': datetime.datetime(2025, 3, 4, 8, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 8, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 8, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21000690,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21000678 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21000691,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21000679 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21000692,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21000680 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21000693,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21000681 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21000694,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21000682 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21000695,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21000683 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21000696,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21000684 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21000697,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21000685 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21000698,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21000686 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21000699,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21000687 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21000700,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21000688 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21000701,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21000689 lien utilise dans velours : https://www.fotonower.com/velours/21000690,21000691,21000692,21000693,21000694,21000695,21000696,21000697,21000698,21000699,21000700,21000701?tags=Carton_gris,mal_croppe,flou,Teint_Dans_La_Masse,cartonnette,metal,papier,plastique,autre_refus,Carton_brun,environnement,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21000676]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340765050, 1340765046, 1340765042] map_info['map_portfolio_photo'] : {21000676: [1340765050, 1340765046, 1340765042, 1340764542, 1340763321, 1340763287, 1340763251, 1340763239, 1340763233, 1340763229, 1340763224, 1340763187, 1340763173, 1340763122, 1340763118, 1340763113, 1340763109, 1340763083, 1340763080, 1340763077, 1340763074, 1340763071, 1340763066, 1340762811, 1340762806, 1340762801, 1340762621, 1340762599, 1340762596, 1340762591, 1340762586, 1340762580, 1340762062, 1340762057, 1340762052, 1340762047, 1340762043, 1340762038, 1340762011, 1340762007, 1340762005, 1340762000, 1340761679, 1340761674, 1340761668, 1340761656]} final : False mtd_id 4302 list_pids : [1340765050, 1340765046, 1340765042] Looping around the photos to save general results len do output : 1 /21000676. 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, '2631616') ('4302', '21000676', '1340765050', None, None, None, None, None, '2631616') ('4302', None, None, None, None, None, None, None, '2631616') ('4302', '21000676', '1340765046', None, None, None, None, None, '2631616') ('4302', None, None, None, None, None, None, None, '2631616') ('4302', '21000676', '1340765042', None, None, None, None, None, '2631616') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '21000676', "{'Carton_gris': 21000678, 'mal_croppe': 21000679, 'flou': 21000680, 'Teint_Dans_La_Masse': 21000681, 'cartonnette': 21000682, 'metal': 21000683, 'papier': 21000684, 'plastique': 21000685, 'autre_refus': 21000686, 'Carton_brun': 21000687, 'environnement': 21000688, 'kraft': 21000689}", None, None, None, None, '2631616'), ('4302', '21000676', '1340765050', None, None, None, None, None, '2631616'), ('4302', '21000676', '1340765046', None, None, None, None, None, '2631616'), ('4302', '21000676', '1340765042', None, None, None, None, None, '2631616')] time used for this insertion : 0.012761354446411133 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4590620994567871 time spend to save output : 0.012987136840820312 total time spend for step 1 : 0.4720492362976074 step2:final Tue Mar 4 08:46:57 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 (21000676) 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 21000676 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340761679,1340761674,1340761668,1340761656,1340762011,1340762007,1340762005,1340762000,1340762062,1340762057,1340762052,1340762047,1340762043,1340762038,1340762621,1340762599,1340762596,1340762591,1340762586,1340762580,1340762811,1340762806,1340762801,1340763083,1340763080,1340763077,1340763074,1340763071,1340763066,1340763122,1340763118,1340763113,1340763109,1340763187,1340763173,1340763251,1340763239,1340763233,1340763229,1340763224,1340763321,1340763287,1340765050,1340764542,1340765046,1340765042); 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([21000676]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340765050: ('0.08254268052943217',), 1340765046: ('0.08254268052943217',), 1340765042: ('0.08254268052943217',)} new output for save of step final : {1340765050: ('0.08254268052943217',), 1340765046: ('0.08254268052943217',), 1340765042: ('0.08254268052943217',)} [1340765050, 1340765046, 1340765042] map_info['map_portfolio_photo'] : {21000676: [1340765050, 1340765046, 1340765042, 1340764542, 1340763321, 1340763287, 1340763251, 1340763239, 1340763233, 1340763229, 1340763224, 1340763187, 1340763173, 1340763122, 1340763118, 1340763113, 1340763109, 1340763083, 1340763080, 1340763077, 1340763074, 1340763071, 1340763066, 1340762811, 1340762806, 1340762801, 1340762621, 1340762599, 1340762596, 1340762591, 1340762586, 1340762580, 1340762062, 1340762057, 1340762052, 1340762047, 1340762043, 1340762038, 1340762011, 1340762007, 1340762005, 1340762000, 1340761679, 1340761674, 1340761668, 1340761656]} final : False mtd_id 4302 list_pids : [1340765050, 1340765046, 1340765042] Looping around the photos to save general results len do output : 3 /1340765050.Didn't retrieve data . /1340765046.Didn't retrieve data . /1340765042.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, '2631616') ('4302', '21000676', '1340765050', None, None, None, None, None, '2631616') ('4302', None, None, None, None, None, None, None, '2631616') ('4302', '21000676', '1340765046', None, None, None, None, None, '2631616') ('4302', None, None, None, None, None, None, None, '2631616') ('4302', '21000676', '1340765042', None, None, None, None, None, '2631616') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '21000676', '1340765050', '0.08254268052943217', None, None, None, None, '2631616'), ('4302', '21000676', '1340765046', '0.08254268052943217', None, None, None, None, '2631616'), ('4302', '21000676', '1340765042', '0.08254268052943217', None, None, None, None, '2631616')] time used for this insertion : 0.011751890182495117 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0709536075592041 time spend to save output : 0.011991500854492188 total time spend for step 2 : 0.08294510841369629 step3:velours_tree Tue Mar 4 08:46:57 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 : {21000676: [{'Carton_gris': 21000678, 'mal_croppe': 21000679, 'flou': 21000680, 'Teint_Dans_La_Masse': 21000681, 'cartonnette': 21000682, 'metal': 21000683, 'papier': 21000684, 'plastique': 21000685, 'autre_refus': 21000686, 'Carton_brun': 21000687, 'environnement': 21000688, 'kraft': 21000689}]} input_args_next_step : {21000676: ()} output_args : {21000676: [{'Carton_gris': 21000678, 'mal_croppe': 21000679, 'flou': 21000680, 'Teint_Dans_La_Masse': 21000681, 'cartonnette': 21000682, 'metal': 21000683, 'papier': 21000684, 'plastique': 21000685, 'autre_refus': 21000686, 'Carton_brun': 21000687, 'environnement': 21000688, 'kraft': 21000689}]} args : 21000676 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 21000678, 'mal_croppe': 21000679, 'flou': 21000680, 'Teint_Dans_La_Masse': 21000681, 'cartonnette': 21000682, 'metal': 21000683, 'papier': 21000684, 'plastique': 21000685, 'autre_refus': 21000686, 'Carton_brun': 21000687, 'environnement': 21000688, 'kraft': 21000689},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21000676) 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([21000676]) 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.4804370403289795 time spend to save output : 7.534027099609375e-05 total time spend for step 3 : 0.4805123805999756 step4:send_mail_cod Tue Mar 4 08:46:57 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 : {1340765050: ('0.08254268052943217',), 1340765046: ('0.08254268052943217',), 1340765042: ('0.08254268052943217',)} input_args_next_step : {1340765050: ()} output_args : {1340765050: ('0.08254268052943217',), 1340765046: ('0.08254268052943217',), 1340765042: ('0.08254268052943217',)} args : 1340765050 depend.output_id : 0 input_args_next_step : {1340765050: ('0.08254268052943217',), 1340765046: ()} output_args : {1340765050: ('0.08254268052943217',), 1340765046: ('0.08254268052943217',), 1340765042: ('0.08254268052943217',)} args : 1340765046 depend.output_id : 0 input_args_next_step : {1340765050: ('0.08254268052943217',), 1340765046: ('0.08254268052943217',), 1340765042: ()} output_args : {1340765050: ('0.08254268052943217',), 1340765046: ('0.08254268052943217',), 1340765042: ('0.08254268052943217',)} args : 1340765042 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {21000676: [{'Carton_gris': 21000678, 'mal_croppe': 21000679, 'flou': 21000680, 'Teint_Dans_La_Masse': 21000681, 'cartonnette': 21000682, 'metal': 21000683, 'papier': 21000684, 'plastique': 21000685, 'autre_refus': 21000686, 'Carton_brun': 21000687, 'environnement': 21000688, 'kraft': 21000689}]} input_args_next_step : {1340765050: ('0.08254268052943217',), 1340765046: ('0.08254268052943217',), 1340765042: ('0.08254268052943217',), 21000676: ()} output_args : {21000676: [{'Carton_gris': 21000678, 'mal_croppe': 21000679, 'flou': 21000680, 'Teint_Dans_La_Masse': 21000681, 'cartonnette': 21000682, 'metal': 21000683, 'papier': 21000684, 'plastique': 21000685, 'autre_refus': 21000686, 'Carton_brun': 21000687, 'environnement': 21000688, 'kraft': 21000689}]} args : 21000676 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 :4, first value : ('0.08254268052943217',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21000676) 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 (1340765050,1340765046,1340765042) Found this number of photos: 3 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340765042 begin to download photo : 1340765046 begin to download photo : 1340765050 download finish for photo 1340765050 download finish for photo 1340765046 download finish for photo 1340765042 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette210006791741074420/ imagette210006801741074420/ length of list_filenames : 3 ; length of list_pids : 3 ; length of list_args : 3 results_Auto_P21000676_04-03-2025_08_47_00.pdf 21000679 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=21000679 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210006791741074420 21000680 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=21000680 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210006801741074420 21000682 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=21000682 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340762078: '1741073583_3621307_1340761656_8854d4f5eeaeeb509f2b1d86812b40b8_rle_crop_3693037059_0.png', 1340762822: '1741073691_3622507_1340762000_1db4e43ac4f1f5d9aa9ede8579837ee7_rle_crop_3693037289_0.png', 1340763165: '1741073831_3624168_1340762580_9e936ebd8ccea8e8020b5f74a743b10d_rle_crop_3693042833_0.png', 1340763166: '1741073831_3624168_1340762580_9e936ebd8ccea8e8020b5f74a743b10d_rle_crop_3693042824_0.png', 1340763247: '1741073932_3625124_1340763113_273057b25380894204bdb1d4c508a7c9_rle_crop_3693043336_0.png', 1340763248: '1741073932_3625124_1340763109_35cf86fd048688ff1e72dc4ec3ff93d1_rle_crop_3693043349_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8a8f5b47de36e7181d534e1b9f5604a4_24049823.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/297de8fd90a1dce3bb47713cafd6b879_2545253.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/0012752d3f4c577937571a938178889f_84626045.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/08fa0919067e4b5e7a2772b5acde384f_26177680.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/10bc89abba16399d9def656423148dca_27039518.png change filename to text .imagette210006821741074420/ imagette210006821741074420/1741073831_3624168_1340762580_9e936ebd8ccea8e8020b5f74a743b10d_rle_crop_3693042824_0.png.png imagette210006821741074420/1741073691_3622507_1340762000_1db4e43ac4f1f5d9aa9ede8579837ee7_rle_crop_3693037289_0.png.png imagette210006821741074420/1741073831_3624168_1340762580_9e936ebd8ccea8e8020b5f74a743b10d_rle_crop_3693042833_0.png.png imagette210006821741074420/1741073932_3625124_1340763109_35cf86fd048688ff1e72dc4ec3ff93d1_rle_crop_3693043349_0.png.png imagette210006821741074420/1741073583_3621307_1340761656_8854d4f5eeaeeb509f2b1d86812b40b8_rle_crop_3693037059_0.png.png imagette210006821741074420/1741073932_3625124_1340763113_273057b25380894204bdb1d4c508a7c9_rle_crop_3693043336_0.png.png imagette210006831741074421/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/da16e2f9c6ed89f5ccfc4d81a3e6fc48_49153966.png imagette210006821741074420 21000683 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=21000683 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210006831741074421 21000685 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=21000685 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340762823: '1741073691_3622507_1340762005_695f2d534c9301bbf70f5224ba322aa7_rle_crop_3693037279_0.png', 1340762824: '1741073691_3622507_1340762000_1db4e43ac4f1f5d9aa9ede8579837ee7_rle_crop_3693037286_0.png', 1340763055: '1741073715_3622741_1340762043_4f8847b84b8e87c2a12f624ef9515706_rle_crop_3693037518_0.png', 1340763056: '1741073715_3622741_1340762038_8b4f96c9c4173a5751762b8c291f9cfc_rle_crop_3693037534_0.png', 1340763057: '1741073715_3622741_1340762038_8b4f96c9c4173a5751762b8c291f9cfc_rle_crop_3693037523_0.png', 1340763176: '1741073831_3624168_1340762599_fd9361a309f10483b2e02d02e7cc4ed9_rle_crop_3693042483_0.png', 1340763177: '1741073831_3624168_1340762599_fd9361a309f10483b2e02d02e7cc4ed9_rle_crop_3693042488_0.png', 1340763179: '1741073831_3624168_1340762591_3376d554898eca290fd77a3be013caa2_rle_crop_3693042627_0.png', 1340763252: '1741073932_3625124_1340763109_35cf86fd048688ff1e72dc4ec3ff93d1_rle_crop_3693043345_0.png', 1340764250: '1741074061_3626713_1340763173_9f61e3f05a660aa4295b0208efd5f9b3_rle_crop_3693045392_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/e28684fc30830b70752c29e428755c6a_13661500.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/180c2ddad039ffba8976c045ad257b91_53607964.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/08e9e642e655e42cac6b107ecc798285_76439994.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b56eb45d8dd25dbd4cb04fa530548f48_8499233.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5bd81e62444fa520b496f6092b7d38c3_76385422.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1c499de4ea6366595474e1d25a6167fa_84805307.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ef7b67a5c8233e1c28519a84ca602ca3_38553318.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/be6cadcc29807cd6e6b2d96749485951_52943064.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/718392d59ff43c3e935a29b094f90084_67901961.png change filename to text .imagette210006851741074421/ imagette210006851741074421/1741073831_3624168_1340762599_fd9361a309f10483b2e02d02e7cc4ed9_rle_crop_3693042488_0.png.png imagette210006851741074421/1741074061_3626713_1340763173_9f61e3f05a660aa4295b0208efd5f9b3_rle_crop_3693045392_0.png.png imagette210006851741074421/1741073715_3622741_1340762043_4f8847b84b8e87c2a12f624ef9515706_rle_crop_3693037518_0.png.png imagette210006851741074421/1741073691_3622507_1340762005_695f2d534c9301bbf70f5224ba322aa7_rle_crop_3693037279_0.png.png imagette210006851741074421/1741073831_3624168_1340762599_fd9361a309f10483b2e02d02e7cc4ed9_rle_crop_3693042483_0.png.png imagette210006851741074421/1741073831_3624168_1340762591_3376d554898eca290fd77a3be013caa2_rle_crop_3693042627_0.png.png imagette210006851741074421/1741073932_3625124_1340763109_35cf86fd048688ff1e72dc4ec3ff93d1_rle_crop_3693043345_0.png.png imagette210006851741074421/1741073691_3622507_1340762000_1db4e43ac4f1f5d9aa9ede8579837ee7_rle_crop_3693037286_0.png.png imagette210006851741074421/1741073715_3622741_1340762038_8b4f96c9c4173a5751762b8c291f9cfc_rle_crop_3693037534_0.png.png imagette210006851741074421/1741073715_3622741_1340762038_8b4f96c9c4173a5751762b8c291f9cfc_rle_crop_3693037523_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/cbbe5801a9a68a98171b06ab20568363_33193873.png imagette210006851741074421 21000686 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=21000686 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340763440: '1741073972_3625666_1340763077_0e8013ce63eff1c7ba71dde80d23fbe8_rle_crop_3693043604_0.png', 1340763164: '1741073831_3624168_1340762580_9e936ebd8ccea8e8020b5f74a743b10d_rle_crop_3693042827_0.png', 1340763241: '1741073932_3625124_1340763118_01facbe1c046a936d195ad9234f6448d_rle_crop_3693043299_0.png', 1340763242: '1741073932_3625124_1340763118_01facbe1c046a936d195ad9234f6448d_rle_crop_3693043294_0.png', 1340763243: '1741073932_3625124_1340763113_273057b25380894204bdb1d4c508a7c9_rle_crop_3693043337_0.png', 1340763244: '1741073932_3625124_1340763109_35cf86fd048688ff1e72dc4ec3ff93d1_rle_crop_3693043350_0.png', 1340763253: '1741073952_3625384_1340763083_f10f280b60bf5b6ef8ce5a5bbed7674d_rle_crop_3693043371_0.png', 1340763435: '1741073972_3625666_1340763122_d9b34c1f340ba962cfe7af913ad7c429_rle_crop_3693043562_0.png', 1340763436: '1741073972_3625666_1340763122_d9b34c1f340ba962cfe7af913ad7c429_rle_crop_3693043568_0.png', 1340763437: '1741073972_3625666_1340763122_d9b34c1f340ba962cfe7af913ad7c429_rle_crop_3693043565_0.png', 1340763439: '1741073972_3625666_1340763080_61765ac269e1d6bb6eabbad7ef19e889_rle_crop_3693043583_0.png', 1340763163: '1741073831_3624168_1340762580_9e936ebd8ccea8e8020b5f74a743b10d_rle_crop_3693042832_0.png', 1340763442: '1741073972_3625666_1340763074_f7c34cc482bace9be5c266128d7e39d0_rle_crop_3693043620_0.png', 1340763444: '1741073972_3625666_1340763071_8d69d7ab6feec3f639dae7734d91c616_rle_crop_3693043631_0.png', 1340763445: '1741073972_3625666_1340763071_8d69d7ab6feec3f639dae7734d91c616_rle_crop_3693043626_0.png', 1340763446: '1741073972_3625666_1340763066_d60f7003e2520e346ff2cb6846892312_rle_crop_3693043650_0.png', 1340763448: '1741073972_3625666_1340763066_d60f7003e2520e346ff2cb6846892312_rle_crop_3693043646_0.png', 1340764226: '1741074053_3626584_1340763233_39c69912041842aba2b2a697036c9284_rle_crop_3693045321_0.png', 1340764227: '1741074053_3626584_1340763229_4b4a4f5223b0b245168003b4a5841c9d_rle_crop_3693045363_0.png', 1340764228: '1741074053_3626584_1340763224_22ffb64e83a4432bd491042d28adcf46_rle_crop_3693045378_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d3833c93a355d57e87bcf17b5363a7bc_95344739.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9c88d6558a8856a0f6d0b94fd237b6fc_40409569.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/026a9a830f7c0a6c54cb51544813f26c_90398056.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/21d3b662c2996a915f443628b206b7fb_6264226.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/6ca4d77cf3c241c22a8f281ce61335b5_36921846.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b687482b6a9819fbed1d9fd6c98da171_49792103.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/729f5e1442aaaacbf60e202afd42a84c_7254650.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ffad482d96a0e580fc7c91f268ff8563_92992745.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8aebd1a4599a293d64a8bb0da0f1227e_1208784.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3c11f39ac33cb8c5ecc40a3f6dd775f5_52929626.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8641f41f5181f106b9e2fd6f58d57d6d_73165660.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9e07d94166d3aedac5ef75365decf4ef_60868159.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/6fee60de88183ddc96361e528b2cf886_58892390.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/e28b1588a95656c9e5a8039da669e21f_51308708.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7d749b6db368034b4a92c17255de848b_62349133.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a38f5655b620141e61698e982068743a_34614239.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/57bbd011549547b74e8e9804c7fb45bd_28812441.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/e61b2cad82557d242deb8bd8321a5ea0_81006026.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/cc257804167a12e6f864234d4aa485dc_10375447.png change filename to text .imagette210006861741074421/ imagette210006861741074421/1741073972_3625666_1340763122_d9b34c1f340ba962cfe7af913ad7c429_rle_crop_3693043565_0.png.png imagette210006861741074421/1741073952_3625384_1340763083_f10f280b60bf5b6ef8ce5a5bbed7674d_rle_crop_3693043371_0.png.png imagette210006861741074421/1741073972_3625666_1340763066_d60f7003e2520e346ff2cb6846892312_rle_crop_3693043650_0.png.png imagette210006861741074421/1741073972_3625666_1340763077_0e8013ce63eff1c7ba71dde80d23fbe8_rle_crop_3693043604_0.png.png imagette210006861741074421/1741073972_3625666_1340763071_8d69d7ab6feec3f639dae7734d91c616_rle_crop_3693043626_0.png.png imagette210006861741074421/1741074053_3626584_1340763229_4b4a4f5223b0b245168003b4a5841c9d_rle_crop_3693045363_0.png.png imagette210006861741074421/1741073972_3625666_1340763080_61765ac269e1d6bb6eabbad7ef19e889_rle_crop_3693043583_0.png.png imagette210006861741074421/1741073831_3624168_1340762580_9e936ebd8ccea8e8020b5f74a743b10d_rle_crop_3693042827_0.png.png imagette210006861741074421/1741073831_3624168_1340762580_9e936ebd8ccea8e8020b5f74a743b10d_rle_crop_3693042832_0.png.png imagette210006861741074421/1741073932_3625124_1340763118_01facbe1c046a936d195ad9234f6448d_rle_crop_3693043294_0.png.png imagette210006861741074421/1741073932_3625124_1340763109_35cf86fd048688ff1e72dc4ec3ff93d1_rle_crop_3693043350_0.png.png imagette210006861741074421/1741073972_3625666_1340763122_d9b34c1f340ba962cfe7af913ad7c429_rle_crop_3693043562_0.png.png imagette210006861741074421/1741073972_3625666_1340763066_d60f7003e2520e346ff2cb6846892312_rle_crop_3693043646_0.png.png imagette210006861741074421/1741074053_3626584_1340763224_22ffb64e83a4432bd491042d28adcf46_rle_crop_3693045378_0.png.png imagette210006861741074421/1741073932_3625124_1340763113_273057b25380894204bdb1d4c508a7c9_rle_crop_3693043337_0.png.png imagette210006861741074421/1741074053_3626584_1340763233_39c69912041842aba2b2a697036c9284_rle_crop_3693045321_0.png.png imagette210006861741074421/1741073972_3625666_1340763074_f7c34cc482bace9be5c266128d7e39d0_rle_crop_3693043620_0.png.png imagette210006861741074421/1741073972_3625666_1340763071_8d69d7ab6feec3f639dae7734d91c616_rle_crop_3693043631_0.png.png imagette210006861741074421/1741073932_3625124_1340763118_01facbe1c046a936d195ad9234f6448d_rle_crop_3693043299_0.png.png imagette210006861741074421/1741073972_3625666_1340763122_d9b34c1f340ba962cfe7af913ad7c429_rle_crop_3693043568_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/cc300a020f83a78a55d0896e2b50963d_26839411.png imagette210006861741074421 21000689 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=21000689 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340762825: '1741073691_3622507_1340762007_4d8120418c7e282affca7b6a30b969d7_rle_crop_3693037263_0.png', 1340763185: '1741073831_3624168_1340762811_94a5366f3df8dc2197a0ef6980c4781a_rle_crop_3693042363_0.png', 1340763186: '1741073831_3624168_1340762591_3376d554898eca290fd77a3be013caa2_rle_crop_3693042621_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/6749fe5b5f2f0cebee2846af1df48eee_68634886.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/0b3b34995affe29cc87f89052112cfdc_24359556.png change filename to text .imagette210006891741074422/ imagette210006891741074422/1741073691_3622507_1340762007_4d8120418c7e282affca7b6a30b969d7_rle_crop_3693037263_0.png.png imagette210006891741074422/1741073831_3624168_1340762811_94a5366f3df8dc2197a0ef6980c4781a_rle_crop_3693042363_0.png.png imagette210006891741074422/1741073831_3624168_1340762591_3376d554898eca290fd77a3be013caa2_rle_crop_3693042621_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1c8b8b33a4eeeb28cd95c0bceb5c0b2d_28453543.png imagette210006891741074422 21000678 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=21000678 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340762820: '1741073691_3622507_1340762007_4d8120418c7e282affca7b6a30b969d7_rle_crop_3693037262_0.png', 1340763254: '1741073952_3625384_1340763083_f10f280b60bf5b6ef8ce5a5bbed7674d_rle_crop_3693043368_0.png', 1340763474: '1741073972_3625666_1340763066_d60f7003e2520e346ff2cb6846892312_rle_crop_3693043642_0.png', 1340764229: '1741074053_3626584_1340763229_4b4a4f5223b0b245168003b4a5841c9d_rle_crop_3693045364_0.png', 1340764253: '1741074071_3626874_1340763187_4a67f2fe2b77e94d7c7096ffa844bfe8_rle_crop_3693045422_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/59855cc0bf08ce75163bf325c05784a8_15669862.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d1ef5cead80245ea7f54e85d597cf88a_44930669.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/fb92dbeaa1052c23133f1e1c605320cb_11879603.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b4fc8d5307597a54d5634b03ccc6ee7c_92888210.png change filename to text .imagette210006781741074423/ imagette210006781741074423/1741073952_3625384_1340763083_f10f280b60bf5b6ef8ce5a5bbed7674d_rle_crop_3693043368_0.png.png imagette210006781741074423/1741073972_3625666_1340763066_d60f7003e2520e346ff2cb6846892312_rle_crop_3693043642_0.png.png imagette210006781741074423/1741074053_3626584_1340763229_4b4a4f5223b0b245168003b4a5841c9d_rle_crop_3693045364_0.png.png imagette210006781741074423/1741074071_3626874_1340763187_4a67f2fe2b77e94d7c7096ffa844bfe8_rle_crop_3693045422_0.png.png imagette210006781741074423/1741073691_3622507_1340762007_4d8120418c7e282affca7b6a30b969d7_rle_crop_3693037262_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/74c2ffb5f2c173a16613d0dca01ebcdb_95452182.png imagette210006781741074423 21000681 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=21000681 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340763151: '1741073831_3624168_1340762596_e933b69d7ec2c16dc726a70f2668c1ab_rle_crop_3693042605_0.png', 1340764252: '1741074071_3626874_1340763187_4a67f2fe2b77e94d7c7096ffa844bfe8_rle_crop_3693045425_0.png', 1340764232: '1741074061_3626713_1340763173_9f61e3f05a660aa4295b0208efd5f9b3_rle_crop_3693045401_0.png', 1340763358: '1741073972_3625666_1340763074_f7c34cc482bace9be5c266128d7e39d0_rle_crop_3693043621_0.png', 1340763357: '1741073972_3625666_1340763077_0e8013ce63eff1c7ba71dde80d23fbe8_rle_crop_3693043606_0.png', 1340763355: '1741073972_3625666_1340763077_0e8013ce63eff1c7ba71dde80d23fbe8_rle_crop_3693043605_0.png', 1340763237: '1741073932_3625124_1340763109_35cf86fd048688ff1e72dc4ec3ff93d1_rle_crop_3693043352_0.png', 1340763153: '1741073831_3624168_1340762591_3376d554898eca290fd77a3be013caa2_rle_crop_3693042628_0.png', 1340763152: '1741073831_3624168_1340762596_e933b69d7ec2c16dc726a70f2668c1ab_rle_crop_3693042607_0.png', 1340762938: '1741073715_3622741_1340762047_963d44f2d4b89741bf8a910c984c55b9_rle_crop_3693037502_0.png', 1340763150: '1741073831_3624168_1340762599_fd9361a309f10483b2e02d02e7cc4ed9_rle_crop_3693042493_0.png', 1340763149: '1741073831_3624168_1340762811_94a5366f3df8dc2197a0ef6980c4781a_rle_crop_3693042379_0.png', 1340763148: '1741073831_3624168_1340762811_94a5366f3df8dc2197a0ef6980c4781a_rle_crop_3693042378_0.png', 1340763114: '1741073811_3623954_1340762801_6c12a351b2732cfd584c8342ae7359c8_rle_crop_3693041064_0.png', 1340762942: '1741073715_3622741_1340762038_8b4f96c9c4173a5751762b8c291f9cfc_rle_crop_3693037532_0.png', 1340762941: '1741073715_3622741_1340762043_4f8847b84b8e87c2a12f624ef9515706_rle_crop_3693037515_0.png', 1340762939: '1741073715_3622741_1340762047_963d44f2d4b89741bf8a910c984c55b9_rle_crop_3693037504_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1f6effa667e3938f18586b831fd2fe5f_75701859.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9f9dca3b806248b17827ae6b634c9345_2056744.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f5242cf437c81215b3047a2a0c76fac9_4930642.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/954ef3680c5ca42315475fdf49e80a0d_74428663.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/045d5c33c8f563de502fea628fc5ea51_45139890.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/6a9bd81865873b977a7cbabf73d96862_73816770.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/54a8c176a42a935210d5caf3b4355304_85782182.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2670cd45919c5472c1dc062994c431e4_60277827.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3cc1a0f10e0565eb16be4b25485f0296_48884956.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/6e59dd7cc3a4efe0c5386b45ce019455_25907210.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/367ce74e0007f7b40c1555f065e65585_16002533.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a21f38e7c706cbd10fdf216581e97bad_19413501.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/718b8fa22f8e714a973f8ecece53b194_15226752.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9b793daba4c3fdf45453f49f01b4310d_85415551.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b156179d43a6b77b1cfcf1021749e26f_44697404.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/05a32e8754bae59ce823676b2a114c7f_88415475.png change filename to text .imagette210006811741074423/ imagette210006811741074423/1741073831_3624168_1340762596_e933b69d7ec2c16dc726a70f2668c1ab_rle_crop_3693042607_0.png.png imagette210006811741074423/1741073831_3624168_1340762811_94a5366f3df8dc2197a0ef6980c4781a_rle_crop_3693042379_0.png.png imagette210006811741074423/1741074061_3626713_1340763173_9f61e3f05a660aa4295b0208efd5f9b3_rle_crop_3693045401_0.png.png imagette210006811741074423/1741073932_3625124_1340763109_35cf86fd048688ff1e72dc4ec3ff93d1_rle_crop_3693043352_0.png.png imagette210006811741074423/1741073831_3624168_1340762811_94a5366f3df8dc2197a0ef6980c4781a_rle_crop_3693042378_0.png.png imagette210006811741074423/1741073972_3625666_1340763077_0e8013ce63eff1c7ba71dde80d23fbe8_rle_crop_3693043606_0.png.png imagette210006811741074423/1741074071_3626874_1340763187_4a67f2fe2b77e94d7c7096ffa844bfe8_rle_crop_3693045425_0.png.png imagette210006811741074423/1741073715_3622741_1340762047_963d44f2d4b89741bf8a910c984c55b9_rle_crop_3693037502_0.png.png imagette210006811741074423/1741073715_3622741_1340762043_4f8847b84b8e87c2a12f624ef9515706_rle_crop_3693037515_0.png.png imagette210006811741074423/1741073831_3624168_1340762596_e933b69d7ec2c16dc726a70f2668c1ab_rle_crop_3693042605_0.png.png imagette210006811741074423/1741073972_3625666_1340763077_0e8013ce63eff1c7ba71dde80d23fbe8_rle_crop_3693043605_0.png.png imagette210006811741074423/1741073715_3622741_1340762038_8b4f96c9c4173a5751762b8c291f9cfc_rle_crop_3693037532_0.png.png imagette210006811741074423/1741073811_3623954_1340762801_6c12a351b2732cfd584c8342ae7359c8_rle_crop_3693041064_0.png.png imagette210006811741074423/1741073715_3622741_1340762047_963d44f2d4b89741bf8a910c984c55b9_rle_crop_3693037504_0.png.png imagette210006811741074423/1741073972_3625666_1340763074_f7c34cc482bace9be5c266128d7e39d0_rle_crop_3693043621_0.png.png imagette210006811741074423/1741073831_3624168_1340762599_fd9361a309f10483b2e02d02e7cc4ed9_rle_crop_3693042493_0.png.png imagette210006811741074423/1741073831_3624168_1340762591_3376d554898eca290fd77a3be013caa2_rle_crop_3693042628_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/dee6dadf7c74dd7bd0771616df04d73c_5910905.png imagette210006811741074423 21000687 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=21000687 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340763030: '1741073715_3622741_1340762043_4f8847b84b8e87c2a12f624ef9515706_rle_crop_3693037510_0.png', 1340763031: '1741073715_3622741_1340762038_8b4f96c9c4173a5751762b8c291f9cfc_rle_crop_3693037524_0.png', 1340763170: '1741073831_3624168_1340762811_94a5366f3df8dc2197a0ef6980c4781a_rle_crop_3693042371_0.png', 1340763171: '1741073831_3624168_1340762599_fd9361a309f10483b2e02d02e7cc4ed9_rle_crop_3693042490_0.png', 1340763172: '1741073831_3624168_1340762596_e933b69d7ec2c16dc726a70f2668c1ab_rle_crop_3693042603_0.png', 1340763174: '1741073831_3624168_1340762591_3376d554898eca290fd77a3be013caa2_rle_crop_3693042625_0.png', 1340763175: '1741073831_3624168_1340762586_5af0a6654260411bfbea0c7a7de2ba03_rle_crop_3693042730_0.png', 1340763250: '1741073932_3625124_1340763118_01facbe1c046a936d195ad9234f6448d_rle_crop_3693043295_0.png', 1340763490: '1741073972_3625666_1340763122_d9b34c1f340ba962cfe7af913ad7c429_rle_crop_3693043564_0.png', 1340764230: '1741074053_3626584_1340763224_22ffb64e83a4432bd491042d28adcf46_rle_crop_3693045380_0.png', 1340764231: '1741074053_3626584_1340763224_22ffb64e83a4432bd491042d28adcf46_rle_crop_3693045384_0.png', 1340764248: '1741074061_3626713_1340763173_9f61e3f05a660aa4295b0208efd5f9b3_rle_crop_3693045400_0.png', 1340764968: '1741074173_3628316_1340763321_8017dce45d4fcd03e96499db0e1be5f7_rle_crop_3693045462_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f4212a25f397c363b87dca0818e1abf0_95395216.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7b01b4906d7e93a02cf3dce98555027a_92562858.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4dd506d73017af8953c3683e8ba70b69_52472126.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ca6738555aca5a427500fb66c0611726_92074957.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4c8050a0ecaa0196a547f8cc1db9a64a_34733912.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/79007191977fd08843cffdae3afb88eb_18446427.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/122f12f97460732d67f6534843340622_64214343.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3ca17b27849fe4f1b984098ad59b6675_92656677.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b7baf255a0f8f9c9f2ccd83fc527dfec_94129251.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2191898b26760e5f886bf88e9d9f59b0_13795539.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7239f1d617f22d429808e5b3c2953070_81259828.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5adc96a07d0781ecc0d7291dc2a38bad_21667999.png change filename to text .imagette210006871741074424/ imagette210006871741074424/1741073831_3624168_1340762811_94a5366f3df8dc2197a0ef6980c4781a_rle_crop_3693042371_0.png.png imagette210006871741074424/1741073831_3624168_1340762596_e933b69d7ec2c16dc726a70f2668c1ab_rle_crop_3693042603_0.png.png imagette210006871741074424/1741073831_3624168_1340762591_3376d554898eca290fd77a3be013caa2_rle_crop_3693042625_0.png.png imagette210006871741074424/1741073972_3625666_1340763122_d9b34c1f340ba962cfe7af913ad7c429_rle_crop_3693043564_0.png.png imagette210006871741074424/1741074053_3626584_1340763224_22ffb64e83a4432bd491042d28adcf46_rle_crop_3693045380_0.png.png imagette210006871741074424/1741073831_3624168_1340762586_5af0a6654260411bfbea0c7a7de2ba03_rle_crop_3693042730_0.png.png imagette210006871741074424/1741073715_3622741_1340762043_4f8847b84b8e87c2a12f624ef9515706_rle_crop_3693037510_0.png.png imagette210006871741074424/1741074061_3626713_1340763173_9f61e3f05a660aa4295b0208efd5f9b3_rle_crop_3693045400_0.png.png imagette210006871741074424/1741073831_3624168_1340762599_fd9361a309f10483b2e02d02e7cc4ed9_rle_crop_3693042490_0.png.png imagette210006871741074424/1741074173_3628316_1340763321_8017dce45d4fcd03e96499db0e1be5f7_rle_crop_3693045462_0.png.png imagette210006871741074424/1741073932_3625124_1340763118_01facbe1c046a936d195ad9234f6448d_rle_crop_3693043295_0.png.png imagette210006871741074424/1741074053_3626584_1340763224_22ffb64e83a4432bd491042d28adcf46_rle_crop_3693045384_0.png.png imagette210006871741074424/1741073715_3622741_1340762038_8b4f96c9c4173a5751762b8c291f9cfc_rle_crop_3693037524_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/85f118fbe8fe7111cabb42337d307335_98627806.png imagette210006871741074424 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21000676 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21000690,21000691,21000692,21000693,21000694,21000695,21000696,21000697,21000698,21000699,21000700,21000701?tags=Carton_gris,mal_croppe,flou,Teint_Dans_La_Masse,cartonnette,metal,papier,plastique,autre_refus,Carton_brun,environnement,kraft your option no_mail is active, we will not send the real mail to your client args[1340765050] : ('0.08254268052943217',) no score found for photo 1340765050 We are sending mail with results at report@fotonower.com args[1340765046] : ('0.08254268052943217',) no score found for photo 1340765046 We are sending mail with results at report@fotonower.com args[1340765042] : ('0.08254268052943217',) no score found for photo 1340765042 We are sending mail with results at report@fotonower.com refus_total : 0.08254268052943217 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=21000676 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_P21000676_04-03-2025_08_47_00.pdf results_Auto_P21000676_04-03-2025_08_47_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000676_04-03-2025_08_47_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21000676','results_Auto_P21000676_04-03-2025_08_47_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000676_04-03-2025_08_47_00.pdf','pdf','','0.27','0.08254268052943217') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21000676]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340765050, 1340765046, 1340765042] map_info['map_portfolio_photo'] : {21000676: [1340765050, 1340765046, 1340765042, 1340764542, 1340763321, 1340763287, 1340763251, 1340763239, 1340763233, 1340763229, 1340763224, 1340763187, 1340763173, 1340763122, 1340763118, 1340763113, 1340763109, 1340763083, 1340763080, 1340763077, 1340763074, 1340763071, 1340763066, 1340762811, 1340762806, 1340762801, 1340762621, 1340762599, 1340762596, 1340762591, 1340762586, 1340762580, 1340762062, 1340762057, 1340762052, 1340762047, 1340762043, 1340762038, 1340762011, 1340762007, 1340762005, 1340762000, 1340761679, 1340761674, 1340761668, 1340761656]} final : False mtd_id 4302 list_pids : [1340765050, 1340765046, 1340765042] 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, '2631616') ('4302', '21000676', '1340765050', None, None, None, None, None, '2631616') ('4302', None, None, None, None, None, None, None, '2631616') ('4302', '21000676', '1340765046', None, None, None, None, None, '2631616') ('4302', None, None, None, None, None, None, None, '2631616') ('4302', '21000676', '1340765042', None, None, None, None, None, '2631616') 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', '21000676', '1340765050', None, None, None, None, None, '2631616'), ('4302', '21000676', '1340765046', None, None, None, None, None, '2631616'), ('4302', '21000676', '1340765042', None, None, None, None, None, '2631616')] time used for this insertion : 0.011873483657836914 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.9742772579193115 time spend to save output : 0.012050390243530273 total time spend for step 4 : 7.986327648162842 step5:split_time_score Tue Mar 4 08:47:05 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 : ['21000676'] 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 : [('21000676',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21000676) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340765050: {'path': 'temp/1741074417_2631240_1340765050_73c04ccf6d0a67d40a153b01c12e78a3.jpg', 'extension': 'jpg'}, 1340765046: {'path': 'temp/1741074417_2631240_1340765046_75f3a821b46a7c690e37a34cfae97170.jpg', 'extension': 'jpg'}, 1340765042: {'path': 'temp/1741074417_2631240_1340765042_f324780ffd05b5af684ccd5e6209d9ba.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 = 21000676; (('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 = 21000676 group by h (('08', 46),) 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=21000676 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 (21000676) 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 (21000676) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04032025 21000676 Nombre de photos uploadées : 46 / 23040 (0%) 04032025 21000676 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 04032025 21000676 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1340761679, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/640aedad33e2af1745118d9940effcec.jpg', 'username': None, 'uploaded_at': 1741073481, 'text': 'image_04032025_08_30_04_10160.jpg'}, {'photo_id': 1340761674, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3adc8c6bc869357d3ab417fd11c4386f.jpg', 'username': None, 'uploaded_at': 1741073481, 'text': 'image_04032025_08_30_14_10137.jpg'}, {'photo_id': 1340761668, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1971c84c0d7ebbd116992bb5a030a152.jpg', 'username': None, 'uploaded_at': 1741073481, 'text': 'image_04032025_08_30_33_9126.jpg'}, {'photo_id': 1340761656, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8854d4f5eeaeeb509f2b1d86812b40b8.jpg', 'username': None, 'uploaded_at': 1741073481, 'text': 'image_04032025_08_30_43_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002228975296020508 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21000676, '2025-03-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1636376,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022936582565307617 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= 1636376 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1636376, 'dashboard_run_id': 1644700, 'mtr_portfolio_id': 21000153, 'dashboard_result_id': 9187181, '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_P21000153_04-03-2025_08_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21000156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000167, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1644700, 'mtr_portfolio_id': 21000334, 'dashboard_result_id': 9187182, '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_P21000334_04-03-2025_08_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21000343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000346, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1644700, 'mtr_portfolio_id': 21000676, 'dashboard_result_id': 9187183, '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_P21000676_04-03-2025_08_42_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21000680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000687, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000689, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21000153 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': 2631554, 'mtr_portfolio_id': 21000153, 'created_at': datetime.datetime(2025, 3, 4, 8, 18, 57), 'result': '0.07788217722728674', 'result_long': None, 'result_double': None}] Qualite : 0.07788217722728674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21000153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000153_04-03-2025_08_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21000153 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_P21000153_04-03-2025_08_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21000156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000167, 'pht': 3726}}" where mtr_portfolio_id = 21000153 and dashboard_run_id = 1644700 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`=21000153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9187181, 0.07788217722728674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000153_04-03-2025_08_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21000156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000167, '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 = 21000334 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': 2631575, 'mtr_portfolio_id': 21000334, 'created_at': datetime.datetime(2025, 3, 4, 8, 33), 'result': '0.07254638132015227', 'result_long': None, 'result_double': None}] Qualite : 0.07254638132015227 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21000334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000334_04-03-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21000334 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_P21000334_04-03-2025_08_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21000343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000346, 'pht': 3726}}" where mtr_portfolio_id = 21000334 and dashboard_run_id = 1644700 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`=21000334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9187182, 0.07254638132015227, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000334_04-03-2025_08_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21000343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000346, '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 = 21000676 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': 2631616, 'mtr_portfolio_id': 21000676, 'created_at': datetime.datetime(2025, 3, 4, 8, 46, 57), 'result': '0.08254268052943217', 'result_long': None, 'result_double': None}] Qualite : 0.08254268052943217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21000676 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000676_04-03-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21000676 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_P21000676_04-03-2025_08_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21000680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000687, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000689, 'pht': 3726}}" where mtr_portfolio_id = 21000676 and dashboard_run_id = 1644700 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`=21000676 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9187183, 0.08254268052943217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21000676_04-03-2025_08_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21000678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21000679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21000680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21000681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21000682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21000683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21000684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21000685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21000686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21000687, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21000688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21000689, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21000153,21000334,21000676) result : ((1340757049,), (1340757056,), (1340757059,), (1340757200,), (1340757207,), (1340757240,), (1340757255,), (1340757258,), (1340757319,), (1340757641,), (1340757713,), (1340757862,), (1340757992,), (1340758105,), (1340758109,), (1340758188,), (1340758204,), (1340758211,), (1340758217,), (1340758221,), (1340758253,), (1340758237,), (1340758242,), (1340758247,), (1340758282,), (1340758302,), (1340758309,), (1340758357,), (1340758361,), (1340758365,), (1340758400,), (1340758460,), (1340758831,), (1340758849,), (1340760155,), (1340760586,), (1340760592,), (1340760622,), (1340760628,), (1340760633,), (1340760636,), (1340760664,), (1340760670,), (1340760673,), (1340760677,), (1340760682,), (1340760840,), (1340760934,), (1340761022,), (1340761341,), (1340761348,), (1340761371,), (1340761435,), (1340761439,), (1340761442,), (1340761682,), (1340761656,), (1340761668,), (1340761674,), (1340761679,), (1340762000,), (1340762005,), (1340762007,), (1340762011,), (1340762038,), (1340762043,), (1340762047,), (1340762052,), (1340762057,), (1340762062,), (1340762580,), (1340762586,), (1340762591,), (1340762596,), (1340762599,), (1340762621,), (1340762801,), (1340762806,), (1340762811,), (1340763066,), (1340763071,), (1340763074,), (1340763077,), (1340763080,), (1340763083,), (1340763109,), (1340763113,), (1340763118,), (1340763122,), (1340763173,), (1340763187,), (1340763224,), (1340763229,), (1340763233,), (1340763239,), (1340763251,), (1340763287,), (1340763321,), (1340764542,), (1340765042,), (1340765046,), (1340765050,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04032025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21000676]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340765050, 1340765046, 1340765042] map_info['map_portfolio_photo'] : {21000676: [1340765050, 1340765046, 1340765042, 1340764542, 1340763321, 1340763287, 1340763251, 1340763239, 1340763233, 1340763229, 1340763224, 1340763187, 1340763173, 1340763122, 1340763118, 1340763113, 1340763109, 1340763083, 1340763080, 1340763077, 1340763074, 1340763071, 1340763066, 1340762811, 1340762806, 1340762801, 1340762621, 1340762599, 1340762596, 1340762591, 1340762586, 1340762580, 1340762062, 1340762057, 1340762052, 1340762047, 1340762043, 1340762038, 1340762011, 1340762007, 1340762005, 1340762000, 1340761679, 1340761674, 1340761668, 1340761656]} final : True mtd_id 4302 list_pids : [1340765050, 1340765046, 1340765042] Looping around the photos to save general results len do output : 1 /21000676Didn'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, '2631616') ('4302', '21000676', '1340765050', None, None, None, None, None, '2631616') ('4302', None, None, None, None, None, None, None, '2631616') ('4302', '21000676', '1340765046', None, None, None, None, None, '2631616') ('4302', None, None, None, None, None, None, None, '2631616') ('4302', '21000676', '1340765042', None, None, None, None, None, '2631616') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '21000676', 'None', None, None, None, None, '2631616'), ('4302', '21000676', '1340765050', None, None, None, None, None, '2631616'), ('4302', '21000676', '1340765046', None, None, None, None, None, '2631616'), ('4302', '21000676', '1340765042', None, None, None, None, None, '2631616')] time used for this insertion : 0.012367486953735352 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.28638172149658203 time spend to save output : 0.012567758560180664 total time spend for step 5 : 0.2989494800567627 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 (2631616) 2.17user 2.34system 0:11.09elapsed 40%CPU (0avgtext+0avgdata 158636maxresident)k 29176inputs+13504outputs (159major+63737minor)pagefaults 0swaps