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 : 2380808 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 (2656356) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2656356) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251739 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2656356'] with mtr_portfolio_ids : ['21251739'] and first list_photo_ids : [] new path : /proc/2380808/ Name: python3 Umask: 0002 State: R (running) Tgid: 2380808 Ngid: 0 Pid: 2380808 PPid: 2380807 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2380808 NSpid: 2380808 NSpgid: 2377366 NSsid: 2377366 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98496 kB VmRSS: 98496 kB RssAnon: 59760 kB RssFile: 38736 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 158 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2380808', 'Ngid': '0', 'Pid': '2380808', 'PPid': '2380807', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2380808', 'NSpid': '2380808', 'NSpgid': '2377366', 'NSsid': '2377366', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98496 kB', 'VmRSS': '98496 kB', 'RssAnon': '59760 kB', 'RssFile': '38736 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '158'} ('datou_batch_current', '2380808', '1106840', '0', '1106840', '865588', '98496', b'', 'marlene', '2656356') 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 (21251739) 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 (2656356 ) ) 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 (21251739) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342778787, 'portfolio_id': 21251739}, {'photo_id': 1342778784, 'portfolio_id': 21251739}, {'photo_id': 1342778778, 'portfolio_id': 21251739}, {'photo_id': 1342778587, 'portfolio_id': 21251739}, {'photo_id': 1342778578, 'portfolio_id': 21251739}, {'photo_id': 1342778555, 'portfolio_id': 21251739}, {'photo_id': 1342778477, 'portfolio_id': 21251739}, {'photo_id': 1342778455, 'portfolio_id': 21251739}, {'photo_id': 1342778300, 'portfolio_id': 21251739}, {'photo_id': 1342778279, 'portfolio_id': 21251739}, {'photo_id': 1342778260, 'portfolio_id': 21251739}, {'photo_id': 1342778241, 'portfolio_id': 21251739}, {'photo_id': 1342777913, 'portfolio_id': 21251739}, {'photo_id': 1342777851, 'portfolio_id': 21251739}, {'photo_id': 1342777784, 'portfolio_id': 21251739}, {'photo_id': 1342777734, 'portfolio_id': 21251739}, {'photo_id': 1342777664, 'portfolio_id': 21251739}, {'photo_id': 1342777222, 'portfolio_id': 21251739}, {'photo_id': 1342777178, 'portfolio_id': 21251739}, {'photo_id': 1342777078, 'portfolio_id': 21251739}, {'photo_id': 1342776945, 'portfolio_id': 21251739}, {'photo_id': 1342776814, 'portfolio_id': 21251739}, {'photo_id': 1342776779, 'portfolio_id': 21251739}, {'photo_id': 1342776365, 'portfolio_id': 21251739}, {'photo_id': 1342776268, 'portfolio_id': 21251739}, {'photo_id': 1342776116, 'portfolio_id': 21251739}, {'photo_id': 1342776048, 'portfolio_id': 21251739}, {'photo_id': 1342775484, 'portfolio_id': 21251739}, {'photo_id': 1342775481, 'portfolio_id': 21251739}, {'photo_id': 1342775477, 'portfolio_id': 21251739}, {'photo_id': 1342775472, 'portfolio_id': 21251739}, {'photo_id': 1342775468, 'portfolio_id': 21251739}, {'photo_id': 1342775463, 'portfolio_id': 21251739}, {'photo_id': 1342775373, 'portfolio_id': 21251739}, {'photo_id': 1342775347, 'portfolio_id': 21251739}, {'photo_id': 1342775314, 'portfolio_id': 21251739}, {'photo_id': 1342775153, 'portfolio_id': 21251739}, {'photo_id': 1342775132, 'portfolio_id': 21251739}, {'photo_id': 1342775111, 'portfolio_id': 21251739}, {'photo_id': 1342774815, 'portfolio_id': 21251739}, {'photo_id': 1342774791, 'portfolio_id': 21251739}, {'photo_id': 1342774755, 'portfolio_id': 21251739}, {'photo_id': 1342774730, 'portfolio_id': 21251739}] map_portfolio_id_photo_id: {21251739: [1342778787, 1342778784, 1342778778, 1342778587, 1342778578, 1342778555, 1342778477, 1342778455, 1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779, 1342776365, 1342776268, 1342776116, 1342776048, 1342775484, 1342775481, 1342775477, 1342775472, 1342775468, 1342775463, 1342775373, 1342775347, 1342775314, 1342775153, 1342775132, 1342775111, 1342774815, 1342774791, 1342774755, 1342774730]} ##### 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.016321659088134766 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Mar 11 02:41:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21251739) 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 : 21251739 get user id for portfolio 21251739 get sub ptf for main ptf 21251739, type 3726 and hashtags ['mal_croppe', 'environnement', 'metal', 'Carton_brun', 'Teint_Dans_La_Masse', 'kraft', 'papier', 'flou', 'autre_refus', 'cartonnette', 'Carton_gris', 'plastique'] 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`=21251739 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','metal','Carton_brun','Teint_Dans_La_Masse','kraft','papier','flou','autre_refus','cartonnette','Carton_gris','plastique')) 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`=21251739 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','metal','Carton_brun','Teint_Dans_La_Masse','kraft','papier','flou','autre_refus','cartonnette','Carton_gris','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21251739, 'sub_port_id': 21251743, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840094, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'plastique': {'main_port_id': 21251739, 'sub_port_id': 21251744, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840095, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'cartonnette': {'main_port_id': 21251739, 'sub_port_id': 21251745, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840096, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'flou': {'main_port_id': 21251739, 'sub_port_id': 21251746, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840097, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'kraft': {'main_port_id': 21251739, 'sub_port_id': 21251747, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840098, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'Carton_brun': {'main_port_id': 21251739, 'sub_port_id': 21251748, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840099, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'autre_refus': {'main_port_id': 21251739, 'sub_port_id': 21251749, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840100, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'Carton_gris': {'main_port_id': 21251739, 'sub_port_id': 21251750, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840101, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'mal_croppe': {'main_port_id': 21251739, 'sub_port_id': 21251751, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840102, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'environnement': {'main_port_id': 21251739, 'sub_port_id': 21251752, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840103, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21251739, 'sub_port_id': 21251753, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840104, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'metal': {'main_port_id': 21251739, 'sub_port_id': 21251754, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840105, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21251743 , 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=21251739 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 (21251743) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,), (1342778455,), (1342778477,), (1342778555,), (1342778578,), (1342778587,), (1342778778,), (1342778784,), (1342778787,)) 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 (1342778300) 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 21251744 , 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=21251739 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 (21251744) result : ((1342775955,), (1342775962,), (1342775969,), (1342775978,), (1342775987,), (1342778364,), (1342778803,), (1342778828,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,), (1342778455,), (1342778477,), (1342778555,), (1342778578,), (1342778587,), (1342778778,), (1342778784,), (1342778787,)) 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 (1342778300) 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 21251745 , 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=21251739 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 (21251745) result : ((1342775854,), (1342775863,), (1342778078,), (1342778343,), (1342778346,), (1342778823,), (1342778824,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,), (1342778455,), (1342778477,), (1342778555,), (1342778578,), (1342778587,), (1342778778,), (1342778784,), (1342778787,)) 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 (1342778300) 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 21251746 , 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=21251739 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 (21251746) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,), (1342778455,), (1342778477,), (1342778555,), (1342778578,), (1342778587,), (1342778778,), (1342778784,), (1342778787,)) 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 (1342778300) 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 21251747 , 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=21251739 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 (21251747) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,), (1342778455,), (1342778477,), (1342778555,), (1342778578,), (1342778587,), (1342778778,), (1342778784,), (1342778787,)) 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 (1342778300) 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 21251748 , 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=21251739 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 (21251748) result : ((1342775915,), (1342775923,), (1342778354,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,), (1342778455,), (1342778477,), (1342778555,), (1342778578,), (1342778587,), (1342778778,), (1342778784,), (1342778787,)) 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 (1342778300) 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 21251749 , 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=21251739 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 (21251749) result : ((1342775693,), (1342775701,), (1342775705,), (1342775712,), (1342775722,), (1342778068,), (1342778069,), (1342778070,), (1342778071,), (1342778114,), (1342778118,), (1342778294,), (1342778296,), (1342778298,), (1342778302,), (1342778305,), (1342778309,), (1342778311,), (1342778798,), (1342778799,), (1342778800,), (1342778801,), (1342778808,), (1342778809,), (1342778810,), (1342778811,), (1342778812,), (1342778813,), (1342778814,), (1342778815,), (1342778816,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,), (1342778455,), (1342778477,), (1342778555,), (1342778578,), (1342778587,), (1342778778,), (1342778784,), (1342778787,)) 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 (1342778300) 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 21251750 , 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=21251739 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 (21251750) result : ((1342775774,), (1342775780,), (1342775788,), (1342775796,), (1342778134,), (1342778336,), (1342778338,), (1342778802,), (1342778820,), (1342778821,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,), (1342778455,), (1342778477,), (1342778555,), (1342778578,), (1342778587,), (1342778778,), (1342778784,), (1342778787,)) 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 (1342778300) 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 21251751 , 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=21251739 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 (21251751) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,), (1342778455,), (1342778477,), (1342778555,), (1342778578,), (1342778587,), (1342778778,), (1342778784,), (1342778787,)) 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 (1342778300) 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 21251752 , 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=21251739 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 (21251752) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,), (1342778455,), (1342778477,), (1342778555,), (1342778578,), (1342778587,), (1342778778,), (1342778784,), (1342778787,)) 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 (1342778300) 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 21251753 , 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=21251739 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 (21251753) result : ((1342778277,), (1342778795,), (1342778796,), (1342778797,), (1342778805,), (1342778806,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,), (1342778455,), (1342778477,), (1342778555,), (1342778578,), (1342778587,), (1342778778,), (1342778784,), (1342778787,)) 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 (1342778300) 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 21251754 , 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=21251739 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 (21251754) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,), (1342778455,), (1342778477,), (1342778555,), (1342778578,), (1342778587,), (1342778778,), (1342778784,), (1342778787,)) 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 (1342778300) 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`=21251739 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','metal','Carton_brun','Teint_Dans_La_Masse','kraft','papier','flou','autre_refus','cartonnette','Carton_gris','plastique')) 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`=21251739 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','metal','Carton_brun','Teint_Dans_La_Masse','kraft','papier','flou','autre_refus','cartonnette','Carton_gris','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21251739, 'sub_port_id': 21251755, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840106, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'plastique': {'main_port_id': 21251739, 'sub_port_id': 21251756, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840107, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'cartonnette': {'main_port_id': 21251739, 'sub_port_id': 21251757, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840108, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'flou': {'main_port_id': 21251739, 'sub_port_id': 21251758, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840109, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'kraft': {'main_port_id': 21251739, 'sub_port_id': 21251759, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840110, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'Carton_brun': {'main_port_id': 21251739, 'sub_port_id': 21251760, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840111, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'autre_refus': {'main_port_id': 21251739, 'sub_port_id': 21251761, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840112, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'Carton_gris': {'main_port_id': 21251739, 'sub_port_id': 21251762, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840113, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'mal_croppe': {'main_port_id': 21251739, 'sub_port_id': 21251763, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840114, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'environnement': {'main_port_id': 21251739, 'sub_port_id': 21251764, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840115, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21251739, 'sub_port_id': 21251765, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840116, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'metal': {'main_port_id': 21251739, 'sub_port_id': 21251766, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840117, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 39, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251746 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251747 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251750 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251765,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251753 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251766,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251754 lien utilise dans velours : https://www.fotonower.com/velours/21251755,21251756,21251757,21251758,21251759,21251760,21251761,21251762,21251763,21251764,21251765,21251766?tags=papier,plastique,cartonnette,flou,kraft,Carton_brun,autre_refus,Carton_gris,mal_croppe,environnement,Teint_Dans_La_Masse,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21251739]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342778787, 1342778784, 1342778778, 1342778587, 1342778578, 1342778555, 1342778477, 1342778455] map_info['map_portfolio_photo'] : {21251739: [1342778787, 1342778784, 1342778778, 1342778587, 1342778578, 1342778555, 1342778477, 1342778455, 1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779, 1342776365, 1342776268, 1342776116, 1342776048, 1342775484, 1342775481, 1342775477, 1342775472, 1342775468, 1342775463, 1342775373, 1342775347, 1342775314, 1342775153, 1342775132, 1342775111, 1342774815, 1342774791, 1342774755, 1342774730]} final : False mtd_id 4302 list_pids : [1342778787, 1342778784, 1342778778, 1342778587, 1342778578, 1342778555, 1342778477, 1342778455] Looping around the photos to save general results len do output : 1 /21251739. 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, '2656356') ('4302', '21251739', '1342778787', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778784', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778778', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778587', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778578', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778555', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778477', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778455', None, None, None, None, None, '2656356') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21251739', "{'papier': 21251743, 'plastique': 21251744, 'cartonnette': 21251745, 'flou': 21251746, 'kraft': 21251747, 'Carton_brun': 21251748, 'autre_refus': 21251749, 'Carton_gris': 21251750, 'mal_croppe': 21251751, 'environnement': 21251752, 'Teint_Dans_La_Masse': 21251753, 'metal': 21251754}", None, None, None, None, '2656356'), ('4302', '21251739', '1342778787', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778784', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778778', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778587', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778578', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778555', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778477', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778455', None, None, None, None, None, '2656356')] time used for this insertion : 0.015776395797729492 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6616008281707764 time spend to save output : 0.01612257957458496 total time spend for step 1 : 0.6777234077453613 step2:final Tue Mar 11 02:41:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21251739) 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 21251739 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342774815,1342774791,1342774755,1342774730,1342775153,1342775132,1342775111,1342775373,1342775347,1342775314,1342775484,1342775481,1342775477,1342775472,1342775468,1342775463,1342776365,1342776268,1342776116,1342776048,1342777222,1342777178,1342777078,1342776945,1342776814,1342776779,1342777913,1342777851,1342777784,1342777734,1342777664,1342778300,1342778279,1342778260,1342778241,1342778587,1342778578,1342778555,1342778477,1342778455,1342778787,1342778784,1342778778); 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([21251739]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ('0.06762957392785778',), 1342778455: ('0.06762957392785778',)} new output for save of step final : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ('0.06762957392785778',), 1342778455: ('0.06762957392785778',)} [1342778787, 1342778784, 1342778778, 1342778587, 1342778578, 1342778555, 1342778477, 1342778455] map_info['map_portfolio_photo'] : {21251739: [1342778787, 1342778784, 1342778778, 1342778587, 1342778578, 1342778555, 1342778477, 1342778455, 1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779, 1342776365, 1342776268, 1342776116, 1342776048, 1342775484, 1342775481, 1342775477, 1342775472, 1342775468, 1342775463, 1342775373, 1342775347, 1342775314, 1342775153, 1342775132, 1342775111, 1342774815, 1342774791, 1342774755, 1342774730]} final : False mtd_id 4302 list_pids : [1342778787, 1342778784, 1342778778, 1342778587, 1342778578, 1342778555, 1342778477, 1342778455] Looping around the photos to save general results len do output : 8 /1342778787.Didn't retrieve data . /1342778784.Didn't retrieve data . /1342778778.Didn't retrieve data . /1342778587.Didn't retrieve data . /1342778578.Didn't retrieve data . /1342778555.Didn't retrieve data . /1342778477.Didn't retrieve data . /1342778455.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, '2656356') ('4302', '21251739', '1342778787', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778784', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778778', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778587', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778578', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778555', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778477', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778455', None, None, None, None, None, '2656356') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '21251739', '1342778787', '0.06762957392785778', None, None, None, None, '2656356'), ('4302', '21251739', '1342778784', '0.06762957392785778', None, None, None, None, '2656356'), ('4302', '21251739', '1342778778', '0.06762957392785778', None, None, None, None, '2656356'), ('4302', '21251739', '1342778587', '0.06762957392785778', None, None, None, None, '2656356'), ('4302', '21251739', '1342778578', '0.06762957392785778', None, None, None, None, '2656356'), ('4302', '21251739', '1342778555', '0.06762957392785778', None, None, None, None, '2656356'), ('4302', '21251739', '1342778477', '0.06762957392785778', None, None, None, None, '2656356'), ('4302', '21251739', '1342778455', '0.06762957392785778', None, None, None, None, '2656356')] time used for this insertion : 0.016376256942749023 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.10008764266967773 time spend to save output : 0.01692366600036621 total time spend for step 2 : 0.11701130867004395 step3:velours_tree Tue Mar 11 02:41:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21251739: [{'papier': 21251743, 'plastique': 21251744, 'cartonnette': 21251745, 'flou': 21251746, 'kraft': 21251747, 'Carton_brun': 21251748, 'autre_refus': 21251749, 'Carton_gris': 21251750, 'mal_croppe': 21251751, 'environnement': 21251752, 'Teint_Dans_La_Masse': 21251753, 'metal': 21251754}]} input_args_next_step : {21251739: ()} output_args : {21251739: [{'papier': 21251743, 'plastique': 21251744, 'cartonnette': 21251745, 'flou': 21251746, 'kraft': 21251747, 'Carton_brun': 21251748, 'autre_refus': 21251749, 'Carton_gris': 21251750, 'mal_croppe': 21251751, 'environnement': 21251752, 'Teint_Dans_La_Masse': 21251753, 'metal': 21251754}]} args : 21251739 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 : ({'papier': 21251743, 'plastique': 21251744, 'cartonnette': 21251745, 'flou': 21251746, 'kraft': 21251747, 'Carton_brun': 21251748, 'autre_refus': 21251749, 'Carton_gris': 21251750, 'mal_croppe': 21251751, 'environnement': 21251752, 'Teint_Dans_La_Masse': 21251753, 'metal': 21251754},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21251739) 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([21251739]) 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.48708367347717285 time spend to save output : 4.863739013671875e-05 total time spend for step 3 : 0.48713231086730957 step4:send_mail_cod Tue Mar 11 02:41:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ('0.06762957392785778',), 1342778455: ('0.06762957392785778',)} input_args_next_step : {1342778787: ()} output_args : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ('0.06762957392785778',), 1342778455: ('0.06762957392785778',)} args : 1342778787 depend.output_id : 0 input_args_next_step : {1342778787: ('0.06762957392785778',), 1342778784: ()} output_args : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ('0.06762957392785778',), 1342778455: ('0.06762957392785778',)} args : 1342778784 depend.output_id : 0 input_args_next_step : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ()} output_args : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ('0.06762957392785778',), 1342778455: ('0.06762957392785778',)} args : 1342778778 depend.output_id : 0 input_args_next_step : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ()} output_args : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ('0.06762957392785778',), 1342778455: ('0.06762957392785778',)} args : 1342778587 depend.output_id : 0 input_args_next_step : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ()} output_args : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ('0.06762957392785778',), 1342778455: ('0.06762957392785778',)} args : 1342778578 depend.output_id : 0 input_args_next_step : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ()} output_args : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ('0.06762957392785778',), 1342778455: ('0.06762957392785778',)} args : 1342778555 depend.output_id : 0 input_args_next_step : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ()} output_args : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ('0.06762957392785778',), 1342778455: ('0.06762957392785778',)} args : 1342778477 depend.output_id : 0 input_args_next_step : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ('0.06762957392785778',), 1342778455: ()} output_args : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ('0.06762957392785778',), 1342778455: ('0.06762957392785778',)} args : 1342778455 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 : {21251739: [{'papier': 21251743, 'plastique': 21251744, 'cartonnette': 21251745, 'flou': 21251746, 'kraft': 21251747, 'Carton_brun': 21251748, 'autre_refus': 21251749, 'Carton_gris': 21251750, 'mal_croppe': 21251751, 'environnement': 21251752, 'Teint_Dans_La_Masse': 21251753, 'metal': 21251754}]} input_args_next_step : {1342778787: ('0.06762957392785778',), 1342778784: ('0.06762957392785778',), 1342778778: ('0.06762957392785778',), 1342778587: ('0.06762957392785778',), 1342778578: ('0.06762957392785778',), 1342778555: ('0.06762957392785778',), 1342778477: ('0.06762957392785778',), 1342778455: ('0.06762957392785778',), 21251739: ()} output_args : {21251739: [{'papier': 21251743, 'plastique': 21251744, 'cartonnette': 21251745, 'flou': 21251746, 'kraft': 21251747, 'Carton_brun': 21251748, 'autre_refus': 21251749, 'Carton_gris': 21251750, 'mal_croppe': 21251751, 'environnement': 21251752, 'Teint_Dans_La_Masse': 21251753, 'metal': 21251754}]} args : 21251739 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 :9, first value : ('0.06762957392785778',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21251739) 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 (1342778787,1342778784,1342778778,1342778587,1342778578,1342778555,1342778477,1342778455) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342778455 begin to download photo : 1342778555 begin to download photo : 1342778587 begin to download photo : 1342778784 download finish for photo 1342778455 begin to download photo : 1342778477 download finish for photo 1342778587 begin to download photo : 1342778778 download finish for photo 1342778784 begin to download photo : 1342778787 download finish for photo 1342778555 begin to download photo : 1342778578 download finish for photo 1342778477 download finish for photo 1342778787 download finish for photo 1342778778 download finish for photo 1342778578 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P21251739_11-03-2025_02_41_58.pdf 21251744 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=21251744 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342775955: '1741656867_727334_1342774815_ad46e732e889e2297e7d922722a63714_rle_crop_3704030838_0.png', 1342775962: '1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030883_0.png', 1342775969: '1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030895_0.png', 1342775978: '1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030894_0.png', 1342775987: '1741656867_727334_1342774730_c30cff1b403d127feba9af636ba0b275_rle_crop_3704030903_0.png', 1342778364: '1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032782_0.png', 1342778803: '1741657213_359225_1342778260_271311c59bf4216f83584a278808f9f4_rle_crop_3704037635_0.png', 1342778828: '1741657224_735948_1342777734_213f735b6c6485bd9a45cf313d951da2_rle_crop_3704038255_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8993b1fc395d7ef868f7cc5791aa13a6_20527014.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3ab053c321b3a027c34a7defb90a0a2a_64820981.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0ec78c17291df9bb7672cd2d0c7be926_43194226.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/696166fa53119a9e204a8b2c050fed25_64296921.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ab75fef966802a5b5e382b209d2e348d_95219049.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/79674d67705532593c4f6e4c3c6a52f7_76531303.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b6e01c19d86483d07589786a1bcd5507_40190048.png change filename to text .imagette212517441741657318/ imagette212517441741657318/1741657213_359225_1342778260_271311c59bf4216f83584a278808f9f4_rle_crop_3704037635_0.png.png imagette212517441741657318/1741656867_727334_1342774730_c30cff1b403d127feba9af636ba0b275_rle_crop_3704030903_0.png.png imagette212517441741657318/1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030894_0.png.png imagette212517441741657318/1741656867_727334_1342774815_ad46e732e889e2297e7d922722a63714_rle_crop_3704030838_0.png.png imagette212517441741657318/1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030895_0.png.png imagette212517441741657318/1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032782_0.png.png imagette212517441741657318/1741657224_735948_1342777734_213f735b6c6485bd9a45cf313d951da2_rle_crop_3704038255_0.png.png imagette212517441741657318/1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030883_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/61d5383736977071f13655dbca16437f_41214717.png imagette212517441741657318 21251745 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=21251745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342775854: '1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030889_0.png', 1342775863: '1741656867_727334_1342774730_c30cff1b403d127feba9af636ba0b275_rle_crop_3704030906_0.png', 1342778078: '1741657033_357913_1342776048_77e9c9971f5d10fb82f5aceecac18c8f_rle_crop_3704034651_0.png', 1342778343: '1741657048_184738_1342776365_c06063afe14b5723e6eb6e4738cede5c_rle_crop_3704034584_0.png', 1342778346: '1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032781_0.png', 1342778823: '1741657224_735948_1342777851_0c4c271380a95be91915cddd39b1d78c_rle_crop_3704037955_0.png', 1342778824: '1741657224_735948_1342777734_213f735b6c6485bd9a45cf313d951da2_rle_crop_3704038251_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0105a335f86c8d3befaf15cb6f3eb695_9522413.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bbc1f7811c127dbbeddd1ab79c7bdb94_80827558.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6ccd146921391925e6a0fb8f67719710_51615474.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bd12a91266a1e7a11ca5ba07d8fbd487_62430872.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0cd203a5ab23a515cde3f94d54596134_85343780.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/11061b5e8d1335707c7bed55e81eb3ce_85793829.png change filename to text .imagette212517451741657318/ imagette212517451741657318/1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030889_0.png.png imagette212517451741657318/1741657048_184738_1342776365_c06063afe14b5723e6eb6e4738cede5c_rle_crop_3704034584_0.png.png imagette212517451741657318/1741657224_735948_1342777851_0c4c271380a95be91915cddd39b1d78c_rle_crop_3704037955_0.png.png imagette212517451741657318/1741657033_357913_1342776048_77e9c9971f5d10fb82f5aceecac18c8f_rle_crop_3704034651_0.png.png imagette212517451741657318/1741657224_735948_1342777734_213f735b6c6485bd9a45cf313d951da2_rle_crop_3704038251_0.png.png imagette212517451741657318/1741656867_727334_1342774730_c30cff1b403d127feba9af636ba0b275_rle_crop_3704030906_0.png.png imagette212517451741657318/1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032781_0.png.png imagette212517461741657319/ imagette212517471741657319/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/91cf952b95d42d908dbecdf1cb8626f6_12620552.png imagette212517451741657318 21251746 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=21251746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212517461741657319 21251747 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=21251747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212517471741657319 21251749 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=21251749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342778305: '1741657048_184738_1342775472_3f6cf0719839825d626758319d1c3993_rle_crop_3704033132_0.png', 1342778816: '1741657224_735948_1342777664_4ba0f01e294af35e6184064a05e002fb_rle_crop_3704038277_0.png', 1342778815: '1741657224_735948_1342777734_213f735b6c6485bd9a45cf313d951da2_rle_crop_3704038258_0.png', 1342778814: '1741657224_735948_1342777734_213f735b6c6485bd9a45cf313d951da2_rle_crop_3704038249_0.png', 1342778813: '1741657224_735948_1342777784_4aed1a337c030a16e7f2f80a034b6222_rle_crop_3704038166_0.png', 1342778812: '1741657224_735948_1342777784_4aed1a337c030a16e7f2f80a034b6222_rle_crop_3704038158_0.png', 1342778811: '1741657224_735948_1342777784_4aed1a337c030a16e7f2f80a034b6222_rle_crop_3704038161_0.png', 1342778810: '1741657224_735948_1342777851_0c4c271380a95be91915cddd39b1d78c_rle_crop_3704037963_0.png', 1342778809: '1741657224_735948_1342777851_0c4c271380a95be91915cddd39b1d78c_rle_crop_3704037960_0.png', 1342778808: '1741657224_735948_1342778300_e896b082a8dfdb90f668fe0de65b9c90_rle_crop_3704037712_0.png', 1342778801: '1741657213_359225_1342778241_b842bf2ffc068c3b3b33d7879cf585f2_rle_crop_3704037699_0.png', 1342778800: '1741657213_359225_1342778260_271311c59bf4216f83584a278808f9f4_rle_crop_3704037637_0.png', 1342778799: '1741657213_359225_1342778279_6f9e7933db64ccd0d6eb6179976bb23c_rle_crop_3704037617_0.png', 1342778798: '1741657213_359225_1342778279_6f9e7933db64ccd0d6eb6179976bb23c_rle_crop_3704037623_0.png', 1342778311: '1741657048_184738_1342775463_924263993218e968bb2823b5fac7aa08_rle_crop_3704033936_0.png', 1342778309: '1741657048_184738_1342775468_4bfc12f43da582b61be5c0e11971b477_rle_crop_3704033906_0.png', 1342775693: '1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030789_0.png', 1342778302: '1741657048_184738_1342775477_ea6f33de4ee4850a66e350e96eb889e3_rle_crop_3704032808_0.png', 1342778298: '1741657048_184738_1342775477_ea6f33de4ee4850a66e350e96eb889e3_rle_crop_3704032796_0.png', 1342778296: '1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032791_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6dfe08b6642671acc17935f811670e6c_93775886.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/adbe51c09a37d0c24931fa00d2a80317_4219179.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d79b3e0298554479f0222350a3650efa_92030082.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/68c7bd496f998d0a5743be14e3406691_34234612.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b4c73aaab00e8a7998d9f2daae0502ef_73343712.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f4be0f971ab5df0ba5fca5d6bdf3c498_20057979.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6a22086b643ebe79f2cb57f921bd4014_12750562.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9c506e78fb0611d3636eefaef19890e6_24617499.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/dbc1a347aa6553e0f28c8ccf46eeda12_77056259.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d9f2e4c28693489fbd027e2bfb4a7a39_67385878.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/22ee852c293f1e0958cc7cf1b4b635e4_99497043.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d7967a7bd8bff1781809cd6df2e57177_71537726.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3c5cfaa42d091fe15242671586bd8bb3_38138741.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/561318937428772f05bd4ca64cd1f699_92797708.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c3396981fa785a68d63fc8894f15fd7b_80448428.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6cd6db8b70f16ee369b49a1b87204ff1_94224729.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b18923eb66800b77fb9a0dcce692bdc5_58658669.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8511f283066fa2e8112add4daf5ca5dc_80513847.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d9a65c0fda8485ee2bd2e2034b810e50_31902733.png change filename to text .imagette212517491741657319/ imagette212517491741657319/1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032791_0.png.png imagette212517491741657319/1741657213_359225_1342778279_6f9e7933db64ccd0d6eb6179976bb23c_rle_crop_3704037617_0.png.png imagette212517491741657319/1741657048_184738_1342775468_4bfc12f43da582b61be5c0e11971b477_rle_crop_3704033906_0.png.png imagette212517491741657319/1741657224_735948_1342777734_213f735b6c6485bd9a45cf313d951da2_rle_crop_3704038258_0.png.png imagette212517491741657319/1741657224_735948_1342777784_4aed1a337c030a16e7f2f80a034b6222_rle_crop_3704038161_0.png.png imagette212517491741657319/1741657224_735948_1342777851_0c4c271380a95be91915cddd39b1d78c_rle_crop_3704037963_0.png.png imagette212517491741657319/1741657048_184738_1342775477_ea6f33de4ee4850a66e350e96eb889e3_rle_crop_3704032808_0.png.png imagette212517491741657319/1741657224_735948_1342777784_4aed1a337c030a16e7f2f80a034b6222_rle_crop_3704038166_0.png.png imagette212517491741657319/1741657048_184738_1342775463_924263993218e968bb2823b5fac7aa08_rle_crop_3704033936_0.png.png imagette212517491741657319/1741657224_735948_1342778300_e896b082a8dfdb90f668fe0de65b9c90_rle_crop_3704037712_0.png.png imagette212517491741657319/1741657224_735948_1342777664_4ba0f01e294af35e6184064a05e002fb_rle_crop_3704038277_0.png.png imagette212517491741657319/1741657213_359225_1342778279_6f9e7933db64ccd0d6eb6179976bb23c_rle_crop_3704037623_0.png.png imagette212517491741657319/1741657213_359225_1342778241_b842bf2ffc068c3b3b33d7879cf585f2_rle_crop_3704037699_0.png.png imagette212517491741657319/1741657224_735948_1342777851_0c4c271380a95be91915cddd39b1d78c_rle_crop_3704037960_0.png.png imagette212517491741657319/1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030789_0.png.png imagette212517491741657319/1741657213_359225_1342778260_271311c59bf4216f83584a278808f9f4_rle_crop_3704037637_0.png.png imagette212517491741657319/1741657048_184738_1342775477_ea6f33de4ee4850a66e350e96eb889e3_rle_crop_3704032796_0.png.png imagette212517491741657319/1741657048_184738_1342775472_3f6cf0719839825d626758319d1c3993_rle_crop_3704033132_0.png.png imagette212517491741657319/1741657224_735948_1342777734_213f735b6c6485bd9a45cf313d951da2_rle_crop_3704038249_0.png.png imagette212517491741657319/1741657224_735948_1342777784_4aed1a337c030a16e7f2f80a034b6222_rle_crop_3704038158_0.png.png imagette212517511741657320/ imagette212517541741657320/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/68081899eb7bab775439fc2df6e9bf43_23512106.png imagette212517491741657319 21251751 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=21251751 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212517511741657320 21251754 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=21251754 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212517541741657320 21251748 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=21251748 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342775915: '1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030790_0.png', 1342775923: '1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030877_0.png', 1342778354: '1741657048_184738_1342775477_ea6f33de4ee4850a66e350e96eb889e3_rle_crop_3704032799_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6cb673c2b238697b989890b7d5fb9e2b_81093171.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f959771371930a0bb182c3cb6ff39614_94603617.png change filename to text .imagette212517481741657320/ imagette212517481741657320/1741657048_184738_1342775477_ea6f33de4ee4850a66e350e96eb889e3_rle_crop_3704032799_0.png.png imagette212517481741657320/1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030790_0.png.png imagette212517481741657320/1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030877_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2a9c2f9be5adb304007458217e5899b4_99606138.png imagette212517481741657320 21251750 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=21251750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342775774: '1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030786_0.png', 1342775780: '1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030785_0.png', 1342775788: '1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030875_0.png', 1342775796: '1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030890_0.png', 1342778134: '1741657047_730816_1342775484_bb7e319e18769ed79f6ab324ebe1c42c_rle_crop_3704032678_0.png', 1342778336: '1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032786_0.png', 1342778338: '1741657048_184738_1342775468_4bfc12f43da582b61be5c0e11971b477_rle_crop_3704033903_0.png', 1342778802: '1741657213_359225_1342778241_b842bf2ffc068c3b3b33d7879cf585f2_rle_crop_3704037687_0.png', 1342778820: '1741657224_735948_1342777851_0c4c271380a95be91915cddd39b1d78c_rle_crop_3704037953_0.png', 1342778821: '1741657224_735948_1342777664_4ba0f01e294af35e6184064a05e002fb_rle_crop_3704038274_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/996183d3a1d8e769e0b6b405807e7f46_27234227.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/753d1b641e2d0d30e481bb0c3782810a_87987736.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7dbc532e443e30214cbd817bb58c9f78_27546061.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/73075db839c991ae06b0a2f237d90d1f_46268741.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c8fb68a621022a3d9e9f580ea35a2f8e_7495939.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b136ed814f2a0cb860a60604a360b929_64393103.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1c0c9d05a1f92fea00c3c1fcf270ef6a_88568070.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b6cdb3b87689e9bd18b12926b0b540f8_85621023.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c103ddcdda597c51072c860d2918b72f_99131398.png change filename to text .imagette212517501741657320/ imagette212517501741657320/1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032786_0.png.png imagette212517501741657320/1741657047_730816_1342775484_bb7e319e18769ed79f6ab324ebe1c42c_rle_crop_3704032678_0.png.png imagette212517501741657320/1741657224_735948_1342777664_4ba0f01e294af35e6184064a05e002fb_rle_crop_3704038274_0.png.png imagette212517501741657320/1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030875_0.png.png imagette212517501741657320/1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030785_0.png.png imagette212517501741657320/1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030786_0.png.png imagette212517501741657320/1741657048_184738_1342775468_4bfc12f43da582b61be5c0e11971b477_rle_crop_3704033903_0.png.png imagette212517501741657320/1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030890_0.png.png imagette212517501741657320/1741657213_359225_1342778241_b842bf2ffc068c3b3b33d7879cf585f2_rle_crop_3704037687_0.png.png imagette212517501741657320/1741657224_735948_1342777851_0c4c271380a95be91915cddd39b1d78c_rle_crop_3704037953_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f0ff633c3bf2f35cfc7d4b3c7d83afb9_75239182.png imagette212517501741657320 21251753 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=21251753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342778277: '1741657048_184738_1342775463_924263993218e968bb2823b5fac7aa08_rle_crop_3704033930_0.png', 1342778795: '1741657213_359225_1342778279_6f9e7933db64ccd0d6eb6179976bb23c_rle_crop_3704037625_0.png', 1342778796: '1741657213_359225_1342778279_6f9e7933db64ccd0d6eb6179976bb23c_rle_crop_3704037618_0.png', 1342778797: '1741657213_359225_1342778241_b842bf2ffc068c3b3b33d7879cf585f2_rle_crop_3704037697_0.png', 1342778805: '1741657224_735948_1342778300_e896b082a8dfdb90f668fe0de65b9c90_rle_crop_3704037707_0.png', 1342778806: '1741657224_735948_1342777734_213f735b6c6485bd9a45cf313d951da2_rle_crop_3704038256_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/29f96be740580953c19abadca87a9251_23990220.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/42a5591c3b73a0d0966bec9c52769b5a_51811652.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/939e0d3ee9f934d912a246c600bcfad4_38101888.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/040de03a863cede3330c1e5e53114894_4429531.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/15005aa5548f4b0aecbd60131b47bb33_60172874.png change filename to text .imagette212517531741657321/ imagette212517531741657321/1741657224_735948_1342777734_213f735b6c6485bd9a45cf313d951da2_rle_crop_3704038256_0.png.png imagette212517531741657321/1741657213_359225_1342778279_6f9e7933db64ccd0d6eb6179976bb23c_rle_crop_3704037618_0.png.png imagette212517531741657321/1741657048_184738_1342775463_924263993218e968bb2823b5fac7aa08_rle_crop_3704033930_0.png.png imagette212517531741657321/1741657213_359225_1342778279_6f9e7933db64ccd0d6eb6179976bb23c_rle_crop_3704037625_0.png.png imagette212517531741657321/1741657213_359225_1342778241_b842bf2ffc068c3b3b33d7879cf585f2_rle_crop_3704037697_0.png.png imagette212517531741657321/1741657224_735948_1342778300_e896b082a8dfdb90f668fe0de65b9c90_rle_crop_3704037707_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3b78b82ab2bb9803585115895cf1a193_21044708.png imagette212517531741657321 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21251739 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21251755,21251756,21251757,21251758,21251759,21251760,21251761,21251762,21251763,21251764,21251765,21251766?tags=papier,plastique,cartonnette,flou,kraft,Carton_brun,autre_refus,Carton_gris,mal_croppe,environnement,Teint_Dans_La_Masse,metal your option no_mail is active, we will not send the real mail to your client args[1342778787] : ('0.06762957392785778',) no score found for photo 1342778787 We are sending mail with results at report@fotonower.com args[1342778784] : ('0.06762957392785778',) no score found for photo 1342778784 We are sending mail with results at report@fotonower.com args[1342778778] : ('0.06762957392785778',) no score found for photo 1342778778 We are sending mail with results at report@fotonower.com args[1342778587] : ('0.06762957392785778',) no score found for photo 1342778587 We are sending mail with results at report@fotonower.com args[1342778578] : ('0.06762957392785778',) no score found for photo 1342778578 We are sending mail with results at report@fotonower.com args[1342778555] : ('0.06762957392785778',) no score found for photo 1342778555 We are sending mail with results at report@fotonower.com args[1342778477] : ('0.06762957392785778',) no score found for photo 1342778477 We are sending mail with results at report@fotonower.com args[1342778455] : ('0.06762957392785778',) no score found for photo 1342778455 We are sending mail with results at report@fotonower.com refus_total : 0.06762957392785778 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=21251739 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_P21251739_11-03-2025_02_41_58.pdf results_Auto_P21251739_11-03-2025_02_41_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21251739_11-03-2025_02_41_58.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','21251739','results_Auto_P21251739_11-03-2025_02_41_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21251739_11-03-2025_02_41_58.pdf','pdf','','0.24','0.06762957392785778') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21251739]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342778787, 1342778784, 1342778778, 1342778587, 1342778578, 1342778555, 1342778477, 1342778455] map_info['map_portfolio_photo'] : {21251739: [1342778787, 1342778784, 1342778778, 1342778587, 1342778578, 1342778555, 1342778477, 1342778455, 1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779, 1342776365, 1342776268, 1342776116, 1342776048, 1342775484, 1342775481, 1342775477, 1342775472, 1342775468, 1342775463, 1342775373, 1342775347, 1342775314, 1342775153, 1342775132, 1342775111, 1342774815, 1342774791, 1342774755, 1342774730]} final : False mtd_id 4302 list_pids : [1342778787, 1342778784, 1342778778, 1342778587, 1342778578, 1342778555, 1342778477, 1342778455] 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, '2656356') ('4302', '21251739', '1342778787', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778784', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778778', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778587', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778578', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778555', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778477', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778455', None, None, None, None, None, '2656356') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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', '21251739', '1342778787', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778784', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778778', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778587', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778578', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778555', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778477', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778455', None, None, None, None, None, '2656356')] time used for this insertion : 0.013707637786865234 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.469498634338379 time spend to save output : 0.013986349105834961 total time spend for step 4 : 4.483484983444214 step5:split_time_score Tue Mar 11 02:42:02 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 : ['21251739'] 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 : [('21251739',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21251739) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342778455: {'path': 'temp/1741657318_2380808_1342778455_364750e2337644af96c031ef432d3d2c.jpg', 'extension': 'jpg'}, 1342778477: {'path': 'temp/1741657318_2380808_1342778477_c9319341f89e0a1f7372608cd6fcb874.jpg', 'extension': 'jpg'}, 1342778784: {'path': 'temp/1741657318_2380808_1342778784_57cde301ca6cc47561342586acdf478a.jpg', 'extension': 'jpg'}, 1342778787: {'path': 'temp/1741657318_2380808_1342778787_7e2d28bb748176acbde1948dca918d75.jpg', 'extension': 'jpg'}, 1342778587: {'path': 'temp/1741657318_2380808_1342778587_1f0585c670eef69dde95d467a95b0965.jpg', 'extension': 'jpg'}, 1342778778: {'path': 'temp/1741657318_2380808_1342778778_aae002a8150b23d7e57bc1ea83bf7135.jpg', 'extension': 'jpg'}, 1342778555: {'path': 'temp/1741657318_2380808_1342778555_5c387875d4428540a934538d89a7823f.jpg', 'extension': 'jpg'}, 1342778578: {'path': 'temp/1741657318_2380808_1342778578_45c2e65b91bee3f5536fabcb24cf165a.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 = 21251739; (('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 = 21251739 group by h (('02', 43),) 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=21251739 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 (21251739) 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 (21251739) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21251739 Nombre de photos uploadées : 43 / 23040 (0%) 11032025 21251739 Nombre de photos taguées (types de déchets): 0 / 43 (0%) 11032025 21251739 Nombre de photos taguées (volume) : 0 / 43 (0%) [{'photo_id': 1342774815, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ad46e732e889e2297e7d922722a63714.jpg', 'username': None, 'uploaded_at': 1741656698, 'text': 'image_11032025_02_30_04_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342774791, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/30da14e4dccb42b3af3ae812cb1f626e.jpg', 'username': None, 'uploaded_at': 1741656698, 'text': 'image_11032025_02_30_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342774755, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f2e218ea098d71f5af0e2e800f52ea61.jpg', 'username': None, 'uploaded_at': 1741656698, 'text': 'image_11032025_02_30_23_009125m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342774730, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c30cff1b403d127feba9af636ba0b275.jpg', 'username': None, 'uploaded_at': 1741656698, 'text': 'image_11032025_02_30_33_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0967254638671875e-05 ??????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018329620361328125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21251739, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02314305305480957 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664559, 'mtr_portfolio_id': 21249839, 'dashboard_result_id': 9328563, '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_P21249839_11-03-2025_01_57_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21249853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21249854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21249855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21249856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21249857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21249858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21249859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21249860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21249861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21249862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21249863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21249864, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664559, 'mtr_portfolio_id': 21250319, 'dashboard_result_id': 9328565, '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_P21250319_11-03-2025_02_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21250338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21250348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250349, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664559, 'mtr_portfolio_id': 21250930, 'dashboard_result_id': 9328566, '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_P21250930_11-03-2025_02_33_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21250949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21250955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250960, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664559, 'mtr_portfolio_id': 21251739, 'dashboard_result_id': 9328568, '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_P21251739_11-03-2025_02_39_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21251743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21251744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21251745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21251746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21251747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21251748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21251749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21251750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21251751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21251752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21251753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21251754, '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 = 21249839 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': 2656255, 'mtr_portfolio_id': 21249839, 'created_at': datetime.datetime(2025, 3, 11, 1, 56, 59), 'result': '0.07871469110083705', 'result_long': None, 'result_double': None}] Qualite : 0.07871469110083705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21249839 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21249839_11-03-2025_01_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21249839 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_P21249839_11-03-2025_01_57_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21249853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21249854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21249855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21249856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21249857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21249858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21249859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21249860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21249861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21249862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21249863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21249864, 'pht': 3726}}" where mtr_portfolio_id = 21249839 and dashboard_run_id = 1664559 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`=21249839 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9328563, 0.07871469110083705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21249839_11-03-2025_01_57_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21249853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21249854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21249855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21249856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21249857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21249858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21249859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21249860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21249861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21249862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21249863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21249864, '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 = 21250319 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': 2656280, 'mtr_portfolio_id': 21250319, 'created_at': datetime.datetime(2025, 3, 11, 2, 19, 59), 'result': '0.06455545040092278', 'result_long': None, 'result_double': None}] Qualite : 0.06455545040092278 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21250319 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250319_11-03-2025_02_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21250319 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_P21250319_11-03-2025_02_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21250338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21250348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250349, 'pht': 3726}}" where mtr_portfolio_id = 21250319 and dashboard_run_id = 1664559 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`=21250319 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9328565, 0.06455545040092278, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250319_11-03-2025_02_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21250338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21250348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250349, '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 = 21250930 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': 2656319, 'mtr_portfolio_id': 21250930, 'created_at': datetime.datetime(2025, 3, 11, 2, 33, 38), 'result': '0.07619899619228289', 'result_long': None, 'result_double': None}] Qualite : 0.07619899619228289 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21250930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250930_11-03-2025_02_33_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21250930 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_P21250930_11-03-2025_02_33_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21250949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21250955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250960, 'pht': 3726}}" where mtr_portfolio_id = 21250930 and dashboard_run_id = 1664559 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`=21250930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9328566, 0.07619899619228289, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250930_11-03-2025_02_33_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21250949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21250955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250960, '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 = 21251739 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': 2656356, 'mtr_portfolio_id': 21251739, 'created_at': datetime.datetime(2025, 3, 11, 2, 41, 57), 'result': '0.06762957392785778', 'result_long': None, 'result_double': None}] Qualite : 0.06762957392785778 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21251739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21251739_11-03-2025_02_41_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21251739 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_P21251739_11-03-2025_02_41_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21251743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21251744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21251745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21251746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21251747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21251748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21251749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21251750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21251751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21251752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21251753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21251754, 'pht': 3726}}" where mtr_portfolio_id = 21251739 and dashboard_run_id = 1664559 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`=21251739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9328568, 0.06762957392785778, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21251739_11-03-2025_02_41_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21251743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21251744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21251745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21251746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21251747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21251748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21251749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21251750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21251751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21251752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21251753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21251754, '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 (21249839,21250319,21250930,21251739) result : ((1342756812,), (1342758777,), (1342758875,), (1342759286,), (1342759591,), (1342759605,), (1342759626,), (1342759843,), (1342759848,), (1342759872,), (1342759875,), (1342759877,), (1342759947,), (1342759964,), (1342759990,), (1342760021,), (1342760618,), (1342760708,), (1342760787,), (1342760831,), (1342760855,), (1342761104,), (1342761126,), (1342761145,), (1342761161,), (1342761166,), (1342761557,), (1342761585,), (1342761595,), (1342761611,), (1342761631,), (1342761651,), (1342761826,), (1342761812,), (1342761814,), (1342761822,), (1342761824,), (1342762146,), (1342762203,), (1342762213,), (1342762248,), (1342762323,), (1342762347,), (1342762357,), (1342762367,), (1342762389,), (1342762463,), (1342762510,), (1342762551,), (1342762617,), (1342762677,), (1342762952,), (1342762956,), (1342762959,), (1342762977,), (1342762983,), (1342763007,), (1342763013,), (1342763019,), (1342763022,), (1342763026,), (1342763028,), (1342763071,), (1342763099,), (1342763131,), (1342763154,), (1342763747,), (1342763818,), (1342763831,), (1342763853,), (1342764042,), (1342764082,), (1342764108,), (1342764131,), (1342764155,), (1342764214,), (1342764246,), (1342764318,), (1342764378,), (1342764415,), (1342764566,), (1342764567,), (1342764570,), (1342764589,), (1342764605,), (1342764611,), (1342764618,), (1342764622,), (1342764624,), (1342764808,), (1342764828,), (1342764882,), (1342764899,), (1342764938,), (1342765446,), (1342765515,), (1342765561,), (1342766190,), (1342766262,), (1342766959,), (1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,), (1342772544,), (1342772560,), (1342772577,), (1342772627,), (1342772698,), (1342772735,), (1342773042,), (1342773117,), (1342773184,), (1342773263,), (1342773366,), (1342773584,), (1342773587,), (1342773603,), (1342773625,), (1342774238,), (1342774337,), (1342774384,), (1342774444,), (1342774506,), (1342774518,), (1342774846,), (1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,), (1342778455,), (1342778477,), (1342778555,), (1342778578,), (1342778587,), (1342778778,), (1342778784,), (1342778787,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 43, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21251739]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342778787, 1342778784, 1342778778, 1342778587, 1342778578, 1342778555, 1342778477, 1342778455] map_info['map_portfolio_photo'] : {21251739: [1342778787, 1342778784, 1342778778, 1342778587, 1342778578, 1342778555, 1342778477, 1342778455, 1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779, 1342776365, 1342776268, 1342776116, 1342776048, 1342775484, 1342775481, 1342775477, 1342775472, 1342775468, 1342775463, 1342775373, 1342775347, 1342775314, 1342775153, 1342775132, 1342775111, 1342774815, 1342774791, 1342774755, 1342774730]} final : True mtd_id 4302 list_pids : [1342778787, 1342778784, 1342778778, 1342778587, 1342778578, 1342778555, 1342778477, 1342778455] Looping around the photos to save general results len do output : 1 /21251739Didn'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, '2656356') ('4302', '21251739', '1342778787', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778784', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778778', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778587', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778578', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778555', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778477', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778455', None, None, None, None, None, '2656356') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21251739', 'None', None, None, None, None, '2656356'), ('4302', '21251739', '1342778787', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778784', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778778', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778587', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778578', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778555', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778477', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778455', None, None, None, None, None, '2656356')] time used for this insertion : 0.013184309005737305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.37357664108276367 time spend to save output : 0.013415098190307617 total time spend for step 5 : 0.3869917392730713 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 (2656356) 2.36user 2.34system 0:08.31elapsed 56%CPU (0avgtext+0avgdata 159728maxresident)k 46192inputs+12488outputs (162major+74485minor)pagefaults 0swaps