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 : 584507 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 (3640394) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3640394) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26358604 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3640394'] with mtr_portfolio_ids : ['26358604'] and first list_photo_ids : [] new path : /proc/584507/ Name: python3 Umask: 0002 State: R (running) Tgid: 584507 Ngid: 0 Pid: 584507 PPid: 584506 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 584507 NSpid: 584507 NSpgid: 583421 NSsid: 583421 VmPeak: 1107248 kB VmSize: 1107248 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100596 kB VmRSS: 100596 kB RssAnon: 60168 kB RssFile: 40428 kB RssShmem: 0 kB VmData: 866000 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 572 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: 76 nonvoluntary_ctxt_switches: 125 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '584507', 'Ngid': '0', 'Pid': '584507', 'PPid': '584506', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '584507', 'NSpid': '584507', 'NSpgid': '583421', 'NSsid': '583421', 'VmPeak': '1107248 kB', 'VmSize': '1107248 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100596 kB', 'VmRSS': '100596 kB', 'RssAnon': '60168 kB', 'RssFile': '40428 kB', 'RssShmem': '0 kB', 'VmData': '866000 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '572 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': '76', 'nonvoluntary_ctxt_switches': '125'} ('datou_batch_current', '584507', '1107248', '0', '1107248', '866000', '100596', b'', 'marlene', '3640394') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26358604) 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 (3640394 ) ) 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 (26358604) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1380227830, 'portfolio_id': 26358604}, {'photo_id': 1380227829, 'portfolio_id': 26358604}, {'photo_id': 1380227828, 'portfolio_id': 26358604}, {'photo_id': 1380227827, 'portfolio_id': 26358604}, {'photo_id': 1380227818, 'portfolio_id': 26358604}, {'photo_id': 1380227792, 'portfolio_id': 26358604}, {'photo_id': 1380227791, 'portfolio_id': 26358604}, {'photo_id': 1380227790, 'portfolio_id': 26358604}, {'photo_id': 1380227789, 'portfolio_id': 26358604}, {'photo_id': 1380227788, 'portfolio_id': 26358604}, {'photo_id': 1380227730, 'portfolio_id': 26358604}, {'photo_id': 1380227729, 'portfolio_id': 26358604}, {'photo_id': 1380227728, 'portfolio_id': 26358604}, {'photo_id': 1380227727, 'portfolio_id': 26358604}, {'photo_id': 1380227601, 'portfolio_id': 26358604}, {'photo_id': 1380227600, 'portfolio_id': 26358604}, {'photo_id': 1380227599, 'portfolio_id': 26358604}, {'photo_id': 1380227598, 'portfolio_id': 26358604}, {'photo_id': 1380227597, 'portfolio_id': 26358604}, {'photo_id': 1380227561, 'portfolio_id': 26358604}, {'photo_id': 1380227560, 'portfolio_id': 26358604}, {'photo_id': 1380227559, 'portfolio_id': 26358604}, {'photo_id': 1380227558, 'portfolio_id': 26358604}, {'photo_id': 1380227473, 'portfolio_id': 26358604}, {'photo_id': 1380227472, 'portfolio_id': 26358604}, {'photo_id': 1380227471, 'portfolio_id': 26358604}, {'photo_id': 1380227470, 'portfolio_id': 26358604}, {'photo_id': 1380227451, 'portfolio_id': 26358604}, {'photo_id': 1380227450, 'portfolio_id': 26358604}, {'photo_id': 1380227449, 'portfolio_id': 26358604}, {'photo_id': 1380227448, 'portfolio_id': 26358604}, {'photo_id': 1380227280, 'portfolio_id': 26358604}, {'photo_id': 1380227278, 'portfolio_id': 26358604}, {'photo_id': 1380227276, 'portfolio_id': 26358604}, {'photo_id': 1380227274, 'portfolio_id': 26358604}, {'photo_id': 1380227212, 'portfolio_id': 26358604}, {'photo_id': 1380227109, 'portfolio_id': 26358604}, {'photo_id': 1380227108, 'portfolio_id': 26358604}, {'photo_id': 1380227107, 'portfolio_id': 26358604}, {'photo_id': 1380227106, 'portfolio_id': 26358604}, {'photo_id': 1380227105, 'portfolio_id': 26358604}] map_portfolio_id_photo_id: {26358604: [1380227830, 1380227829, 1380227828, 1380227827, 1380227818, 1380227792, 1380227791, 1380227790, 1380227789, 1380227788, 1380227730, 1380227729, 1380227728, 1380227727, 1380227601, 1380227600, 1380227599, 1380227598, 1380227597, 1380227561, 1380227560, 1380227559, 1380227558, 1380227473, 1380227472, 1380227471, 1380227470, 1380227451, 1380227450, 1380227449, 1380227448, 1380227280, 1380227278, 1380227276, 1380227274, 1380227212, 1380227109, 1380227108, 1380227107, 1380227106, 1380227105]} ##### 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.015543460845947266 #### 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 Sat Aug 30 02:26:28 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 (26358604) 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 : 26358604 get user id for portfolio 26358604 get sub ptf for main ptf 26358604, type 3726 and hashtags ['kraft', 'Carton_gris', 'flou', 'mal_croppe', 'papier', 'metal', 'environnement', 'plastique', 'cartonnette', 'Carton_brun', 'autre_refus', 'Teint_Dans_La_Masse'] 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`=26358604 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','flou','mal_croppe','papier','metal','environnement','plastique','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse')) 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`=26358604 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','flou','mal_croppe','papier','metal','environnement','plastique','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 26358604, 'sub_port_id': 26358614, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734375, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 26)}, 'Carton_gris': {'main_port_id': 26358604, 'sub_port_id': 26358615, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734376, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 26)}, 'autre_refus': {'main_port_id': 26358604, 'sub_port_id': 26358616, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734377, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 26)}, 'papier': {'main_port_id': 26358604, 'sub_port_id': 26358617, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734378, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 26358604, 'sub_port_id': 26358618, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734379, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 26)}, 'flou': {'main_port_id': 26358604, 'sub_port_id': 26358619, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734380, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 26)}, 'cartonnette': {'main_port_id': 26358604, 'sub_port_id': 26358620, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734381, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 26)}, 'environnement': {'main_port_id': 26358604, 'sub_port_id': 26358621, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734382, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 26)}, 'mal_croppe': {'main_port_id': 26358604, 'sub_port_id': 26358622, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734383, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 26)}, 'Carton_brun': {'main_port_id': 26358604, 'sub_port_id': 26358623, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734384, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 26)}, 'kraft': {'main_port_id': 26358604, 'sub_port_id': 26358624, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734385, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 26)}, 'plastique': {'main_port_id': 26358604, 'sub_port_id': 26358625, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734386, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26358614 , 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=26358604 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 (26358614) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26358604) result : ((1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,)) 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 (1380227600) 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 26358615 , 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=26358604 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 (26358615) result : ((1380227490,), (1380227491,), (1380227492,), (1380227542,), (1380227562,), (1380227563,), (1380227564,), (1380227565,), (1380227718,), (1380227719,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26358604) result : ((1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,)) 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 (1380227600) 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 26358616 , 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=26358604 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 (26358616) result : ((1380227488,), (1380227489,), (1380227555,), (1380227556,), (1380227557,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26358604) result : ((1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,)) 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 (1380227600) 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 26358617 , 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=26358604 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 (26358617) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26358604) result : ((1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,)) 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 (1380227600) 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 26358618 , 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=26358604 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 (26358618) result : ((1380227486,), (1380227553,), (1380227554,), (1380227611,), (1380227612,), (1380227613,), (1380227715,), (1380227716,), (1380227717,), (1380227799,), (1380227800,), (1380227801,), (1380227812,), (1380227813,), (1380227814,), (1380227815,), (1380227816,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26358604) result : ((1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,)) 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 (1380227600) 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 26358619 , 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=26358604 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 (26358619) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26358604) result : ((1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,)) 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 (1380227600) 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 26358620 , 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=26358604 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 (26358620) result : ((1380227495,), (1380227496,), (1380227497,), (1380227545,), (1380227566,), (1380227567,), (1380227568,), (1380227569,), (1380227614,), (1380227803,), (1380227804,), (1380227805,), (1380227817,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26358604) result : ((1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,)) 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 (1380227600) 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 26358621 , 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=26358604 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 (26358621) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26358604) result : ((1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,)) 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 (1380227600) 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 26358622 , 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=26358604 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 (26358622) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26358604) result : ((1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,)) 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 (1380227600) 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 26358623 , 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=26358604 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 (26358623) result : ((1380227498,), (1380227499,), (1380227500,), (1380227570,), (1380227571,), (1380227572,), (1380227720,), (1380227721,), (1380227807,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26358604) result : ((1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,)) 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 (1380227600) 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 26358624 , 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=26358604 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 (26358624) result : ((1380227503,), (1380227574,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26358604) result : ((1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,)) 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 (1380227600) 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 26358625 , 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=26358604 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 (26358625) result : ((1380227501,), (1380227573,), (1380227808,), (1380227809,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26358604) result : ((1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,)) 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 (1380227600) 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`=26358604 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','flou','mal_croppe','papier','metal','environnement','plastique','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse')) 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`=26358604 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','flou','mal_croppe','papier','metal','environnement','plastique','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 26358604, 'sub_port_id': 26358626, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734387, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 31)}, 'Carton_gris': {'main_port_id': 26358604, 'sub_port_id': 26358627, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734388, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 31)}, 'autre_refus': {'main_port_id': 26358604, 'sub_port_id': 26358628, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734389, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 31)}, 'papier': {'main_port_id': 26358604, 'sub_port_id': 26358629, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734390, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 26358604, 'sub_port_id': 26358630, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734391, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 31)}, 'flou': {'main_port_id': 26358604, 'sub_port_id': 26358631, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734392, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 31)}, 'cartonnette': {'main_port_id': 26358604, 'sub_port_id': 26358632, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734393, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 31)}, 'environnement': {'main_port_id': 26358604, 'sub_port_id': 26358633, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734394, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 31)}, 'mal_croppe': {'main_port_id': 26358604, 'sub_port_id': 26358634, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734395, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 31)}, 'Carton_brun': {'main_port_id': 26358604, 'sub_port_id': 26358635, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734396, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 31)}, 'kraft': {'main_port_id': 26358604, 'sub_port_id': 26358636, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734397, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 31)}, 'plastique': {'main_port_id': 26358604, 'sub_port_id': 26358637, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17734398, 'last_updated_at': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 30, 2, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 30, 2, 17, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26358626,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26358614 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26358627,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26358615 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26358628,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26358616 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26358629,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26358617 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26358630,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26358618 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26358631,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26358619 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26358632,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26358620 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26358633,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26358621 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26358634,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26358622 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26358635,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26358623 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26358636,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26358624 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26358637,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26358625 lien utilise dans velours : https://marlene.fotonower.com/velours/26358626,26358627,26358628,26358629,26358630,26358631,26358632,26358633,26358634,26358635,26358636,26358637?tags=metal,Carton_gris,autre_refus,papier,Teint_Dans_La_Masse,flou,cartonnette,environnement,mal_croppe,Carton_brun,kraft,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26358604]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1380227830, 1380227829, 1380227828, 1380227827, 1380227818, 1380227792, 1380227791, 1380227790, 1380227789, 1380227788] map_info['map_portfolio_photo'] : {26358604: [1380227830, 1380227829, 1380227828, 1380227827, 1380227818, 1380227792, 1380227791, 1380227790, 1380227789, 1380227788, 1380227730, 1380227729, 1380227728, 1380227727, 1380227601, 1380227600, 1380227599, 1380227598, 1380227597, 1380227561, 1380227560, 1380227559, 1380227558, 1380227473, 1380227472, 1380227471, 1380227470, 1380227451, 1380227450, 1380227449, 1380227448, 1380227280, 1380227278, 1380227276, 1380227274, 1380227212, 1380227109, 1380227108, 1380227107, 1380227106, 1380227105]} final : False mtd_id 4302 list_pids : [1380227830, 1380227829, 1380227828, 1380227827, 1380227818, 1380227792, 1380227791, 1380227790, 1380227789, 1380227788] Looping around the photos to save general results len do output : 1 /26358604. 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, '3640394') ('4302', '26358604', '1380227830', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227829', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227828', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227827', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227818', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227792', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227791', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227790', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227789', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227788', None, None, None, None, None, '3640394') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26358604', "{'metal': 26358614, 'Carton_gris': 26358615, 'autre_refus': 26358616, 'papier': 26358617, 'Teint_Dans_La_Masse': 26358618, 'flou': 26358619, 'cartonnette': 26358620, 'environnement': 26358621, 'mal_croppe': 26358622, 'Carton_brun': 26358623, 'kraft': 26358624, 'plastique': 26358625}", None, None, None, None, '3640394'), ('4302', '26358604', '1380227830', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227829', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227828', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227827', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227818', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227792', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227791', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227790', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227789', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227788', None, None, None, None, None, '3640394')] time used for this insertion : 0.01898360252380371 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.47481799125671387 time spend to save output : 0.019403696060180664 total time spend for step 1 : 0.49422168731689453 step2:final Sat Aug 30 02: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 (26358604) 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 26358604 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1380227109,1380227108,1380227107,1380227106,1380227105,1380227280,1380227278,1380227276,1380227274,1380227212,1380227451,1380227450,1380227449,1380227448,1380227473,1380227472,1380227471,1380227470,1380227561,1380227560,1380227559,1380227558,1380227601,1380227600,1380227599,1380227598,1380227597,1380227730,1380227729,1380227728,1380227727,1380227792,1380227791,1380227790,1380227789,1380227788,1380227830,1380227829,1380227828,1380227827,1380227818); 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([26358604]) Inside saveOutput : final : False verbose : True original output for save of step final : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',)} new output for save of step final : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',)} [1380227830, 1380227829, 1380227828, 1380227827, 1380227818, 1380227792, 1380227791, 1380227790, 1380227789, 1380227788] map_info['map_portfolio_photo'] : {26358604: [1380227830, 1380227829, 1380227828, 1380227827, 1380227818, 1380227792, 1380227791, 1380227790, 1380227789, 1380227788, 1380227730, 1380227729, 1380227728, 1380227727, 1380227601, 1380227600, 1380227599, 1380227598, 1380227597, 1380227561, 1380227560, 1380227559, 1380227558, 1380227473, 1380227472, 1380227471, 1380227470, 1380227451, 1380227450, 1380227449, 1380227448, 1380227280, 1380227278, 1380227276, 1380227274, 1380227212, 1380227109, 1380227108, 1380227107, 1380227106, 1380227105]} final : False mtd_id 4302 list_pids : [1380227830, 1380227829, 1380227828, 1380227827, 1380227818, 1380227792, 1380227791, 1380227790, 1380227789, 1380227788] Looping around the photos to save general results len do output : 10 /1380227830.Didn't retrieve data . /1380227829.Didn't retrieve data . /1380227828.Didn't retrieve data . /1380227827.Didn't retrieve data . /1380227818.Didn't retrieve data . /1380227792.Didn't retrieve data . /1380227791.Didn't retrieve data . /1380227790.Didn't retrieve data . /1380227789.Didn't retrieve data . /1380227788.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, '3640394') ('4302', '26358604', '1380227830', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227829', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227828', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227827', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227818', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227792', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227791', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227790', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227789', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227788', None, None, None, None, None, '3640394') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26358604', '1380227830', '0.0544609480664652', None, None, None, None, '3640394'), ('4302', '26358604', '1380227829', '0.0544609480664652', None, None, None, None, '3640394'), ('4302', '26358604', '1380227828', '0.0544609480664652', None, None, None, None, '3640394'), ('4302', '26358604', '1380227827', '0.0544609480664652', None, None, None, None, '3640394'), ('4302', '26358604', '1380227818', '0.0544609480664652', None, None, None, None, '3640394'), ('4302', '26358604', '1380227792', '0.0544609480664652', None, None, None, None, '3640394'), ('4302', '26358604', '1380227791', '0.0544609480664652', None, None, None, None, '3640394'), ('4302', '26358604', '1380227790', '0.0544609480664652', None, None, None, None, '3640394'), ('4302', '26358604', '1380227789', '0.0544609480664652', None, None, None, None, '3640394'), ('4302', '26358604', '1380227788', '0.0544609480664652', None, None, None, None, '3640394')] time used for this insertion : 0.021587848663330078 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07452845573425293 time spend to save output : 0.02214646339416504 total time spend for step 2 : 0.09667491912841797 step3:velours_tree Sat Aug 30 02: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 : {26358604: [{'metal': 26358614, 'Carton_gris': 26358615, 'autre_refus': 26358616, 'papier': 26358617, 'Teint_Dans_La_Masse': 26358618, 'flou': 26358619, 'cartonnette': 26358620, 'environnement': 26358621, 'mal_croppe': 26358622, 'Carton_brun': 26358623, 'kraft': 26358624, 'plastique': 26358625}]} input_args_next_step : {26358604: ()} output_args : {26358604: [{'metal': 26358614, 'Carton_gris': 26358615, 'autre_refus': 26358616, 'papier': 26358617, 'Teint_Dans_La_Masse': 26358618, 'flou': 26358619, 'cartonnette': 26358620, 'environnement': 26358621, 'mal_croppe': 26358622, 'Carton_brun': 26358623, 'kraft': 26358624, 'plastique': 26358625}]} args : 26358604 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 : ({'metal': 26358614, 'Carton_gris': 26358615, 'autre_refus': 26358616, 'papier': 26358617, 'Teint_Dans_La_Masse': 26358618, 'flou': 26358619, 'cartonnette': 26358620, 'environnement': 26358621, 'mal_croppe': 26358622, 'Carton_brun': 26358623, 'kraft': 26358624, 'plastique': 26358625},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26358604) 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([26358604]) 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.31336402893066406 time spend to save output : 4.57763671875e-05 total time spend for step 3 : 0.31340980529785156 step4:send_mail_cod Sat Aug 30 02: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 ! complete output_args for input 2 : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',)} input_args_next_step : {1380227830: ()} output_args : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',)} args : 1380227830 depend.output_id : 0 input_args_next_step : {1380227830: ('0.0544609480664652',), 1380227829: ()} output_args : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',)} args : 1380227829 depend.output_id : 0 input_args_next_step : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ()} output_args : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',)} args : 1380227828 depend.output_id : 0 input_args_next_step : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ()} output_args : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',)} args : 1380227827 depend.output_id : 0 input_args_next_step : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ()} output_args : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',)} args : 1380227818 depend.output_id : 0 input_args_next_step : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ()} output_args : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',)} args : 1380227792 depend.output_id : 0 input_args_next_step : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ()} output_args : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',)} args : 1380227791 depend.output_id : 0 input_args_next_step : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ()} output_args : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',)} args : 1380227790 depend.output_id : 0 input_args_next_step : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ()} output_args : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',)} args : 1380227789 depend.output_id : 0 input_args_next_step : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ()} output_args : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',)} args : 1380227788 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 : {26358604: [{'metal': 26358614, 'Carton_gris': 26358615, 'autre_refus': 26358616, 'papier': 26358617, 'Teint_Dans_La_Masse': 26358618, 'flou': 26358619, 'cartonnette': 26358620, 'environnement': 26358621, 'mal_croppe': 26358622, 'Carton_brun': 26358623, 'kraft': 26358624, 'plastique': 26358625}]} input_args_next_step : {1380227830: ('0.0544609480664652',), 1380227829: ('0.0544609480664652',), 1380227828: ('0.0544609480664652',), 1380227827: ('0.0544609480664652',), 1380227818: ('0.0544609480664652',), 1380227792: ('0.0544609480664652',), 1380227791: ('0.0544609480664652',), 1380227790: ('0.0544609480664652',), 1380227789: ('0.0544609480664652',), 1380227788: ('0.0544609480664652',), 26358604: ()} output_args : {26358604: [{'metal': 26358614, 'Carton_gris': 26358615, 'autre_refus': 26358616, 'papier': 26358617, 'Teint_Dans_La_Masse': 26358618, 'flou': 26358619, 'cartonnette': 26358620, 'environnement': 26358621, 'mal_croppe': 26358622, 'Carton_brun': 26358623, 'kraft': 26358624, 'plastique': 26358625}]} args : 26358604 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.0544609480664652',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26358604) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1380227830,1380227829,1380227828,1380227827,1380227818,1380227792,1380227791,1380227790,1380227789,1380227788) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1380227788 begin to download photo : 1380227791 begin to download photo : 1380227827 begin to download photo : 1380227830 download finish for photo 1380227788 begin to download photo : 1380227789 download finish for photo 1380227827 begin to download photo : 1380227828 download finish for photo 1380227791 begin to download photo : 1380227792 download finish for photo 1380227830 download finish for photo 1380227828 begin to download photo : 1380227829 download finish for photo 1380227789 begin to download photo : 1380227790 download finish for photo 1380227792 begin to download photo : 1380227818 download finish for photo 1380227829 download finish for photo 1380227790 download finish for photo 1380227818 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette263586141756513589/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P26358604_30-08-2025_02_26_29.pdf 26358614 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26358614 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette263586141756513589 26358616 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26358616 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380227488: '1756513147_1322706_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317646_0.png', 1380227489: '1756513147_1322706_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317636_0.png', 1380227555: '1756513287_1328556_1380227280_74080e97ff46993ee52d22a2f3d5a2e9_34637128_rle_crop_3936318103_0.png', 1380227556: '1756513287_1328556_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317646_0.png', 1380227557: '1756513287_1328556_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317636_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/1ea5c734edef9933bdd20f498105e1f8_31650396.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/e6095677e5a0645962025e52d2b80ae7_94582562.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/55c4382b802d036f3282307fe0317168_89287441.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/1ea5c734edef9933bdd20f498105e1f8_26254931.png change filename to text .imagette263586161756513590/ imagette263586161756513590/1756513147_1322706_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317646_0.png.png imagette263586161756513590/1756513287_1328556_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317646_0.png.png imagette263586161756513590/1756513147_1322706_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317636_0.png.png imagette263586161756513590/1756513287_1328556_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317636_0.png.png imagette263586161756513590/1756513287_1328556_1380227280_74080e97ff46993ee52d22a2f3d5a2e9_34637128_rle_crop_3936318103_0.png.png imagette263586191756513590/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/e6095677e5a0645962025e52d2b80ae7_38418094.png imagette263586161756513590 26358619 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26358619 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette263586191756513590 26358620 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26358620 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380227495: '1756513147_1322706_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317603_0.png', 1380227496: '1756513147_1322706_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317600_0.png', 1380227497: '1756513147_1322706_1380227108_fa9e0e0381c408061b883a5041fc2d83_94912989_rle_crop_3936317625_0.png', 1380227545: '1756513267_1328121_1380227448_38f8cb017c27394a8d90344a7d2894c6_59199307_rle_crop_3936317886_0.png', 1380227566: '1756513287_1328556_1380227280_74080e97ff46993ee52d22a2f3d5a2e9_34637128_rle_crop_3936318099_0.png', 1380227567: '1756513287_1328556_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317603_0.png', 1380227568: '1756513287_1328556_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317600_0.png', 1380227569: '1756513287_1328556_1380227108_fa9e0e0381c408061b883a5041fc2d83_94912989_rle_crop_3936317625_0.png', 1380227614: '1756513385_1334164_1380227472_942029792f7208806eb5ef2f7a8915f2_62317977_rle_crop_3936318578_0.png', 1380227803: '1756513507_1340099_1380227560_b84b97d5c27d14dd4aab86782e2c0ae3_94596780_rle_crop_3936318894_0.png', 1380227804: '1756513507_1340099_1380227559_aa7ef1ddb829ce5986b1dd05c92bcdbb_9939692_rle_crop_3936318907_0.png', 1380227805: '1756513507_1340099_1380227558_735b37b9d6f5840ae0bebfd6a7fcc6ea_51625834_rle_crop_3936318924_0.png', 1380227817: '1756513525_1340513_1380227472_942029792f7208806eb5ef2f7a8915f2_62317977_rle_crop_3936318578_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/9517546fb6fe27494eb28b69823433d5_9918476.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/44fd6a5365943d2badd964d745bf9f9a_91446645.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/381136e036dc1b3c5f29c61b1bf0fed9_32915167.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/e697ba6949e717000814b9ac841988df_25116120.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/79b1341d7b7a542d76f191395d21b98f_42632411.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/9517546fb6fe27494eb28b69823433d5_76003750.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/44fd6a5365943d2badd964d745bf9f9a_14571462.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/381136e036dc1b3c5f29c61b1bf0fed9_86036609.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/b68a0dc3593e959a54cabd9457034c09_33641878.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/2d9d4609f59b46df803914fb689610dd_51444218.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/bb741f874970a9d1e4588d64a4512a18_57853745.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/9514d3541a0f5fa1cfe9f095d6d31ec6_73462847.png change filename to text .imagette263586201756513590/ imagette263586201756513590/1756513287_1328556_1380227108_fa9e0e0381c408061b883a5041fc2d83_94912989_rle_crop_3936317625_0.png.png imagette263586201756513590/1756513267_1328121_1380227448_38f8cb017c27394a8d90344a7d2894c6_59199307_rle_crop_3936317886_0.png.png imagette263586201756513590/1756513507_1340099_1380227558_735b37b9d6f5840ae0bebfd6a7fcc6ea_51625834_rle_crop_3936318924_0.png.png imagette263586201756513590/1756513507_1340099_1380227560_b84b97d5c27d14dd4aab86782e2c0ae3_94596780_rle_crop_3936318894_0.png.png imagette263586201756513590/1756513287_1328556_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317603_0.png.png imagette263586201756513590/1756513385_1334164_1380227472_942029792f7208806eb5ef2f7a8915f2_62317977_rle_crop_3936318578_0.png.png imagette263586201756513590/1756513287_1328556_1380227280_74080e97ff46993ee52d22a2f3d5a2e9_34637128_rle_crop_3936318099_0.png.png imagette263586201756513590/1756513525_1340513_1380227472_942029792f7208806eb5ef2f7a8915f2_62317977_rle_crop_3936318578_0.png.png imagette263586201756513590/1756513147_1322706_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317600_0.png.png imagette263586201756513590/1756513147_1322706_1380227108_fa9e0e0381c408061b883a5041fc2d83_94912989_rle_crop_3936317625_0.png.png imagette263586201756513590/1756513147_1322706_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317603_0.png.png imagette263586201756513590/1756513507_1340099_1380227559_aa7ef1ddb829ce5986b1dd05c92bcdbb_9939692_rle_crop_3936318907_0.png.png imagette263586201756513590/1756513287_1328556_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317600_0.png.png imagette263586221756513591/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/b68a0dc3593e959a54cabd9457034c09_40192399.png imagette263586201756513590 26358622 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26358622 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette263586221756513591 26358624 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26358624 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380227503: '1756513147_1322706_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317599_0.png', 1380227574: '1756513287_1328556_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317599_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/2a7a07f0e0cebf1106176065d426383d_6911901.png change filename to text .imagette263586241756513591/ imagette263586241756513591/1756513147_1322706_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317599_0.png.png imagette263586241756513591/1756513287_1328556_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317599_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/2a7a07f0e0cebf1106176065d426383d_92738016.png imagette263586241756513591 26358625 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26358625 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380227501: '1756513147_1322706_1380227105_7dd20273abac3920ac19846022c83bed_3265413_rle_crop_3936317750_0.png', 1380227573: '1756513287_1328556_1380227105_7dd20273abac3920ac19846022c83bed_3265413_rle_crop_3936317750_0.png', 1380227808: '1756513507_1340099_1380227559_aa7ef1ddb829ce5986b1dd05c92bcdbb_9939692_rle_crop_3936318911_0.png', 1380227809: '1756513507_1340099_1380227558_735b37b9d6f5840ae0bebfd6a7fcc6ea_51625834_rle_crop_3936318925_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/1d9e0f4b60747e7e46534c2a9ad77b99_5337345.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/1d9e0f4b60747e7e46534c2a9ad77b99_56210587.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/a08dad93aa320e2d1e7bc940037af190_6365384.png change filename to text .imagette263586251756513591/ imagette263586251756513591/1756513147_1322706_1380227105_7dd20273abac3920ac19846022c83bed_3265413_rle_crop_3936317750_0.png.png imagette263586251756513591/1756513507_1340099_1380227559_aa7ef1ddb829ce5986b1dd05c92bcdbb_9939692_rle_crop_3936318911_0.png.png imagette263586251756513591/1756513287_1328556_1380227105_7dd20273abac3920ac19846022c83bed_3265413_rle_crop_3936317750_0.png.png imagette263586251756513591/1756513507_1340099_1380227558_735b37b9d6f5840ae0bebfd6a7fcc6ea_51625834_rle_crop_3936318925_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/e805cebc23dcedd79b21ad72ea9a0a33_5174260.png imagette263586251756513591 26358615 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26358615 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380227490: '1756513147_1322706_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317604_0.png', 1380227491: '1756513147_1322706_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317607_0.png', 1380227492: '1756513147_1322706_1380227108_fa9e0e0381c408061b883a5041fc2d83_94912989_rle_crop_3936317622_0.png', 1380227542: '1756513267_1328121_1380227450_353992807a582f59f4360de64f578a58_73215219_rle_crop_3936317879_0.png', 1380227562: '1756513287_1328556_1380227280_74080e97ff46993ee52d22a2f3d5a2e9_34637128_rle_crop_3936318097_0.png', 1380227563: '1756513287_1328556_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317604_0.png', 1380227564: '1756513287_1328556_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317607_0.png', 1380227565: '1756513287_1328556_1380227108_fa9e0e0381c408061b883a5041fc2d83_94912989_rle_crop_3936317622_0.png', 1380227718: '1756513405_1335237_1380227212_c44f4b87266d3e113e050c5f61089772_82109040_rle_crop_3936318772_0.png', 1380227719: '1756513405_1335237_1380227212_c44f4b87266d3e113e050c5f61089772_82109040_rle_crop_3936318770_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/c62c5a12b4a366bee652c95056a61f7e_83957232.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/92fd3924e5dceef1594a0bba618ff4bd_58005873.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/8bbd04adc09dfc966bc5fd40bb757b4f_21581983.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/b3e5175b8b538089ff89325ea9fb0d72_43536247.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/8d3eb6cc4194c63a24cbf95551953563_65918079.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/c62c5a12b4a366bee652c95056a61f7e_78162064.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/92fd3924e5dceef1594a0bba618ff4bd_76056406.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/8bbd04adc09dfc966bc5fd40bb757b4f_61786325.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/83736a2e5f985e725a67aae581259423_596570.png change filename to text .imagette263586151756513591/ imagette263586151756513591/1756513287_1328556_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317604_0.png.png imagette263586151756513591/1756513147_1322706_1380227108_fa9e0e0381c408061b883a5041fc2d83_94912989_rle_crop_3936317622_0.png.png imagette263586151756513591/1756513147_1322706_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317604_0.png.png imagette263586151756513591/1756513147_1322706_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317607_0.png.png imagette263586151756513591/1756513287_1328556_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317607_0.png.png imagette263586151756513591/1756513287_1328556_1380227108_fa9e0e0381c408061b883a5041fc2d83_94912989_rle_crop_3936317622_0.png.png imagette263586151756513591/1756513405_1335237_1380227212_c44f4b87266d3e113e050c5f61089772_82109040_rle_crop_3936318772_0.png.png imagette263586151756513591/1756513405_1335237_1380227212_c44f4b87266d3e113e050c5f61089772_82109040_rle_crop_3936318770_0.png.png imagette263586151756513591/1756513287_1328556_1380227280_74080e97ff46993ee52d22a2f3d5a2e9_34637128_rle_crop_3936318097_0.png.png imagette263586151756513591/1756513267_1328121_1380227450_353992807a582f59f4360de64f578a58_73215219_rle_crop_3936317879_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/668736053d1d23900d97d5ab538c9fde_74320893.png imagette263586151756513591 26358618 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26358618 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380227717: '1756513405_1335237_1380227212_c44f4b87266d3e113e050c5f61089772_82109040_rle_crop_3936318771_0.png', 1380227816: '1756513525_1340513_1380227470_5820579195980924c7d9d6aa740fce70_66661687_rle_crop_3936318603_0.png', 1380227815: '1756513525_1340513_1380227470_5820579195980924c7d9d6aa740fce70_66661687_rle_crop_3936318601_0.png', 1380227814: '1756513525_1340513_1380227471_7d3cd7e4ea3c82e7f9b4feb2def19223_69884437_rle_crop_3936318591_0.png', 1380227813: '1756513525_1340513_1380227561_65e31805eb6a67fea036084cfe07ed79_29581870_rle_crop_3936319076_0.png', 1380227812: '1756513525_1340513_1380227561_65e31805eb6a67fea036084cfe07ed79_29581870_rle_crop_3936319073_0.png', 1380227801: '1756513507_1340099_1380227559_aa7ef1ddb829ce5986b1dd05c92bcdbb_9939692_rle_crop_3936318908_0.png', 1380227800: '1756513507_1340099_1380227560_b84b97d5c27d14dd4aab86782e2c0ae3_94596780_rle_crop_3936318899_0.png', 1380227799: '1756513507_1340099_1380227560_b84b97d5c27d14dd4aab86782e2c0ae3_94596780_rle_crop_3936318896_0.png', 1380227486: '1756513147_1322706_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317644_0.png', 1380227716: '1756513405_1335237_1380227212_c44f4b87266d3e113e050c5f61089772_82109040_rle_crop_3936318774_0.png', 1380227715: '1756513405_1335237_1380227274_b84dfffe27fa2f2e255faecd43233505_1861363_rle_crop_3936318756_0.png', 1380227613: '1756513385_1334164_1380227470_5820579195980924c7d9d6aa740fce70_66661687_rle_crop_3936318603_0.png', 1380227612: '1756513385_1334164_1380227470_5820579195980924c7d9d6aa740fce70_66661687_rle_crop_3936318601_0.png', 1380227611: '1756513385_1334164_1380227471_7d3cd7e4ea3c82e7f9b4feb2def19223_69884437_rle_crop_3936318591_0.png', 1380227554: '1756513287_1328556_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317644_0.png', 1380227553: '1756513287_1328556_1380227280_74080e97ff46993ee52d22a2f3d5a2e9_34637128_rle_crop_3936318098_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/f3d0a7ea964d9d4df124d20a32797b0c_18996779.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/9ca50d88919c5524dd3b71ecd2f770af_38382766.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/a3e9a02edf30722086abf64757754fe6_88648920.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/6b31aae30c01ffe548436d6834ccc451_56241011.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/0447e71b8a7944c6d77459e48134ec82_69919749.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/df64565b32f2ae43c41bae4d98db9789_7581756.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/4d4888f7b4a7a40b669bf2a74f4e38b5_20529504.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/4260a72a41b8684bbc46c7b5646e75da_73676508.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/c7914a54dd210dd2a170a9065a3dc3fa_19414506.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/a81a714d8329020e8c1ab5907487daf4_50640740.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/9d251ecf099bc8869b125e75b6ac161b_91029948.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/b5095f5ad357311cb5fa1d3d5baf0267_54985505.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/9ca50d88919c5524dd3b71ecd2f770af_7539407.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/a3e9a02edf30722086abf64757754fe6_33850609.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/6b31aae30c01ffe548436d6834ccc451_57174237.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/a81a714d8329020e8c1ab5907487daf4_84987871.png change filename to text .imagette263586181756513592/ imagette263586181756513592/1756513287_1328556_1380227280_74080e97ff46993ee52d22a2f3d5a2e9_34637128_rle_crop_3936318098_0.png.png imagette263586181756513592/1756513525_1340513_1380227561_65e31805eb6a67fea036084cfe07ed79_29581870_rle_crop_3936319073_0.png.png imagette263586181756513592/1756513507_1340099_1380227560_b84b97d5c27d14dd4aab86782e2c0ae3_94596780_rle_crop_3936318896_0.png.png imagette263586181756513592/1756513507_1340099_1380227560_b84b97d5c27d14dd4aab86782e2c0ae3_94596780_rle_crop_3936318899_0.png.png imagette263586181756513592/1756513405_1335237_1380227212_c44f4b87266d3e113e050c5f61089772_82109040_rle_crop_3936318771_0.png.png imagette263586181756513592/1756513507_1340099_1380227559_aa7ef1ddb829ce5986b1dd05c92bcdbb_9939692_rle_crop_3936318908_0.png.png imagette263586181756513592/1756513525_1340513_1380227471_7d3cd7e4ea3c82e7f9b4feb2def19223_69884437_rle_crop_3936318591_0.png.png imagette263586181756513592/1756513385_1334164_1380227470_5820579195980924c7d9d6aa740fce70_66661687_rle_crop_3936318601_0.png.png imagette263586181756513592/1756513385_1334164_1380227470_5820579195980924c7d9d6aa740fce70_66661687_rle_crop_3936318603_0.png.png imagette263586181756513592/1756513525_1340513_1380227561_65e31805eb6a67fea036084cfe07ed79_29581870_rle_crop_3936319076_0.png.png imagette263586181756513592/1756513385_1334164_1380227471_7d3cd7e4ea3c82e7f9b4feb2def19223_69884437_rle_crop_3936318591_0.png.png imagette263586181756513592/1756513287_1328556_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317644_0.png.png imagette263586181756513592/1756513525_1340513_1380227470_5820579195980924c7d9d6aa740fce70_66661687_rle_crop_3936318601_0.png.png imagette263586181756513592/1756513525_1340513_1380227470_5820579195980924c7d9d6aa740fce70_66661687_rle_crop_3936318603_0.png.png imagette263586181756513592/1756513147_1322706_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317644_0.png.png imagette263586181756513592/1756513405_1335237_1380227274_b84dfffe27fa2f2e255faecd43233505_1861363_rle_crop_3936318756_0.png.png imagette263586181756513592/1756513405_1335237_1380227212_c44f4b87266d3e113e050c5f61089772_82109040_rle_crop_3936318774_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/ebd2a724c4afab2800d6152593aa857a_23610253.png imagette263586181756513592 26358623 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26358623 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380227498: '1756513147_1322706_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317610_0.png', 1380227499: '1756513147_1322706_1380227108_fa9e0e0381c408061b883a5041fc2d83_94912989_rle_crop_3936317628_0.png', 1380227500: '1756513147_1322706_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317637_0.png', 1380227570: '1756513287_1328556_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317610_0.png', 1380227571: '1756513287_1328556_1380227108_fa9e0e0381c408061b883a5041fc2d83_94912989_rle_crop_3936317628_0.png', 1380227572: '1756513287_1328556_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317637_0.png', 1380227720: '1756513405_1335237_1380227274_b84dfffe27fa2f2e255faecd43233505_1861363_rle_crop_3936318760_0.png', 1380227721: '1756513405_1335237_1380227274_b84dfffe27fa2f2e255faecd43233505_1861363_rle_crop_3936318755_0.png', 1380227807: '1756513507_1340099_1380227558_735b37b9d6f5840ae0bebfd6a7fcc6ea_51625834_rle_crop_3936318921_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/7b0208988b12533a31d9545a4df45db2_59871644.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/3ad9ee1f661d8f2dc66a664d60374a6d_8244980.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/b4590f1e547cf5e938b199da144848d6_79170551.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/7b0208988b12533a31d9545a4df45db2_16262426.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/3ad9ee1f661d8f2dc66a664d60374a6d_86055878.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/b4590f1e547cf5e938b199da144848d6_70556369.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/ea7da78d0477b099abd87f6d3ba6397a_35832170.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/37242aa9bf3d80f10c34308b3a0e492a_90459776.png change filename to text .imagette263586231756513593/ imagette263586231756513593/1756513287_1328556_1380227108_fa9e0e0381c408061b883a5041fc2d83_94912989_rle_crop_3936317628_0.png.png imagette263586231756513593/1756513405_1335237_1380227274_b84dfffe27fa2f2e255faecd43233505_1861363_rle_crop_3936318760_0.png.png imagette263586231756513593/1756513287_1328556_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317637_0.png.png imagette263586231756513593/1756513147_1322706_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317610_0.png.png imagette263586231756513593/1756513147_1322706_1380227108_fa9e0e0381c408061b883a5041fc2d83_94912989_rle_crop_3936317628_0.png.png imagette263586231756513593/1756513287_1328556_1380227109_619789f9f356426d36b3b2f7a76d612c_13997494_rle_crop_3936317610_0.png.png imagette263586231756513593/1756513405_1335237_1380227274_b84dfffe27fa2f2e255faecd43233505_1861363_rle_crop_3936318755_0.png.png imagette263586231756513593/1756513507_1340099_1380227558_735b37b9d6f5840ae0bebfd6a7fcc6ea_51625834_rle_crop_3936318921_0.png.png imagette263586231756513593/1756513147_1322706_1380227107_9ce30880238e9496bcab93eac4535305_62626333_rle_crop_3936317637_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/6a24603bdfa9637b8c34ebd6719cb7be_68820614.png imagette263586231756513593 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26358604 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26358626,26358627,26358628,26358629,26358630,26358631,26358632,26358633,26358634,26358635,26358636,26358637?tags=metal,Carton_gris,autre_refus,papier,Teint_Dans_La_Masse,flou,cartonnette,environnement,mal_croppe,Carton_brun,kraft,plastique your option no_mail is active, we will not send the real mail to your client args[1380227830] : ('0.0544609480664652',) no score found for photo 1380227830 We are sending mail with results at report@fotonower.com args[1380227829] : ('0.0544609480664652',) no score found for photo 1380227829 We are sending mail with results at report@fotonower.com args[1380227828] : ('0.0544609480664652',) no score found for photo 1380227828 We are sending mail with results at report@fotonower.com args[1380227827] : ('0.0544609480664652',) no score found for photo 1380227827 We are sending mail with results at report@fotonower.com args[1380227818] : ('0.0544609480664652',) no score found for photo 1380227818 We are sending mail with results at report@fotonower.com args[1380227792] : ('0.0544609480664652',) no score found for photo 1380227792 We are sending mail with results at report@fotonower.com args[1380227791] : ('0.0544609480664652',) no score found for photo 1380227791 We are sending mail with results at report@fotonower.com args[1380227790] : ('0.0544609480664652',) no score found for photo 1380227790 We are sending mail with results at report@fotonower.com args[1380227789] : ('0.0544609480664652',) no score found for photo 1380227789 We are sending mail with results at report@fotonower.com args[1380227788] : ('0.0544609480664652',) no score found for photo 1380227788 We are sending mail with results at report@fotonower.com refus_total : 0.0544609480664652 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26358604 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_P26358604_30-08-2025_02_26_29.pdf results_Auto_P26358604_30-08-2025_02_26_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26358604_30-08-2025_02_26_29.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','26358604','results_Auto_P26358604_30-08-2025_02_26_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26358604_30-08-2025_02_26_29.pdf','pdf','','0.22','0.0544609480664652') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26358604]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1380227830, 1380227829, 1380227828, 1380227827, 1380227818, 1380227792, 1380227791, 1380227790, 1380227789, 1380227788] map_info['map_portfolio_photo'] : {26358604: [1380227830, 1380227829, 1380227828, 1380227827, 1380227818, 1380227792, 1380227791, 1380227790, 1380227789, 1380227788, 1380227730, 1380227729, 1380227728, 1380227727, 1380227601, 1380227600, 1380227599, 1380227598, 1380227597, 1380227561, 1380227560, 1380227559, 1380227558, 1380227473, 1380227472, 1380227471, 1380227470, 1380227451, 1380227450, 1380227449, 1380227448, 1380227280, 1380227278, 1380227276, 1380227274, 1380227212, 1380227109, 1380227108, 1380227107, 1380227106, 1380227105]} final : False mtd_id 4302 list_pids : [1380227830, 1380227829, 1380227828, 1380227827, 1380227818, 1380227792, 1380227791, 1380227790, 1380227789, 1380227788] 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, '3640394') ('4302', '26358604', '1380227830', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227829', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227828', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227827', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227818', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227792', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227791', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227790', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227789', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227788', None, None, None, None, None, '3640394') 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', '26358604', '1380227830', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227829', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227828', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227827', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227818', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227792', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227791', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227790', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227789', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227788', None, None, None, None, None, '3640394')] time used for this insertion : 4.965749979019165 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.082768440246582 time spend to save output : 4.9660210609436035 total time spend for step 4 : 14.048789501190186 step5:split_time_score Sat Aug 30 02:26:43 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 : ['26358604'] 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 : [('26358604',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26358604) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1380227830: {'path': 'temp/1756513589_584507_1380227830_6896f40ba2aabe61cc125725c7d2323d_51132008.jpg', 'extension': 'jpg'}, 1380227827: {'path': 'temp/1756513589_584507_1380227827_445c3f7dd26148c8859cf2caecdb6fa5_87810192.jpg', 'extension': 'jpg'}, 1380227828: {'path': 'temp/1756513589_584507_1380227828_2fcfe70dc43664e2b2618429309321e6_70919438.jpg', 'extension': 'jpg'}, 1380227829: {'path': 'temp/1756513589_584507_1380227829_d3a7f2afb964aa50ddaf6aa53b547feb_82754609.jpg', 'extension': 'jpg'}, 1380227788: {'path': 'temp/1756513589_584507_1380227788_26188e24803b1bb465195ad8128aa2b2_98120455.jpg', 'extension': 'jpg'}, 1380227789: {'path': 'temp/1756513589_584507_1380227789_782292852052ef5ae1a006a4fc35c57e_63291296.jpg', 'extension': 'jpg'}, 1380227790: {'path': 'temp/1756513589_584507_1380227790_91fbb2cfcce2f0f556b5e34ed95dfdab_64515249.jpg', 'extension': 'jpg'}, 1380227791: {'path': 'temp/1756513589_584507_1380227791_670e10f1e4d4362820f613cdba9f985c_29813225.jpg', 'extension': 'jpg'}, 1380227792: {'path': 'temp/1756513589_584507_1380227792_70a6f45c13c01783c78644b85a40afc3_51405248.jpg', 'extension': 'jpg'}, 1380227818: {'path': 'temp/1756513589_584507_1380227818_9196a868feb2b5cc95b2b53f11ddabca_38944364.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 = 26358604; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26358604 group by h (('02', 41),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26358604 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 (26358604) 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 (26358604) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30082025 26358604 Nombre de photos uploadées : 41 / 23040 (0%) 30082025 26358604 Nombre de photos taguées (types de déchets): 0 / 41 (0%) 30082025 26358604 Nombre de photos taguées (volume) : 0 / 41 (0%) [{'photo_id': 1380227109, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/619789f9f356426d36b3b2f7a76d612c_13997494.jpg', 'username': None, 'uploaded_at': 1756512972, 'text': 'image_30082025_02_15_03_009159m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1380227108, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/fa9e0e0381c408061b883a5041fc2d83_94912989.jpg', 'username': None, 'uploaded_at': 1756512972, 'text': 'image_30082025_02_15_13_010136m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1380227107, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/9ce30880238e9496bcab93eac4535305_62626333.jpg', 'username': None, 'uploaded_at': 1756512972, 'text': 'image_30082025_02_15_24_010199m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1380227106, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/30/c9cfafc763c9fc57a8c7b6c627243538_58974171.jpg', 'username': None, 'uploaded_at': 1756512972, 'text': 'image_30082025_02_15_34_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018310546875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26358604, '2025-08-30' ) 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 (2200963,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 2.378804922103882 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= 2200963 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2200963, 'dashboard_run_id': 2208825, 'mtr_portfolio_id': 26354311, 'dashboard_result_id': 14483904, '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_P26354311_30-08-2025_00_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26354313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26354314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26354315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26354316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26354317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26354318, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26354319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26354320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26354321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26354322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26354323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26354324, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2208825, 'mtr_portfolio_id': 26354941, 'dashboard_result_id': 14483905, '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_P26354941_30-08-2025_02_01_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26354982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26354983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26354984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26354985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26354986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26354987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26354988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26354989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26354990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26354991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26354992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26354993, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2208825, 'mtr_portfolio_id': 26355515, 'dashboard_result_id': 14483906, '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_P26355515_30-08-2025_00_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26355521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26355522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26355523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26355524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26355525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26355526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26355527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26355528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26355529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26355530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26355531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26355532, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2208825, 'mtr_portfolio_id': 26356029, 'dashboard_result_id': 14483907, '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_P26356029_30-08-2025_01_30_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26356038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26356039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26356040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26356041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26356042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26356043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26356044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26356045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26356046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26356047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26356048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26356049, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2208825, 'mtr_portfolio_id': 26357329, 'dashboard_result_id': 14483908, '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_P26357329_30-08-2025_01_47_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26357332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26357333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26357334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26357335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26357336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26357337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26357338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26357339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26357340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26357341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26357342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26357343, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2208825, 'mtr_portfolio_id': 26357677, 'dashboard_result_id': 14483909, '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_P26357677_30-08-2025_02_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26357682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26357683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26357684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26357685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26357686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26357687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26357688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26357689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26357690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26357691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26357692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26357693, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2208825, 'mtr_portfolio_id': 26358007, 'dashboard_result_id': 14483910, '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_P26358007_30-08-2025_02_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26358069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26358070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26358071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26358072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26358073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26358074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26358075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26358076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26358077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26358078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26358079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26358080, 'pht': 3726}}"}, {'dashboat_entry_day': 2200963, 'dashboard_run_id': 2208825, 'mtr_portfolio_id': 26358604, 'dashboard_result_id': 14483911, '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_P26358604_30-08-2025_02_24_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26358614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26358615, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26358616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26358617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26358618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26358619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26358620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26358621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26358622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26358623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26358624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26358625, '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 = 26354311 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': 3639788, 'mtr_portfolio_id': 26354311, 'created_at': datetime.datetime(2025, 8, 30, 0, 17), 'result': '0.05259478752757879', 'result_long': None, 'result_double': None}] Qualite : 0.05259478752757879 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26354311 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26354311_30-08-2025_00_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26354311 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_P26354311_30-08-2025_00_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26354313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26354314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26354315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26354316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26354317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26354318, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26354319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26354320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26354321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26354322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26354323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26354324, 'pht': 3726}}" where mtr_portfolio_id = 26354311 and dashboard_run_id = 2208825 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`=26354311 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14483904, 0.05259478752757879, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26354311_30-08-2025_00_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26354313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26354314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26354315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26354316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26354317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26354318, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26354319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26354320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26354321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26354322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26354323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26354324, '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 = 26354941 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': 3639846, 'mtr_portfolio_id': 26354941, 'created_at': datetime.datetime(2025, 8, 30, 2, 1, 30), 'result': '0.0541874581559304', 'result_long': None, 'result_double': None}] Qualite : 0.0541874581559304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26354941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26354941_30-08-2025_02_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26354941 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_P26354941_30-08-2025_02_01_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26354982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26354983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26354984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26354985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26354986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26354987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26354988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26354989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26354990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26354991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26354992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26354993, 'pht': 3726}}" where mtr_portfolio_id = 26354941 and dashboard_run_id = 2208825 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`=26354941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14483905, 0.0541874581559304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26354941_30-08-2025_02_01_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26354982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26354983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26354984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26354985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26354986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26354987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26354988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26354989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26354990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26354991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26354992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26354993, '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 = 26355515 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': 3639925, 'mtr_portfolio_id': 26355515, 'created_at': datetime.datetime(2025, 8, 30, 0, 47, 1), 'result': '0.038339709308548096', 'result_long': None, 'result_double': None}] Qualite : 0.038339709308548096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26355515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26355515_30-08-2025_00_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26355515 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_P26355515_30-08-2025_00_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26355521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26355522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26355523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26355524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26355525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26355526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26355527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26355528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26355529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26355530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26355531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26355532, 'pht': 3726}}" where mtr_portfolio_id = 26355515 and dashboard_run_id = 2208825 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`=26355515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14483906, 0.038339709308548096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26355515_30-08-2025_00_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26355521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26355522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26355523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26355524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26355525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26355526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26355527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26355528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26355529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26355530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26355531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26355532, '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 = 26356029 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': 3640011, 'mtr_portfolio_id': 26356029, 'created_at': datetime.datetime(2025, 8, 30, 1, 30, 28), 'result': '0.0645348043026146', 'result_long': None, 'result_double': None}] Qualite : 0.0645348043026146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26356029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26356029_30-08-2025_01_30_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26356029 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_P26356029_30-08-2025_01_30_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26356038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26356039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26356040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26356041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26356042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26356043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26356044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26356045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26356046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26356047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26356048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26356049, 'pht': 3726}}" where mtr_portfolio_id = 26356029 and dashboard_run_id = 2208825 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`=26356029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14483907, 0.0645348043026146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26356029_30-08-2025_01_30_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26356038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26356039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26356040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26356041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26356042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26356043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26356044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26356045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26356046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26356047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26356048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26356049, '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 = 26357329 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': 3640209, 'mtr_portfolio_id': 26357329, 'created_at': datetime.datetime(2025, 8, 30, 1, 47, 1), 'result': '0.034956030996926596', 'result_long': None, 'result_double': None}] Qualite : 0.034956030996926596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26357329 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26357329_30-08-2025_01_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26357329 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_P26357329_30-08-2025_01_47_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26357332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26357333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26357334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26357335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26357336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26357337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26357338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26357339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26357340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26357341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26357342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26357343, 'pht': 3726}}" where mtr_portfolio_id = 26357329 and dashboard_run_id = 2208825 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`=26357329 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14483908, 0.034956030996926596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26357329_30-08-2025_01_47_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26357332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26357333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26357334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26357335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26357336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26357337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26357338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26357339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26357340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26357341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26357342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26357343, '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 = 26357677 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': 3640245, 'mtr_portfolio_id': 26357677, 'created_at': datetime.datetime(2025, 8, 30, 2, 2, 59), 'result': '0.042465975591740306', 'result_long': None, 'result_double': None}] Qualite : 0.042465975591740306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26357677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26357677_30-08-2025_02_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26357677 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_P26357677_30-08-2025_02_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26357682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26357683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26357684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26357685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26357686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26357687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26357688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26357689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26357690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26357691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26357692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26357693, 'pht': 3726}}" where mtr_portfolio_id = 26357677 and dashboard_run_id = 2208825 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`=26357677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14483909, 0.042465975591740306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26357677_30-08-2025_02_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26357682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26357683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26357684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26357685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26357686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26357687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26357688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26357689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26357690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26357691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26357692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26357693, '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 = 26358007 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': 3640319, 'mtr_portfolio_id': 26358007, 'created_at': datetime.datetime(2025, 8, 30, 2, 17), 'result': '0.05083260333324252', 'result_long': None, 'result_double': None}] Qualite : 0.05083260333324252 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26358007 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26358007_30-08-2025_02_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26358007 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_P26358007_30-08-2025_02_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26358069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26358070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26358071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26358072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26358073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26358074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26358075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26358076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26358077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26358078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26358079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26358080, 'pht': 3726}}" where mtr_portfolio_id = 26358007 and dashboard_run_id = 2208825 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`=26358007 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14483910, 0.05083260333324252, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26358007_30-08-2025_02_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26358069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26358070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26358071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26358072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26358073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26358074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26358075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26358076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26358077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26358078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26358079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26358080, '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 = 26358604 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': 3640394, 'mtr_portfolio_id': 26358604, 'created_at': datetime.datetime(2025, 8, 30, 2, 26, 29), 'result': '0.0544609480664652', 'result_long': None, 'result_double': None}] Qualite : 0.0544609480664652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26358604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26358604_30-08-2025_02_26_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26358604 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_P26358604_30-08-2025_02_26_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26358614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26358615, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26358616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26358617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26358618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26358619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26358620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26358621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26358622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26358623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26358624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26358625, 'pht': 3726}}" where mtr_portfolio_id = 26358604 and dashboard_run_id = 2208825 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`=26358604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14483911, 0.0544609480664652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26358604_30-08-2025_02_26_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26358614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26358615, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26358616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26358617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26358618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26358619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26358620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26358621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26358622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26358623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26358624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26358625, '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 (26354311,26354941,26355515,26356029,26357329,26357677,26358007,26358604) result : ((1380209529,), (1380209532,), (1380210237,), (1380210240,), (1380210243,), (1380210649,), (1380210652,), (1380210655,), (1380210658,), (1380210661,), (1380211446,), (1380211447,), (1380211448,), (1380211449,), (1380211450,), (1380211649,), (1380211650,), (1380211651,), (1380211652,), (1380211653,), (1380211654,), (1380211705,), (1380211706,), (1380211707,), (1380211708,), (1380211709,), (1380211775,), (1380211776,), (1380211777,), (1380211778,), (1380211845,), (1380211846,), (1380211847,), (1380211848,), (1380211849,), (1380211850,), (1380211870,), (1380211871,), (1380211872,), (1380211873,), (1380211874,), (1380211917,), (1380211918,), (1380211919,), (1380211939,), (1380211940,), (1380211941,), (1380211942,), (1380211972,), (1380211973,), (1380211974,), (1380211975,), (1380211976,), (1380211977,), (1380212006,), (1380212008,), (1380212010,), (1380212063,), (1380212064,), (1380212065,), (1380212223,), (1380212224,), (1380212225,), (1380212226,), (1380212352,), (1380212349,), (1380212350,), (1380212351,), (1380212436,), (1380212437,), (1380212438,), (1380212439,), (1380212440,), (1380212731,), (1380212733,), (1380212734,), (1380212735,), (1380212736,), (1380212847,), (1380212848,), (1380213045,), (1380213047,), (1380213049,), (1380213051,), (1380213053,), (1380213055,), (1380213157,), (1380213158,), (1380213159,), (1380213160,), (1380213161,), (1380213210,), (1380213212,), (1380213214,), (1380213217,), (1380213219,), (1380213524,), (1380213525,), (1380213526,), (1380213527,), (1380213528,), (1380213529,), (1380213622,), (1380213623,), (1380213624,), (1380213773,), (1380213775,), (1380213777,), (1380213779,), (1380213899,), (1380213900,), (1380213901,), (1380213902,), (1380213903,), (1380213943,), (1380213944,), (1380213945,), (1380213946,), (1380213947,), (1380213948,), (1380214087,), (1380214088,), (1380214089,), (1380214090,), (1380214091,), (1380214114,), (1380214116,), (1380214118,), (1380214479,), (1380214480,), (1380214481,), (1380214586,), (1380214582,), (1380214583,), (1380214584,), (1380214585,), (1380214614,), (1380214615,), (1380214616,), (1380214617,), (1380214678,), (1380214680,), (1380214682,), (1380214684,), (1380215002,), (1380215004,), (1380215089,), (1380215090,), (1380215091,), (1380215092,), (1380215093,), (1380215160,), (1380215161,), (1380215162,), (1380215163,), (1380215164,), (1380215183,), (1380215184,), (1380215185,), (1380215186,), (1380215187,), (1380215209,), (1380215210,), (1380215212,), (1380215213,), (1380215214,), (1380215215,), (1380215240,), (1380215241,), (1380215242,), (1380215275,), (1380215276,), (1380215277,), (1380215278,), (1380215279,), (1380215299,), (1380215300,), (1380215301,), (1380215302,), (1380215303,), (1380215336,), (1380215337,), (1380215338,), (1380215423,), (1380215424,), (1380215489,), (1380215490,), (1380215491,), (1380215492,), (1380215528,), (1380215524,), (1380215525,), (1380215526,), (1380215527,), (1380215561,), (1380215562,), (1380215563,), (1380215564,), (1380215565,), (1380215566,), (1380215641,), (1380215642,), (1380215643,), (1380215668,), (1380215669,), (1380215670,), (1380215671,), (1380215672,), (1380215673,), (1380215700,), (1380215701,), (1380215702,), (1380215703,), (1380215704,), (1380215756,), (1380215757,), (1380215758,), (1380215901,), (1380215902,), (1380215903,), (1380215904,), (1380215905,), (1380215935,), (1380215936,), (1380215937,), (1380215938,), (1380215939,), (1380215940,), (1380215973,), (1380215974,), (1380215976,), (1380215978,), (1380216105,), (1380216106,), (1380216107,), (1380216108,), (1380216109,), (1380216110,), (1380216142,), (1380216143,), (1380216144,), (1380216145,), (1380216146,), (1380216147,), (1380216232,), (1380216233,), (1380216234,), (1380216272,), (1380216273,), (1380216274,), (1380216275,), (1380216276,), (1380216277,), (1380222266,), (1380222284,), (1380222285,), (1380222286,), (1380222287,), (1380222311,), (1380222312,), (1380222313,), (1380222314,), (1380222315,), (1380222316,), (1380222441,), (1380222442,), (1380222443,), (1380222460,), (1380222461,), (1380222482,), (1380222483,), (1380222484,), (1380222504,), (1380222505,), (1380222506,), (1380222507,), (1380222569,), (1380222570,), (1380222571,), (1380222590,), (1380222591,), (1380222592,), (1380222620,), (1380222621,), (1380222637,), (1380222638,), (1380222640,), (1380222668,), (1380222669,), (1380222670,), (1380222671,), (1380222697,), (1380222698,), (1380222699,), (1380222700,), (1380222722,), (1380222723,), (1380222724,), (1380222725,), (1380222726,), (1380222748,), (1380222749,), (1380222750,), (1380222794,), (1380222789,), (1380222790,), (1380222791,), (1380222792,), (1380222793,), (1380222823,), (1380222824,), (1380222825,), (1380222826,), (1380222827,), (1380222850,), (1380222851,), (1380222852,), (1380222853,), (1380222854,), (1380222872,), (1380222873,), (1380222874,), (1380222875,), (1380222977,), (1380222978,), (1380222979,), (1380222980,), (1380222981,), (1380222996,), (1380222997,), (1380222998,), (1380222999,), (1380223000,), (1380223021,), (1380223022,), (1380223023,), (1380223024,), (1380223045,), (1380223046,), (1380223047,), (1380223048,), (1380223068,), (1380223069,), (1380223070,), (1380223071,), (1380223072,), (1380223086,), (1380223087,), (1380223088,), (1380223140,), (1380223141,), (1380223142,), (1380223143,), (1380223162,), (1380223163,), (1380223164,), (1380223165,), (1380223166,), (1380223190,), (1380223191,), (1380223215,), (1380223216,), (1380223218,), (1380223219,), (1380223220,), (1380223225,), (1380223226,), (1380223227,), (1380223228,), (1380223260,), (1380223257,), (1380223258,), (1380223259,), (1380223329,), (1380223330,), (1380223331,), (1380223332,), (1380223348,), (1380223349,), (1380223626,), (1380223628,), (1380223630,), (1380223632,), (1380223634,), (1380223636,), (1380224001,), (1380224003,), (1380224005,), (1380224007,), (1380224009,), (1380224352,), (1380224359,), (1380224367,), (1380224374,), (1380224381,), (1380224730,), (1380224731,), (1380224732,), (1380224828,), (1380224829,), (1380224830,), (1380224831,), (1380224832,), (1380224846,), (1380224847,), (1380224848,), (1380224849,), (1380224850,), (1380224884,), (1380224885,), (1380224886,), (1380224887,), (1380224888,), (1380224977,), (1380224978,), (1380224979,), (1380224980,), (1380225214,), (1380225216,), (1380225218,), (1380225220,), (1380225610,), (1380225612,), (1380225614,), (1380226082,), (1380226084,), (1380227110,), (1380227105,), (1380227106,), (1380227107,), (1380227108,), (1380227109,), (1380227212,), (1380227274,), (1380227276,), (1380227278,), (1380227280,), (1380227448,), (1380227449,), (1380227450,), (1380227451,), (1380227470,), (1380227471,), (1380227472,), (1380227473,), (1380227558,), (1380227559,), (1380227560,), (1380227561,), (1380227597,), (1380227598,), (1380227599,), (1380227600,), (1380227601,), (1380227727,), (1380227728,), (1380227729,), (1380227730,), (1380227788,), (1380227789,), (1380227790,), (1380227791,), (1380227792,), (1380227818,), (1380227827,), (1380227828,), (1380227829,), (1380227830,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30082025': {'nb_upload': 41, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26358604]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1380227830, 1380227829, 1380227828, 1380227827, 1380227818, 1380227792, 1380227791, 1380227790, 1380227789, 1380227788] map_info['map_portfolio_photo'] : {26358604: [1380227830, 1380227829, 1380227828, 1380227827, 1380227818, 1380227792, 1380227791, 1380227790, 1380227789, 1380227788, 1380227730, 1380227729, 1380227728, 1380227727, 1380227601, 1380227600, 1380227599, 1380227598, 1380227597, 1380227561, 1380227560, 1380227559, 1380227558, 1380227473, 1380227472, 1380227471, 1380227470, 1380227451, 1380227450, 1380227449, 1380227448, 1380227280, 1380227278, 1380227276, 1380227274, 1380227212, 1380227109, 1380227108, 1380227107, 1380227106, 1380227105]} final : True mtd_id 4302 list_pids : [1380227830, 1380227829, 1380227828, 1380227827, 1380227818, 1380227792, 1380227791, 1380227790, 1380227789, 1380227788] Looping around the photos to save general results len do output : 1 /26358604Didn'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, '3640394') ('4302', '26358604', '1380227830', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227829', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227828', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227827', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227818', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227792', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227791', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227790', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227789', None, None, None, None, None, '3640394') ('4302', None, None, None, None, None, None, None, '3640394') ('4302', '26358604', '1380227788', None, None, None, None, None, '3640394') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26358604', 'None', None, None, None, None, '3640394'), ('4302', '26358604', '1380227830', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227829', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227828', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227827', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227818', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227792', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227791', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227790', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227789', None, None, None, None, None, '3640394'), ('4302', '26358604', '1380227788', None, None, None, None, None, '3640394')] time used for this insertion : 0.01864337921142578 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.971414566040039 time spend to save output : 0.018872499465942383 total time spend for step 5 : 2.9902870655059814 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 (3640394) 2.43user 2.21system 0:21.51elapsed 21%CPU (0avgtext+0avgdata 161768maxresident)k 264inputs+14040outputs (11major+76705minor)pagefaults 0swaps