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 : 1403133 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 (4255893) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4255893) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29603008 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4255893'] with mtr_portfolio_ids : ['29603008'] and first list_photo_ids : [] new path : /proc/1403133/ Name: python3 Umask: 0002 State: R (running) Tgid: 1403133 Ngid: 0 Pid: 1403133 PPid: 1403132 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1403133 NSpid: 1403133 NSpgid: 1402414 NSsid: 1402414 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 107276 kB VmRSS: 107276 kB RssAnon: 66292 kB RssFile: 40984 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 564 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 39 nonvoluntary_ctxt_switches: 118 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1403133', 'Ngid': '0', 'Pid': '1403133', 'PPid': '1403132', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1403133', 'NSpid': '1403133', 'NSpgid': '1402414', 'NSsid': '1402414', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '107276 kB', 'VmRSS': '107276 kB', 'RssAnon': '66292 kB', 'RssFile': '40984 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '564 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '39', 'nonvoluntary_ctxt_switches': '118'} ('datou_batch_current', '1403133', '1113364', '0', '1113364', '872092', '107276', b'', 'marlene', '4255893') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29603008) 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 (4255893 ) ) 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 (29603008) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1400486332, 'portfolio_id': 29603008}, {'photo_id': 1400486330, 'portfolio_id': 29603008}, {'photo_id': 1400486328, 'portfolio_id': 29603008}, {'photo_id': 1400486320, 'portfolio_id': 29603008}, {'photo_id': 1400486319, 'portfolio_id': 29603008}, {'photo_id': 1400486318, 'portfolio_id': 29603008}, {'photo_id': 1400486314, 'portfolio_id': 29603008}, {'photo_id': 1400486310, 'portfolio_id': 29603008}, {'photo_id': 1400486306, 'portfolio_id': 29603008}, {'photo_id': 1400486271, 'portfolio_id': 29603008}, {'photo_id': 1400486270, 'portfolio_id': 29603008}, {'photo_id': 1400486268, 'portfolio_id': 29603008}, {'photo_id': 1400486267, 'portfolio_id': 29603008}, {'photo_id': 1400486265, 'portfolio_id': 29603008}, {'photo_id': 1400486259, 'portfolio_id': 29603008}, {'photo_id': 1400486256, 'portfolio_id': 29603008}, {'photo_id': 1400486254, 'portfolio_id': 29603008}, {'photo_id': 1400486253, 'portfolio_id': 29603008}, {'photo_id': 1400486247, 'portfolio_id': 29603008}, {'photo_id': 1400486244, 'portfolio_id': 29603008}, {'photo_id': 1400486237, 'portfolio_id': 29603008}, {'photo_id': 1400486235, 'portfolio_id': 29603008}, {'photo_id': 1400486233, 'portfolio_id': 29603008}, {'photo_id': 1400486231, 'portfolio_id': 29603008}, {'photo_id': 1400486229, 'portfolio_id': 29603008}, {'photo_id': 1400486227, 'portfolio_id': 29603008}, {'photo_id': 1400486209, 'portfolio_id': 29603008}, {'photo_id': 1400486206, 'portfolio_id': 29603008}, {'photo_id': 1400486204, 'portfolio_id': 29603008}, {'photo_id': 1400486200, 'portfolio_id': 29603008}, {'photo_id': 1400486196, 'portfolio_id': 29603008}, {'photo_id': 1400486195, 'portfolio_id': 29603008}, {'photo_id': 1400486193, 'portfolio_id': 29603008}, {'photo_id': 1400486191, 'portfolio_id': 29603008}, {'photo_id': 1400486189, 'portfolio_id': 29603008}, {'photo_id': 1400486172, 'portfolio_id': 29603008}, {'photo_id': 1400486170, 'portfolio_id': 29603008}, {'photo_id': 1400486168, 'portfolio_id': 29603008}, {'photo_id': 1400486167, 'portfolio_id': 29603008}, {'photo_id': 1400486165, 'portfolio_id': 29603008}, {'photo_id': 1400486163, 'portfolio_id': 29603008}, {'photo_id': 1400486158, 'portfolio_id': 29603008}, {'photo_id': 1400486156, 'portfolio_id': 29603008}, {'photo_id': 1400486155, 'portfolio_id': 29603008}, {'photo_id': 1400486152, 'portfolio_id': 29603008}, {'photo_id': 1400486142, 'portfolio_id': 29603008}, {'photo_id': 1400486140, 'portfolio_id': 29603008}, {'photo_id': 1400486138, 'portfolio_id': 29603008}, {'photo_id': 1400486137, 'portfolio_id': 29603008}, {'photo_id': 1400486127, 'portfolio_id': 29603008}] map_portfolio_id_photo_id: {29603008: [1400486332, 1400486330, 1400486328, 1400486320, 1400486319, 1400486318, 1400486314, 1400486310, 1400486306, 1400486271, 1400486270, 1400486268, 1400486267, 1400486265, 1400486259, 1400486256, 1400486254, 1400486253, 1400486247, 1400486244, 1400486237, 1400486235, 1400486233, 1400486231, 1400486229, 1400486227, 1400486209, 1400486206, 1400486204, 1400486200, 1400486196, 1400486195, 1400486193, 1400486191, 1400486189, 1400486172, 1400486170, 1400486168, 1400486167, 1400486165, 1400486163, 1400486158, 1400486156, 1400486155, 1400486152, 1400486142, 1400486140, 1400486138, 1400486137, 1400486127]} ##### 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.01817011833190918 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Dec 22 05:26:29 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 (29603008) 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 : 29603008 get user id for portfolio 29603008 get sub ptf for main ptf 29603008, type 3726 and hashtags ['autre_refus', 'environnement', 'metal', 'papier', 'plastique', 'Carton_gris', 'Teint_Dans_La_Masse', 'mal_croppe', 'cartonnette', 'flou', 'Carton_brun', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29603008 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','metal','papier','plastique','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','flou','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29603008 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','metal','papier','plastique','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','flou','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29603008, 'sub_port_id': 29603010, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205935, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 20, 58)}, 'kraft': {'main_port_id': 29603008, 'sub_port_id': 29603011, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205936, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 20, 58)}, 'mal_croppe': {'main_port_id': 29603008, 'sub_port_id': 29603012, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205937, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 20, 58)}, 'metal': {'main_port_id': 29603008, 'sub_port_id': 29603013, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205938, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 20, 58)}, 'papier': {'main_port_id': 29603008, 'sub_port_id': 29603014, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205939, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 20, 58)}, 'plastique': {'main_port_id': 29603008, 'sub_port_id': 29603015, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205940, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 20, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 29603008, 'sub_port_id': 29603016, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205941, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 20, 58)}, 'autre_refus': {'main_port_id': 29603008, 'sub_port_id': 29603017, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205942, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 20, 58)}, 'cartonnette': {'main_port_id': 29603008, 'sub_port_id': 29603018, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205943, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 20, 58)}, 'environnement': {'main_port_id': 29603008, 'sub_port_id': 29603019, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205944, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 20, 58)}, 'flou': {'main_port_id': 29603008, 'sub_port_id': 29603020, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205945, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 20, 58)}, 'Carton_brun': {'main_port_id': 29603008, 'sub_port_id': 29603021, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205946, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 20, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29603010 , 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=29603008 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 (29603010) result : ((1400486184,), (1400486185,), (1400486212,), (1400486213,), (1400486337,), (1400486357,), (1400486358,), (1400486360,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29603008) result : ((1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,)) 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 (1400486200) 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 29603011 , 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=29603008 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 (29603011) result : ((1400486224,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29603008) result : ((1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,)) 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 (1400486200) 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 29603012 , 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=29603008 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 (29603012) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29603008) result : ((1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,)) 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 (1400486200) 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 29603013 , 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=29603008 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 (29603013) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29603008) result : ((1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,)) 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 (1400486200) 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 29603014 , 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=29603008 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 (29603014) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29603008) result : ((1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,)) 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 (1400486200) 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 29603015 , 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=29603008 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 (29603015) result : ((1400486339,), (1400486340,), (1400486377,), (1400486378,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29603008) result : ((1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,)) 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 (1400486200) 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 29603016 , 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=29603008 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 (29603016) result : ((1400486179,), (1400486180,), (1400486181,), (1400486182,), (1400486183,), (1400486336,), (1400486351,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29603008) result : ((1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,)) 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 (1400486200) 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 29603017 , 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=29603008 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 (29603017) result : ((1400486211,), (1400486353,), (1400486354,), (1400486355,), (1400486356,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29603008) result : ((1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,)) 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 (1400486200) 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 29603018 , 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=29603008 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 (29603018) result : ((1400486173,), (1400486186,), (1400486214,), (1400486215,), (1400486217,), (1400486218,), (1400486338,), (1400486362,), (1400486363,), (1400486364,), (1400486365,), (1400486366,), (1400486367,), (1400486368,), (1400486369,), (1400486370,), (1400486371,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29603008) result : ((1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,)) 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 (1400486200) 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 29603019 , 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=29603008 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 (29603019) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29603008) result : ((1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,)) 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 (1400486200) 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 29603020 , 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=29603008 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 (29603020) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29603008) result : ((1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,)) 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 (1400486200) 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 29603021 , 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=29603008 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 (29603021) result : ((1400486187,), (1400486374,), (1400486375,), (1400486376,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29603008) result : ((1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,)) 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 (1400486200) 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`=29603008 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','metal','papier','plastique','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','flou','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29603008 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','metal','papier','plastique','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','flou','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29603008, 'sub_port_id': 29603022, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205947, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 21)}, 'kraft': {'main_port_id': 29603008, 'sub_port_id': 29603023, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205948, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 21)}, 'mal_croppe': {'main_port_id': 29603008, 'sub_port_id': 29603024, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205949, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 21)}, 'metal': {'main_port_id': 29603008, 'sub_port_id': 29603025, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205950, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 21)}, 'papier': {'main_port_id': 29603008, 'sub_port_id': 29603026, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205951, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 21)}, 'plastique': {'main_port_id': 29603008, 'sub_port_id': 29603027, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205952, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 21)}, 'Teint_Dans_La_Masse': {'main_port_id': 29603008, 'sub_port_id': 29603028, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205953, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 21)}, 'autre_refus': {'main_port_id': 29603008, 'sub_port_id': 29603029, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205954, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 21)}, 'cartonnette': {'main_port_id': 29603008, 'sub_port_id': 29603030, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205955, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 21)}, 'environnement': {'main_port_id': 29603008, 'sub_port_id': 29603031, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205956, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 21)}, 'flou': {'main_port_id': 29603008, 'sub_port_id': 29603032, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205957, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 21), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 21)}, 'Carton_brun': {'main_port_id': 29603008, 'sub_port_id': 29603033, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20205958, 'last_updated_at': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 22, 5, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 22, 5, 21)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29603022,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29603010 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29603023,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29603011 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29603024,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29603012 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29603025,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29603013 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29603026,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29603014 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29603027,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29603015 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29603028,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29603016 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29603029,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29603017 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29603030,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29603018 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29603031,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29603019 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29603032,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29603020 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29603033,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29603021 lien utilise dans velours : https://marlene.fotonower.com/velours/29603022,29603023,29603024,29603025,29603026,29603027,29603028,29603029,29603030,29603031,29603032,29603033?tags=Carton_gris,kraft,mal_croppe,metal,papier,plastique,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,flou,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29603008]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1400486332, 1400486330, 1400486328, 1400486320, 1400486319, 1400486318, 1400486314, 1400486310, 1400486306] map_info['map_portfolio_photo'] : {29603008: [1400486332, 1400486330, 1400486328, 1400486320, 1400486319, 1400486318, 1400486314, 1400486310, 1400486306, 1400486271, 1400486270, 1400486268, 1400486267, 1400486265, 1400486259, 1400486256, 1400486254, 1400486253, 1400486247, 1400486244, 1400486237, 1400486235, 1400486233, 1400486231, 1400486229, 1400486227, 1400486209, 1400486206, 1400486204, 1400486200, 1400486196, 1400486195, 1400486193, 1400486191, 1400486189, 1400486172, 1400486170, 1400486168, 1400486167, 1400486165, 1400486163, 1400486158, 1400486156, 1400486155, 1400486152, 1400486142, 1400486140, 1400486138, 1400486137, 1400486127]} final : False mtd_id 4302 list_pids : [1400486332, 1400486330, 1400486328, 1400486320, 1400486319, 1400486318, 1400486314, 1400486310, 1400486306] Looping around the photos to save general results len do output : 1 /29603008. 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, '4255893') ('4302', '29603008', '1400486332', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486330', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486328', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486320', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486319', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486318', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486314', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486310', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486306', None, None, None, None, None, '4255893') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29603008', "{'Carton_gris': 29603010, 'kraft': 29603011, 'mal_croppe': 29603012, 'metal': 29603013, 'papier': 29603014, 'plastique': 29603015, 'Teint_Dans_La_Masse': 29603016, 'autre_refus': 29603017, 'cartonnette': 29603018, 'environnement': 29603019, 'flou': 29603020, 'Carton_brun': 29603021}", None, None, None, None, '4255893'), ('4302', '29603008', '1400486332', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486330', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486328', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486320', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486319', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486318', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486314', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486310', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486306', None, None, None, None, None, '4255893')] time used for this insertion : 0.015868663787841797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5444321632385254 time spend to save output : 0.01613306999206543 total time spend for step 1 : 0.5605652332305908 step2:final Mon Dec 22 05:26:29 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 (29603008) 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 29603008 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1400486127,1400486142,1400486140,1400486138,1400486137,1400486158,1400486156,1400486155,1400486152,1400486172,1400486170,1400486168,1400486167,1400486165,1400486163,1400486196,1400486195,1400486193,1400486191,1400486189,1400486209,1400486206,1400486204,1400486200,1400486271,1400486237,1400486235,1400486270,1400486233,1400486268,1400486231,1400486267,1400486229,1400486265,1400486259,1400486227,1400486256,1400486254,1400486253,1400486247,1400486244,1400486320,1400486319,1400486318,1400486314,1400486310,1400486306,1400486332,1400486330,1400486328); 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([29603008]) Inside saveOutput : final : False verbose : True original output for save of step final : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ('0.03936891228867338',)} new output for save of step final : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ('0.03936891228867338',)} [1400486332, 1400486330, 1400486328, 1400486320, 1400486319, 1400486318, 1400486314, 1400486310, 1400486306] map_info['map_portfolio_photo'] : {29603008: [1400486332, 1400486330, 1400486328, 1400486320, 1400486319, 1400486318, 1400486314, 1400486310, 1400486306, 1400486271, 1400486270, 1400486268, 1400486267, 1400486265, 1400486259, 1400486256, 1400486254, 1400486253, 1400486247, 1400486244, 1400486237, 1400486235, 1400486233, 1400486231, 1400486229, 1400486227, 1400486209, 1400486206, 1400486204, 1400486200, 1400486196, 1400486195, 1400486193, 1400486191, 1400486189, 1400486172, 1400486170, 1400486168, 1400486167, 1400486165, 1400486163, 1400486158, 1400486156, 1400486155, 1400486152, 1400486142, 1400486140, 1400486138, 1400486137, 1400486127]} final : False mtd_id 4302 list_pids : [1400486332, 1400486330, 1400486328, 1400486320, 1400486319, 1400486318, 1400486314, 1400486310, 1400486306] Looping around the photos to save general results len do output : 9 /1400486332.Didn't retrieve data . /1400486330.Didn't retrieve data . /1400486328.Didn't retrieve data . /1400486320.Didn't retrieve data . /1400486319.Didn't retrieve data . /1400486318.Didn't retrieve data . /1400486314.Didn't retrieve data . /1400486310.Didn't retrieve data . /1400486306.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, '4255893') ('4302', '29603008', '1400486332', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486330', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486328', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486320', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486319', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486318', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486314', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486310', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486306', None, None, None, None, None, '4255893') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '29603008', '1400486332', '0.03936891228867338', None, None, None, None, '4255893'), ('4302', '29603008', '1400486330', '0.03936891228867338', None, None, None, None, '4255893'), ('4302', '29603008', '1400486328', '0.03936891228867338', None, None, None, None, '4255893'), ('4302', '29603008', '1400486320', '0.03936891228867338', None, None, None, None, '4255893'), ('4302', '29603008', '1400486319', '0.03936891228867338', None, None, None, None, '4255893'), ('4302', '29603008', '1400486318', '0.03936891228867338', None, None, None, None, '4255893'), ('4302', '29603008', '1400486314', '0.03936891228867338', None, None, None, None, '4255893'), ('4302', '29603008', '1400486310', '0.03936891228867338', None, None, None, None, '4255893'), ('4302', '29603008', '1400486306', '0.03936891228867338', None, None, None, None, '4255893')] time used for this insertion : 0.015379190444946289 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08006930351257324 time spend to save output : 0.015831708908081055 total time spend for step 2 : 0.0959010124206543 step3:velours_tree Mon Dec 22 05:26:29 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 : {29603008: [{'Carton_gris': 29603010, 'kraft': 29603011, 'mal_croppe': 29603012, 'metal': 29603013, 'papier': 29603014, 'plastique': 29603015, 'Teint_Dans_La_Masse': 29603016, 'autre_refus': 29603017, 'cartonnette': 29603018, 'environnement': 29603019, 'flou': 29603020, 'Carton_brun': 29603021}]} input_args_next_step : {29603008: ()} output_args : {29603008: [{'Carton_gris': 29603010, 'kraft': 29603011, 'mal_croppe': 29603012, 'metal': 29603013, 'papier': 29603014, 'plastique': 29603015, 'Teint_Dans_La_Masse': 29603016, 'autre_refus': 29603017, 'cartonnette': 29603018, 'environnement': 29603019, 'flou': 29603020, 'Carton_brun': 29603021}]} args : 29603008 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': 29603010, 'kraft': 29603011, 'mal_croppe': 29603012, 'metal': 29603013, 'papier': 29603014, 'plastique': 29603015, 'Teint_Dans_La_Masse': 29603016, 'autre_refus': 29603017, 'cartonnette': 29603018, 'environnement': 29603019, 'flou': 29603020, 'Carton_brun': 29603021},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29603008) 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([29603008]) 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.2437596321105957 time spend to save output : 5.030632019042969e-05 total time spend for step 3 : 0.24380993843078613 step4:send_mail_cod Mon Dec 22 05:26:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ('0.03936891228867338',)} input_args_next_step : {1400486332: ()} output_args : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ('0.03936891228867338',)} args : 1400486332 depend.output_id : 0 input_args_next_step : {1400486332: ('0.03936891228867338',), 1400486330: ()} output_args : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ('0.03936891228867338',)} args : 1400486330 depend.output_id : 0 input_args_next_step : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ()} output_args : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ('0.03936891228867338',)} args : 1400486328 depend.output_id : 0 input_args_next_step : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ()} output_args : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ('0.03936891228867338',)} args : 1400486320 depend.output_id : 0 input_args_next_step : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ()} output_args : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ('0.03936891228867338',)} args : 1400486319 depend.output_id : 0 input_args_next_step : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ()} output_args : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ('0.03936891228867338',)} args : 1400486318 depend.output_id : 0 input_args_next_step : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ()} output_args : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ('0.03936891228867338',)} args : 1400486314 depend.output_id : 0 input_args_next_step : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ()} output_args : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ('0.03936891228867338',)} args : 1400486310 depend.output_id : 0 input_args_next_step : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ()} output_args : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ('0.03936891228867338',)} args : 1400486306 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 : {29603008: [{'Carton_gris': 29603010, 'kraft': 29603011, 'mal_croppe': 29603012, 'metal': 29603013, 'papier': 29603014, 'plastique': 29603015, 'Teint_Dans_La_Masse': 29603016, 'autre_refus': 29603017, 'cartonnette': 29603018, 'environnement': 29603019, 'flou': 29603020, 'Carton_brun': 29603021}]} input_args_next_step : {1400486332: ('0.03936891228867338',), 1400486330: ('0.03936891228867338',), 1400486328: ('0.03936891228867338',), 1400486320: ('0.03936891228867338',), 1400486319: ('0.03936891228867338',), 1400486318: ('0.03936891228867338',), 1400486314: ('0.03936891228867338',), 1400486310: ('0.03936891228867338',), 1400486306: ('0.03936891228867338',), 29603008: ()} output_args : {29603008: [{'Carton_gris': 29603010, 'kraft': 29603011, 'mal_croppe': 29603012, 'metal': 29603013, 'papier': 29603014, 'plastique': 29603015, 'Teint_Dans_La_Masse': 29603016, 'autre_refus': 29603017, 'cartonnette': 29603018, 'environnement': 29603019, 'flou': 29603020, 'Carton_brun': 29603021}]} args : 29603008 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 :10, first value : ('0.03936891228867338',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29603008) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1400486332,1400486330,1400486328,1400486320,1400486319,1400486318,1400486314,1400486310,1400486306) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1400486306 begin to download photo : 1400486314 begin to download photo : 1400486319 begin to download photo : 1400486328 begin to download photo : 1400486332 download finish for photo 1400486306 begin to download photo : 1400486310 download finish for photo 1400486332 download finish for photo 1400486319 begin to download photo : 1400486320 download finish for photo 1400486328 begin to download photo : 1400486330 download finish for photo 1400486314 begin to download photo : 1400486318 download finish for photo 1400486330 download finish for photo 1400486310 download finish for photo 1400486320 download finish for photo 1400486318 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P29603008_22-12-2025_05_26_30.pdf 29603011 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29603011 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400486224: '1766377265_739240_1400486168_40b994e4ae9d5989d333282cbbf5cf17_rle_crop_4077823866_0.png'} change filename to text .imagette296030111766377590/ imagette296030111766377590/1766377265_739240_1400486168_40b994e4ae9d5989d333282cbbf5cf17_rle_crop_4077823866_0.png.png imagette296030121766377590/ imagette296030131766377590/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/842790a0dec2f37add4c49b1da240fb9_77797698.png imagette296030111766377590 29603012 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29603012 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296030121766377590 29603013 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29603013 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296030131766377590 29603015 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29603015 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400486339: '1766377508_751191_1400486253_fbaef9bbf0950ea4fa8fcd620d72d926_rle_crop_4077824992_0.png', 1400486340: '1766377508_751191_1400486244_834ea77e2feb7c0c0c2544ecd888ac51_rle_crop_4077825019_0.png', 1400486377: '1766377528_751622_1400486267_2108d5b04e3fa820225fad0597a07e34_rle_crop_4077825343_0.png', 1400486378: '1766377528_751622_1400486231_403c60a779ff7f36f86d7040b2af5195_rle_crop_4077825427_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/d885d7794da7f8f8ca57625de027b040_34936350.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/68c4a5ed3f6807107d1e36df1cdd634f_40188660.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/eaf9865bd7cfbe08591916b352cb9b8f_73148004.png change filename to text .imagette296030151766377590/ imagette296030151766377590/1766377508_751191_1400486244_834ea77e2feb7c0c0c2544ecd888ac51_rle_crop_4077825019_0.png.png imagette296030151766377590/1766377528_751622_1400486267_2108d5b04e3fa820225fad0597a07e34_rle_crop_4077825343_0.png.png imagette296030151766377590/1766377528_751622_1400486231_403c60a779ff7f36f86d7040b2af5195_rle_crop_4077825427_0.png.png imagette296030151766377590/1766377508_751191_1400486253_fbaef9bbf0950ea4fa8fcd620d72d926_rle_crop_4077824992_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/eaf9865bd7cfbe08591916b352cb9b8f_31919800.png imagette296030151766377590 29603017 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29603017 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400486211: '1766377265_739240_1400486168_40b994e4ae9d5989d333282cbbf5cf17_rle_crop_4077823867_0.png', 1400486353: '1766377528_751622_1400486267_2108d5b04e3fa820225fad0597a07e34_rle_crop_4077825335_0.png', 1400486354: '1766377528_751622_1400486265_d79a362bc6981d6f65445f578d4a2e7b_rle_crop_4077825350_0.png', 1400486355: '1766377528_751622_1400486231_403c60a779ff7f36f86d7040b2af5195_rle_crop_4077825419_0.png', 1400486356: '1766377528_751622_1400486229_013f3ecb7a646fde9348a215bb350cb4_rle_crop_4077825434_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/9d61e8bb2b65c121a12a1338fed0d7d6_87750323.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/93ac60ba02f0c3160cc790c33b9b596b_22989199.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/676e0f774587542721d63d7ac57502fb_58616647.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/93ac60ba02f0c3160cc790c33b9b596b_21889130.png change filename to text .imagette296030171766377590/ imagette296030171766377590/1766377265_739240_1400486168_40b994e4ae9d5989d333282cbbf5cf17_rle_crop_4077823867_0.png.png imagette296030171766377590/1766377528_751622_1400486265_d79a362bc6981d6f65445f578d4a2e7b_rle_crop_4077825350_0.png.png imagette296030171766377590/1766377528_751622_1400486267_2108d5b04e3fa820225fad0597a07e34_rle_crop_4077825335_0.png.png imagette296030171766377590/1766377528_751622_1400486231_403c60a779ff7f36f86d7040b2af5195_rle_crop_4077825419_0.png.png imagette296030171766377590/1766377528_751622_1400486229_013f3ecb7a646fde9348a215bb350cb4_rle_crop_4077825434_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/676e0f774587542721d63d7ac57502fb_38996191.png imagette296030171766377590 29603018 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29603018 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400486363: '1766377528_751622_1400486268_0eb8c5e5f9f2a93ed721490f006046b5_rle_crop_4077825324_0.png', 1400486371: '1766377528_751622_1400486227_3eac60953ee0d3b3794980db7ebecece_rle_crop_4077825447_0.png', 1400486370: '1766377528_751622_1400486231_403c60a779ff7f36f86d7040b2af5195_rle_crop_4077825422_0.png', 1400486369: '1766377528_751622_1400486233_9771053446177096285a574b7f6c2360_rle_crop_4077825406_0.png', 1400486368: '1766377528_751622_1400486233_9771053446177096285a574b7f6c2360_rle_crop_4077825408_0.png', 1400486367: '1766377528_751622_1400486235_0fd681978ee5c5cbcf66f4da8e9dce49_rle_crop_4077825395_0.png', 1400486366: '1766377528_751622_1400486259_d5645e2acf549a66f75370cd23e7b4d2_rle_crop_4077825363_0.png', 1400486365: '1766377528_751622_1400486267_2108d5b04e3fa820225fad0597a07e34_rle_crop_4077825338_0.png', 1400486364: '1766377528_751622_1400486268_0eb8c5e5f9f2a93ed721490f006046b5_rle_crop_4077825322_0.png', 1400486173: '1766377147_733796_1400486156_591a8ae2c30f0a9d7e2fa3bd33ef3e3d_rle_crop_4077823530_0.png', 1400486362: '1766377528_751622_1400486270_816f9d93b4a7d28eb9579015b0361ee5_rle_crop_4077825311_0.png', 1400486338: '1766377508_751191_1400486247_a7eea6f8db8f0fcbc241fc158d0f8908_rle_crop_4077825004_0.png', 1400486218: '1766377265_739240_1400486165_d50bbd7e91d919aaeb33e7548cd5f816_rle_crop_4077823883_0.png', 1400486217: '1766377265_739240_1400486168_40b994e4ae9d5989d333282cbbf5cf17_rle_crop_4077823862_0.png', 1400486215: '1766377265_739240_1400486170_50a4bb1d9dcc12a40818f4491ad7f5fd_rle_crop_4077823856_0.png', 1400486214: '1766377265_739240_1400486170_50a4bb1d9dcc12a40818f4491ad7f5fd_rle_crop_4077823849_0.png', 1400486186: '1766377166_734252_1400486158_32f932cb89c3fef4148c7c463d39a31e_rle_crop_4077823649_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/9ecd27d2e052c2cc116d8f8c68345155_82363327.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/bb16adf08b933d17cf6c7e44c8f9b929_35990468.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/65d645ae726972cc6597524955c0d424_16985700.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/3a81f0fc93bad00b14f5949b13499f78_5951979.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/9ecd27d2e052c2cc116d8f8c68345155_17076357.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/c7c3886bc22c6a449a2d1007a1003853_90525798.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/bb16adf08b933d17cf6c7e44c8f9b929_45397166.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/65d645ae726972cc6597524955c0d424_23154665.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/3a81f0fc93bad00b14f5949b13499f78_99271923.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/d889ea2f8f1acec181cd4ef94cdbb860_8823886.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/c7c3886bc22c6a449a2d1007a1003853_54533809.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/3790ef42e81d1a0edce77ce3ffce73ea_60265519.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/006de029da61c998a175a738b9b008ae_56978849.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/d83039382ea8afaaf86518a3fe3b0d68_38418077.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/54d8d1551f0e0206b5665c4a49bd2f40_57763003.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/4cfdc845a84ac85484c59c253d371f4e_84515545.png change filename to text .imagette296030181766377591/ imagette296030181766377591/1766377265_739240_1400486165_d50bbd7e91d919aaeb33e7548cd5f816_rle_crop_4077823883_0.png.png imagette296030181766377591/1766377528_751622_1400486233_9771053446177096285a574b7f6c2360_rle_crop_4077825406_0.png.png imagette296030181766377591/1766377528_751622_1400486268_0eb8c5e5f9f2a93ed721490f006046b5_rle_crop_4077825324_0.png.png imagette296030181766377591/1766377528_751622_1400486268_0eb8c5e5f9f2a93ed721490f006046b5_rle_crop_4077825322_0.png.png imagette296030181766377591/1766377147_733796_1400486156_591a8ae2c30f0a9d7e2fa3bd33ef3e3d_rle_crop_4077823530_0.png.png imagette296030181766377591/1766377166_734252_1400486158_32f932cb89c3fef4148c7c463d39a31e_rle_crop_4077823649_0.png.png imagette296030181766377591/1766377528_751622_1400486270_816f9d93b4a7d28eb9579015b0361ee5_rle_crop_4077825311_0.png.png imagette296030181766377591/1766377528_751622_1400486227_3eac60953ee0d3b3794980db7ebecece_rle_crop_4077825447_0.png.png imagette296030181766377591/1766377528_751622_1400486267_2108d5b04e3fa820225fad0597a07e34_rle_crop_4077825338_0.png.png imagette296030181766377591/1766377528_751622_1400486235_0fd681978ee5c5cbcf66f4da8e9dce49_rle_crop_4077825395_0.png.png imagette296030181766377591/1766377265_739240_1400486168_40b994e4ae9d5989d333282cbbf5cf17_rle_crop_4077823862_0.png.png imagette296030181766377591/1766377528_751622_1400486233_9771053446177096285a574b7f6c2360_rle_crop_4077825408_0.png.png imagette296030181766377591/1766377508_751191_1400486247_a7eea6f8db8f0fcbc241fc158d0f8908_rle_crop_4077825004_0.png.png imagette296030181766377591/1766377265_739240_1400486170_50a4bb1d9dcc12a40818f4491ad7f5fd_rle_crop_4077823849_0.png.png imagette296030181766377591/1766377265_739240_1400486170_50a4bb1d9dcc12a40818f4491ad7f5fd_rle_crop_4077823856_0.png.png imagette296030181766377591/1766377528_751622_1400486231_403c60a779ff7f36f86d7040b2af5195_rle_crop_4077825422_0.png.png imagette296030181766377591/1766377528_751622_1400486259_d5645e2acf549a66f75370cd23e7b4d2_rle_crop_4077825363_0.png.png imagette296030201766377592/ wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/3d12a818183b380daea49887196d9e58_51870708.png imagette296030181766377591 29603020 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29603020 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296030201766377592 29603010 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29603010 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400486184: '1766377166_734252_1400486140_95206094ddb821849ef6dfc5996fd4f9_rle_crop_4077823658_0.png', 1400486185: '1766377166_734252_1400486137_dcd0acc062d7ffe8f6e070cbb5e53364_rle_crop_4077823692_0.png', 1400486212: '1766377265_739240_1400486167_774affac4239d84913139b8d30e95745_rle_crop_4077823873_0.png', 1400486213: '1766377265_739240_1400486163_e0848daef3d0321b90673a60447a6e5d_rle_crop_4077823904_0.png', 1400486337: '1766377508_751191_1400486254_709557c99c6c5bd0b7539782c9e3f156_rle_crop_4077824975_0.png', 1400486357: '1766377528_751622_1400486270_816f9d93b4a7d28eb9579015b0361ee5_rle_crop_4077825308_0.png', 1400486358: '1766377528_751622_1400486256_5f795c147c0790072791dbf07efa72e9_rle_crop_4077825375_0.png', 1400486360: '1766377528_751622_1400486235_0fd681978ee5c5cbcf66f4da8e9dce49_rle_crop_4077825392_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/5ac0ac43de4fac450a25fc0d5a1cfebb_46550625.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/bfb98d6f691a9d9821417a81bf57723c_63879757.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/2771d69c7f727099888a959840ce4bdf_34159210.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/cad8db3be559273085bd14a2b82d807f_99758044.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/0aaade5a7f264172bb80ab27351e3d62_89215846.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/bafa2bcae8b5514d3c0bc75a109cf0b4_36235523.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/254e1824dd3ff09bb4da1eabe7febdee_70289011.png change filename to text .imagette296030101766377592/ imagette296030101766377592/1766377265_739240_1400486167_774affac4239d84913139b8d30e95745_rle_crop_4077823873_0.png.png imagette296030101766377592/1766377508_751191_1400486254_709557c99c6c5bd0b7539782c9e3f156_rle_crop_4077824975_0.png.png imagette296030101766377592/1766377265_739240_1400486163_e0848daef3d0321b90673a60447a6e5d_rle_crop_4077823904_0.png.png imagette296030101766377592/1766377528_751622_1400486256_5f795c147c0790072791dbf07efa72e9_rle_crop_4077825375_0.png.png imagette296030101766377592/1766377528_751622_1400486235_0fd681978ee5c5cbcf66f4da8e9dce49_rle_crop_4077825392_0.png.png imagette296030101766377592/1766377166_734252_1400486140_95206094ddb821849ef6dfc5996fd4f9_rle_crop_4077823658_0.png.png imagette296030101766377592/1766377528_751622_1400486270_816f9d93b4a7d28eb9579015b0361ee5_rle_crop_4077825308_0.png.png imagette296030101766377592/1766377166_734252_1400486137_dcd0acc062d7ffe8f6e070cbb5e53364_rle_crop_4077823692_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/bafa2bcae8b5514d3c0bc75a109cf0b4_1703732.png imagette296030101766377592 29603016 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29603016 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400486179: '1766377166_734252_1400486158_32f932cb89c3fef4148c7c463d39a31e_rle_crop_4077823654_0.png', 1400486180: '1766377166_734252_1400486140_95206094ddb821849ef6dfc5996fd4f9_rle_crop_4077823663_0.png', 1400486181: '1766377166_734252_1400486140_95206094ddb821849ef6dfc5996fd4f9_rle_crop_4077823667_0.png', 1400486182: '1766377166_734252_1400486140_95206094ddb821849ef6dfc5996fd4f9_rle_crop_4077823662_0.png', 1400486183: '1766377166_734252_1400486138_410143d29d8cce106106dced55ce5358_rle_crop_4077823677_0.png', 1400486336: '1766377508_751191_1400486254_709557c99c6c5bd0b7539782c9e3f156_rle_crop_4077824976_0.png', 1400486351: '1766377528_751622_1400486256_5f795c147c0790072791dbf07efa72e9_rle_crop_4077825383_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/94375a6090fd39654436ab9971f6e54b_79012348.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/71e72331b0c61643a456da00d56fbe83_77714125.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/ca45c3a691970dbfb014b340c66f002b_68762810.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/8b64c244a67982e2834e6b5d445b771d_12245664.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/4cbc2b32a640e60f08a157abff426e7a_11585700.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/46c30ce9a94c4f364517d91b0d2b8b80_71875170.png change filename to text .imagette296030161766377593/ imagette296030161766377593/1766377528_751622_1400486256_5f795c147c0790072791dbf07efa72e9_rle_crop_4077825383_0.png.png imagette296030161766377593/1766377166_734252_1400486158_32f932cb89c3fef4148c7c463d39a31e_rle_crop_4077823654_0.png.png imagette296030161766377593/1766377508_751191_1400486254_709557c99c6c5bd0b7539782c9e3f156_rle_crop_4077824976_0.png.png imagette296030161766377593/1766377166_734252_1400486140_95206094ddb821849ef6dfc5996fd4f9_rle_crop_4077823663_0.png.png imagette296030161766377593/1766377166_734252_1400486138_410143d29d8cce106106dced55ce5358_rle_crop_4077823677_0.png.png imagette296030161766377593/1766377166_734252_1400486140_95206094ddb821849ef6dfc5996fd4f9_rle_crop_4077823667_0.png.png imagette296030161766377593/1766377166_734252_1400486140_95206094ddb821849ef6dfc5996fd4f9_rle_crop_4077823662_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/d09bc9aa4d4a4a309b2f97f1b8c1fa75_3995145.png imagette296030161766377593 29603021 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29603021 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400486187: '1766377166_734252_1400486140_95206094ddb821849ef6dfc5996fd4f9_rle_crop_4077823666_0.png', 1400486374: '1766377528_751622_1400486259_d5645e2acf549a66f75370cd23e7b4d2_rle_crop_4077825364_0.png', 1400486375: '1766377528_751622_1400486256_5f795c147c0790072791dbf07efa72e9_rle_crop_4077825379_0.png', 1400486376: '1766377528_751622_1400486227_3eac60953ee0d3b3794980db7ebecece_rle_crop_4077825448_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/2970310480962d190231d0ac45a31cbe_86098583.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/644dc72f55d7d73cd8bdced2f7bfb637_11770740.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/fa0ae441942d40a4e053f2302dae58ac_30057705.png change filename to text .imagette296030211766377593/ imagette296030211766377593/1766377166_734252_1400486140_95206094ddb821849ef6dfc5996fd4f9_rle_crop_4077823666_0.png.png imagette296030211766377593/1766377528_751622_1400486256_5f795c147c0790072791dbf07efa72e9_rle_crop_4077825379_0.png.png imagette296030211766377593/1766377528_751622_1400486227_3eac60953ee0d3b3794980db7ebecece_rle_crop_4077825448_0.png.png imagette296030211766377593/1766377528_751622_1400486259_d5645e2acf549a66f75370cd23e7b4d2_rle_crop_4077825364_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/644dc72f55d7d73cd8bdced2f7bfb637_93433927.png imagette296030211766377593 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29603008 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29603022,29603023,29603024,29603025,29603026,29603027,29603028,29603029,29603030,29603031,29603032,29603033?tags=Carton_gris,kraft,mal_croppe,metal,papier,plastique,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,flou,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1400486332] : ('0.03936891228867338',) no score found for photo 1400486332 We are sending mail with results at report@fotonower.com args[1400486330] : ('0.03936891228867338',) no score found for photo 1400486330 We are sending mail with results at report@fotonower.com args[1400486328] : ('0.03936891228867338',) no score found for photo 1400486328 We are sending mail with results at report@fotonower.com args[1400486320] : ('0.03936891228867338',) no score found for photo 1400486320 We are sending mail with results at report@fotonower.com args[1400486319] : ('0.03936891228867338',) no score found for photo 1400486319 We are sending mail with results at report@fotonower.com args[1400486318] : ('0.03936891228867338',) no score found for photo 1400486318 We are sending mail with results at report@fotonower.com args[1400486314] : ('0.03936891228867338',) no score found for photo 1400486314 We are sending mail with results at report@fotonower.com args[1400486310] : ('0.03936891228867338',) no score found for photo 1400486310 We are sending mail with results at report@fotonower.com args[1400486306] : ('0.03936891228867338',) no score found for photo 1400486306 We are sending mail with results at report@fotonower.com refus_total : 0.03936891228867338 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29603008 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_P29603008_22-12-2025_05_26_30.pdf results_Auto_P29603008_22-12-2025_05_26_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603008_22-12-2025_05_26_30.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','29603008','results_Auto_P29603008_22-12-2025_05_26_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603008_22-12-2025_05_26_30.pdf','pdf','','0.18','0.03936891228867338') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29603008]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1400486332, 1400486330, 1400486328, 1400486320, 1400486319, 1400486318, 1400486314, 1400486310, 1400486306] map_info['map_portfolio_photo'] : {29603008: [1400486332, 1400486330, 1400486328, 1400486320, 1400486319, 1400486318, 1400486314, 1400486310, 1400486306, 1400486271, 1400486270, 1400486268, 1400486267, 1400486265, 1400486259, 1400486256, 1400486254, 1400486253, 1400486247, 1400486244, 1400486237, 1400486235, 1400486233, 1400486231, 1400486229, 1400486227, 1400486209, 1400486206, 1400486204, 1400486200, 1400486196, 1400486195, 1400486193, 1400486191, 1400486189, 1400486172, 1400486170, 1400486168, 1400486167, 1400486165, 1400486163, 1400486158, 1400486156, 1400486155, 1400486152, 1400486142, 1400486140, 1400486138, 1400486137, 1400486127]} final : False mtd_id 4302 list_pids : [1400486332, 1400486330, 1400486328, 1400486320, 1400486319, 1400486318, 1400486314, 1400486310, 1400486306] 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, '4255893') ('4302', '29603008', '1400486332', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486330', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486328', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486320', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486319', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486318', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486314', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486310', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486306', None, None, None, None, None, '4255893') 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', '29603008', '1400486332', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486330', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486328', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486320', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486319', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486318', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486314', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486310', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486306', None, None, None, None, None, '4255893')] time used for this insertion : 0.014790534973144531 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.694414854049683 time spend to save output : 0.01500248908996582 total time spend for step 4 : 4.709417343139648 step5:split_time_score Mon Dec 22 05:26:34 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 : ['29603008'] 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 : [('29603008',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29603008) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1400486332: {'path': 'temp/1766377590_1403133_1400486332_9ee5e51bc0a91920610c3021bc79f17d.jpg', 'extension': 'jpg'}, 1400486328: {'path': 'temp/1766377590_1403133_1400486328_98d461aa25d542fd6d6e019d50ab8047.jpg', 'extension': 'jpg'}, 1400486330: {'path': 'temp/1766377590_1403133_1400486330_acc6c1afb4d6e1574b3c4d5b4b3047a2.jpg', 'extension': 'jpg'}, 1400486306: {'path': 'temp/1766377590_1403133_1400486306_4c4d2bb45e429aa8fd8f3ebbf1112359.jpg', 'extension': 'jpg'}, 1400486310: {'path': 'temp/1766377590_1403133_1400486310_c26c424363be59da8bfa6bf1a08fdef3.jpg', 'extension': 'jpg'}, 1400486319: {'path': 'temp/1766377590_1403133_1400486319_36051926936fec4f6f7ea48d5f8a8c28.jpg', 'extension': 'jpg'}, 1400486320: {'path': 'temp/1766377590_1403133_1400486320_57cecb3927f2befdcaff6fe94c0d9f39.jpg', 'extension': 'jpg'}, 1400486314: {'path': 'temp/1766377590_1403133_1400486314_108e979bb5728d501e7073be9167c2f9.jpg', 'extension': 'jpg'}, 1400486318: {'path': 'temp/1766377590_1403133_1400486318_27c1eefac595c58119e9de47fc5f1e43.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 = 29603008; (('arc_en_ciel_jrm_live',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29603008 group by h (('05', 50),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29603008 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 (29603008) 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 (29603008) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 22122025 29603008 Nombre de photos uploadées : 50 / 23040 (0%) 22122025 29603008 Nombre de photos taguées (types de déchets): 0 / 50 (0%) 22122025 29603008 Nombre de photos taguées (volume) : 0 / 50 (0%) [{'photo_id': 1400486127, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/7ef50a9cb0766f6823301dab3eabb7dd.jpg', 'username': None, 'uploaded_at': 1766376967, 'text': 'image_22122025_05_15_43_10136.jpg'}, {'photo_id': 1400486142, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/7edeac00d2a75009d8d705e2114dee99.jpg', 'username': None, 'uploaded_at': 1766377027, 'text': 'image_22122025_05_15_53_10133.jpg'}, {'photo_id': 1400486140, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/95206094ddb821849ef6dfc5996fd4f9.jpg', 'username': None, 'uploaded_at': 1766377027, 'text': 'image_22122025_05_16_04_010157m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400486138, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/22/410143d29d8cce106106dced55ce5358.jpg', 'username': None, 'uploaded_at': 1766377027, 'text': 'image_22122025_05_16_14_010136m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ?????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002166748046875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 29603008, '2025-12-22' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2771578,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24565792083740234 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= 2771578 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2771578, 'dashboard_run_id': 2778319, 'mtr_portfolio_id': 29602779, 'dashboard_result_id': 18592672, '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_P29602779_22-12-2025_05_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29602780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29602781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29602782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29602783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29602784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29602785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29602786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29602787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29602788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29602789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29602790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29602791, 'pht': 3726}}"}, {'dashboat_entry_day': 2771578, 'dashboard_run_id': 2778319, 'mtr_portfolio_id': 29603008, 'dashboard_result_id': 18592673, '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_P29603008_22-12-2025_05_25_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603021, '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 = 29602779 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': 4255871, 'mtr_portfolio_id': 29602779, 'created_at': datetime.datetime(2025, 12, 22, 5, 16, 57), 'result': '0.11253841524993877', 'result_long': None, 'result_double': None}] Qualite : 0.11253841524993877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29602779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29602779_22-12-2025_05_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29602779 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_P29602779_22-12-2025_05_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29602780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29602781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29602782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29602783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29602784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29602785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29602786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29602787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29602788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29602789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29602790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29602791, 'pht': 3726}}" where mtr_portfolio_id = 29602779 and dashboard_run_id = 2778319 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`=29602779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18592672, 0.11253841524993877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29602779_22-12-2025_05_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29602780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29602781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29602782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29602783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29602784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29602785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29602786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29602787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29602788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29602789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29602790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29602791, '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 = 29603008 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': 4255893, 'mtr_portfolio_id': 29603008, 'created_at': datetime.datetime(2025, 12, 22, 5, 26, 29), 'result': '0.03936891228867338', 'result_long': None, 'result_double': None}] Qualite : 0.03936891228867338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29603008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603008_22-12-2025_05_26_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29603008 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_P29603008_22-12-2025_05_26_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603021, 'pht': 3726}}" where mtr_portfolio_id = 29603008 and dashboard_run_id = 2778319 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`=29603008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18592673, 0.03936891228867338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29603008_22-12-2025_05_26_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29603010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29603011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29603012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29603013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29603014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29603015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29603016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29603017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29603018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29603019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29603020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29603021, '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 (29602779,29603008) result : ((1400481079,), (1400485550,), (1400485599,), (1400486088,), (1400486090,), (1400486092,), (1400486094,), (1400486105,), (1400486109,), (1400486112,), (1400486129,), (1400486127,), (1400486137,), (1400486138,), (1400486140,), (1400486142,), (1400486152,), (1400486155,), (1400486156,), (1400486158,), (1400486163,), (1400486165,), (1400486167,), (1400486168,), (1400486170,), (1400486172,), (1400486189,), (1400486191,), (1400486193,), (1400486195,), (1400486196,), (1400486200,), (1400486204,), (1400486206,), (1400486209,), (1400486227,), (1400486229,), (1400486231,), (1400486233,), (1400486235,), (1400486237,), (1400486244,), (1400486247,), (1400486253,), (1400486254,), (1400486256,), (1400486259,), (1400486265,), (1400486267,), (1400486268,), (1400486270,), (1400486271,), (1400486306,), (1400486310,), (1400486314,), (1400486318,), (1400486319,), (1400486320,), (1400486328,), (1400486330,), (1400486332,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'22122025': {'nb_upload': 50, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29603008]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1400486332, 1400486330, 1400486328, 1400486320, 1400486319, 1400486318, 1400486314, 1400486310, 1400486306] map_info['map_portfolio_photo'] : {29603008: [1400486332, 1400486330, 1400486328, 1400486320, 1400486319, 1400486318, 1400486314, 1400486310, 1400486306, 1400486271, 1400486270, 1400486268, 1400486267, 1400486265, 1400486259, 1400486256, 1400486254, 1400486253, 1400486247, 1400486244, 1400486237, 1400486235, 1400486233, 1400486231, 1400486229, 1400486227, 1400486209, 1400486206, 1400486204, 1400486200, 1400486196, 1400486195, 1400486193, 1400486191, 1400486189, 1400486172, 1400486170, 1400486168, 1400486167, 1400486165, 1400486163, 1400486158, 1400486156, 1400486155, 1400486152, 1400486142, 1400486140, 1400486138, 1400486137, 1400486127]} final : True mtd_id 4302 list_pids : [1400486332, 1400486330, 1400486328, 1400486320, 1400486319, 1400486318, 1400486314, 1400486310, 1400486306] Looping around the photos to save general results len do output : 1 /29603008Didn'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, '4255893') ('4302', '29603008', '1400486332', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486330', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486328', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486320', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486319', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486318', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486314', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486310', None, None, None, None, None, '4255893') ('4302', None, None, None, None, None, None, None, '4255893') ('4302', '29603008', '1400486306', None, None, None, None, None, '4255893') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29603008', 'None', None, None, None, None, '4255893'), ('4302', '29603008', '1400486332', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486330', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486328', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486320', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486319', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486318', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486314', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486310', None, None, None, None, None, '4255893'), ('4302', '29603008', '1400486306', None, None, None, None, None, '4255893')] time used for this insertion : 0.015405893325805664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.48339319229125977 time spend to save output : 0.015625476837158203 total time spend for step 5 : 0.49901866912841797 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 (4255893) 2.07user 2.02system 0:10.66elapsed 38%CPU (0avgtext+0avgdata 167712maxresident)k 136inputs+9856outputs (4major+76529minor)pagefaults 0swaps