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 : 4107753 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 (2586436) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2586436) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20552543 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2586436'] with mtr_portfolio_ids : ['20552543'] and first list_photo_ids : [] new path : /proc/4107753/ Name: python3 Umask: 0002 State: R (running) Tgid: 4107753 Ngid: 0 Pid: 4107753 PPid: 4107752 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4107753 NSpid: 4107753 NSpgid: 4104776 NSsid: 4104776 VmPeak: 1106588 kB VmSize: 1106572 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 96520 kB VmRSS: 96520 kB RssAnon: 59736 kB RssFile: 36784 kB RssShmem: 0 kB VmData: 865324 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 600 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: 42 nonvoluntary_ctxt_switches: 103 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4107753', 'Ngid': '0', 'Pid': '4107753', 'PPid': '4107752', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4107753', 'NSpid': '4107753', 'NSpgid': '4104776', 'NSsid': '4104776', 'VmPeak': '1106588 kB', 'VmSize': '1106572 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '96520 kB', 'VmRSS': '96520 kB', 'RssAnon': '59736 kB', 'RssFile': '36784 kB', 'RssShmem': '0 kB', 'VmData': '865324 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '42', 'nonvoluntary_ctxt_switches': '103'} ('datou_batch_current', '4107753', '1106588', '0', '1106572', '865324', '96520', b'', 'marlene', '2586436') 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 (20552543) 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 (2586436 ) ) 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 (20552543) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1337595076, 'portfolio_id': 20552543}, {'photo_id': 1337595074, 'portfolio_id': 20552543}, {'photo_id': 1337595070, 'portfolio_id': 20552543}, {'photo_id': 1337595066, 'portfolio_id': 20552543}, {'photo_id': 1337595053, 'portfolio_id': 20552543}, {'photo_id': 1337595000, 'portfolio_id': 20552543}, {'photo_id': 1337594997, 'portfolio_id': 20552543}, {'photo_id': 1337594993, 'portfolio_id': 20552543}, {'photo_id': 1337594989, 'portfolio_id': 20552543}, {'photo_id': 1337594986, 'portfolio_id': 20552543}, {'photo_id': 1337594917, 'portfolio_id': 20552543}, {'photo_id': 1337594913, 'portfolio_id': 20552543}, {'photo_id': 1337594905, 'portfolio_id': 20552543}, {'photo_id': 1337594898, 'portfolio_id': 20552543}, {'photo_id': 1337594846, 'portfolio_id': 20552543}, {'photo_id': 1337594841, 'portfolio_id': 20552543}, {'photo_id': 1337594836, 'portfolio_id': 20552543}, {'photo_id': 1337594831, 'portfolio_id': 20552543}, {'photo_id': 1337594826, 'portfolio_id': 20552543}, {'photo_id': 1337594823, 'portfolio_id': 20552543}, {'photo_id': 1337594777, 'portfolio_id': 20552543}, {'photo_id': 1337594774, 'portfolio_id': 20552543}, {'photo_id': 1337594771, 'portfolio_id': 20552543}, {'photo_id': 1337594768, 'portfolio_id': 20552543}, {'photo_id': 1337594745, 'portfolio_id': 20552543}, {'photo_id': 1337594741, 'portfolio_id': 20552543}, {'photo_id': 1337594731, 'portfolio_id': 20552543}, {'photo_id': 1337594716, 'portfolio_id': 20552543}, {'photo_id': 1337594713, 'portfolio_id': 20552543}, {'photo_id': 1337594679, 'portfolio_id': 20552543}, {'photo_id': 1337594605, 'portfolio_id': 20552543}, {'photo_id': 1337594601, 'portfolio_id': 20552543}, {'photo_id': 1337594596, 'portfolio_id': 20552543}, {'photo_id': 1337594593, 'portfolio_id': 20552543}, {'photo_id': 1337594292, 'portfolio_id': 20552543}, {'photo_id': 1337594287, 'portfolio_id': 20552543}, {'photo_id': 1337594283, 'portfolio_id': 20552543}, {'photo_id': 1337594280, 'portfolio_id': 20552543}, {'photo_id': 1337594277, 'portfolio_id': 20552543}, {'photo_id': 1337594265, 'portfolio_id': 20552543}, {'photo_id': 1337593544, 'portfolio_id': 20552543}, {'photo_id': 1337593542, 'portfolio_id': 20552543}, {'photo_id': 1337593535, 'portfolio_id': 20552543}, {'photo_id': 1337593528, 'portfolio_id': 20552543}, {'photo_id': 1337593524, 'portfolio_id': 20552543}, {'photo_id': 1337593519, 'portfolio_id': 20552543}, {'photo_id': 1337593474, 'portfolio_id': 20552543}, {'photo_id': 1337593470, 'portfolio_id': 20552543}, {'photo_id': 1337593440, 'portfolio_id': 20552543}, {'photo_id': 1337593437, 'portfolio_id': 20552543}, {'photo_id': 1337593433, 'portfolio_id': 20552543}, {'photo_id': 1337593430, 'portfolio_id': 20552543}] map_portfolio_id_photo_id: {20552543: [1337595076, 1337595074, 1337595070, 1337595066, 1337595053, 1337595000, 1337594997, 1337594993, 1337594989, 1337594986, 1337594917, 1337594913, 1337594905, 1337594898, 1337594846, 1337594841, 1337594836, 1337594831, 1337594826, 1337594823, 1337594777, 1337594774, 1337594771, 1337594768, 1337594745, 1337594741, 1337594731, 1337594716, 1337594713, 1337594679, 1337594605, 1337594601, 1337594596, 1337594593, 1337594292, 1337594287, 1337594283, 1337594280, 1337594277, 1337594265, 1337593544, 1337593542, 1337593535, 1337593528, 1337593524, 1337593519, 1337593474, 1337593470, 1337593440, 1337593437, 1337593433, 1337593430]} ##### 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.015187263488769531 #### 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 Fri Feb 14 10:56: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20552543) 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 : 20552543 get user id for portfolio 20552543 get sub ptf for main ptf 20552543, type 3726 and hashtags ['plastique', 'autre_refus', 'mal_croppe', 'Carton_brun', 'metal', 'kraft', 'cartonnette', 'flou', 'environnement', 'Carton_gris', 'papier', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20552543 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','mal_croppe','Carton_brun','metal','kraft','cartonnette','flou','environnement','Carton_gris','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20552543 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','mal_croppe','Carton_brun','metal','kraft','cartonnette','flou','environnement','Carton_gris','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20552543, 'sub_port_id': 20552551, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216767, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 57)}, 'kraft': {'main_port_id': 20552543, 'sub_port_id': 20552552, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216768, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 57)}, 'Carton_brun': {'main_port_id': 20552543, 'sub_port_id': 20552553, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216769, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 57)}, 'mal_croppe': {'main_port_id': 20552543, 'sub_port_id': 20552554, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216770, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 57)}, 'metal': {'main_port_id': 20552543, 'sub_port_id': 20552555, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216771, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 57)}, 'plastique': {'main_port_id': 20552543, 'sub_port_id': 20552556, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216772, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 57)}, 'Carton_gris': {'main_port_id': 20552543, 'sub_port_id': 20552557, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216773, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20552543, 'sub_port_id': 20552558, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216774, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 57)}, 'papier': {'main_port_id': 20552543, 'sub_port_id': 20552559, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216775, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 57)}, 'cartonnette': {'main_port_id': 20552543, 'sub_port_id': 20552560, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216776, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 57)}, 'autre_refus': {'main_port_id': 20552543, 'sub_port_id': 20552561, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216777, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 57)}, 'environnement': {'main_port_id': 20552543, 'sub_port_id': 20552562, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216778, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20552551 , 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=20552543 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 (20552551) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20552543) result : ((1337593430,), (1337593433,), (1337593437,), (1337593440,), (1337593470,), (1337593474,), (1337593519,), (1337593524,), (1337593528,), (1337593535,), (1337593542,), (1337593544,), (1337594265,), (1337594277,), (1337594280,), (1337594283,), (1337594287,), (1337594292,), (1337594593,), (1337594596,), (1337594601,), (1337594605,), (1337594679,), (1337594713,), (1337594716,), (1337594731,), (1337594741,), (1337594745,), (1337594768,), (1337594771,), (1337594774,), (1337594777,), (1337594823,), (1337594826,), (1337594831,), (1337594836,), (1337594841,), (1337594846,), (1337594898,), (1337594905,), (1337594913,), (1337594917,), (1337594986,), (1337594989,), (1337594993,), (1337594997,), (1337595000,), (1337595053,), (1337595066,), (1337595070,), (1337595074,), (1337595076,)) 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 (1337595000) 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 20552552 , 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=20552543 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 (20552552) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20552543) result : ((1337593430,), (1337593433,), (1337593437,), (1337593440,), (1337593470,), (1337593474,), (1337593519,), (1337593524,), (1337593528,), (1337593535,), (1337593542,), (1337593544,), (1337594265,), (1337594277,), (1337594280,), (1337594283,), (1337594287,), (1337594292,), (1337594593,), (1337594596,), (1337594601,), (1337594605,), (1337594679,), (1337594713,), (1337594716,), (1337594731,), (1337594741,), (1337594745,), (1337594768,), (1337594771,), (1337594774,), (1337594777,), (1337594823,), (1337594826,), (1337594831,), (1337594836,), (1337594841,), (1337594846,), (1337594898,), (1337594905,), (1337594913,), (1337594917,), (1337594986,), (1337594989,), (1337594993,), (1337594997,), (1337595000,), (1337595053,), (1337595066,), (1337595070,), (1337595074,), (1337595076,)) 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 (1337595000) 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 20552553 , 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=20552543 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 (20552553) result : ((1337594869,), (1337594870,), (1337594887,), (1337594888,), (1337594904,), (1337595055,), (1337595056,), (1337595057,), (1337595058,), (1337595059,), (1337595060,), (1337595061,), (1337595062,), (1337595063,), (1337595064,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20552543) result : ((1337593430,), (1337593433,), (1337593437,), (1337593440,), (1337593470,), (1337593474,), (1337593519,), (1337593524,), (1337593528,), (1337593535,), (1337593542,), (1337593544,), (1337594265,), (1337594277,), (1337594280,), (1337594283,), (1337594287,), (1337594292,), (1337594593,), (1337594596,), (1337594601,), (1337594605,), (1337594679,), (1337594713,), (1337594716,), (1337594731,), (1337594741,), (1337594745,), (1337594768,), (1337594771,), (1337594774,), (1337594777,), (1337594823,), (1337594826,), (1337594831,), (1337594836,), (1337594841,), (1337594846,), (1337594898,), (1337594905,), (1337594913,), (1337594917,), (1337594986,), (1337594989,), (1337594993,), (1337594997,), (1337595000,), (1337595053,), (1337595066,), (1337595070,), (1337595074,), (1337595076,)) 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 (1337595000) 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 20552554 , 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=20552543 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 (20552554) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20552543) result : ((1337593430,), (1337593433,), (1337593437,), (1337593440,), (1337593470,), (1337593474,), (1337593519,), (1337593524,), (1337593528,), (1337593535,), (1337593542,), (1337593544,), (1337594265,), (1337594277,), (1337594280,), (1337594283,), (1337594287,), (1337594292,), (1337594593,), (1337594596,), (1337594601,), (1337594605,), (1337594679,), (1337594713,), (1337594716,), (1337594731,), (1337594741,), (1337594745,), (1337594768,), (1337594771,), (1337594774,), (1337594777,), (1337594823,), (1337594826,), (1337594831,), (1337594836,), (1337594841,), (1337594846,), (1337594898,), (1337594905,), (1337594913,), (1337594917,), (1337594986,), (1337594989,), (1337594993,), (1337594997,), (1337595000,), (1337595053,), (1337595066,), (1337595070,), (1337595074,), (1337595076,)) 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 (1337595000) 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 20552555 , 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=20552543 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 (20552555) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20552543) result : ((1337593430,), (1337593433,), (1337593437,), (1337593440,), (1337593470,), (1337593474,), (1337593519,), (1337593524,), (1337593528,), (1337593535,), (1337593542,), (1337593544,), (1337594265,), (1337594277,), (1337594280,), (1337594283,), (1337594287,), (1337594292,), (1337594593,), (1337594596,), (1337594601,), (1337594605,), (1337594679,), (1337594713,), (1337594716,), (1337594731,), (1337594741,), (1337594745,), (1337594768,), (1337594771,), (1337594774,), (1337594777,), (1337594823,), (1337594826,), (1337594831,), (1337594836,), (1337594841,), (1337594846,), (1337594898,), (1337594905,), (1337594913,), (1337594917,), (1337594986,), (1337594989,), (1337594993,), (1337594997,), (1337595000,), (1337595053,), (1337595066,), (1337595070,), (1337595074,), (1337595076,)) 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 (1337595000) 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 20552556 , 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=20552543 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 (20552556) result : ((1337594889,), (1337594908,), (1337594909,), (1337594910,), (1337594911,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20552543) result : ((1337593430,), (1337593433,), (1337593437,), (1337593440,), (1337593470,), (1337593474,), (1337593519,), (1337593524,), (1337593528,), (1337593535,), (1337593542,), (1337593544,), (1337594265,), (1337594277,), (1337594280,), (1337594283,), (1337594287,), (1337594292,), (1337594593,), (1337594596,), (1337594601,), (1337594605,), (1337594679,), (1337594713,), (1337594716,), (1337594731,), (1337594741,), (1337594745,), (1337594768,), (1337594771,), (1337594774,), (1337594777,), (1337594823,), (1337594826,), (1337594831,), (1337594836,), (1337594841,), (1337594846,), (1337594898,), (1337594905,), (1337594913,), (1337594917,), (1337594986,), (1337594989,), (1337594993,), (1337594997,), (1337595000,), (1337595053,), (1337595066,), (1337595070,), (1337595074,), (1337595076,)) 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 (1337595000) 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 20552557 , 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=20552543 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 (20552557) result : ((1337594822,), (1337594882,), (1337594899,), (1337594900,), (1337595047,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20552543) result : ((1337593430,), (1337593433,), (1337593437,), (1337593440,), (1337593470,), (1337593474,), (1337593519,), (1337593524,), (1337593528,), (1337593535,), (1337593542,), (1337593544,), (1337594265,), (1337594277,), (1337594280,), (1337594283,), (1337594287,), (1337594292,), (1337594593,), (1337594596,), (1337594601,), (1337594605,), (1337594679,), (1337594713,), (1337594716,), (1337594731,), (1337594741,), (1337594745,), (1337594768,), (1337594771,), (1337594774,), (1337594777,), (1337594823,), (1337594826,), (1337594831,), (1337594836,), (1337594841,), (1337594846,), (1337594898,), (1337594905,), (1337594913,), (1337594917,), (1337594986,), (1337594989,), (1337594993,), (1337594997,), (1337595000,), (1337595053,), (1337595066,), (1337595070,), (1337595074,), (1337595076,)) 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 (1337595000) 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 20552558 , 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=20552543 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 (20552558) result : ((1337594865,), (1337594876,), (1337594877,), (1337594878,), (1337594879,), (1337594895,), (1337595044,), (1337595045,), (1337595046,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20552543) result : ((1337593430,), (1337593433,), (1337593437,), (1337593440,), (1337593470,), (1337593474,), (1337593519,), (1337593524,), (1337593528,), (1337593535,), (1337593542,), (1337593544,), (1337594265,), (1337594277,), (1337594280,), (1337594283,), (1337594287,), (1337594292,), (1337594593,), (1337594596,), (1337594601,), (1337594605,), (1337594679,), (1337594713,), (1337594716,), (1337594731,), (1337594741,), (1337594745,), (1337594768,), (1337594771,), (1337594774,), (1337594777,), (1337594823,), (1337594826,), (1337594831,), (1337594836,), (1337594841,), (1337594846,), (1337594898,), (1337594905,), (1337594913,), (1337594917,), (1337594986,), (1337594989,), (1337594993,), (1337594997,), (1337595000,), (1337595053,), (1337595066,), (1337595070,), (1337595074,), (1337595076,)) 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 (1337595000) 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 20552559 , 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=20552543 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 (20552559) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20552543) result : ((1337593430,), (1337593433,), (1337593437,), (1337593440,), (1337593470,), (1337593474,), (1337593519,), (1337593524,), (1337593528,), (1337593535,), (1337593542,), (1337593544,), (1337594265,), (1337594277,), (1337594280,), (1337594283,), (1337594287,), (1337594292,), (1337594593,), (1337594596,), (1337594601,), (1337594605,), (1337594679,), (1337594713,), (1337594716,), (1337594731,), (1337594741,), (1337594745,), (1337594768,), (1337594771,), (1337594774,), (1337594777,), (1337594823,), (1337594826,), (1337594831,), (1337594836,), (1337594841,), (1337594846,), (1337594898,), (1337594905,), (1337594913,), (1337594917,), (1337594986,), (1337594989,), (1337594993,), (1337594997,), (1337595000,), (1337595053,), (1337595066,), (1337595070,), (1337595074,), (1337595076,)) 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 (1337595000) 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 20552560 , 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=20552543 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 (20552560) result : ((1337594883,), (1337594884,), (1337594903,), (1337595051,), (1337595052,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20552543) result : ((1337593430,), (1337593433,), (1337593437,), (1337593440,), (1337593470,), (1337593474,), (1337593519,), (1337593524,), (1337593528,), (1337593535,), (1337593542,), (1337593544,), (1337594265,), (1337594277,), (1337594280,), (1337594283,), (1337594287,), (1337594292,), (1337594593,), (1337594596,), (1337594601,), (1337594605,), (1337594679,), (1337594713,), (1337594716,), (1337594731,), (1337594741,), (1337594745,), (1337594768,), (1337594771,), (1337594774,), (1337594777,), (1337594823,), (1337594826,), (1337594831,), (1337594836,), (1337594841,), (1337594846,), (1337594898,), (1337594905,), (1337594913,), (1337594917,), (1337594986,), (1337594989,), (1337594993,), (1337594997,), (1337595000,), (1337595053,), (1337595066,), (1337595070,), (1337595074,), (1337595076,)) 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 (1337595000) 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 20552561 , 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=20552543 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 (20552561) result : ((1337594881,), (1337594896,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20552543) result : ((1337593430,), (1337593433,), (1337593437,), (1337593440,), (1337593470,), (1337593474,), (1337593519,), (1337593524,), (1337593528,), (1337593535,), (1337593542,), (1337593544,), (1337594265,), (1337594277,), (1337594280,), (1337594283,), (1337594287,), (1337594292,), (1337594593,), (1337594596,), (1337594601,), (1337594605,), (1337594679,), (1337594713,), (1337594716,), (1337594731,), (1337594741,), (1337594745,), (1337594768,), (1337594771,), (1337594774,), (1337594777,), (1337594823,), (1337594826,), (1337594831,), (1337594836,), (1337594841,), (1337594846,), (1337594898,), (1337594905,), (1337594913,), (1337594917,), (1337594986,), (1337594989,), (1337594993,), (1337594997,), (1337595000,), (1337595053,), (1337595066,), (1337595070,), (1337595074,), (1337595076,)) 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 (1337595000) 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 20552562 , 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=20552543 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 (20552562) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20552543) result : ((1337593430,), (1337593433,), (1337593437,), (1337593440,), (1337593470,), (1337593474,), (1337593519,), (1337593524,), (1337593528,), (1337593535,), (1337593542,), (1337593544,), (1337594265,), (1337594277,), (1337594280,), (1337594283,), (1337594287,), (1337594292,), (1337594593,), (1337594596,), (1337594601,), (1337594605,), (1337594679,), (1337594713,), (1337594716,), (1337594731,), (1337594741,), (1337594745,), (1337594768,), (1337594771,), (1337594774,), (1337594777,), (1337594823,), (1337594826,), (1337594831,), (1337594836,), (1337594841,), (1337594846,), (1337594898,), (1337594905,), (1337594913,), (1337594917,), (1337594986,), (1337594989,), (1337594993,), (1337594997,), (1337595000,), (1337595053,), (1337595066,), (1337595070,), (1337595074,), (1337595076,)) 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 (1337595000) 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`=20552543 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','mal_croppe','Carton_brun','metal','kraft','cartonnette','flou','environnement','Carton_gris','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20552543 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','mal_croppe','Carton_brun','metal','kraft','cartonnette','flou','environnement','Carton_gris','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20552543, 'sub_port_id': 20552564, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216779, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 59)}, 'kraft': {'main_port_id': 20552543, 'sub_port_id': 20552565, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216780, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 59)}, 'Carton_brun': {'main_port_id': 20552543, 'sub_port_id': 20552566, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216781, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 59)}, 'mal_croppe': {'main_port_id': 20552543, 'sub_port_id': 20552567, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216782, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 59)}, 'metal': {'main_port_id': 20552543, 'sub_port_id': 20552568, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216783, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 59)}, 'plastique': {'main_port_id': 20552543, 'sub_port_id': 20552569, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216784, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 59)}, 'Carton_gris': {'main_port_id': 20552543, 'sub_port_id': 20552570, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216785, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20552543, 'sub_port_id': 20552571, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216786, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 59)}, 'papier': {'main_port_id': 20552543, 'sub_port_id': 20552572, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216787, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 59)}, 'cartonnette': {'main_port_id': 20552543, 'sub_port_id': 20552573, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216788, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 59)}, 'autre_refus': {'main_port_id': 20552543, 'sub_port_id': 20552574, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216789, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 59)}, 'environnement': {'main_port_id': 20552543, 'sub_port_id': 20552575, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13216790, 'last_updated_at': datetime.datetime(2025, 2, 14, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 14, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 14, 10, 50, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20552564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20552551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20552565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20552552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20552566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20552553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20552567,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20552554 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20552568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20552555 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20552569,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20552556 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20552570,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20552557 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20552571,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20552558 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20552572,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20552559 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20552573,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20552560 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20552574,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20552561 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20552575,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20552562 lien utilise dans velours : https://www.fotonower.com/velours/20552564,20552565,20552566,20552567,20552568,20552569,20552570,20552571,20552572,20552573,20552574,20552575?tags=flou,kraft,Carton_brun,mal_croppe,metal,plastique,Carton_gris,Teint_Dans_La_Masse,papier,cartonnette,autre_refus,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20552543]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1337595076, 1337595074, 1337595070, 1337595066, 1337595053, 1337595000, 1337594997, 1337594993, 1337594989, 1337594986] map_info['map_portfolio_photo'] : {20552543: [1337595076, 1337595074, 1337595070, 1337595066, 1337595053, 1337595000, 1337594997, 1337594993, 1337594989, 1337594986, 1337594917, 1337594913, 1337594905, 1337594898, 1337594846, 1337594841, 1337594836, 1337594831, 1337594826, 1337594823, 1337594777, 1337594774, 1337594771, 1337594768, 1337594745, 1337594741, 1337594731, 1337594716, 1337594713, 1337594679, 1337594605, 1337594601, 1337594596, 1337594593, 1337594292, 1337594287, 1337594283, 1337594280, 1337594277, 1337594265, 1337593544, 1337593542, 1337593535, 1337593528, 1337593524, 1337593519, 1337593474, 1337593470, 1337593440, 1337593437, 1337593433, 1337593430]} final : False mtd_id 4302 list_pids : [1337595076, 1337595074, 1337595070, 1337595066, 1337595053, 1337595000, 1337594997, 1337594993, 1337594989, 1337594986] Looping around the photos to save general results len do output : 1 /20552543. 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, '2586436') ('4302', '20552543', '1337595076', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595074', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595070', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595066', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595053', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595000', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594997', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594993', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594989', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594986', None, None, None, None, None, '2586436') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20552543', "{'flou': 20552551, 'kraft': 20552552, 'Carton_brun': 20552553, 'mal_croppe': 20552554, 'metal': 20552555, 'plastique': 20552556, 'Carton_gris': 20552557, 'Teint_Dans_La_Masse': 20552558, 'papier': 20552559, 'cartonnette': 20552560, 'autre_refus': 20552561, 'environnement': 20552562}", None, None, None, None, '2586436'), ('4302', '20552543', '1337595076', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595074', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595070', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595066', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595053', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595000', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337594997', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337594993', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337594989', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337594986', None, None, None, None, None, '2586436')] time used for this insertion : 0.013707876205444336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.438427209854126 time spend to save output : 0.014006376266479492 total time spend for step 1 : 0.45243358612060547 step2:final Fri Feb 14 10:56:59 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 (20552543) 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 20552543 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1337593440,1337593437,1337593433,1337593430,1337593474,1337593470,1337593544,1337593542,1337593535,1337593528,1337593524,1337593519,1337594292,1337594287,1337594283,1337594280,1337594265,1337594277,1337594679,1337594605,1337594601,1337594596,1337594593,1337594745,1337594741,1337594731,1337594716,1337594713,1337594777,1337594774,1337594771,1337594768,1337594846,1337594841,1337594836,1337594831,1337594826,1337594823,1337594917,1337594913,1337594905,1337594898,1337595000,1337594997,1337594993,1337594989,1337594986,1337595076,1337595074,1337595070,1337595066,1337595053); 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([20552543]) Inside saveOutput : final : False verbose : True original output for save of step final : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',)} new output for save of step final : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',)} [1337595076, 1337595074, 1337595070, 1337595066, 1337595053, 1337595000, 1337594997, 1337594993, 1337594989, 1337594986] map_info['map_portfolio_photo'] : {20552543: [1337595076, 1337595074, 1337595070, 1337595066, 1337595053, 1337595000, 1337594997, 1337594993, 1337594989, 1337594986, 1337594917, 1337594913, 1337594905, 1337594898, 1337594846, 1337594841, 1337594836, 1337594831, 1337594826, 1337594823, 1337594777, 1337594774, 1337594771, 1337594768, 1337594745, 1337594741, 1337594731, 1337594716, 1337594713, 1337594679, 1337594605, 1337594601, 1337594596, 1337594593, 1337594292, 1337594287, 1337594283, 1337594280, 1337594277, 1337594265, 1337593544, 1337593542, 1337593535, 1337593528, 1337593524, 1337593519, 1337593474, 1337593470, 1337593440, 1337593437, 1337593433, 1337593430]} final : False mtd_id 4302 list_pids : [1337595076, 1337595074, 1337595070, 1337595066, 1337595053, 1337595000, 1337594997, 1337594993, 1337594989, 1337594986] Looping around the photos to save general results len do output : 10 /1337595076.Didn't retrieve data . /1337595074.Didn't retrieve data . /1337595070.Didn't retrieve data . /1337595066.Didn't retrieve data . /1337595053.Didn't retrieve data . /1337595000.Didn't retrieve data . /1337594997.Didn't retrieve data . /1337594993.Didn't retrieve data . /1337594989.Didn't retrieve data . /1337594986.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, '2586436') ('4302', '20552543', '1337595076', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595074', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595070', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595066', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595053', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595000', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594997', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594993', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594989', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594986', None, None, None, None, None, '2586436') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20552543', '1337595076', '0.03810298138671918', None, None, None, None, '2586436'), ('4302', '20552543', '1337595074', '0.03810298138671918', None, None, None, None, '2586436'), ('4302', '20552543', '1337595070', '0.03810298138671918', None, None, None, None, '2586436'), ('4302', '20552543', '1337595066', '0.03810298138671918', None, None, None, None, '2586436'), ('4302', '20552543', '1337595053', '0.03810298138671918', None, None, None, None, '2586436'), ('4302', '20552543', '1337595000', '0.03810298138671918', None, None, None, None, '2586436'), ('4302', '20552543', '1337594997', '0.03810298138671918', None, None, None, None, '2586436'), ('4302', '20552543', '1337594993', '0.03810298138671918', None, None, None, None, '2586436'), ('4302', '20552543', '1337594989', '0.03810298138671918', None, None, None, None, '2586436'), ('4302', '20552543', '1337594986', '0.03810298138671918', None, None, None, None, '2586436')] time used for this insertion : 0.012301206588745117 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06618213653564453 time spend to save output : 0.012916088104248047 total time spend for step 2 : 0.07909822463989258 step3:velours_tree Fri Feb 14 10:56:59 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 : {20552543: [{'flou': 20552551, 'kraft': 20552552, 'Carton_brun': 20552553, 'mal_croppe': 20552554, 'metal': 20552555, 'plastique': 20552556, 'Carton_gris': 20552557, 'Teint_Dans_La_Masse': 20552558, 'papier': 20552559, 'cartonnette': 20552560, 'autre_refus': 20552561, 'environnement': 20552562}]} input_args_next_step : {20552543: ()} output_args : {20552543: [{'flou': 20552551, 'kraft': 20552552, 'Carton_brun': 20552553, 'mal_croppe': 20552554, 'metal': 20552555, 'plastique': 20552556, 'Carton_gris': 20552557, 'Teint_Dans_La_Masse': 20552558, 'papier': 20552559, 'cartonnette': 20552560, 'autre_refus': 20552561, 'environnement': 20552562}]} args : 20552543 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 : ({'flou': 20552551, 'kraft': 20552552, 'Carton_brun': 20552553, 'mal_croppe': 20552554, 'metal': 20552555, 'plastique': 20552556, 'Carton_gris': 20552557, 'Teint_Dans_La_Masse': 20552558, 'papier': 20552559, 'cartonnette': 20552560, 'autre_refus': 20552561, 'environnement': 20552562},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20552543) 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([20552543]) 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.28910255432128906 time spend to save output : 6.151199340820312e-05 total time spend for step 3 : 0.28916406631469727 step4:send_mail_cod Fri Feb 14 10:56:59 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 : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',)} input_args_next_step : {1337595076: ()} output_args : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',)} args : 1337595076 depend.output_id : 0 input_args_next_step : {1337595076: ('0.03810298138671918',), 1337595074: ()} output_args : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',)} args : 1337595074 depend.output_id : 0 input_args_next_step : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ()} output_args : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',)} args : 1337595070 depend.output_id : 0 input_args_next_step : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ()} output_args : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',)} args : 1337595066 depend.output_id : 0 input_args_next_step : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ()} output_args : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',)} args : 1337595053 depend.output_id : 0 input_args_next_step : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ()} output_args : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',)} args : 1337595000 depend.output_id : 0 input_args_next_step : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ()} output_args : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',)} args : 1337594997 depend.output_id : 0 input_args_next_step : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ()} output_args : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',)} args : 1337594993 depend.output_id : 0 input_args_next_step : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ()} output_args : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',)} args : 1337594989 depend.output_id : 0 input_args_next_step : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ()} output_args : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',)} args : 1337594986 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 : {20552543: [{'flou': 20552551, 'kraft': 20552552, 'Carton_brun': 20552553, 'mal_croppe': 20552554, 'metal': 20552555, 'plastique': 20552556, 'Carton_gris': 20552557, 'Teint_Dans_La_Masse': 20552558, 'papier': 20552559, 'cartonnette': 20552560, 'autre_refus': 20552561, 'environnement': 20552562}]} input_args_next_step : {1337595076: ('0.03810298138671918',), 1337595074: ('0.03810298138671918',), 1337595070: ('0.03810298138671918',), 1337595066: ('0.03810298138671918',), 1337595053: ('0.03810298138671918',), 1337595000: ('0.03810298138671918',), 1337594997: ('0.03810298138671918',), 1337594993: ('0.03810298138671918',), 1337594989: ('0.03810298138671918',), 1337594986: ('0.03810298138671918',), 20552543: ()} output_args : {20552543: [{'flou': 20552551, 'kraft': 20552552, 'Carton_brun': 20552553, 'mal_croppe': 20552554, 'metal': 20552555, 'plastique': 20552556, 'Carton_gris': 20552557, 'Teint_Dans_La_Masse': 20552558, 'papier': 20552559, 'cartonnette': 20552560, 'autre_refus': 20552561, 'environnement': 20552562}]} args : 20552543 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.03810298138671918',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20552543) 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 (1337595076,1337595074,1337595070,1337595066,1337595053,1337595000,1337594997,1337594993,1337594989,1337594986) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1337594986 begin to download photo : 1337594997 begin to download photo : 1337595066 begin to download photo : 1337595076 download finish for photo 1337595076 download finish for photo 1337594986 begin to download photo : 1337594989 download finish for photo 1337594997 begin to download photo : 1337595000 download finish for photo 1337595066 begin to download photo : 1337595070 download finish for photo 1337594989 begin to download photo : 1337594993 download finish for photo 1337595000 begin to download photo : 1337595053 download finish for photo 1337595070 begin to download photo : 1337595074 download finish for photo 1337594993 download finish for photo 1337595053 download finish for photo 1337595074 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette205525511739527019/ imagette205525521739527019/ imagette205525541739527019/ imagette205525551739527019/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P20552543_14-02-2025_10_56_59.pdf 20552551 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=20552551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205525511739527019 20552552 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=20552552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205525521739527019 20552554 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=20552554 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205525541739527019 20552555 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=20552555 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205525551739527019 20552556 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=20552556 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337594889: '1739526734_2936489_1337594283_a8ab4522e207789ba31051bcdb86440a_rle_crop_3674898052_0.png', 1337594908: '1739526755_2936741_1337593542_1fff5114c00eb1e6812658600ee4e026_rle_crop_3674898146_0.png', 1337594909: '1739526755_2936741_1337593528_ab18c4af3f192afc2f06e7163de39659_rle_crop_3674898331_0.png', 1337594910: '1739526755_2936741_1337593524_01f156ac2c5bcdfb0a548d3e814c732b_rle_crop_3674898360_0.png', 1337594911: '1739526755_2936741_1337593519_546e54ee3286cd5853cd2742fad4782c_rle_crop_3674898372_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/90f29a3c3491ec0721ce6761bb664917_42796316.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/6cdf74c8c28fbfcb54985bb76bf32623_36626385.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/89817f659a9360e40f29fa9b81db1222_18796959.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/33a86c74a25ef044f2d4acb6bb0efa3c_71645520.png change filename to text .imagette205525561739527019/ imagette205525561739527019/1739526755_2936741_1337593524_01f156ac2c5bcdfb0a548d3e814c732b_rle_crop_3674898360_0.png.png imagette205525561739527019/1739526755_2936741_1337593528_ab18c4af3f192afc2f06e7163de39659_rle_crop_3674898331_0.png.png imagette205525561739527019/1739526755_2936741_1337593519_546e54ee3286cd5853cd2742fad4782c_rle_crop_3674898372_0.png.png imagette205525561739527019/1739526755_2936741_1337593542_1fff5114c00eb1e6812658600ee4e026_rle_crop_3674898146_0.png.png imagette205525561739527019/1739526734_2936489_1337594283_a8ab4522e207789ba31051bcdb86440a_rle_crop_3674898052_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/e49213fb3c7f221b9739734d288c40e4_76998643.png imagette205525561739527019 20552560 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=20552560 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337594883: '1739526734_2936489_1337594283_a8ab4522e207789ba31051bcdb86440a_rle_crop_3674898051_0.png', 1337594884: '1739526734_2936489_1337594277_b712999772052e366be98830855b2f10_rle_crop_3674898110_0.png', 1337594903: '1739526755_2936741_1337593535_6faa37655d8ee2dfde1200bc392b41b8_rle_crop_3674898180_0.png', 1337595051: '1739526854_2938266_1337594741_98002a5366a6c71d108cf69aee5de1eb_rle_crop_3674899066_0.png', 1337595052: '1739526854_2938266_1337594716_f1e37da5ed4881925b2e1bff1bf92860_rle_crop_3674899121_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/2660d71afbdc1eec77270309ff27d783_10774690.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/1a74c7a69c92b23f5ddb2742851b0f44_31656877.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/ed7b17e56b8e616f3a385de70999e70e_55580998.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/f9b037c0e9aa241d06fa581e28811303_19293056.png change filename to text .imagette205525601739527020/ imagette205525601739527020/1739526854_2938266_1337594741_98002a5366a6c71d108cf69aee5de1eb_rle_crop_3674899066_0.png.png imagette205525601739527020/1739526734_2936489_1337594277_b712999772052e366be98830855b2f10_rle_crop_3674898110_0.png.png imagette205525601739527020/1739526854_2938266_1337594716_f1e37da5ed4881925b2e1bff1bf92860_rle_crop_3674899121_0.png.png imagette205525601739527020/1739526734_2936489_1337594283_a8ab4522e207789ba31051bcdb86440a_rle_crop_3674898051_0.png.png imagette205525601739527020/1739526755_2936741_1337593535_6faa37655d8ee2dfde1200bc392b41b8_rle_crop_3674898180_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/089b29e248ecf0968f8f2f5c3484a6ce_59850116.png imagette205525601739527020 20552561 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=20552561 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337594881: '1739526734_2936489_1337594679_91f04698a169c05f0106338ae523a48d_rle_crop_3674898028_0.png', 1337594896: '1739526755_2936741_1337594292_d4da834e3b3dd51a5b79fa9bce8f566f_rle_crop_3674898120_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/697fd8793aae65f3da2fb4558a621a42_28622262.png change filename to text .imagette205525611739527020/ imagette205525611739527020/1739526734_2936489_1337594679_91f04698a169c05f0106338ae523a48d_rle_crop_3674898028_0.png.png imagette205525611739527020/1739526755_2936741_1337594292_d4da834e3b3dd51a5b79fa9bce8f566f_rle_crop_3674898120_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/a317479ba0d656de333e537aa3531692_70668058.png imagette205525611739527020 20552553 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=20552553 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337594869: '1739526772_2937000_1337593544_253962ac7784c8c8b8460a3a27be8cec_rle_crop_3674898065_0.png', 1337594870: '1739526772_2937000_1337593544_253962ac7784c8c8b8460a3a27be8cec_rle_crop_3674898068_0.png', 1337594887: '1739526734_2936489_1337594679_91f04698a169c05f0106338ae523a48d_rle_crop_3674898019_0.png', 1337594888: '1739526734_2936489_1337594679_91f04698a169c05f0106338ae523a48d_rle_crop_3674898021_0.png', 1337594904: '1739526755_2936741_1337593542_1fff5114c00eb1e6812658600ee4e026_rle_crop_3674898147_0.png', 1337595055: '1739526854_2938266_1337594741_98002a5366a6c71d108cf69aee5de1eb_rle_crop_3674899071_0.png', 1337595056: '1739526854_2938266_1337594731_49fad926a91359bc9a09d541c96e119e_rle_crop_3674899080_0.png', 1337595057: '1739526854_2938266_1337594731_49fad926a91359bc9a09d541c96e119e_rle_crop_3674899086_0.png', 1337595058: '1739526854_2938266_1337594716_f1e37da5ed4881925b2e1bff1bf92860_rle_crop_3674899134_0.png', 1337595059: '1739526854_2938266_1337594716_f1e37da5ed4881925b2e1bff1bf92860_rle_crop_3674899128_0.png', 1337595060: '1739526854_2938266_1337594716_f1e37da5ed4881925b2e1bff1bf92860_rle_crop_3674899130_0.png', 1337595061: '1739526854_2938266_1337594716_f1e37da5ed4881925b2e1bff1bf92860_rle_crop_3674899126_0.png', 1337595062: '1739526854_2938266_1337594713_c78ac918c9aaf1af8346ba7d612f14c5_rle_crop_3674899147_0.png', 1337595063: '1739526854_2938266_1337594713_c78ac918c9aaf1af8346ba7d612f14c5_rle_crop_3674899141_0.png', 1337595064: '1739526854_2938266_1337594713_c78ac918c9aaf1af8346ba7d612f14c5_rle_crop_3674899140_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/f555de62caa743975dfc821bfc6d1e01_64286785.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/076106376e7ed55b72b478d8b0a27cc6_82277058.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/c37f4791e99bc988a20875cbdf4ff895_43557022.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/d93a26a8e98f4247eb4b654e59d7b7ab_99393134.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/e5a379dad11c63c89449d13bf2c95055_62910258.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/1b2fe71fb2c8cae8bed409d4bea3d06c_74086070.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/935f4d11adc701b09870b5fe77e03b5d_63142949.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/d502c287f28b8dc9f3b581adbf67891b_31920957.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/9bac5ec213b713a0446c31e30a015102_696204.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/cf582fc9252ca37d86b92c26d351f2ee_8472699.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/77e1230ede2410ef691e2a367829a47d_5421857.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/dbd594f7705dfc003b9b64091e784414_39524885.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/9828125db559765c0cd6c78ee2a33e1c_39929665.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/f51d673b4f6348caa60c2c8f28cb81fd_82392115.png change filename to text .imagette205525531739527020/ imagette205525531739527020/1739526854_2938266_1337594741_98002a5366a6c71d108cf69aee5de1eb_rle_crop_3674899071_0.png.png imagette205525531739527020/1739526734_2936489_1337594679_91f04698a169c05f0106338ae523a48d_rle_crop_3674898019_0.png.png imagette205525531739527020/1739526854_2938266_1337594731_49fad926a91359bc9a09d541c96e119e_rle_crop_3674899080_0.png.png imagette205525531739527020/1739526772_2937000_1337593544_253962ac7784c8c8b8460a3a27be8cec_rle_crop_3674898065_0.png.png imagette205525531739527020/1739526854_2938266_1337594713_c78ac918c9aaf1af8346ba7d612f14c5_rle_crop_3674899141_0.png.png imagette205525531739527020/1739526854_2938266_1337594731_49fad926a91359bc9a09d541c96e119e_rle_crop_3674899086_0.png.png imagette205525531739527020/1739526772_2937000_1337593544_253962ac7784c8c8b8460a3a27be8cec_rle_crop_3674898068_0.png.png imagette205525531739527020/1739526854_2938266_1337594713_c78ac918c9aaf1af8346ba7d612f14c5_rle_crop_3674899147_0.png.png imagette205525531739527020/1739526755_2936741_1337593542_1fff5114c00eb1e6812658600ee4e026_rle_crop_3674898147_0.png.png imagette205525531739527020/1739526734_2936489_1337594679_91f04698a169c05f0106338ae523a48d_rle_crop_3674898021_0.png.png imagette205525531739527020/1739526854_2938266_1337594713_c78ac918c9aaf1af8346ba7d612f14c5_rle_crop_3674899140_0.png.png imagette205525531739527020/1739526854_2938266_1337594716_f1e37da5ed4881925b2e1bff1bf92860_rle_crop_3674899134_0.png.png imagette205525531739527020/1739526854_2938266_1337594716_f1e37da5ed4881925b2e1bff1bf92860_rle_crop_3674899130_0.png.png imagette205525531739527020/1739526854_2938266_1337594716_f1e37da5ed4881925b2e1bff1bf92860_rle_crop_3674899126_0.png.png imagette205525531739527020/1739526854_2938266_1337594716_f1e37da5ed4881925b2e1bff1bf92860_rle_crop_3674899128_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/4f72c3c7d2143a97cd46ff94f37646f7_65279788.png imagette205525531739527020 20552557 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=20552557 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337594822: '1739526714_2936258_1337594593_b1aed0f7dc6dc61b88e74cd50ef5cf7d_rle_crop_3674897695_0.png', 1337594882: '1739526734_2936489_1337594283_a8ab4522e207789ba31051bcdb86440a_rle_crop_3674898045_0.png', 1337594899: '1739526755_2936741_1337594292_d4da834e3b3dd51a5b79fa9bce8f566f_rle_crop_3674898124_0.png', 1337594900: '1739526755_2936741_1337593524_01f156ac2c5bcdfb0a548d3e814c732b_rle_crop_3674898356_0.png', 1337595047: '1739526854_2938266_1337594741_98002a5366a6c71d108cf69aee5de1eb_rle_crop_3674899055_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/dcb9205677da405ade2c1696b832a78d_51468271.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/f4720c0a803655aee16802535d875408_57969915.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/6d2842b288701bf27e6cd79d79aae017_36424057.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/9f3fc28df207bd118ed40108742b27ae_31013851.png change filename to text .imagette205525571739527021/ imagette205525571739527021/1739526755_2936741_1337593524_01f156ac2c5bcdfb0a548d3e814c732b_rle_crop_3674898356_0.png.png imagette205525571739527021/1739526714_2936258_1337594593_b1aed0f7dc6dc61b88e74cd50ef5cf7d_rle_crop_3674897695_0.png.png imagette205525571739527021/1739526755_2936741_1337594292_d4da834e3b3dd51a5b79fa9bce8f566f_rle_crop_3674898124_0.png.png imagette205525571739527021/1739526734_2936489_1337594283_a8ab4522e207789ba31051bcdb86440a_rle_crop_3674898045_0.png.png imagette205525571739527021/1739526854_2938266_1337594741_98002a5366a6c71d108cf69aee5de1eb_rle_crop_3674899055_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/b15bf6e3cb28c960d2f3e630ea3d4d95_30479998.png imagette205525571739527021 20552558 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=20552558 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337594865: '1739526772_2937000_1337593470_f6163258aa80e011e016e762d56817ce_rle_crop_3674898078_0.png', 1337594876: '1739526734_2936489_1337594679_91f04698a169c05f0106338ae523a48d_rle_crop_3674898023_0.png', 1337594877: '1739526734_2936489_1337594679_91f04698a169c05f0106338ae523a48d_rle_crop_3674898030_0.png', 1337594878: '1739526734_2936489_1337594277_b712999772052e366be98830855b2f10_rle_crop_3674898109_0.png', 1337594879: '1739526734_2936489_1337594265_7564e9adaf3df9707edb83f61f69c373_rle_crop_3674898165_0.png', 1337594895: '1739526755_2936741_1337593528_ab18c4af3f192afc2f06e7163de39659_rle_crop_3674898340_0.png', 1337595044: '1739526854_2938266_1337594777_0534d499a84b68f264a1af37b9be0b7c_rle_crop_3674899022_0.png', 1337595045: '1739526854_2938266_1337594741_98002a5366a6c71d108cf69aee5de1eb_rle_crop_3674899065_0.png', 1337595046: '1739526854_2938266_1337594713_c78ac918c9aaf1af8346ba7d612f14c5_rle_crop_3674899142_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/23a58b63c2084885a14bae672ac2e0d6_56942625.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/e07fa2deed8aec620db2020b565e7501_91360283.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/081b18bf48d1b6a963ee073cdefca490_78317764.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/cd6fcea3b334f3a665526cd46884f922_91341211.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/5da884b72db927cd426e22b441d8744e_19299790.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/a587caf8329ba80f94f86b8fe01effcd_50846471.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/1856faeecd40effbe414fe484bba4e0e_201741.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/37ac6067fb5f6224ee67c2e4ada5a98d_66356994.png change filename to text .imagette205525581739527021/ imagette205525581739527021/1739526734_2936489_1337594679_91f04698a169c05f0106338ae523a48d_rle_crop_3674898023_0.png.png imagette205525581739527021/1739526734_2936489_1337594265_7564e9adaf3df9707edb83f61f69c373_rle_crop_3674898165_0.png.png imagette205525581739527021/1739526772_2937000_1337593470_f6163258aa80e011e016e762d56817ce_rle_crop_3674898078_0.png.png imagette205525581739527021/1739526854_2938266_1337594777_0534d499a84b68f264a1af37b9be0b7c_rle_crop_3674899022_0.png.png imagette205525581739527021/1739526734_2936489_1337594277_b712999772052e366be98830855b2f10_rle_crop_3674898109_0.png.png imagette205525581739527021/1739526734_2936489_1337594679_91f04698a169c05f0106338ae523a48d_rle_crop_3674898030_0.png.png imagette205525581739527021/1739526854_2938266_1337594713_c78ac918c9aaf1af8346ba7d612f14c5_rle_crop_3674899142_0.png.png imagette205525581739527021/1739526755_2936741_1337593528_ab18c4af3f192afc2f06e7163de39659_rle_crop_3674898340_0.png.png imagette205525581739527021/1739526854_2938266_1337594741_98002a5366a6c71d108cf69aee5de1eb_rle_crop_3674899065_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/305fabea4d63adeba82dbe9f947e81e3_79941174.png imagette205525581739527021 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20552543 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20552564,20552565,20552566,20552567,20552568,20552569,20552570,20552571,20552572,20552573,20552574,20552575?tags=flou,kraft,Carton_brun,mal_croppe,metal,plastique,Carton_gris,Teint_Dans_La_Masse,papier,cartonnette,autre_refus,environnement your option no_mail is active, we will not send the real mail to your client args[1337595076] : ('0.03810298138671918',) no score found for photo 1337595076 apple ('0.03810298138671918',) We are sending mail with results at report@fotonower.com args[1337595074] : ('0.03810298138671918',) no score found for photo 1337595074 apple ('0.03810298138671918',) We are sending mail with results at report@fotonower.com args[1337595070] : ('0.03810298138671918',) no score found for photo 1337595070 apple ('0.03810298138671918',) We are sending mail with results at report@fotonower.com args[1337595066] : ('0.03810298138671918',) no score found for photo 1337595066 apple ('0.03810298138671918',) We are sending mail with results at report@fotonower.com args[1337595053] : ('0.03810298138671918',) no score found for photo 1337595053 apple ('0.03810298138671918',) We are sending mail with results at report@fotonower.com args[1337595000] : ('0.03810298138671918',) no score found for photo 1337595000 apple ('0.03810298138671918',) We are sending mail with results at report@fotonower.com args[1337594997] : ('0.03810298138671918',) no score found for photo 1337594997 apple ('0.03810298138671918',) We are sending mail with results at report@fotonower.com args[1337594993] : ('0.03810298138671918',) no score found for photo 1337594993 apple ('0.03810298138671918',) We are sending mail with results at report@fotonower.com args[1337594989] : ('0.03810298138671918',) no score found for photo 1337594989 apple ('0.03810298138671918',) We are sending mail with results at report@fotonower.com args[1337594986] : ('0.03810298138671918',) no score found for photo 1337594986 apple ('0.03810298138671918',) We are sending mail with results at report@fotonower.com refus_total : 0.03810298138671918 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=20552543 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_P20552543_14-02-2025_10_56_59.pdf results_Auto_P20552543_14-02-2025_10_56_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20552543_14-02-2025_10_56_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20552543','results_Auto_P20552543_14-02-2025_10_56_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20552543_14-02-2025_10_56_59.pdf','pdf','','0.2','0.03810298138671918') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20552543]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1337595076, 1337595074, 1337595070, 1337595066, 1337595053, 1337595000, 1337594997, 1337594993, 1337594989, 1337594986] map_info['map_portfolio_photo'] : {20552543: [1337595076, 1337595074, 1337595070, 1337595066, 1337595053, 1337595000, 1337594997, 1337594993, 1337594989, 1337594986, 1337594917, 1337594913, 1337594905, 1337594898, 1337594846, 1337594841, 1337594836, 1337594831, 1337594826, 1337594823, 1337594777, 1337594774, 1337594771, 1337594768, 1337594745, 1337594741, 1337594731, 1337594716, 1337594713, 1337594679, 1337594605, 1337594601, 1337594596, 1337594593, 1337594292, 1337594287, 1337594283, 1337594280, 1337594277, 1337594265, 1337593544, 1337593542, 1337593535, 1337593528, 1337593524, 1337593519, 1337593474, 1337593470, 1337593440, 1337593437, 1337593433, 1337593430]} final : False mtd_id 4302 list_pids : [1337595076, 1337595074, 1337595070, 1337595066, 1337595053, 1337595000, 1337594997, 1337594993, 1337594989, 1337594986] 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, '2586436') ('4302', '20552543', '1337595076', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595074', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595070', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595066', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595053', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595000', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594997', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594993', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594989', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594986', None, None, None, None, None, '2586436') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20552543', '1337595076', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595074', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595070', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595066', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595053', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595000', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337594997', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337594993', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337594989', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337594986', None, None, None, None, None, '2586436')] time used for this insertion : 0.013467788696289062 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.7897677421569824 time spend to save output : 0.02400827407836914 total time spend for step 4 : 3.8137760162353516 step5:split_time_score Fri Feb 14 10:57:03 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 : ['20552543'] 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 : [('20552543',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20552543) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1337595076: {'path': 'temp/1739527019_4107753_1337595076_a19d98e12fbbdbb710f1b9db149ac18b.jpg', 'extension': 'jpg'}, 1337594986: {'path': 'temp/1739527019_4107753_1337594986_553bc887f5f3c84bf9ddc83298007f14.jpg', 'extension': 'jpg'}, 1337594989: {'path': 'temp/1739527019_4107753_1337594989_2eef69e5512a54486158dffffe96c3ce.jpg', 'extension': 'jpg'}, 1337594993: {'path': 'temp/1739527019_4107753_1337594993_c980dac7d57cf44e518c803a71efd097.jpg', 'extension': 'jpg'}, 1337594997: {'path': 'temp/1739527019_4107753_1337594997_e1b2a35e750645f38edc896b65a6ed96.jpg', 'extension': 'jpg'}, 1337595000: {'path': 'temp/1739527019_4107753_1337595000_44cfe17e24be11f1bd756c84f93bb4a2.jpg', 'extension': 'jpg'}, 1337595053: {'path': 'temp/1739527019_4107753_1337595053_864b5f8187b52d1dbfea9e6fee511558.jpg', 'extension': 'jpg'}, 1337595066: {'path': 'temp/1739527019_4107753_1337595066_7b36c08ffac64c37b98b16c242852347.jpg', 'extension': 'jpg'}, 1337595070: {'path': 'temp/1739527019_4107753_1337595070_f1fb85c7521285edb64c5af69f3e928a.jpg', 'extension': 'jpg'}, 1337595074: {'path': 'temp/1739527019_4107753_1337595074_e5cc8ee4c619062ba20e68eb49d7c210.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 = 20552543; (('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 = 20552543 group by h (('10', 52),) 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=20552543 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 (20552543) 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 (20552543) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14022025 20552543 Nombre de photos uploadées : 52 / 23040 (0%) 14022025 20552543 Nombre de photos taguées (types de déchets): 0 / 52 (0%) 14022025 20552543 Nombre de photos taguées (volume) : 0 / 52 (0%) [{'photo_id': 1337593440, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/2247ed366713c76316864efdc317386e.jpg', 'username': None, 'uploaded_at': 1739526367, 'text': 'image_14022025_10_45_03_9133.jpg'}, {'photo_id': 1337593437, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/44538fdc18b5e7eb5a3a72dee8f40775.jpg', 'username': None, 'uploaded_at': 1739526367, 'text': 'image_14022025_10_45_23_10140.jpg'}, {'photo_id': 1337593433, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/be77328c1edb006296ae23877c13eef0.jpg', 'username': None, 'uploaded_at': 1739526367, 'text': 'image_14022025_10_45_34_10156.jpg'}, {'photo_id': 1337593430, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/14/d8681ee7c90cc2fa24affc020b49cb6b.jpg', 'username': None, 'uploaded_at': 1739526367, 'text': 'image_14022025_10_45_44_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ???????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017528533935546875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20552543, '2025-02-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1602310,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025313138961791992 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= 1602310 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1602310, 'dashboard_run_id': 1611144, 'mtr_portfolio_id': 20550751, 'dashboard_result_id': 8893559, '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_P20550751_14-02-2025_10_16_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20550756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20550757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20550758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20550759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20550760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20550761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20550762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20550763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20550764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20550765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20550766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20550767, 'pht': 3726}}"}, {'dashboat_entry_day': 1602310, 'dashboard_run_id': 1611144, 'mtr_portfolio_id': 20551238, 'dashboard_result_id': 8893560, '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_P20551238_14-02-2025_10_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20551246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20551247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20551248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20551249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20551250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20551251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20551252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20551253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20551254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20551255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20551256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20551257, 'pht': 3726}}"}, {'dashboat_entry_day': 1602310, 'dashboard_run_id': 1611144, 'mtr_portfolio_id': 20552037, 'dashboard_result_id': 8893561, '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_P20552037_14-02-2025_10_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20552046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20552047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20552048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20552049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20552050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20552051, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20552052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20552053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20552054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20552055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20552056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20552057, 'pht': 3726}}"}, {'dashboat_entry_day': 1602310, 'dashboard_run_id': 1611144, 'mtr_portfolio_id': 20552543, 'dashboard_result_id': 8893562, '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_P20552543_14-02-2025_10_54_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20552551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20552552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20552553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20552554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20552555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20552556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20552557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20552558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20552559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20552560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20552561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20552562, '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 = 20550751 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': 2586195, 'mtr_portfolio_id': 20550751, 'created_at': datetime.datetime(2025, 2, 14, 10, 16, 56), 'result': '0.029977826816868718', 'result_long': None, 'result_double': None}] Qualite : 0.029977826816868718 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20550751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20550751_14-02-2025_10_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20550751 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_P20550751_14-02-2025_10_16_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20550756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20550757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20550758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20550759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20550760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20550761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20550762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20550763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20550764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20550765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20550766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20550767, 'pht': 3726}}" where mtr_portfolio_id = 20550751 and dashboard_run_id = 1611144 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`=20550751 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8893559, 0.029977826816868718, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20550751_14-02-2025_10_16_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20550756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20550757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20550758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20550759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20550760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20550761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20550762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20550763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20550764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20550765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20550766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20550767, '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 = 20551238 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': 2586253, 'mtr_portfolio_id': 20551238, 'created_at': datetime.datetime(2025, 2, 14, 10, 33, 1), 'result': '0.05098725568878929', 'result_long': None, 'result_double': None}] Qualite : 0.05098725568878929 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20551238 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20551238_14-02-2025_10_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20551238 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_P20551238_14-02-2025_10_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20551246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20551247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20551248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20551249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20551250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20551251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20551252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20551253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20551254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20551255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20551256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20551257, 'pht': 3726}}" where mtr_portfolio_id = 20551238 and dashboard_run_id = 1611144 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`=20551238 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8893560, 0.05098725568878929, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20551238_14-02-2025_10_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20551246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20551247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20551248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20551249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20551250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20551251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20551252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20551253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20551254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20551255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20551256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20551257, '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 = 20552037 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': 2586317, 'mtr_portfolio_id': 20552037, 'created_at': datetime.datetime(2025, 2, 14, 10, 46, 59), 'result': '0.023391945584652296', 'result_long': None, 'result_double': None}] Qualite : 0.023391945584652296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20552037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20552037_14-02-2025_10_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20552037 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_P20552037_14-02-2025_10_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20552046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20552047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20552048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20552049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20552050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20552051, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20552052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20552053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20552054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20552055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20552056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20552057, 'pht': 3726}}" where mtr_portfolio_id = 20552037 and dashboard_run_id = 1611144 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`=20552037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8893561, 0.023391945584652296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20552037_14-02-2025_10_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20552046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20552047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20552048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20552049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20552050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20552051, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20552052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20552053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20552054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20552055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20552056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20552057, '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 = 20552543 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': 2586436, 'mtr_portfolio_id': 20552543, 'created_at': datetime.datetime(2025, 2, 14, 10, 56, 59), 'result': '0.03810298138671918', 'result_long': None, 'result_double': None}] Qualite : 0.03810298138671918 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20552543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20552543_14-02-2025_10_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20552543 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_P20552543_14-02-2025_10_56_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20552551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20552552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20552553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20552554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20552555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20552556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20552557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20552558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20552559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20552560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20552561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20552562, 'pht': 3726}}" where mtr_portfolio_id = 20552543 and dashboard_run_id = 1611144 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`=20552543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8893562, 0.03810298138671918, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20552543_14-02-2025_10_56_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20552551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20552552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20552553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20552554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20552555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20552556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20552557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20552558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20552559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20552560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20552561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20552562, '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 (20550751,20551238,20552037,20552543) result : ((1337584653,), (1337584669,), (1337584884,), (1337584890,), (1337584895,), (1337584923,), (1337584925,), (1337584929,), (1337584959,), (1337584961,), (1337584965,), (1337584969,), (1337584973,), (1337584975,), (1337585005,), (1337585009,), (1337585013,), (1337585015,), (1337585017,), (1337585020,), (1337585045,), (1337585048,), (1337585052,), (1337585055,), (1337585441,), (1337585608,), (1337585633,), (1337585734,), (1337585765,), (1337585768,), (1337585955,), (1337585958,), (1337585992,), (1337586032,), (1337586061,), (1337586134,), (1337586136,), (1337586140,), (1337586143,), (1337586242,), (1337586387,), (1337586390,), (1337586394,), (1337586397,), (1337586400,), (1337586404,), (1337586947,), (1337586950,), (1337586953,), (1337586956,), (1337587187,), (1337587190,), (1337587193,), (1337587199,), (1337587210,), (1337587282,), (1337587431,), (1337587434,), (1337587438,), (1337587442,), (1337587444,), (1337587482,), (1337587487,), (1337587493,), (1337587496,), (1337587507,), (1337587604,), (1337587618,), (1337587623,), (1337587632,), (1337587663,), (1337587665,), (1337587668,), (1337587671,), (1337587674,), (1337587716,), (1337587705,), (1337587707,), (1337587711,), (1337587714,), (1337587767,), (1337587774,), (1337587784,), (1337587787,), (1337587793,), (1337587826,), (1337587828,), (1337587832,), (1337587862,), (1337587865,), (1337587929,), (1337587933,), (1337587937,), (1337587940,), (1337588031,), (1337588036,), (1337588056,), (1337588060,), (1337588067,), (1337588071,), (1337588105,), (1337588116,), (1337588120,), (1337588124,), (1337588130,), (1337588134,), (1337589260,), (1337589265,), (1337589268,), (1337589274,), (1337589283,), (1337589649,), (1337589652,), (1337589680,), (1337589739,), (1337589755,), (1337589807,), (1337589809,), (1337589812,), (1337589817,), (1337589862,), (1337589864,), (1337589867,), (1337589870,), (1337589874,), (1337589877,), (1337589901,), (1337589903,), (1337589906,), (1337589909,), (1337589945,), (1337589954,), (1337589958,), (1337589962,), (1337589965,), (1337589975,), (1337590697,), (1337590771,), (1337590850,), (1337590935,), (1337591745,), (1337591806,), (1337591894,), (1337591984,), (1337592056,), (1337592091,), (1337592243,), (1337592250,), (1337592256,), (1337592264,), (1337592269,), (1337592638,), (1337592545,), (1337592587,), (1337592618,), (1337592633,), (1337592684,), (1337592690,), (1337592693,), (1337592696,), (1337592702,), (1337592707,), (1337592754,), (1337592758,), (1337592761,), (1337592795,), (1337592798,), (1337592801,), (1337592803,), (1337592805,), (1337592809,), (1337592834,), (1337592836,), (1337592838,), (1337592841,), (1337592848,), (1337592883,), (1337592885,), (1337592888,), (1337592891,), (1337592895,), (1337592922,), (1337592924,), (1337592927,), (1337592930,), (1337592932,), (1337592936,), (1337592979,), (1337592981,), (1337592984,), (1337593016,), (1337593018,), (1337593023,), (1337593026,), (1337593028,), (1337593033,), (1337593150,), (1337593158,), (1337593160,), (1337593164,), (1337593196,), (1337593198,), (1337593201,), (1337593205,), (1337593210,), (1337593236,), (1337593239,), (1337593242,), (1337593244,), (1337593252,), (1337593288,), (1337593292,), (1337593295,), (1337593298,), (1337593347,), (1337593351,), (1337593354,), (1337593356,), (1337593387,), (1337593391,), (1337593394,), (1337593398,), (1337593442,), (1337593430,), (1337593433,), (1337593437,), (1337593440,), (1337593470,), (1337593474,), (1337593519,), (1337593524,), (1337593528,), (1337593535,), (1337593542,), (1337593544,), (1337594265,), (1337594277,), (1337594280,), (1337594283,), (1337594287,), (1337594292,), (1337594593,), (1337594596,), (1337594601,), (1337594605,), (1337594679,), (1337594713,), (1337594716,), (1337594731,), (1337594741,), (1337594745,), (1337594768,), (1337594771,), (1337594774,), (1337594777,), (1337594823,), (1337594826,), (1337594831,), (1337594836,), (1337594841,), (1337594846,), (1337594898,), (1337594905,), (1337594913,), (1337594917,), (1337594986,), (1337594989,), (1337594993,), (1337594997,), (1337595000,), (1337595053,), (1337595066,), (1337595070,), (1337595074,), (1337595076,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14022025': {'nb_upload': 52, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20552543]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1337595076, 1337595074, 1337595070, 1337595066, 1337595053, 1337595000, 1337594997, 1337594993, 1337594989, 1337594986] map_info['map_portfolio_photo'] : {20552543: [1337595076, 1337595074, 1337595070, 1337595066, 1337595053, 1337595000, 1337594997, 1337594993, 1337594989, 1337594986, 1337594917, 1337594913, 1337594905, 1337594898, 1337594846, 1337594841, 1337594836, 1337594831, 1337594826, 1337594823, 1337594777, 1337594774, 1337594771, 1337594768, 1337594745, 1337594741, 1337594731, 1337594716, 1337594713, 1337594679, 1337594605, 1337594601, 1337594596, 1337594593, 1337594292, 1337594287, 1337594283, 1337594280, 1337594277, 1337594265, 1337593544, 1337593542, 1337593535, 1337593528, 1337593524, 1337593519, 1337593474, 1337593470, 1337593440, 1337593437, 1337593433, 1337593430]} final : True mtd_id 4302 list_pids : [1337595076, 1337595074, 1337595070, 1337595066, 1337595053, 1337595000, 1337594997, 1337594993, 1337594989, 1337594986] Looping around the photos to save general results len do output : 1 /20552543Didn'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, '2586436') ('4302', '20552543', '1337595076', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595074', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595070', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595066', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595053', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337595000', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594997', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594993', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594989', None, None, None, None, None, '2586436') ('4302', None, None, None, None, None, None, None, '2586436') ('4302', '20552543', '1337594986', None, None, None, None, None, '2586436') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20552543', 'None', None, None, None, None, '2586436'), ('4302', '20552543', '1337595076', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595074', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595070', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595066', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595053', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337595000', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337594997', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337594993', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337594989', None, None, None, None, None, '2586436'), ('4302', '20552543', '1337594986', None, None, None, None, None, '2586436')] time used for this insertion : 0.014738082885742188 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3589034080505371 time spend to save output : 0.014964580535888672 total time spend for step 5 : 0.3738679885864258 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 (2586436) 2.16user 2.30system 0:09.02elapsed 49%CPU (0avgtext+0avgdata 157296maxresident)k 304inputs+11592outputs (0major+64139minor)pagefaults 0swaps