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 : 2231502 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 (2599850) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2599850) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20678504 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2599850'] with mtr_portfolio_ids : ['20678504'] and first list_photo_ids : [] new path : /proc/2231502/ Name: python3 Umask: 0002 State: R (running) Tgid: 2231502 Ngid: 0 Pid: 2231502 PPid: 2231501 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2231502 NSpid: 2231502 NSpgid: 2227882 NSsid: 2227882 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98648 kB VmRSS: 98648 kB RssAnon: 59756 kB RssFile: 38892 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 73 nonvoluntary_ctxt_switches: 104 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2231502', 'Ngid': '0', 'Pid': '2231502', 'PPid': '2231501', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2231502', 'NSpid': '2231502', 'NSpgid': '2227882', 'NSsid': '2227882', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98648 kB', 'VmRSS': '98648 kB', 'RssAnon': '59756 kB', 'RssFile': '38892 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '73', 'nonvoluntary_ctxt_switches': '104'} ('datou_batch_current', '2231502', '1106928', '0', '1106928', '865680', '98648', b'', 'marlene', '2599850') 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 (20678504) 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 (2599850 ) ) 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 (20678504) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338610921, 'portfolio_id': 20678504}, {'photo_id': 1338610918, 'portfolio_id': 20678504}, {'photo_id': 1338610910, 'portfolio_id': 20678504}, {'photo_id': 1338610905, 'portfolio_id': 20678504}, {'photo_id': 1338610807, 'portfolio_id': 20678504}, {'photo_id': 1338610763, 'portfolio_id': 20678504}, {'photo_id': 1338610745, 'portfolio_id': 20678504}, {'photo_id': 1338610739, 'portfolio_id': 20678504}, {'photo_id': 1338610723, 'portfolio_id': 20678504}, {'photo_id': 1338610698, 'portfolio_id': 20678504}, {'photo_id': 1338610591, 'portfolio_id': 20678504}, {'photo_id': 1338610524, 'portfolio_id': 20678504}, {'photo_id': 1338610477, 'portfolio_id': 20678504}, {'photo_id': 1338610422, 'portfolio_id': 20678504}, {'photo_id': 1338610413, 'portfolio_id': 20678504}, {'photo_id': 1338610411, 'portfolio_id': 20678504}, {'photo_id': 1338610218, 'portfolio_id': 20678504}, {'photo_id': 1338610154, 'portfolio_id': 20678504}, {'photo_id': 1338610098, 'portfolio_id': 20678504}, {'photo_id': 1338610017, 'portfolio_id': 20678504}, {'photo_id': 1338609816, 'portfolio_id': 20678504}, {'photo_id': 1338609812, 'portfolio_id': 20678504}, {'photo_id': 1338609808, 'portfolio_id': 20678504}, {'photo_id': 1338609804, 'portfolio_id': 20678504}, {'photo_id': 1338609800, 'portfolio_id': 20678504}, {'photo_id': 1338609797, 'portfolio_id': 20678504}, {'photo_id': 1338609327, 'portfolio_id': 20678504}, {'photo_id': 1338609323, 'portfolio_id': 20678504}, {'photo_id': 1338609102, 'portfolio_id': 20678504}, {'photo_id': 1338608831, 'portfolio_id': 20678504}, {'photo_id': 1338608603, 'portfolio_id': 20678504}, {'photo_id': 1338608509, 'portfolio_id': 20678504}, {'photo_id': 1338608482, 'portfolio_id': 20678504}, {'photo_id': 1338608447, 'portfolio_id': 20678504}, {'photo_id': 1338608444, 'portfolio_id': 20678504}, {'photo_id': 1338608435, 'portfolio_id': 20678504}, {'photo_id': 1338608426, 'portfolio_id': 20678504}, {'photo_id': 1338608344, 'portfolio_id': 20678504}, {'photo_id': 1338608342, 'portfolio_id': 20678504}, {'photo_id': 1338608340, 'portfolio_id': 20678504}, {'photo_id': 1338608339, 'portfolio_id': 20678504}, {'photo_id': 1338608327, 'portfolio_id': 20678504}, {'photo_id': 1338608252, 'portfolio_id': 20678504}, {'photo_id': 1338608249, 'portfolio_id': 20678504}, {'photo_id': 1338608244, 'portfolio_id': 20678504}, {'photo_id': 1338608175, 'portfolio_id': 20678504}, {'photo_id': 1338607646, 'portfolio_id': 20678504}, {'photo_id': 1338607643, 'portfolio_id': 20678504}, {'photo_id': 1338607638, 'portfolio_id': 20678504}, {'photo_id': 1338607634, 'portfolio_id': 20678504}, {'photo_id': 1338607610, 'portfolio_id': 20678504}, {'photo_id': 1338607607, 'portfolio_id': 20678504}, {'photo_id': 1338607604, 'portfolio_id': 20678504}, {'photo_id': 1338607599, 'portfolio_id': 20678504}] map_portfolio_id_photo_id: {20678504: [1338610921, 1338610918, 1338610910, 1338610905, 1338610807, 1338610763, 1338610745, 1338610739, 1338610723, 1338610698, 1338610591, 1338610524, 1338610477, 1338610422, 1338610413, 1338610411, 1338610218, 1338610154, 1338610098, 1338610017, 1338609816, 1338609812, 1338609808, 1338609804, 1338609800, 1338609797, 1338609327, 1338609323, 1338609102, 1338608831, 1338608603, 1338608509, 1338608482, 1338608447, 1338608444, 1338608435, 1338608426, 1338608344, 1338608342, 1338608340, 1338608339, 1338608327, 1338608252, 1338608249, 1338608244, 1338608175, 1338607646, 1338607643, 1338607638, 1338607634, 1338607610, 1338607607, 1338607604, 1338607599]} ##### 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.015580892562866211 #### 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 Thu Feb 20 15:30:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20678504) 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 : 20678504 get user id for portfolio 20678504 get sub ptf for main ptf 20678504, type 3726 and hashtags ['metal', 'cartonnette', 'autre_refus', 'papier', 'Carton_brun', 'Teint_Dans_La_Masse', 'flou', 'Carton_gris', 'plastique', 'kraft', 'environnement', 'mal_croppe'] 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`=20678504 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','autre_refus','papier','Carton_brun','Teint_Dans_La_Masse','flou','Carton_gris','plastique','kraft','environnement','mal_croppe')) 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`=20678504 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','autre_refus','papier','Carton_brun','Teint_Dans_La_Masse','flou','Carton_gris','plastique','kraft','environnement','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20678504, 'sub_port_id': 20678525, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328890, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 29)}, 'kraft': {'main_port_id': 20678504, 'sub_port_id': 20678526, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328891, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 29)}, 'metal': {'main_port_id': 20678504, 'sub_port_id': 20678527, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328892, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 29)}, 'environnement': {'main_port_id': 20678504, 'sub_port_id': 20678528, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328893, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 29)}, 'Carton_gris': {'main_port_id': 20678504, 'sub_port_id': 20678529, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328894, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 29)}, 'Carton_brun': {'main_port_id': 20678504, 'sub_port_id': 20678530, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328895, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 29)}, 'mal_croppe': {'main_port_id': 20678504, 'sub_port_id': 20678531, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328896, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 29)}, 'plastique': {'main_port_id': 20678504, 'sub_port_id': 20678532, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328897, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20678504, 'sub_port_id': 20678533, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328898, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 29)}, 'autre_refus': {'main_port_id': 20678504, 'sub_port_id': 20678534, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328899, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 29)}, 'papier': {'main_port_id': 20678504, 'sub_port_id': 20678535, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328900, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 29)}, 'cartonnette': {'main_port_id': 20678504, 'sub_port_id': 20678536, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328901, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20678525 , 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=20678504 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 (20678525) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20678504) result : ((1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,)) 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 (1338609800) 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 20678526 , 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=20678504 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 (20678526) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20678504) result : ((1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,)) 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 (1338609800) 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 20678527 , 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=20678504 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 (20678527) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20678504) result : ((1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,)) 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 (1338609800) 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 20678528 , 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=20678504 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 (20678528) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20678504) result : ((1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,)) 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 (1338609800) 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 20678529 , 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=20678504 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 (20678529) result : ((1338609925,), (1338610691,), (1338610775,), (1338610776,), (1338610922,), (1338610923,), (1338610924,), (1338610925,), (1338610926,), (1338610944,), (1338610945,), (1338610946,), (1338610957,), (1338610958,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20678504) result : ((1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,)) 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 (1338609800) 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 20678530 , 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=20678504 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 (20678530) result : ((1338609784,), (1338609953,), (1338610420,), (1338610722,), (1338610731,), (1338610781,), (1338610928,), (1338610961,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20678504) result : ((1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,)) 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 (1338609800) 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 20678531 , 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=20678504 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 (20678531) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20678504) result : ((1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,)) 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 (1338609800) 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 20678532 , 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=20678504 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 (20678532) result : ((1338610782,), (1338610929,), (1338610962,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20678504) result : ((1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,)) 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 (1338609800) 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 20678533 , 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=20678504 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 (20678533) result : ((1338609782,), (1338609885,), (1338609886,), (1338609887,), (1338609889,), (1338609890,), (1338609891,), (1338610415,), (1338610416,), (1338610417,), (1338610418,), (1338610419,), (1338610677,), (1338610678,), (1338610679,), (1338610680,), (1338610681,), (1338610682,), (1338610788,), (1338610789,), (1338610790,), (1338610791,), (1338610906,), (1338610913,), (1338610914,), (1338610915,), (1338610916,), (1338610917,), (1338610941,), (1338610953,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20678504) result : ((1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,)) 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 (1338609800) 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 20678534 , 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=20678504 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 (20678534) result : ((1338609916,), (1338610421,), (1338610683,), (1338610773,), (1338610793,), (1338610908,), (1338610919,), (1338610954,), (1338610955,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20678504) result : ((1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,)) 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 (1338609800) 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 20678535 , 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=20678504 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 (20678535) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20678504) result : ((1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,)) 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 (1338609800) 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 20678536 , 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=20678504 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 (20678536) result : ((1338610426,), (1338610427,), (1338610428,), (1338610429,), (1338610726,), (1338610728,), (1338610780,), (1338610794,), (1338610795,), (1338610796,), (1338610797,), (1338610927,), (1338610947,), (1338610960,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20678504) result : ((1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,)) 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 (1338609800) 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`=20678504 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','autre_refus','papier','Carton_brun','Teint_Dans_La_Masse','flou','Carton_gris','plastique','kraft','environnement','mal_croppe')) 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`=20678504 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','autre_refus','papier','Carton_brun','Teint_Dans_La_Masse','flou','Carton_gris','plastique','kraft','environnement','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20678504, 'sub_port_id': 20678537, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328902, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 31)}, 'kraft': {'main_port_id': 20678504, 'sub_port_id': 20678538, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328903, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 31)}, 'metal': {'main_port_id': 20678504, 'sub_port_id': 20678539, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328904, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 31)}, 'environnement': {'main_port_id': 20678504, 'sub_port_id': 20678540, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328905, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 31)}, 'Carton_gris': {'main_port_id': 20678504, 'sub_port_id': 20678541, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328906, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 31)}, 'Carton_brun': {'main_port_id': 20678504, 'sub_port_id': 20678542, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328907, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 31)}, 'mal_croppe': {'main_port_id': 20678504, 'sub_port_id': 20678543, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328908, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 31)}, 'plastique': {'main_port_id': 20678504, 'sub_port_id': 20678544, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328909, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 20678504, 'sub_port_id': 20678545, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328910, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 31)}, 'autre_refus': {'main_port_id': 20678504, 'sub_port_id': 20678546, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328911, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 31)}, 'papier': {'main_port_id': 20678504, 'sub_port_id': 20678547, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328912, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 31)}, 'cartonnette': {'main_port_id': 20678504, 'sub_port_id': 20678548, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13328913, 'last_updated_at': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 15, 28, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 15, 19, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20678537,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20678525 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20678538,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20678526 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20678539,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20678527 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20678540,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20678528 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20678541,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20678529 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20678542,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20678530 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20678543,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20678531 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20678544,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20678532 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20678545,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20678533 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20678546,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20678534 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20678547,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20678535 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20678548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20678536 lien utilise dans velours : https://www.fotonower.com/velours/20678537,20678538,20678539,20678540,20678541,20678542,20678543,20678544,20678545,20678546,20678547,20678548?tags=flou,kraft,metal,environnement,Carton_gris,Carton_brun,mal_croppe,plastique,Teint_Dans_La_Masse,autre_refus,papier,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20678504]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338610921, 1338610918, 1338610910, 1338610905] map_info['map_portfolio_photo'] : {20678504: [1338610921, 1338610918, 1338610910, 1338610905, 1338610807, 1338610763, 1338610745, 1338610739, 1338610723, 1338610698, 1338610591, 1338610524, 1338610477, 1338610422, 1338610413, 1338610411, 1338610218, 1338610154, 1338610098, 1338610017, 1338609816, 1338609812, 1338609808, 1338609804, 1338609800, 1338609797, 1338609327, 1338609323, 1338609102, 1338608831, 1338608603, 1338608509, 1338608482, 1338608447, 1338608444, 1338608435, 1338608426, 1338608344, 1338608342, 1338608340, 1338608339, 1338608327, 1338608252, 1338608249, 1338608244, 1338608175, 1338607646, 1338607643, 1338607638, 1338607634, 1338607610, 1338607607, 1338607604, 1338607599]} final : False mtd_id 4302 list_pids : [1338610921, 1338610918, 1338610910, 1338610905] Looping around the photos to save general results len do output : 1 /20678504. 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, '2599850') ('4302', '20678504', '1338610921', None, None, None, None, None, '2599850') ('4302', None, None, None, None, None, None, None, '2599850') ('4302', '20678504', '1338610918', None, None, None, None, None, '2599850') ('4302', None, None, None, None, None, None, None, '2599850') ('4302', '20678504', '1338610910', None, None, None, None, None, '2599850') ('4302', None, None, None, None, None, None, None, '2599850') ('4302', '20678504', '1338610905', None, None, None, None, None, '2599850') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '20678504', "{'flou': 20678525, 'kraft': 20678526, 'metal': 20678527, 'environnement': 20678528, 'Carton_gris': 20678529, 'Carton_brun': 20678530, 'mal_croppe': 20678531, 'plastique': 20678532, 'Teint_Dans_La_Masse': 20678533, 'autre_refus': 20678534, 'papier': 20678535, 'cartonnette': 20678536}", None, None, None, None, '2599850'), ('4302', '20678504', '1338610921', None, None, None, None, None, '2599850'), ('4302', '20678504', '1338610918', None, None, None, None, None, '2599850'), ('4302', '20678504', '1338610910', None, None, None, None, None, '2599850'), ('4302', '20678504', '1338610905', None, None, None, None, None, '2599850')] time used for this insertion : 0.015784263610839844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5190367698669434 time spend to save output : 0.016083717346191406 total time spend for step 1 : 0.5351204872131348 step2:final Thu Feb 20 15:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (20678504) 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 20678504 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338607610,1338607607,1338607604,1338607599,1338607646,1338607643,1338607638,1338607634,1338608252,1338608249,1338608244,1338608175,1338608344,1338608342,1338608340,1338608339,1338608327,1338608447,1338608444,1338608435,1338608426,1338609102,1338608831,1338608603,1338608509,1338608482,1338609327,1338609323,1338609816,1338609812,1338609808,1338609804,1338609800,1338609797,1338610218,1338610154,1338610098,1338610017,1338610591,1338610524,1338610477,1338610422,1338610413,1338610411,1338610745,1338610739,1338610723,1338610698,1338610763,1338610807,1338610921,1338610918,1338610910,1338610905); 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([20678504]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338610921: ('0.044907111908298984',), 1338610918: ('0.044907111908298984',), 1338610910: ('0.044907111908298984',), 1338610905: ('0.044907111908298984',)} new output for save of step final : {1338610921: ('0.044907111908298984',), 1338610918: ('0.044907111908298984',), 1338610910: ('0.044907111908298984',), 1338610905: ('0.044907111908298984',)} [1338610921, 1338610918, 1338610910, 1338610905] map_info['map_portfolio_photo'] : {20678504: [1338610921, 1338610918, 1338610910, 1338610905, 1338610807, 1338610763, 1338610745, 1338610739, 1338610723, 1338610698, 1338610591, 1338610524, 1338610477, 1338610422, 1338610413, 1338610411, 1338610218, 1338610154, 1338610098, 1338610017, 1338609816, 1338609812, 1338609808, 1338609804, 1338609800, 1338609797, 1338609327, 1338609323, 1338609102, 1338608831, 1338608603, 1338608509, 1338608482, 1338608447, 1338608444, 1338608435, 1338608426, 1338608344, 1338608342, 1338608340, 1338608339, 1338608327, 1338608252, 1338608249, 1338608244, 1338608175, 1338607646, 1338607643, 1338607638, 1338607634, 1338607610, 1338607607, 1338607604, 1338607599]} final : False mtd_id 4302 list_pids : [1338610921, 1338610918, 1338610910, 1338610905] Looping around the photos to save general results len do output : 4 /1338610921.Didn't retrieve data . /1338610918.Didn't retrieve data . /1338610910.Didn't retrieve data . /1338610905.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, '2599850') ('4302', '20678504', '1338610921', None, None, None, None, None, '2599850') ('4302', None, None, None, None, None, None, None, '2599850') ('4302', '20678504', '1338610918', None, None, None, None, None, '2599850') ('4302', None, None, None, None, None, None, None, '2599850') ('4302', '20678504', '1338610910', None, None, None, None, None, '2599850') ('4302', None, None, None, None, None, None, None, '2599850') ('4302', '20678504', '1338610905', None, None, None, None, None, '2599850') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '20678504', '1338610921', '0.044907111908298984', None, None, None, None, '2599850'), ('4302', '20678504', '1338610918', '0.044907111908298984', None, None, None, None, '2599850'), ('4302', '20678504', '1338610910', '0.044907111908298984', None, None, None, None, '2599850'), ('4302', '20678504', '1338610905', '0.044907111908298984', None, None, None, None, '2599850')] time used for this insertion : 0.013556718826293945 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.09086012840270996 time spend to save output : 0.013924360275268555 total time spend for step 2 : 0.10478448867797852 step3:velours_tree Thu Feb 20 15:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20678504: [{'flou': 20678525, 'kraft': 20678526, 'metal': 20678527, 'environnement': 20678528, 'Carton_gris': 20678529, 'Carton_brun': 20678530, 'mal_croppe': 20678531, 'plastique': 20678532, 'Teint_Dans_La_Masse': 20678533, 'autre_refus': 20678534, 'papier': 20678535, 'cartonnette': 20678536}]} input_args_next_step : {20678504: ()} output_args : {20678504: [{'flou': 20678525, 'kraft': 20678526, 'metal': 20678527, 'environnement': 20678528, 'Carton_gris': 20678529, 'Carton_brun': 20678530, 'mal_croppe': 20678531, 'plastique': 20678532, 'Teint_Dans_La_Masse': 20678533, 'autre_refus': 20678534, 'papier': 20678535, 'cartonnette': 20678536}]} args : 20678504 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': 20678525, 'kraft': 20678526, 'metal': 20678527, 'environnement': 20678528, 'Carton_gris': 20678529, 'Carton_brun': 20678530, 'mal_croppe': 20678531, 'plastique': 20678532, 'Teint_Dans_La_Masse': 20678533, 'autre_refus': 20678534, 'papier': 20678535, 'cartonnette': 20678536},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20678504) 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([20678504]) 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.30161499977111816 time spend to save output : 7.319450378417969e-05 total time spend for step 3 : 0.30168819427490234 step4:send_mail_cod Thu Feb 20 15:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1338610921: ('0.044907111908298984',), 1338610918: ('0.044907111908298984',), 1338610910: ('0.044907111908298984',), 1338610905: ('0.044907111908298984',)} input_args_next_step : {1338610921: ()} output_args : {1338610921: ('0.044907111908298984',), 1338610918: ('0.044907111908298984',), 1338610910: ('0.044907111908298984',), 1338610905: ('0.044907111908298984',)} args : 1338610921 depend.output_id : 0 input_args_next_step : {1338610921: ('0.044907111908298984',), 1338610918: ()} output_args : {1338610921: ('0.044907111908298984',), 1338610918: ('0.044907111908298984',), 1338610910: ('0.044907111908298984',), 1338610905: ('0.044907111908298984',)} args : 1338610918 depend.output_id : 0 input_args_next_step : {1338610921: ('0.044907111908298984',), 1338610918: ('0.044907111908298984',), 1338610910: ()} output_args : {1338610921: ('0.044907111908298984',), 1338610918: ('0.044907111908298984',), 1338610910: ('0.044907111908298984',), 1338610905: ('0.044907111908298984',)} args : 1338610910 depend.output_id : 0 input_args_next_step : {1338610921: ('0.044907111908298984',), 1338610918: ('0.044907111908298984',), 1338610910: ('0.044907111908298984',), 1338610905: ()} output_args : {1338610921: ('0.044907111908298984',), 1338610918: ('0.044907111908298984',), 1338610910: ('0.044907111908298984',), 1338610905: ('0.044907111908298984',)} args : 1338610905 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 : {20678504: [{'flou': 20678525, 'kraft': 20678526, 'metal': 20678527, 'environnement': 20678528, 'Carton_gris': 20678529, 'Carton_brun': 20678530, 'mal_croppe': 20678531, 'plastique': 20678532, 'Teint_Dans_La_Masse': 20678533, 'autre_refus': 20678534, 'papier': 20678535, 'cartonnette': 20678536}]} input_args_next_step : {1338610921: ('0.044907111908298984',), 1338610918: ('0.044907111908298984',), 1338610910: ('0.044907111908298984',), 1338610905: ('0.044907111908298984',), 20678504: ()} output_args : {20678504: [{'flou': 20678525, 'kraft': 20678526, 'metal': 20678527, 'environnement': 20678528, 'Carton_gris': 20678529, 'Carton_brun': 20678530, 'mal_croppe': 20678531, 'plastique': 20678532, 'Teint_Dans_La_Masse': 20678533, 'autre_refus': 20678534, 'papier': 20678535, 'cartonnette': 20678536}]} args : 20678504 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 :5, first value : ('0.044907111908298984',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20678504) 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 (1338610921,1338610918,1338610910,1338610905) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338610905 begin to download photo : 1338610910 begin to download photo : 1338610918 begin to download photo : 1338610921 download finish for photo 1338610910 download finish for photo 1338610905 download finish for photo 1338610918 download finish for photo 1338610921 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette206785251740061858/ imagette206785261740061858/ imagette206785271740061858/ imagette206785311740061858/ length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P20678504_20-02-2025_15_30_58.pdf 20678525 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=20678525 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206785251740061858 20678526 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=20678526 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206785261740061858 20678527 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=20678527 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206785271740061858 20678531 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=20678531 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206785311740061858 20678532 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=20678532 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338610782: '1740061551_1943549_1338609797_5d7409d9b382095c2456fc67a4539519_rle_crop_3680626030_0.png', 1338610929: '1740061693_1947982_1338610477_fba57966ab8ec10fedf6bd2554824bab_rle_crop_3680626588_0.png', 1338610962: '1740061732_1948469_1338609797_5d7409d9b382095c2456fc67a4539519_rle_crop_3680626030_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/bf3c302f0c784cec69f49c8b13894171_46307190.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/14ec1ea8fd0c6d3c456cdcb9de6433db_59844324.png change filename to text .imagette206785321740061858/ imagette206785321740061858/1740061551_1943549_1338609797_5d7409d9b382095c2456fc67a4539519_rle_crop_3680626030_0.png.png imagette206785321740061858/1740061693_1947982_1338610477_fba57966ab8ec10fedf6bd2554824bab_rle_crop_3680626588_0.png.png imagette206785321740061858/1740061732_1948469_1338609797_5d7409d9b382095c2456fc67a4539519_rle_crop_3680626030_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/bf3c302f0c784cec69f49c8b13894171_17816306.png imagette206785321740061858 20678534 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=20678534 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338609916: '1740061372_1938052_1338607599_811b9933b18dc3a2cbc22b50108c2106_rle_crop_3680623373_0.png', 1338610421: '1740061433_1938891_1338608426_188adef8964ae42cc9a72d91dc44a046_rle_crop_3680624046_0.png', 1338610683: '1740061473_1941870_1338607599_811b9933b18dc3a2cbc22b50108c2106_rle_crop_3680623373_0.png', 1338610773: '1740061551_1943549_1338609812_08e02b641f711fa5e5ddcee260daac70_rle_crop_3680625919_0.png', 1338610793: '1740061573_1943951_1338608426_188adef8964ae42cc9a72d91dc44a046_rle_crop_3680624046_0.png', 1338610908: '1740061712_1948222_1338610154_513a054f8278b414d2d913a3873b2e93_rle_crop_3680626368_0.png', 1338610919: '1740061693_1947982_1338610524_5fb6f001f501837b7f2ddb012c0815c6_rle_crop_3680626357_0.png', 1338610954: '1740061732_1948469_1338610218_9fa262d3d3d7045dd237c9ac5c2ccf5c_rle_crop_3680626761_0.png', 1338610955: '1740061732_1948469_1338609812_08e02b641f711fa5e5ddcee260daac70_rle_crop_3680625919_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a352eee0d9f40b1879b3921f1fd63985_7496375.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/c3e143aa8af51984d883df84918385de_82870992.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a352eee0d9f40b1879b3921f1fd63985_25949069.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/045f685bc4dc5fc9f073cdf327c336c5_15316084.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/c3e143aa8af51984d883df84918385de_6851220.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/db1f4442cdcbaa6708f927401994bf2b_97965693.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/686406fe24bb03dd9e829232075e3a40_82672838.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/bc6affc2c3cf5602f98d4b4ad338dbd2_83684221.png change filename to text .imagette206785341740061858/ imagette206785341740061858/1740061372_1938052_1338607599_811b9933b18dc3a2cbc22b50108c2106_rle_crop_3680623373_0.png.png imagette206785341740061858/1740061551_1943549_1338609812_08e02b641f711fa5e5ddcee260daac70_rle_crop_3680625919_0.png.png imagette206785341740061858/1740061693_1947982_1338610524_5fb6f001f501837b7f2ddb012c0815c6_rle_crop_3680626357_0.png.png imagette206785341740061858/1740061712_1948222_1338610154_513a054f8278b414d2d913a3873b2e93_rle_crop_3680626368_0.png.png imagette206785341740061858/1740061433_1938891_1338608426_188adef8964ae42cc9a72d91dc44a046_rle_crop_3680624046_0.png.png imagette206785341740061858/1740061473_1941870_1338607599_811b9933b18dc3a2cbc22b50108c2106_rle_crop_3680623373_0.png.png imagette206785341740061858/1740061732_1948469_1338609812_08e02b641f711fa5e5ddcee260daac70_rle_crop_3680625919_0.png.png imagette206785341740061858/1740061732_1948469_1338610218_9fa262d3d3d7045dd237c9ac5c2ccf5c_rle_crop_3680626761_0.png.png imagette206785341740061858/1740061573_1943951_1338608426_188adef8964ae42cc9a72d91dc44a046_rle_crop_3680624046_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/045f685bc4dc5fc9f073cdf327c336c5_78412141.png imagette206785341740061858 20678536 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=20678536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338610426: '1740061433_1938891_1338609102_963924172aad4ea7604f2bf50387aeff_rle_crop_3680623706_0.png', 1338610427: '1740061433_1938891_1338608435_bff68122cd839cdc68aacde97604537b_rle_crop_3680623771_0.png', 1338610428: '1740061433_1938891_1338608435_bff68122cd839cdc68aacde97604537b_rle_crop_3680623766_0.png', 1338610429: '1740061433_1938891_1338608426_188adef8964ae42cc9a72d91dc44a046_rle_crop_3680624043_0.png', 1338610726: '1740061530_1943223_1338609816_34955a7e2734f8ffd0561dbe305fd15e_rle_crop_3680625209_0.png', 1338610728: '1740061530_1943223_1338609816_34955a7e2734f8ffd0561dbe305fd15e_rle_crop_3680625201_0.png', 1338610780: '1740061551_1943549_1338609812_08e02b641f711fa5e5ddcee260daac70_rle_crop_3680625923_0.png', 1338610794: '1740061573_1943951_1338609102_963924172aad4ea7604f2bf50387aeff_rle_crop_3680623706_0.png', 1338610795: '1740061573_1943951_1338608435_bff68122cd839cdc68aacde97604537b_rle_crop_3680623771_0.png', 1338610796: '1740061573_1943951_1338608435_bff68122cd839cdc68aacde97604537b_rle_crop_3680623766_0.png', 1338610797: '1740061573_1943951_1338608426_188adef8964ae42cc9a72d91dc44a046_rle_crop_3680624043_0.png', 1338610927: '1740061693_1947982_1338610422_a1c210e0f37939a0464f601959c230e2_rle_crop_3680626626_0.png', 1338610947: '1740061751_1948745_1338610723_2e2b44692d657c3a4f5161e2c1d29748_rle_crop_3680626778_0.png', 1338610960: '1740061732_1948469_1338609812_08e02b641f711fa5e5ddcee260daac70_rle_crop_3680625923_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/92021e506953c0eac1397bac419694ee_73730238.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/8ede625fa3902c1eab5f8abb00a48af1_41246538.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/23ade62b2d7b939910adfb651f5013ee_52687658.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4e9ff1157e4f0e17170d9963714600d8_18363838.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/080511a61ee75de386f7db09a7b34d4b_57324693.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/189149f6f93adf1da194118882af4851_3275874.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/18201e07ff7bde725b0fd918a3e6e565_18474285.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/92021e506953c0eac1397bac419694ee_13946810.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/8ede625fa3902c1eab5f8abb00a48af1_42431117.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/23ade62b2d7b939910adfb651f5013ee_59715628.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4e9ff1157e4f0e17170d9963714600d8_98606485.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/05d3eff897dbab420244b3c4c993752f_60176442.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/e9d0dfeee7df12b5860d1e0638d39a05_4327505.png change filename to text .imagette206785361740061859/ imagette206785361740061859/1740061433_1938891_1338608426_188adef8964ae42cc9a72d91dc44a046_rle_crop_3680624043_0.png.png imagette206785361740061859/1740061732_1948469_1338609812_08e02b641f711fa5e5ddcee260daac70_rle_crop_3680625923_0.png.png imagette206785361740061859/1740061573_1943951_1338608435_bff68122cd839cdc68aacde97604537b_rle_crop_3680623766_0.png.png imagette206785361740061859/1740061693_1947982_1338610422_a1c210e0f37939a0464f601959c230e2_rle_crop_3680626626_0.png.png imagette206785361740061859/1740061573_1943951_1338608426_188adef8964ae42cc9a72d91dc44a046_rle_crop_3680624043_0.png.png imagette206785361740061859/1740061551_1943549_1338609812_08e02b641f711fa5e5ddcee260daac70_rle_crop_3680625923_0.png.png imagette206785361740061859/1740061573_1943951_1338609102_963924172aad4ea7604f2bf50387aeff_rle_crop_3680623706_0.png.png imagette206785361740061859/1740061530_1943223_1338609816_34955a7e2734f8ffd0561dbe305fd15e_rle_crop_3680625201_0.png.png imagette206785361740061859/1740061433_1938891_1338608435_bff68122cd839cdc68aacde97604537b_rle_crop_3680623766_0.png.png imagette206785361740061859/1740061433_1938891_1338609102_963924172aad4ea7604f2bf50387aeff_rle_crop_3680623706_0.png.png imagette206785361740061859/1740061751_1948745_1338610723_2e2b44692d657c3a4f5161e2c1d29748_rle_crop_3680626778_0.png.png imagette206785361740061859/1740061530_1943223_1338609816_34955a7e2734f8ffd0561dbe305fd15e_rle_crop_3680625209_0.png.png imagette206785361740061859/1740061433_1938891_1338608435_bff68122cd839cdc68aacde97604537b_rle_crop_3680623771_0.png.png imagette206785361740061859/1740061573_1943951_1338608435_bff68122cd839cdc68aacde97604537b_rle_crop_3680623771_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/18201e07ff7bde725b0fd918a3e6e565_14760620.png imagette206785361740061859 20678529 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=20678529 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338609925: '1740061372_1938052_1338607607_46e18358f980c30ef1e9a29425868695_rle_crop_3680623211_0.png', 1338610691: '1740061473_1941870_1338607607_46e18358f980c30ef1e9a29425868695_rle_crop_3680623211_0.png', 1338610775: '1740061551_1943549_1338609808_8440cb8f36b5a7ebd23ca4c3f3d46ffe_rle_crop_3680625950_0.png', 1338610776: '1740061551_1943549_1338609804_88d205ee8f00997bd5035e9bcce1c1a1_rle_crop_3680625969_0.png', 1338610922: '1740061693_1947982_1338610524_5fb6f001f501837b7f2ddb012c0815c6_rle_crop_3680626355_0.png', 1338610923: '1740061693_1947982_1338610477_fba57966ab8ec10fedf6bd2554824bab_rle_crop_3680626595_0.png', 1338610924: '1740061693_1947982_1338610422_a1c210e0f37939a0464f601959c230e2_rle_crop_3680626624_0.png', 1338610925: '1740061693_1947982_1338610411_1b698f31e3eded119c837c0d057ca019_rle_crop_3680626655_0.png', 1338610926: '1740061693_1947982_1338610411_1b698f31e3eded119c837c0d057ca019_rle_crop_3680626657_0.png', 1338610944: '1740061751_1948745_1338610723_2e2b44692d657c3a4f5161e2c1d29748_rle_crop_3680626779_0.png', 1338610945: '1740061751_1948745_1338610698_1b43cb02cb1baf0ae8e143418d6e88cc_rle_crop_3680626810_0.png', 1338610946: '1740061751_1948745_1338610698_1b43cb02cb1baf0ae8e143418d6e88cc_rle_crop_3680626812_0.png', 1338610957: '1740061732_1948469_1338609808_8440cb8f36b5a7ebd23ca4c3f3d46ffe_rle_crop_3680625950_0.png', 1338610958: '1740061732_1948469_1338609804_88d205ee8f00997bd5035e9bcce1c1a1_rle_crop_3680625969_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/482bbb4e072f1c63379622301879f064_64315097.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/482bbb4e072f1c63379622301879f064_55086005.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a12e85fc6227be31358c13d2eec2da79_50482130.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/637aaff2f56ede0abe8064bf7349d85f_43197794.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/abd28d15c8917eb9939ab3d3903e246c_1614712.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/64b1e6fb94ed6be052e51f48afc25fb0_26529234.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/6877c80d9314dcf9a3f109b305456d21_67543300.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/b57b8992c1f430675fd1cd8c86f463b9_29409404.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/869216c90f185d59c01b21218a848ac7_98117788.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/7fe03c8b9e37238c1c7516bdc28dc92d_8027040.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/7556236288c8895521bc86281e31867c_17085379.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/26ceeef6cacc35259e3dd3e678be5123_59744333.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a12e85fc6227be31358c13d2eec2da79_55683004.png change filename to text .imagette206785291740061860/ imagette206785291740061860/1740061693_1947982_1338610411_1b698f31e3eded119c837c0d057ca019_rle_crop_3680626655_0.png.png imagette206785291740061860/1740061732_1948469_1338609804_88d205ee8f00997bd5035e9bcce1c1a1_rle_crop_3680625969_0.png.png imagette206785291740061860/1740061693_1947982_1338610411_1b698f31e3eded119c837c0d057ca019_rle_crop_3680626657_0.png.png imagette206785291740061860/1740061751_1948745_1338610698_1b43cb02cb1baf0ae8e143418d6e88cc_rle_crop_3680626810_0.png.png imagette206785291740061860/1740061693_1947982_1338610524_5fb6f001f501837b7f2ddb012c0815c6_rle_crop_3680626355_0.png.png imagette206785291740061860/1740061551_1943549_1338609804_88d205ee8f00997bd5035e9bcce1c1a1_rle_crop_3680625969_0.png.png imagette206785291740061860/1740061732_1948469_1338609808_8440cb8f36b5a7ebd23ca4c3f3d46ffe_rle_crop_3680625950_0.png.png imagette206785291740061860/1740061372_1938052_1338607607_46e18358f980c30ef1e9a29425868695_rle_crop_3680623211_0.png.png imagette206785291740061860/1740061473_1941870_1338607607_46e18358f980c30ef1e9a29425868695_rle_crop_3680623211_0.png.png imagette206785291740061860/1740061693_1947982_1338610422_a1c210e0f37939a0464f601959c230e2_rle_crop_3680626624_0.png.png imagette206785291740061860/1740061751_1948745_1338610698_1b43cb02cb1baf0ae8e143418d6e88cc_rle_crop_3680626812_0.png.png imagette206785291740061860/1740061551_1943549_1338609808_8440cb8f36b5a7ebd23ca4c3f3d46ffe_rle_crop_3680625950_0.png.png imagette206785291740061860/1740061751_1948745_1338610723_2e2b44692d657c3a4f5161e2c1d29748_rle_crop_3680626779_0.png.png imagette206785291740061860/1740061693_1947982_1338610477_fba57966ab8ec10fedf6bd2554824bab_rle_crop_3680626595_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/637aaff2f56ede0abe8064bf7349d85f_97165233.png imagette206785291740061860 20678530 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=20678530 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338609784: '1740061351_1937730_1338608249_6c1ede9ec424fbcdf01111b202a75f75_rle_crop_3680622847_0.png', 1338609953: '1740061372_1938052_1338607646_11b80c886dd8b9fc847131d917cd2c58_rle_crop_3680623167_0.png', 1338610420: '1740061454_1939348_1338608249_6c1ede9ec424fbcdf01111b202a75f75_rle_crop_3680622847_0.png', 1338610722: '1740061473_1941870_1338607646_11b80c886dd8b9fc847131d917cd2c58_rle_crop_3680623167_0.png', 1338610731: '1740061530_1943223_1338609816_34955a7e2734f8ffd0561dbe305fd15e_rle_crop_3680625205_0.png', 1338610781: '1740061551_1943549_1338609808_8440cb8f36b5a7ebd23ca4c3f3d46ffe_rle_crop_3680625955_0.png', 1338610928: '1740061693_1947982_1338610411_1b698f31e3eded119c837c0d057ca019_rle_crop_3680626659_0.png', 1338610961: '1740061732_1948469_1338609808_8440cb8f36b5a7ebd23ca4c3f3d46ffe_rle_crop_3680625955_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/ef0e918b8f4f7323cacb94f1c8631cea_79488779.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/dfdef0d210cc3d52f7f3990a3d25bd26_7558908.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/ef0e918b8f4f7323cacb94f1c8631cea_80087192.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/dfdef0d210cc3d52f7f3990a3d25bd26_60635596.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/15e43ab875a6dcec8b55fa5d00feed89_94228095.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/9fd18bcf848c792c24237d449a7b3afb_98121893.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/084a48549e949046d2fca34dbe17a7ad_36079490.png change filename to text .imagette206785301740061861/ imagette206785301740061861/1740061372_1938052_1338607646_11b80c886dd8b9fc847131d917cd2c58_rle_crop_3680623167_0.png.png imagette206785301740061861/1740061530_1943223_1338609816_34955a7e2734f8ffd0561dbe305fd15e_rle_crop_3680625205_0.png.png imagette206785301740061861/1740061454_1939348_1338608249_6c1ede9ec424fbcdf01111b202a75f75_rle_crop_3680622847_0.png.png imagette206785301740061861/1740061351_1937730_1338608249_6c1ede9ec424fbcdf01111b202a75f75_rle_crop_3680622847_0.png.png imagette206785301740061861/1740061473_1941870_1338607646_11b80c886dd8b9fc847131d917cd2c58_rle_crop_3680623167_0.png.png imagette206785301740061861/1740061551_1943549_1338609808_8440cb8f36b5a7ebd23ca4c3f3d46ffe_rle_crop_3680625955_0.png.png imagette206785301740061861/1740061693_1947982_1338610411_1b698f31e3eded119c837c0d057ca019_rle_crop_3680626659_0.png.png imagette206785301740061861/1740061732_1948469_1338609808_8440cb8f36b5a7ebd23ca4c3f3d46ffe_rle_crop_3680625955_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/9fd18bcf848c792c24237d449a7b3afb_86812178.png imagette206785301740061861 20678533 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=20678533 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338610680: '1740061473_1941870_1338607607_46e18358f980c30ef1e9a29425868695_rle_crop_3680623207_0.png', 1338610953: '1740061732_1948469_1338610218_9fa262d3d3d7045dd237c9ac5c2ccf5c_rle_crop_3680626769_0.png', 1338610941: '1740061751_1948745_1338610698_1b43cb02cb1baf0ae8e143418d6e88cc_rle_crop_3680626813_0.png', 1338610917: '1740061693_1947982_1338610411_1b698f31e3eded119c837c0d057ca019_rle_crop_3680626661_0.png', 1338610916: '1740061693_1947982_1338610413_852f3d86841fc0f18d93d84241f459e7_rle_crop_3680626639_0.png', 1338610915: '1740061693_1947982_1338610413_852f3d86841fc0f18d93d84241f459e7_rle_crop_3680626642_0.png', 1338610914: '1740061693_1947982_1338610413_852f3d86841fc0f18d93d84241f459e7_rle_crop_3680626640_0.png', 1338610913: '1740061693_1947982_1338610477_fba57966ab8ec10fedf6bd2554824bab_rle_crop_3680626593_0.png', 1338610906: '1740061712_1948222_1338610098_44762e84ba074691d99c699dcc536473_rle_crop_3680626606_0.png', 1338610791: '1740061573_1943951_1338608435_bff68122cd839cdc68aacde97604537b_rle_crop_3680623774_0.png', 1338610790: '1740061573_1943951_1338608444_bd52d97dceb5f525f08084da01b8dae9_rle_crop_3680623741_0.png', 1338610789: '1740061573_1943951_1338608444_bd52d97dceb5f525f08084da01b8dae9_rle_crop_3680623745_0.png', 1338610788: '1740061573_1943951_1338609102_963924172aad4ea7604f2bf50387aeff_rle_crop_3680623704_0.png', 1338610682: '1740061473_1941870_1338607604_6ec8c7c6c95e5cd4d14c48175e74758a_rle_crop_3680623234_0.png', 1338610681: '1740061473_1941870_1338607607_46e18358f980c30ef1e9a29425868695_rle_crop_3680623209_0.png', 1338609782: '1740061351_1937730_1338608249_6c1ede9ec424fbcdf01111b202a75f75_rle_crop_3680622846_0.png', 1338610679: '1740061473_1941870_1338607610_e5eda37e3fadc058a344ca6043f3a116_rle_crop_3680623180_0.png', 1338610678: '1740061473_1941870_1338607646_11b80c886dd8b9fc847131d917cd2c58_rle_crop_3680623174_0.png', 1338610677: '1740061473_1941870_1338607646_11b80c886dd8b9fc847131d917cd2c58_rle_crop_3680623173_0.png', 1338610419: '1740061433_1938891_1338608435_bff68122cd839cdc68aacde97604537b_rle_crop_3680623774_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/0516b17a9b6b785ca06cfccb0411b18b_6245627.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/b03e555e9dd2813c22f52675869532c9_73252557.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/3b65b3fe8d1067b083ef10ea0d9795fe_17375030.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/a2742884f74489787476b3d1ef75672b_12728600.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/7405fe92a07b01aabffdeb786ffd6876_82923356.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/e1fa57d0c2cf12b9ee1624da13a94496_42987791.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/63c0ff38e5aa21260379e1d7c7f3722b_58429895.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/6b4fcf5f052be77958897bac012aa81e_54953028.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/5cb4639787ff4b08bb8e6e7354f29965_90920112.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/976aad4f6fa0f1f9ed1e88b057c19c65_43423103.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/ed762bd175780e75bd4a609abe99f8ab_75519586.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/89c8a84ccc45a8412dd38c70fc4febd6_32554786.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4e7e2f358740ec0bb7b59d83321529e4_9640521.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/528c58e06c904f1f8e958bfa818c3099_60403084.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/67a135a87b7c8d5b2cf04f8922036d93_41908122.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/c71958240092ecf65bd70004fb34f946_22988707.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/b99855f147cd443adf0a0c0ccd96f77c_19737206.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/9ba16b283ee76661792980ad35900cce_85387396.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/70f0f20bfe1f2a740546428bbfffab32_559705.png change filename to text .imagette206785331740061861/ imagette206785331740061861/1740061751_1948745_1338610698_1b43cb02cb1baf0ae8e143418d6e88cc_rle_crop_3680626813_0.png.png imagette206785331740061861/1740061573_1943951_1338608435_bff68122cd839cdc68aacde97604537b_rle_crop_3680623774_0.png.png imagette206785331740061861/1740061693_1947982_1338610413_852f3d86841fc0f18d93d84241f459e7_rle_crop_3680626640_0.png.png imagette206785331740061861/1740061693_1947982_1338610477_fba57966ab8ec10fedf6bd2554824bab_rle_crop_3680626593_0.png.png imagette206785331740061861/1740061693_1947982_1338610413_852f3d86841fc0f18d93d84241f459e7_rle_crop_3680626642_0.png.png imagette206785331740061861/1740061473_1941870_1338607646_11b80c886dd8b9fc847131d917cd2c58_rle_crop_3680623173_0.png.png imagette206785331740061861/1740061573_1943951_1338608444_bd52d97dceb5f525f08084da01b8dae9_rle_crop_3680623745_0.png.png imagette206785331740061861/1740061732_1948469_1338610218_9fa262d3d3d7045dd237c9ac5c2ccf5c_rle_crop_3680626769_0.png.png imagette206785331740061861/1740061473_1941870_1338607604_6ec8c7c6c95e5cd4d14c48175e74758a_rle_crop_3680623234_0.png.png imagette206785331740061861/1740061473_1941870_1338607646_11b80c886dd8b9fc847131d917cd2c58_rle_crop_3680623174_0.png.png imagette206785331740061861/1740061712_1948222_1338610098_44762e84ba074691d99c699dcc536473_rle_crop_3680626606_0.png.png imagette206785331740061861/1740061433_1938891_1338608435_bff68122cd839cdc68aacde97604537b_rle_crop_3680623774_0.png.png imagette206785331740061861/1740061693_1947982_1338610411_1b698f31e3eded119c837c0d057ca019_rle_crop_3680626661_0.png.png imagette206785331740061861/1740061351_1937730_1338608249_6c1ede9ec424fbcdf01111b202a75f75_rle_crop_3680622846_0.png.png imagette206785331740061861/1740061473_1941870_1338607607_46e18358f980c30ef1e9a29425868695_rle_crop_3680623207_0.png.png imagette206785331740061861/1740061473_1941870_1338607610_e5eda37e3fadc058a344ca6043f3a116_rle_crop_3680623180_0.png.png imagette206785331740061861/1740061573_1943951_1338609102_963924172aad4ea7604f2bf50387aeff_rle_crop_3680623704_0.png.png imagette206785331740061861/1740061573_1943951_1338608444_bd52d97dceb5f525f08084da01b8dae9_rle_crop_3680623741_0.png.png imagette206785331740061861/1740061693_1947982_1338610413_852f3d86841fc0f18d93d84241f459e7_rle_crop_3680626639_0.png.png imagette206785331740061861/1740061473_1941870_1338607607_46e18358f980c30ef1e9a29425868695_rle_crop_3680623209_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/976aad4f6fa0f1f9ed1e88b057c19c65_75229594.png imagette206785331740061861 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20678504 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20678537,20678538,20678539,20678540,20678541,20678542,20678543,20678544,20678545,20678546,20678547,20678548?tags=flou,kraft,metal,environnement,Carton_gris,Carton_brun,mal_croppe,plastique,Teint_Dans_La_Masse,autre_refus,papier,cartonnette your option no_mail is active, we will not send the real mail to your client args[1338610921] : ('0.044907111908298984',) no score found for photo 1338610921 We are sending mail with results at report@fotonower.com args[1338610918] : ('0.044907111908298984',) no score found for photo 1338610918 We are sending mail with results at report@fotonower.com args[1338610910] : ('0.044907111908298984',) no score found for photo 1338610910 We are sending mail with results at report@fotonower.com args[1338610905] : ('0.044907111908298984',) no score found for photo 1338610905 We are sending mail with results at report@fotonower.com refus_total : 0.044907111908298984 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=20678504 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_P20678504_20-02-2025_15_30_58.pdf results_Auto_P20678504_20-02-2025_15_30_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_20-02-2025_15_30_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20678504','results_Auto_P20678504_20-02-2025_15_30_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_20-02-2025_15_30_58.pdf','pdf','','0.23','0.044907111908298984') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20678504]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338610921, 1338610918, 1338610910, 1338610905] map_info['map_portfolio_photo'] : {20678504: [1338610921, 1338610918, 1338610910, 1338610905, 1338610807, 1338610763, 1338610745, 1338610739, 1338610723, 1338610698, 1338610591, 1338610524, 1338610477, 1338610422, 1338610413, 1338610411, 1338610218, 1338610154, 1338610098, 1338610017, 1338609816, 1338609812, 1338609808, 1338609804, 1338609800, 1338609797, 1338609327, 1338609323, 1338609102, 1338608831, 1338608603, 1338608509, 1338608482, 1338608447, 1338608444, 1338608435, 1338608426, 1338608344, 1338608342, 1338608340, 1338608339, 1338608327, 1338608252, 1338608249, 1338608244, 1338608175, 1338607646, 1338607643, 1338607638, 1338607634, 1338607610, 1338607607, 1338607604, 1338607599]} final : False mtd_id 4302 list_pids : [1338610921, 1338610918, 1338610910, 1338610905] 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, '2599850') ('4302', '20678504', '1338610921', None, None, None, None, None, '2599850') ('4302', None, None, None, None, None, None, None, '2599850') ('4302', '20678504', '1338610918', None, None, None, None, None, '2599850') ('4302', None, None, None, None, None, None, None, '2599850') ('4302', '20678504', '1338610910', None, None, None, None, None, '2599850') ('4302', None, None, None, None, None, None, None, '2599850') ('4302', '20678504', '1338610905', None, None, None, None, None, '2599850') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20678504', '1338610921', None, None, None, None, None, '2599850'), ('4302', '20678504', '1338610918', None, None, None, None, None, '2599850'), ('4302', '20678504', '1338610910', None, None, None, None, None, '2599850'), ('4302', '20678504', '1338610905', None, None, None, None, None, '2599850')] time used for this insertion : 0.013004302978515625 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.287029981613159 time spend to save output : 0.013184547424316406 total time spend for step 4 : 5.300214529037476 step5:split_time_score Thu Feb 20 15:31: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 : ['20678504'] 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 : [('20678504',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20678504) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338610910: {'path': 'temp/1740061858_2231502_1338610910_fa4217897f96070234f8eabf1aee9629.jpg', 'extension': 'jpg'}, 1338610905: {'path': 'temp/1740061858_2231502_1338610905_391a650b4f69db813760d2b846f67159.jpg', 'extension': 'jpg'}, 1338610918: {'path': 'temp/1740061858_2231502_1338610918_a0467b2ad3ed0c6529064febb2841c0b.jpg', 'extension': 'jpg'}, 1338610921: {'path': 'temp/1740061858_2231502_1338610921_523916fa4fa9b4793c5758a806c8ad6b.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 = 20678504; (('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 = 20678504 group by h (('15', 54),) 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=20678504 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 (20678504) 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 (20678504) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 20022025 20678504 Nombre de photos uploadées : 54 / 23040 (0%) 20022025 20678504 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 20022025 20678504 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1338607610, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/e5eda37e3fadc058a344ca6043f3a116.jpg', 'username': None, 'uploaded_at': 1740060981, 'text': 'image_20022025_15_15_14_10133.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338607607, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/46e18358f980c30ef1e9a29425868695.jpg', 'username': None, 'uploaded_at': 1740060981, 'text': 'image_20022025_15_15_24_10134.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338607604, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/6ec8c7c6c95e5cd4d14c48175e74758a.jpg', 'username': None, 'uploaded_at': 1740060981, 'text': 'image_20022025_15_15_34_10139.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1338607599, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/811b9933b18dc3a2cbc22b50108c2106.jpg', 'username': None, 'uploaded_at': 1740060981, 'text': 'image_20022025_15_15_43_9125.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024487972259521484 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20678504, '2025-02-20' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1613763,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02353835105895996 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= 1613763 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621338, 'mtr_portfolio_id': 20677020, 'dashboard_result_id': 8975666, '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_P20677020_20-02-2025_14_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677040, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621338, 'mtr_portfolio_id': 20677493, 'dashboard_result_id': 8975667, '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_P20677493_20-02-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677544, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621338, 'mtr_portfolio_id': 20677981, 'dashboard_result_id': 8975668, '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_P20677981_20-02-2025_15_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677997, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621338, 'mtr_portfolio_id': 20678504, 'dashboard_result_id': 8975669, '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_P20678504_20-02-2025_15_28_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20678525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20678526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20678527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20678528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20678529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20678530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20678531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20678532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20678533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20678534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20678535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20678536, '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 = 20677020 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': 2599679, 'mtr_portfolio_id': 20677020, 'created_at': datetime.datetime(2025, 2, 20, 14, 48, 58), 'result': '0.027333411583355297', 'result_long': None, 'result_double': None}] Qualite : 0.027333411583355297 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20677020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677020_20-02-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20677020 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_P20677020_20-02-2025_14_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677040, 'pht': 3726}}" where mtr_portfolio_id = 20677020 and dashboard_run_id = 1621338 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`=20677020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8975666, 0.027333411583355297, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677020_20-02-2025_14_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677040, '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 = 20677493 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': 2599738, 'mtr_portfolio_id': 20677493, 'created_at': datetime.datetime(2025, 2, 20, 15, 3), 'result': '0.03448833424581792', 'result_long': None, 'result_double': None}] Qualite : 0.03448833424581792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20677493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677493_20-02-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20677493 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_P20677493_20-02-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677544, 'pht': 3726}}" where mtr_portfolio_id = 20677493 and dashboard_run_id = 1621338 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`=20677493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8975667, 0.03448833424581792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677493_20-02-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677544, '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 = 20677981 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': 2599788, 'mtr_portfolio_id': 20677981, 'created_at': datetime.datetime(2025, 2, 20, 15, 18, 59), 'result': '0.08309749407359794', 'result_long': None, 'result_double': None}] Qualite : 0.08309749407359794 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20677981 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677981_20-02-2025_15_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20677981 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_P20677981_20-02-2025_15_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677997, 'pht': 3726}}" where mtr_portfolio_id = 20677981 and dashboard_run_id = 1621338 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`=20677981 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8975668, 0.08309749407359794, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677981_20-02-2025_15_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677997, '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 = 20678504 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': 2599850, 'mtr_portfolio_id': 20678504, 'created_at': datetime.datetime(2025, 2, 20, 15, 30, 58), 'result': '0.044907111908298984', 'result_long': None, 'result_double': None}] Qualite : 0.044907111908298984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20678504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_20-02-2025_15_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20678504 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_P20678504_20-02-2025_15_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20678525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20678526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20678527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20678528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20678529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20678530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20678531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20678532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20678533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20678534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20678535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20678536, 'pht': 3726}}" where mtr_portfolio_id = 20678504 and dashboard_run_id = 1621338 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`=20678504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8975669, 0.044907111908298984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_20-02-2025_15_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20678525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20678526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20678527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20678528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20678529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20678530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20678531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20678532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20678533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20678534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20678535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20678536, '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 (20677020,20677493,20677981,20678504) result : ((1338600917,), (1338600919,), (1338600922,), (1338600925,), (1338600927,), (1338600930,), (1338600939,), (1338600945,), (1338601469,), (1338601472,), (1338601475,), (1338601477,), (1338601481,), (1338601663,), (1338601695,), (1338601701,), (1338601808,), (1338601813,), (1338601846,), (1338601852,), (1338601859,), (1338601862,), (1338601886,), (1338601889,), (1338601919,), (1338601921,), (1338601923,), (1338602202,), (1338602205,), (1338602209,), (1338602214,), (1338602218,), (1338602239,), (1338602242,), (1338602246,), (1338602252,), (1338602329,), (1338602331,), (1338602335,), (1338602340,), (1338602387,), (1338602395,), (1338602404,), (1338602409,), (1338602414,), (1338602614,), (1338602437,), (1338602442,), (1338602447,), (1338602455,), (1338602611,), (1338602841,), (1338602928,), (1338602931,), (1338603253,), (1338603255,), (1338603260,), (1338603263,), (1338603267,), (1338603468,), (1338603472,), (1338603474,), (1338603510,), (1338603564,), (1338603570,), (1338603597,), (1338603601,), (1338603606,), (1338603608,), (1338603614,), (1338603619,), (1338603636,), (1338603639,), (1338603643,), (1338603969,), (1338604001,), (1338604004,), (1338604009,), (1338604063,), (1338604334,), (1338604337,), (1338604373,), (1338604382,), (1338604384,), (1338604390,), (1338604394,), (1338604397,), (1338604413,), (1338604416,), (1338604423,), (1338604773,), (1338604779,), (1338604786,), (1338604792,), (1338604795,), (1338604800,), (1338604838,), (1338604826,), (1338604830,), (1338604835,), (1338605049,), (1338605052,), (1338605055,), (1338605057,), (1338605061,), (1338605064,), (1338605089,), (1338605092,), (1338605096,), (1338605102,), (1338605110,), (1338605117,), (1338605133,), (1338605136,), (1338605138,), (1338605165,), (1338605168,), (1338605171,), (1338605180,), (1338605187,), (1338605192,), (1338605209,), (1338605211,), (1338605213,), (1338605215,), (1338605218,), (1338605239,), (1338605245,), (1338605248,), (1338605252,), (1338606422,), (1338606424,), (1338606427,), (1338606429,), (1338606432,), (1338606650,), (1338606867,), (1338607088,), (1338607095,), (1338607098,), (1338607275,), (1338607279,), (1338607282,), (1338607290,), (1338607295,), (1338607301,), (1338607335,), (1338607340,), (1338607343,), (1338607347,), (1338607418,), (1338607421,), (1338607424,), (1338607435,), (1338607443,), (1338607448,), (1338607522,), (1338607527,), (1338607532,), (1338607536,), (1338607611,), (1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'20022025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20678504]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338610921, 1338610918, 1338610910, 1338610905] map_info['map_portfolio_photo'] : {20678504: [1338610921, 1338610918, 1338610910, 1338610905, 1338610807, 1338610763, 1338610745, 1338610739, 1338610723, 1338610698, 1338610591, 1338610524, 1338610477, 1338610422, 1338610413, 1338610411, 1338610218, 1338610154, 1338610098, 1338610017, 1338609816, 1338609812, 1338609808, 1338609804, 1338609800, 1338609797, 1338609327, 1338609323, 1338609102, 1338608831, 1338608603, 1338608509, 1338608482, 1338608447, 1338608444, 1338608435, 1338608426, 1338608344, 1338608342, 1338608340, 1338608339, 1338608327, 1338608252, 1338608249, 1338608244, 1338608175, 1338607646, 1338607643, 1338607638, 1338607634, 1338607610, 1338607607, 1338607604, 1338607599]} final : True mtd_id 4302 list_pids : [1338610921, 1338610918, 1338610910, 1338610905] Looping around the photos to save general results len do output : 1 /20678504Didn'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, '2599850') ('4302', '20678504', '1338610921', None, None, None, None, None, '2599850') ('4302', None, None, None, None, None, None, None, '2599850') ('4302', '20678504', '1338610918', None, None, None, None, None, '2599850') ('4302', None, None, None, None, None, None, None, '2599850') ('4302', '20678504', '1338610910', None, None, None, None, None, '2599850') ('4302', None, None, None, None, None, None, None, '2599850') ('4302', '20678504', '1338610905', None, None, None, None, None, '2599850') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '20678504', 'None', None, None, None, None, '2599850'), ('4302', '20678504', '1338610921', None, None, None, None, None, '2599850'), ('4302', '20678504', '1338610918', None, None, None, None, None, '2599850'), ('4302', '20678504', '1338610910', None, None, None, None, None, '2599850'), ('4302', '20678504', '1338610905', None, None, None, None, None, '2599850')] time used for this insertion : 0.01216888427734375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.37319493293762207 time spend to save output : 0.012339115142822266 total time spend for step 5 : 0.38553404808044434 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 (2599850) 2.07user 2.39system 0:08.38elapsed 53%CPU (0avgtext+0avgdata 159128maxresident)k 1112inputs+13576outputs (9major+63931minor)pagefaults 0swaps