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 : 2431385 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 (2735678) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2735678) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173731 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2735678'] with mtr_portfolio_ids : ['22173731'] and first list_photo_ids : [] new path : /proc/2431385/ Name: python3 Umask: 0002 State: R (running) Tgid: 2431385 Ngid: 0 Pid: 2431385 PPid: 2431384 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2431385 NSpid: 2431385 NSpgid: 2426877 NSsid: 2426877 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97988 kB VmRSS: 97988 kB RssAnon: 59752 kB RssFile: 38236 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 70 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2431385', 'Ngid': '0', 'Pid': '2431385', 'PPid': '2431384', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2431385', 'NSpid': '2431385', 'NSpgid': '2426877', 'NSsid': '2426877', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97988 kB', 'VmRSS': '97988 kB', 'RssAnon': '59752 kB', 'RssFile': '38236 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '70', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '2431385', '1106928', '0', '1106928', '865676', '97988', b'', 'marlene', '2735678') 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 (22173731) 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 (2735678 ) ) 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 (22173731) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350829657, 'portfolio_id': 22173731}, {'photo_id': 1350829647, 'portfolio_id': 22173731}, {'photo_id': 1350829642, 'portfolio_id': 22173731}, {'photo_id': 1350829638, 'portfolio_id': 22173731}, {'photo_id': 1350829623, 'portfolio_id': 22173731}, {'photo_id': 1350829548, 'portfolio_id': 22173731}, {'photo_id': 1350829545, 'portfolio_id': 22173731}, {'photo_id': 1350829470, 'portfolio_id': 22173731}, {'photo_id': 1350829467, 'portfolio_id': 22173731}, {'photo_id': 1350829285, 'portfolio_id': 22173731}, {'photo_id': 1350829280, 'portfolio_id': 22173731}, {'photo_id': 1350829275, 'portfolio_id': 22173731}, {'photo_id': 1350829271, 'portfolio_id': 22173731}, {'photo_id': 1350829230, 'portfolio_id': 22173731}, {'photo_id': 1350829227, 'portfolio_id': 22173731}, {'photo_id': 1350829222, 'portfolio_id': 22173731}, {'photo_id': 1350829217, 'portfolio_id': 22173731}, {'photo_id': 1350829209, 'portfolio_id': 22173731}, {'photo_id': 1350829200, 'portfolio_id': 22173731}, {'photo_id': 1350829141, 'portfolio_id': 22173731}, {'photo_id': 1350829119, 'portfolio_id': 22173731}, {'photo_id': 1350829115, 'portfolio_id': 22173731}, {'photo_id': 1350829109, 'portfolio_id': 22173731}, {'photo_id': 1350829103, 'portfolio_id': 22173731}, {'photo_id': 1350829046, 'portfolio_id': 22173731}, {'photo_id': 1350829044, 'portfolio_id': 22173731}, {'photo_id': 1350829003, 'portfolio_id': 22173731}, {'photo_id': 1350828955, 'portfolio_id': 22173731}, {'photo_id': 1350828952, 'portfolio_id': 22173731}, {'photo_id': 1350828948, 'portfolio_id': 22173731}, {'photo_id': 1350828945, 'portfolio_id': 22173731}, {'photo_id': 1350828940, 'portfolio_id': 22173731}, {'photo_id': 1350828935, 'portfolio_id': 22173731}, {'photo_id': 1350828890, 'portfolio_id': 22173731}, {'photo_id': 1350828883, 'portfolio_id': 22173731}, {'photo_id': 1350828876, 'portfolio_id': 22173731}, {'photo_id': 1350828853, 'portfolio_id': 22173731}, {'photo_id': 1350828838, 'portfolio_id': 22173731}, {'photo_id': 1350828831, 'portfolio_id': 22173731}, {'photo_id': 1350828785, 'portfolio_id': 22173731}, {'photo_id': 1350828781, 'portfolio_id': 22173731}, {'photo_id': 1350828779, 'portfolio_id': 22173731}, {'photo_id': 1350828777, 'portfolio_id': 22173731}, {'photo_id': 1350828731, 'portfolio_id': 22173731}, {'photo_id': 1350828726, 'portfolio_id': 22173731}, {'photo_id': 1350828653, 'portfolio_id': 22173731}, {'photo_id': 1350828642, 'portfolio_id': 22173731}, {'photo_id': 1350828637, 'portfolio_id': 22173731}, {'photo_id': 1350828631, 'portfolio_id': 22173731}, {'photo_id': 1350828594, 'portfolio_id': 22173731}, {'photo_id': 1350828587, 'portfolio_id': 22173731}, {'photo_id': 1350828584, 'portfolio_id': 22173731}] map_portfolio_id_photo_id: {22173731: [1350829657, 1350829647, 1350829642, 1350829638, 1350829623, 1350829548, 1350829545, 1350829470, 1350829467, 1350829285, 1350829280, 1350829275, 1350829271, 1350829230, 1350829227, 1350829222, 1350829217, 1350829209, 1350829200, 1350829141, 1350829119, 1350829115, 1350829109, 1350829103, 1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831, 1350828785, 1350828781, 1350828779, 1350828777, 1350828731, 1350828726, 1350828653, 1350828642, 1350828637, 1350828631, 1350828594, 1350828587, 1350828584]} ##### 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.0183107852935791 #### 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 Wed Apr 9 18:43:00 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 (22173731) 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 : 22173731 get user id for portfolio 22173731 get sub ptf for main ptf 22173731, type 3726 and hashtags ['autre_refus', 'kraft', 'Teint_Dans_La_Masse', 'flou', 'Carton_brun', 'metal', 'papier', 'mal_croppe', 'Carton_gris', 'cartonnette', 'environnement', 'plastique'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22173731 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','Teint_Dans_La_Masse','flou','Carton_brun','metal','papier','mal_croppe','Carton_gris','cartonnette','environnement','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22173731 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','Teint_Dans_La_Masse','flou','Carton_brun','metal','papier','mal_croppe','Carton_gris','cartonnette','environnement','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22173731, 'sub_port_id': 22173782, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649143, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'mal_croppe': {'main_port_id': 22173731, 'sub_port_id': 22173783, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649144, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'cartonnette': {'main_port_id': 22173731, 'sub_port_id': 22173784, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649145, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'Carton_brun': {'main_port_id': 22173731, 'sub_port_id': 22173785, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649146, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'autre_refus': {'main_port_id': 22173731, 'sub_port_id': 22173786, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649147, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'flou': {'main_port_id': 22173731, 'sub_port_id': 22173787, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649148, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'kraft': {'main_port_id': 22173731, 'sub_port_id': 22173788, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649149, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 22173731, 'sub_port_id': 22173789, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649150, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'environnement': {'main_port_id': 22173731, 'sub_port_id': 22173790, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649151, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'Carton_gris': {'main_port_id': 22173731, 'sub_port_id': 22173791, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649152, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'metal': {'main_port_id': 22173731, 'sub_port_id': 22173792, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649153, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'plastique': {'main_port_id': 22173731, 'sub_port_id': 22173793, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649154, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22173782 , 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=22173731 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 (22173782) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,), (1350829103,), (1350829109,), (1350829115,), (1350829119,), (1350829141,), (1350829200,), (1350829209,), (1350829217,), (1350829222,), (1350829227,), (1350829230,), (1350829271,), (1350829275,), (1350829280,), (1350829285,), (1350829467,), (1350829470,), (1350829545,), (1350829548,), (1350829623,), (1350829638,), (1350829642,), (1350829647,), (1350829657,)) 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 (1350829200) 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 22173783 , 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=22173731 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 (22173783) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,), (1350829103,), (1350829109,), (1350829115,), (1350829119,), (1350829141,), (1350829200,), (1350829209,), (1350829217,), (1350829222,), (1350829227,), (1350829230,), (1350829271,), (1350829275,), (1350829280,), (1350829285,), (1350829467,), (1350829470,), (1350829545,), (1350829548,), (1350829623,), (1350829638,), (1350829642,), (1350829647,), (1350829657,)) 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 (1350829200) 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 22173784 , 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=22173731 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 (22173784) result : ((1350828877,), (1350829002,), (1350829079,), (1350829080,), (1350829159,), (1350829177,), (1350829178,), (1350829208,), (1350829458,), (1350829459,), (1350829617,), (1350829618,), (1350829621,), (1350829629,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,), (1350829103,), (1350829109,), (1350829115,), (1350829119,), (1350829141,), (1350829200,), (1350829209,), (1350829217,), (1350829222,), (1350829227,), (1350829230,), (1350829271,), (1350829275,), (1350829280,), (1350829285,), (1350829467,), (1350829470,), (1350829545,), (1350829548,), (1350829623,), (1350829638,), (1350829642,), (1350829647,), (1350829657,)) 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 (1350829200) 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 22173785 , 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=22173731 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 (22173785) result : ((1350828878,), (1350829084,), (1350829162,), (1350829460,), (1350829461,), (1350829626,), (1350829630,), (1350829631,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,), (1350829103,), (1350829109,), (1350829115,), (1350829119,), (1350829141,), (1350829200,), (1350829209,), (1350829217,), (1350829222,), (1350829227,), (1350829230,), (1350829271,), (1350829275,), (1350829280,), (1350829285,), (1350829467,), (1350829470,), (1350829545,), (1350829548,), (1350829623,), (1350829638,), (1350829642,), (1350829647,), (1350829657,)) 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 (1350829200) 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 22173786 , 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=22173731 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 (22173786) result : ((1350829158,), (1350829174,), (1350829202,), (1350829612,), (1350829619,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,), (1350829103,), (1350829109,), (1350829115,), (1350829119,), (1350829141,), (1350829200,), (1350829209,), (1350829217,), (1350829222,), (1350829227,), (1350829230,), (1350829271,), (1350829275,), (1350829280,), (1350829285,), (1350829467,), (1350829470,), (1350829545,), (1350829548,), (1350829623,), (1350829638,), (1350829642,), (1350829647,), (1350829657,)) 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 (1350829200) 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 22173787 , 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=22173731 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 (22173787) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,), (1350829103,), (1350829109,), (1350829115,), (1350829119,), (1350829141,), (1350829200,), (1350829209,), (1350829217,), (1350829222,), (1350829227,), (1350829230,), (1350829271,), (1350829275,), (1350829280,), (1350829285,), (1350829467,), (1350829470,), (1350829545,), (1350829548,), (1350829623,), (1350829638,), (1350829642,), (1350829647,), (1350829657,)) 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 (1350829200) 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 22173788 , 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=22173731 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 (22173788) result : ((1350829087,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,), (1350829103,), (1350829109,), (1350829115,), (1350829119,), (1350829141,), (1350829200,), (1350829209,), (1350829217,), (1350829222,), (1350829227,), (1350829230,), (1350829271,), (1350829275,), (1350829280,), (1350829285,), (1350829467,), (1350829470,), (1350829545,), (1350829548,), (1350829623,), (1350829638,), (1350829642,), (1350829647,), (1350829657,)) 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 (1350829200) 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 22173789 , 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=22173731 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 (22173789) result : ((1350829068,), (1350829069,), (1350829070,), (1350829071,), (1350829072,), (1350829073,), (1350829184,), (1350829185,), (1350829186,), (1350829187,), (1350829188,), (1350829189,), (1350829190,), (1350829191,), (1350829192,), (1350829194,), (1350829195,), (1350829196,), (1350829197,), (1350829198,), (1350829199,), (1350829452,), (1350829609,), (1350829615,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,), (1350829103,), (1350829109,), (1350829115,), (1350829119,), (1350829141,), (1350829200,), (1350829209,), (1350829217,), (1350829222,), (1350829227,), (1350829230,), (1350829271,), (1350829275,), (1350829280,), (1350829285,), (1350829467,), (1350829470,), (1350829545,), (1350829548,), (1350829623,), (1350829638,), (1350829642,), (1350829647,), (1350829657,)) 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 (1350829200) 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 22173790 , 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=22173731 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 (22173790) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,), (1350829103,), (1350829109,), (1350829115,), (1350829119,), (1350829141,), (1350829200,), (1350829209,), (1350829217,), (1350829222,), (1350829227,), (1350829230,), (1350829271,), (1350829275,), (1350829280,), (1350829285,), (1350829467,), (1350829470,), (1350829545,), (1350829548,), (1350829623,), (1350829638,), (1350829642,), (1350829647,), (1350829657,)) 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 (1350829200) 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 22173791 , 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=22173731 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 (22173791) result : ((1350828873,), (1350828997,), (1350828998,), (1350829075,), (1350829076,), (1350829077,), (1350829205,), (1350829206,), (1350829453,), (1350829457,), (1350829613,), (1350829614,), (1350829625,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,), (1350829103,), (1350829109,), (1350829115,), (1350829119,), (1350829141,), (1350829200,), (1350829209,), (1350829217,), (1350829222,), (1350829227,), (1350829230,), (1350829271,), (1350829275,), (1350829280,), (1350829285,), (1350829467,), (1350829470,), (1350829545,), (1350829548,), (1350829623,), (1350829638,), (1350829642,), (1350829647,), (1350829657,)) 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 (1350829200) 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 22173792 , 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=22173731 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 (22173792) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,), (1350829103,), (1350829109,), (1350829115,), (1350829119,), (1350829141,), (1350829200,), (1350829209,), (1350829217,), (1350829222,), (1350829227,), (1350829230,), (1350829271,), (1350829275,), (1350829280,), (1350829285,), (1350829467,), (1350829470,), (1350829545,), (1350829548,), (1350829623,), (1350829638,), (1350829642,), (1350829647,), (1350829657,)) 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 (1350829200) 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 22173793 , 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=22173731 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 (22173793) result : ((1350828881,), (1350829085,), (1350829166,), (1350829203,), (1350829632,), (1350829633,), (1350829634,), (1350829635,), (1350829636,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,), (1350829103,), (1350829109,), (1350829115,), (1350829119,), (1350829141,), (1350829200,), (1350829209,), (1350829217,), (1350829222,), (1350829227,), (1350829230,), (1350829271,), (1350829275,), (1350829280,), (1350829285,), (1350829467,), (1350829470,), (1350829545,), (1350829548,), (1350829623,), (1350829638,), (1350829642,), (1350829647,), (1350829657,)) 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 (1350829200) 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`=22173731 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','Teint_Dans_La_Masse','flou','Carton_brun','metal','papier','mal_croppe','Carton_gris','cartonnette','environnement','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22173731 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','Teint_Dans_La_Masse','flou','Carton_brun','metal','papier','mal_croppe','Carton_gris','cartonnette','environnement','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22173731, 'sub_port_id': 22173794, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649155, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'mal_croppe': {'main_port_id': 22173731, 'sub_port_id': 22173795, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649156, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'cartonnette': {'main_port_id': 22173731, 'sub_port_id': 22173796, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649157, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'Carton_brun': {'main_port_id': 22173731, 'sub_port_id': 22173797, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649158, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'autre_refus': {'main_port_id': 22173731, 'sub_port_id': 22173798, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649159, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'flou': {'main_port_id': 22173731, 'sub_port_id': 22173799, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649160, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'kraft': {'main_port_id': 22173731, 'sub_port_id': 22173800, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649161, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22173731, 'sub_port_id': 22173801, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649162, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'environnement': {'main_port_id': 22173731, 'sub_port_id': 22173802, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649163, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'Carton_gris': {'main_port_id': 22173731, 'sub_port_id': 22173803, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649164, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'metal': {'main_port_id': 22173731, 'sub_port_id': 22173804, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649165, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'plastique': {'main_port_id': 22173731, 'sub_port_id': 22173805, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649166, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 40, 56), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173794,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173782 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173795,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173783 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173796,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173784 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173797,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173785 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173798,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173786 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173799,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173787 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173800,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173788 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173801,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173789 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173802,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173790 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173803,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173791 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173804,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173792 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173805,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173793 lien utilise dans velours : https://www.fotonower.com/velours/22173794,22173795,22173796,22173797,22173798,22173799,22173800,22173801,22173802,22173803,22173804,22173805?tags=papier,mal_croppe,cartonnette,Carton_brun,autre_refus,flou,kraft,Teint_Dans_La_Masse,environnement,Carton_gris,metal,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22173731]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350829657, 1350829647, 1350829642, 1350829638, 1350829623, 1350829548, 1350829545] map_info['map_portfolio_photo'] : {22173731: [1350829657, 1350829647, 1350829642, 1350829638, 1350829623, 1350829548, 1350829545, 1350829470, 1350829467, 1350829285, 1350829280, 1350829275, 1350829271, 1350829230, 1350829227, 1350829222, 1350829217, 1350829209, 1350829200, 1350829141, 1350829119, 1350829115, 1350829109, 1350829103, 1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831, 1350828785, 1350828781, 1350828779, 1350828777, 1350828731, 1350828726, 1350828653, 1350828642, 1350828637, 1350828631, 1350828594, 1350828587, 1350828584]} final : False mtd_id 4302 list_pids : [1350829657, 1350829647, 1350829642, 1350829638, 1350829623, 1350829548, 1350829545] Looping around the photos to save general results len do output : 1 /22173731. 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, '2735678') ('4302', '22173731', '1350829657', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829647', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829642', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829638', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829623', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829548', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829545', None, None, None, None, None, '2735678') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22173731', "{'papier': 22173782, 'mal_croppe': 22173783, 'cartonnette': 22173784, 'Carton_brun': 22173785, 'autre_refus': 22173786, 'flou': 22173787, 'kraft': 22173788, 'Teint_Dans_La_Masse': 22173789, 'environnement': 22173790, 'Carton_gris': 22173791, 'metal': 22173792, 'plastique': 22173793}", None, None, None, None, '2735678'), ('4302', '22173731', '1350829657', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829647', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829642', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829638', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829623', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829548', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829545', None, None, None, None, None, '2735678')] time used for this insertion : 0.01546335220336914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7171170711517334 time spend to save output : 0.015753984451293945 total time spend for step 1 : 0.7328710556030273 step2:final Wed Apr 9 18:43:01 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 (22173731) 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 22173731 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350828594,1350828587,1350828584,1350828731,1350828726,1350828653,1350828642,1350828637,1350828631,1350828785,1350828781,1350828779,1350828777,1350828890,1350828883,1350828876,1350828853,1350828838,1350828831,1350828955,1350828952,1350828948,1350828945,1350828940,1350828935,1350829046,1350829044,1350829003,1350829141,1350829119,1350829115,1350829109,1350829103,1350829230,1350829227,1350829222,1350829217,1350829209,1350829200,1350829285,1350829280,1350829275,1350829271,1350829470,1350829467,1350829548,1350829545,1350829657,1350829647,1350829642,1350829638,1350829623); 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([22173731]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ('0.044424017317616554',), 1350829548: ('0.044424017317616554',), 1350829545: ('0.044424017317616554',)} new output for save of step final : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ('0.044424017317616554',), 1350829548: ('0.044424017317616554',), 1350829545: ('0.044424017317616554',)} [1350829657, 1350829647, 1350829642, 1350829638, 1350829623, 1350829548, 1350829545] map_info['map_portfolio_photo'] : {22173731: [1350829657, 1350829647, 1350829642, 1350829638, 1350829623, 1350829548, 1350829545, 1350829470, 1350829467, 1350829285, 1350829280, 1350829275, 1350829271, 1350829230, 1350829227, 1350829222, 1350829217, 1350829209, 1350829200, 1350829141, 1350829119, 1350829115, 1350829109, 1350829103, 1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831, 1350828785, 1350828781, 1350828779, 1350828777, 1350828731, 1350828726, 1350828653, 1350828642, 1350828637, 1350828631, 1350828594, 1350828587, 1350828584]} final : False mtd_id 4302 list_pids : [1350829657, 1350829647, 1350829642, 1350829638, 1350829623, 1350829548, 1350829545] Looping around the photos to save general results len do output : 7 /1350829657.Didn't retrieve data . /1350829647.Didn't retrieve data . /1350829642.Didn't retrieve data . /1350829638.Didn't retrieve data . /1350829623.Didn't retrieve data . /1350829548.Didn't retrieve data . /1350829545.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, '2735678') ('4302', '22173731', '1350829657', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829647', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829642', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829638', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829623', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829548', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829545', None, None, None, None, None, '2735678') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '22173731', '1350829657', '0.044424017317616554', None, None, None, None, '2735678'), ('4302', '22173731', '1350829647', '0.044424017317616554', None, None, None, None, '2735678'), ('4302', '22173731', '1350829642', '0.044424017317616554', None, None, None, None, '2735678'), ('4302', '22173731', '1350829638', '0.044424017317616554', None, None, None, None, '2735678'), ('4302', '22173731', '1350829623', '0.044424017317616554', None, None, None, None, '2735678'), ('4302', '22173731', '1350829548', '0.044424017317616554', None, None, None, None, '2735678'), ('4302', '22173731', '1350829545', '0.044424017317616554', None, None, None, None, '2735678')] time used for this insertion : 0.015613079071044922 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0859980583190918 time spend to save output : 0.01601696014404297 total time spend for step 2 : 0.10201501846313477 step3:velours_tree Wed Apr 9 18:43:01 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 : {22173731: [{'papier': 22173782, 'mal_croppe': 22173783, 'cartonnette': 22173784, 'Carton_brun': 22173785, 'autre_refus': 22173786, 'flou': 22173787, 'kraft': 22173788, 'Teint_Dans_La_Masse': 22173789, 'environnement': 22173790, 'Carton_gris': 22173791, 'metal': 22173792, 'plastique': 22173793}]} input_args_next_step : {22173731: ()} output_args : {22173731: [{'papier': 22173782, 'mal_croppe': 22173783, 'cartonnette': 22173784, 'Carton_brun': 22173785, 'autre_refus': 22173786, 'flou': 22173787, 'kraft': 22173788, 'Teint_Dans_La_Masse': 22173789, 'environnement': 22173790, 'Carton_gris': 22173791, 'metal': 22173792, 'plastique': 22173793}]} args : 22173731 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 22173782, 'mal_croppe': 22173783, 'cartonnette': 22173784, 'Carton_brun': 22173785, 'autre_refus': 22173786, 'flou': 22173787, 'kraft': 22173788, 'Teint_Dans_La_Masse': 22173789, 'environnement': 22173790, 'Carton_gris': 22173791, 'metal': 22173792, 'plastique': 22173793},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22173731) 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([22173731]) 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.29054999351501465 time spend to save output : 5.364418029785156e-05 total time spend for step 3 : 0.2906036376953125 step4:send_mail_cod Wed Apr 9 18:43:01 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 : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ('0.044424017317616554',), 1350829548: ('0.044424017317616554',), 1350829545: ('0.044424017317616554',)} input_args_next_step : {1350829657: ()} output_args : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ('0.044424017317616554',), 1350829548: ('0.044424017317616554',), 1350829545: ('0.044424017317616554',)} args : 1350829657 depend.output_id : 0 input_args_next_step : {1350829657: ('0.044424017317616554',), 1350829647: ()} output_args : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ('0.044424017317616554',), 1350829548: ('0.044424017317616554',), 1350829545: ('0.044424017317616554',)} args : 1350829647 depend.output_id : 0 input_args_next_step : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ()} output_args : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ('0.044424017317616554',), 1350829548: ('0.044424017317616554',), 1350829545: ('0.044424017317616554',)} args : 1350829642 depend.output_id : 0 input_args_next_step : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ()} output_args : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ('0.044424017317616554',), 1350829548: ('0.044424017317616554',), 1350829545: ('0.044424017317616554',)} args : 1350829638 depend.output_id : 0 input_args_next_step : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ()} output_args : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ('0.044424017317616554',), 1350829548: ('0.044424017317616554',), 1350829545: ('0.044424017317616554',)} args : 1350829623 depend.output_id : 0 input_args_next_step : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ('0.044424017317616554',), 1350829548: ()} output_args : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ('0.044424017317616554',), 1350829548: ('0.044424017317616554',), 1350829545: ('0.044424017317616554',)} args : 1350829548 depend.output_id : 0 input_args_next_step : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ('0.044424017317616554',), 1350829548: ('0.044424017317616554',), 1350829545: ()} output_args : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ('0.044424017317616554',), 1350829548: ('0.044424017317616554',), 1350829545: ('0.044424017317616554',)} args : 1350829545 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 : {22173731: [{'papier': 22173782, 'mal_croppe': 22173783, 'cartonnette': 22173784, 'Carton_brun': 22173785, 'autre_refus': 22173786, 'flou': 22173787, 'kraft': 22173788, 'Teint_Dans_La_Masse': 22173789, 'environnement': 22173790, 'Carton_gris': 22173791, 'metal': 22173792, 'plastique': 22173793}]} input_args_next_step : {1350829657: ('0.044424017317616554',), 1350829647: ('0.044424017317616554',), 1350829642: ('0.044424017317616554',), 1350829638: ('0.044424017317616554',), 1350829623: ('0.044424017317616554',), 1350829548: ('0.044424017317616554',), 1350829545: ('0.044424017317616554',), 22173731: ()} output_args : {22173731: [{'papier': 22173782, 'mal_croppe': 22173783, 'cartonnette': 22173784, 'Carton_brun': 22173785, 'autre_refus': 22173786, 'flou': 22173787, 'kraft': 22173788, 'Teint_Dans_La_Masse': 22173789, 'environnement': 22173790, 'Carton_gris': 22173791, 'metal': 22173792, 'plastique': 22173793}]} args : 22173731 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 :8, first value : ('0.044424017317616554',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22173731) 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 (1350829657,1350829647,1350829642,1350829638,1350829623,1350829548,1350829545) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350829545 begin to download photo : 1350829623 begin to download photo : 1350829642 begin to download photo : 1350829657 download finish for photo 1350829545 begin to download photo : 1350829548 download finish for photo 1350829657 download finish for photo 1350829642 begin to download photo : 1350829647 download finish for photo 1350829623 begin to download photo : 1350829638 download finish for photo 1350829548 download finish for photo 1350829638 download finish for photo 1350829647 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221737831744216981/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P22173731_09-04-2025_18_43_01.pdf 22173783 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=22173783 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221737831744216981 22173784 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=22173784 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350828877: '1744216394_3008664_1350828584_bcec5265a40ff734f6e6d3cb0a3b1012_rle_crop_3751845959_0.png', 1350829002: '1744216514_3010227_1350828777_af7f113d17628a2bcb4354ea1077a9dd_rle_crop_3751846867_0.png', 1350829079: '1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847560_0.png', 1350829080: '1744216532_3010434_1350828637_30e1c1358862b6c5635488b760d406e8_rle_crop_3751847570_0.png', 1350829159: '1744216633_3011559_1350829044_591f8db0f47a67c34a38ca44d31cbf72_rle_crop_3751848529_0.png', 1350829177: '1744216652_3011802_1350828731_91dd290d45adf05a0177d73144b45014_rle_crop_3751849952_0.png', 1350829178: '1744216652_3011802_1350828731_91dd290d45adf05a0177d73144b45014_rle_crop_3751849950_0.png', 1350829208: '1744216646_2656920_1350828940_c39518c5e6b8e58e45d1ff0826559b4d_rle_crop_3751850000_0.png', 1350829458: '1744216752_3012893_1350829109_1fbc7838e51f4182762e2d3f45db02aa_rle_crop_3751850989_0.png', 1350829459: '1744216752_3012893_1350829103_5bd6bfd79559d91fc5724399a2160901_rle_crop_3751851061_0.png', 1350829617: '1744216886_2660058_1350829222_0a64c33496c9bdb30193df8a273db5aa_rle_crop_3751852246_0.png', 1350829618: '1744216886_2660058_1350829209_45f94c573c6c50b56a1a07e008e0eb0c_rle_crop_3751852264_0.png', 1350829621: '1744216886_2660058_1350829209_45f94c573c6c50b56a1a07e008e0eb0c_rle_crop_3751852266_0.png', 1350829629: '1744216874_3014509_1350829275_8d2d8e57f038d50739bc0889d2775e75_rle_crop_3751852420_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/104cce7682d92789484a4e0a846d5f5d_24357666.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a378da10834b9b7fb3c36c72eac8d4c3_44263554.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/24783a3885706f62ba13d95b6935fa07_84804381.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/52e9a3095dc98ade9f4cd9812cd54ce2_35426316.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/f2cd6a8f8009f65a58e2f7bfa692580c_2454171.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/8eaf1171c4fe63b68af443e747994aa4_29136168.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/fd699be176e6e82b0e030d7d8cd31c0e_90717685.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/7b2a8608017e39bbb2dec28982034521_12614191.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/193783309fe65410e1149b08a63d2ba1_68205358.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/0b870bdefbfdf0daf4d88b293831aeff_88850748.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/6797d1bfe91ed0a973bb355110ac7a1b_40321223.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/24529263c805638c3bf29a58b236ecf3_3849137.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/2eca0fb6cff7dbf242e1aeb6859298fc_88136600.png change filename to text .imagette221737841744216981/ imagette221737841744216981/1744216886_2660058_1350829222_0a64c33496c9bdb30193df8a273db5aa_rle_crop_3751852246_0.png.png imagette221737841744216981/1744216652_3011802_1350828731_91dd290d45adf05a0177d73144b45014_rle_crop_3751849952_0.png.png imagette221737841744216981/1744216886_2660058_1350829209_45f94c573c6c50b56a1a07e008e0eb0c_rle_crop_3751852266_0.png.png imagette221737841744216981/1744216874_3014509_1350829275_8d2d8e57f038d50739bc0889d2775e75_rle_crop_3751852420_0.png.png imagette221737841744216981/1744216633_3011559_1350829044_591f8db0f47a67c34a38ca44d31cbf72_rle_crop_3751848529_0.png.png imagette221737841744216981/1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847560_0.png.png imagette221737841744216981/1744216646_2656920_1350828940_c39518c5e6b8e58e45d1ff0826559b4d_rle_crop_3751850000_0.png.png imagette221737841744216981/1744216886_2660058_1350829209_45f94c573c6c50b56a1a07e008e0eb0c_rle_crop_3751852264_0.png.png imagette221737841744216981/1744216532_3010434_1350828637_30e1c1358862b6c5635488b760d406e8_rle_crop_3751847570_0.png.png imagette221737841744216981/1744216752_3012893_1350829103_5bd6bfd79559d91fc5724399a2160901_rle_crop_3751851061_0.png.png imagette221737841744216981/1744216514_3010227_1350828777_af7f113d17628a2bcb4354ea1077a9dd_rle_crop_3751846867_0.png.png imagette221737841744216981/1744216752_3012893_1350829109_1fbc7838e51f4182762e2d3f45db02aa_rle_crop_3751850989_0.png.png imagette221737841744216981/1744216652_3011802_1350828731_91dd290d45adf05a0177d73144b45014_rle_crop_3751849950_0.png.png imagette221737841744216981/1744216394_3008664_1350828584_bcec5265a40ff734f6e6d3cb0a3b1012_rle_crop_3751845959_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/e9fce482bf8f99f2bf221388b1cd26cb_48348930.png imagette221737841744216981 22173786 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=22173786 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350829158: '1744216633_3011559_1350829044_591f8db0f47a67c34a38ca44d31cbf72_rle_crop_3751848525_0.png', 1350829174: '1744216652_3011802_1350828731_91dd290d45adf05a0177d73144b45014_rle_crop_3751849946_0.png', 1350829202: '1744216646_2656920_1350829046_66c14dba537f188c4b29a25274b6aa8f_rle_crop_3751849818_0.png', 1350829612: '1744216886_2660058_1350829285_2a36d3133933a342dafe09fa7563cdf3_rle_crop_3751852217_0.png', 1350829619: '1744216874_3014509_1350829275_8d2d8e57f038d50739bc0889d2775e75_rle_crop_3751852418_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/40780eb3a675a39e3193d74140dfa554_46148115.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/06db3eec6effac10d638b4773b0578e2_64990777.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/f9563ce5bd350490bd3731831b8d1ce4_13295957.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/be1bbb936f365df369e771d814697de2_98642839.png change filename to text .imagette221737861744216982/ imagette221737861744216982/1744216874_3014509_1350829275_8d2d8e57f038d50739bc0889d2775e75_rle_crop_3751852418_0.png.png imagette221737861744216982/1744216646_2656920_1350829046_66c14dba537f188c4b29a25274b6aa8f_rle_crop_3751849818_0.png.png imagette221737861744216982/1744216886_2660058_1350829285_2a36d3133933a342dafe09fa7563cdf3_rle_crop_3751852217_0.png.png imagette221737861744216982/1744216633_3011559_1350829044_591f8db0f47a67c34a38ca44d31cbf72_rle_crop_3751848525_0.png.png imagette221737861744216982/1744216652_3011802_1350828731_91dd290d45adf05a0177d73144b45014_rle_crop_3751849946_0.png.png imagette221737871744216982/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/805431d2f1b4e4257cefb1b9e187a1b0_39057578.png imagette221737861744216982 22173787 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=22173787 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221737871744216982 22173788 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=22173788 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350829087: '1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847563_0.png'} change filename to text .imagette221737881744216982/ imagette221737881744216982/1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847563_0.png.png imagette221737921744216983/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d15c3c0a1a9baa5453c0efd633c5efae_19496443.png imagette221737881744216982 22173792 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=22173792 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221737921744216983 22173793 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=22173793 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350828881: '1744216394_3008664_1350828587_1fda92231508d06690506fcb3ae9d346_rle_crop_3751845935_0.png', 1350829085: '1744216532_3010434_1350828653_5b663a75097c32d06f4ff21319115e3b_rle_crop_3751847274_0.png', 1350829166: '1744216633_3011559_1350829044_591f8db0f47a67c34a38ca44d31cbf72_rle_crop_3751848530_0.png', 1350829203: '1744216646_3143721_1350828876_abaa42dc9b629b5f2943ba95a39a1485_rle_crop_3751849911_0.png', 1350829632: '1744216886_2660058_1350829222_0a64c33496c9bdb30193df8a273db5aa_rle_crop_3751852247_0.png', 1350829633: '1744216886_2660058_1350829217_b0f239de7eea520c060a9d7983f37394_rle_crop_3751852262_0.png', 1350829634: '1744216886_2660058_1350829217_b0f239de7eea520c060a9d7983f37394_rle_crop_3751852261_0.png', 1350829635: '1744216886_2660058_1350829209_45f94c573c6c50b56a1a07e008e0eb0c_rle_crop_3751852277_0.png', 1350829636: '1744216874_3014509_1350829275_8d2d8e57f038d50739bc0889d2775e75_rle_crop_3751852419_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/3e06819efe83f0d8d7bf93e1b7d3b252_44010733.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/0cd557b49f2ed46a3888a7c6c05f71f8_96036565.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/460ad813e8fe5d303d910ea2f16bff5e_54068513.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/8ff2feafa0b4b7ca9af2f29a1df952d2_13673663.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/be390fc5c085f2f42c5f2c7c2c1dad6d_16137627.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/909ef69ac8646f91e64ec543638e99bd_96011378.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d14261b92f1f4c244d6ba2e2b0ec1e97_68812092.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d774c3d27e96defe8136734af820313c_48566418.png change filename to text .imagette221737931744216983/ imagette221737931744216983/1744216646_3143721_1350828876_abaa42dc9b629b5f2943ba95a39a1485_rle_crop_3751849911_0.png.png imagette221737931744216983/1744216394_3008664_1350828587_1fda92231508d06690506fcb3ae9d346_rle_crop_3751845935_0.png.png imagette221737931744216983/1744216886_2660058_1350829222_0a64c33496c9bdb30193df8a273db5aa_rle_crop_3751852247_0.png.png imagette221737931744216983/1744216886_2660058_1350829217_b0f239de7eea520c060a9d7983f37394_rle_crop_3751852262_0.png.png imagette221737931744216983/1744216532_3010434_1350828653_5b663a75097c32d06f4ff21319115e3b_rle_crop_3751847274_0.png.png imagette221737931744216983/1744216886_2660058_1350829209_45f94c573c6c50b56a1a07e008e0eb0c_rle_crop_3751852277_0.png.png imagette221737931744216983/1744216633_3011559_1350829044_591f8db0f47a67c34a38ca44d31cbf72_rle_crop_3751848530_0.png.png imagette221737931744216983/1744216886_2660058_1350829217_b0f239de7eea520c060a9d7983f37394_rle_crop_3751852261_0.png.png imagette221737931744216983/1744216874_3014509_1350829275_8d2d8e57f038d50739bc0889d2775e75_rle_crop_3751852419_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/7b88ac81a22c1ce45fb70c71e95837c2_99119659.png imagette221737931744216983 22173785 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=22173785 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350828878: '1744216394_3008664_1350828584_bcec5265a40ff734f6e6d3cb0a3b1012_rle_crop_3751845967_0.png', 1350829084: '1744216532_3010434_1350828653_5b663a75097c32d06f4ff21319115e3b_rle_crop_3751847278_0.png', 1350829162: '1744216633_3011559_1350829044_591f8db0f47a67c34a38ca44d31cbf72_rle_crop_3751848528_0.png', 1350829460: '1744216752_3012893_1350829119_1c569a24ef20a0b2a2ba2c5265ed08a8_rle_crop_3751850974_0.png', 1350829461: '1744216752_3012893_1350829115_645109e131baa4cf5f618a527d52f934_rle_crop_3751850984_0.png', 1350829626: '1744216886_2660058_1350829285_2a36d3133933a342dafe09fa7563cdf3_rle_crop_3751852214_0.png', 1350829630: '1744216874_3014509_1350829280_f4faea5aaa6d0d24cefc3f6afc997971_rle_crop_3751852397_0.png', 1350829631: '1744216874_3014509_1350829280_f4faea5aaa6d0d24cefc3f6afc997971_rle_crop_3751852395_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/79253e6c17154121fd8da1660d3fc4e5_62782162.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a292128174f570cf3a611e463d3dab71_33340375.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/e399621aba88de05d67477bd96461421_87028633.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/3e6ebd84fd0aa529e75e913e84601e83_13143627.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/dc327e979d5b556bf5f0f47af7fcc76d_89581689.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/80549f8fb166d33d8f1a43eb57d0813b_14075353.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/dea50089becb93cfbb75b7eed46359da_46360601.png change filename to text .imagette221737851744216983/ imagette221737851744216983/1744216752_3012893_1350829119_1c569a24ef20a0b2a2ba2c5265ed08a8_rle_crop_3751850974_0.png.png imagette221737851744216983/1744216874_3014509_1350829280_f4faea5aaa6d0d24cefc3f6afc997971_rle_crop_3751852395_0.png.png imagette221737851744216983/1744216633_3011559_1350829044_591f8db0f47a67c34a38ca44d31cbf72_rle_crop_3751848528_0.png.png imagette221737851744216983/1744216752_3012893_1350829115_645109e131baa4cf5f618a527d52f934_rle_crop_3751850984_0.png.png imagette221737851744216983/1744216886_2660058_1350829285_2a36d3133933a342dafe09fa7563cdf3_rle_crop_3751852214_0.png.png imagette221737851744216983/1744216874_3014509_1350829280_f4faea5aaa6d0d24cefc3f6afc997971_rle_crop_3751852397_0.png.png imagette221737851744216983/1744216532_3010434_1350828653_5b663a75097c32d06f4ff21319115e3b_rle_crop_3751847278_0.png.png imagette221737851744216983/1744216394_3008664_1350828584_bcec5265a40ff734f6e6d3cb0a3b1012_rle_crop_3751845967_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/74818e3c158934ae639646fc73a225d0_86112040.png imagette221737851744216983 22173789 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=22173789 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350829190: '1744216646_2656920_1350828948_65fca5a012ad92d21b2d4e16084b296b_rle_crop_3751849925_0.png', 1350829615: '1744216874_3014509_1350829280_f4faea5aaa6d0d24cefc3f6afc997971_rle_crop_3751852394_0.png', 1350829609: '1744216886_2660058_1350829222_0a64c33496c9bdb30193df8a273db5aa_rle_crop_3751852241_0.png', 1350829452: '1744216752_3012893_1350829109_1fbc7838e51f4182762e2d3f45db02aa_rle_crop_3751850993_0.png', 1350829199: '1744216646_2656920_1350828935_f82fdd8494c3d88d2a595aee53b08aec_rle_crop_3751850030_0.png', 1350829198: '1744216646_3143721_1350828831_8a06306305904bce5e41cc1621175b6b_rle_crop_3751850017_0.png', 1350829197: '1744216646_2656920_1350828935_f82fdd8494c3d88d2a595aee53b08aec_rle_crop_3751850035_0.png', 1350829196: '1744216646_3143721_1350828831_8a06306305904bce5e41cc1621175b6b_rle_crop_3751850010_0.png', 1350829195: '1744216646_2656920_1350828935_f82fdd8494c3d88d2a595aee53b08aec_rle_crop_3751850037_0.png', 1350829194: '1744216646_3143721_1350828838_658eeac4f61cfe26450c8bcd50dcd36a_rle_crop_3751849992_0.png', 1350829192: '1744216646_2656920_1350828940_c39518c5e6b8e58e45d1ff0826559b4d_rle_crop_3751850001_0.png', 1350829191: '1744216646_3143721_1350828838_658eeac4f61cfe26450c8bcd50dcd36a_rle_crop_3751849988_0.png', 1350829068: '1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847562_0.png', 1350829189: '1744216646_3143721_1350828853_9b6472e85179e921287ca3c915f24168_rle_crop_3751849937_0.png', 1350829188: '1744216646_2656920_1350828948_65fca5a012ad92d21b2d4e16084b296b_rle_crop_3751849923_0.png', 1350829187: '1744216646_3143721_1350828853_9b6472e85179e921287ca3c915f24168_rle_crop_3751849938_0.png', 1350829186: '1744216646_2656920_1350829046_66c14dba537f188c4b29a25274b6aa8f_rle_crop_3751849826_0.png', 1350829185: '1744216646_3143721_1350828876_abaa42dc9b629b5f2943ba95a39a1485_rle_crop_3751849913_0.png', 1350829184: '1744216646_3143721_1350828883_6a2ca9fa742551d160cf0c10126aceec_rle_crop_3751849833_0.png', 1350829073: '1744216532_3010434_1350828631_0f8a34741ad0b2ddfd34488c77ba3dc2_rle_crop_3751847601_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/96edadea3b6ef9221ae1caebff7910b9_90555482.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1c920124001848804b74792e89facd5c_75525838.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/b3277e8dd49a1f9e7349e2bfbce0329e_53681186.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/f70ec321bc0876684d7aefeadab02822_18458539.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/e98e9abfc06242e414a80fc3a26ae7cb_41595317.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a01fb73ce714884d683df78324cca5a6_55226252.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/88d8b6c597303db497c86d604bf7c275_75624295.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/bc6583b47177760cdc7db855afd89220_91860319.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/edfd16955758c1b045a0e5b60db38381_71406309.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/4131775c911e90cd0b1ea07dfe21bddf_58592513.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/2643860e4d47915cada215c0ad29d62b_17933252.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/60f98ab6ec71125185faa72c4018a1a9_2071335.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/825ae40481253585353e9db6c0ea60c1_23195402.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/c58857fe4a972262bebcae47f61891f7_20303056.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1538fbfa14961285836b1554ae089b3e_48245588.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/b615c0ff395a229b542e2f209d5b9c0e_11769895.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/0f713bd43aeb2599cb5fa0b6f72369e0_33501906.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/eb4c111c284eb174ae8ae22c71c24d43_88373309.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/c59763c0e6ce18c9f1934846a086d095_56982608.png change filename to text .imagette221737891744216984/ imagette221737891744216984/1744216752_3012893_1350829109_1fbc7838e51f4182762e2d3f45db02aa_rle_crop_3751850993_0.png.png imagette221737891744216984/1744216646_2656920_1350828948_65fca5a012ad92d21b2d4e16084b296b_rle_crop_3751849923_0.png.png imagette221737891744216984/1744216874_3014509_1350829280_f4faea5aaa6d0d24cefc3f6afc997971_rle_crop_3751852394_0.png.png imagette221737891744216984/1744216646_3143721_1350828838_658eeac4f61cfe26450c8bcd50dcd36a_rle_crop_3751849992_0.png.png imagette221737891744216984/1744216646_2656920_1350828935_f82fdd8494c3d88d2a595aee53b08aec_rle_crop_3751850035_0.png.png imagette221737891744216984/1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847562_0.png.png imagette221737891744216984/1744216646_2656920_1350828935_f82fdd8494c3d88d2a595aee53b08aec_rle_crop_3751850037_0.png.png imagette221737891744216984/1744216646_2656920_1350828935_f82fdd8494c3d88d2a595aee53b08aec_rle_crop_3751850030_0.png.png imagette221737891744216984/1744216646_2656920_1350829046_66c14dba537f188c4b29a25274b6aa8f_rle_crop_3751849826_0.png.png imagette221737891744216984/1744216532_3010434_1350828631_0f8a34741ad0b2ddfd34488c77ba3dc2_rle_crop_3751847601_0.png.png imagette221737891744216984/1744216646_3143721_1350828831_8a06306305904bce5e41cc1621175b6b_rle_crop_3751850010_0.png.png imagette221737891744216984/1744216646_3143721_1350828883_6a2ca9fa742551d160cf0c10126aceec_rle_crop_3751849833_0.png.png imagette221737891744216984/1744216646_3143721_1350828831_8a06306305904bce5e41cc1621175b6b_rle_crop_3751850017_0.png.png imagette221737891744216984/1744216646_2656920_1350828940_c39518c5e6b8e58e45d1ff0826559b4d_rle_crop_3751850001_0.png.png imagette221737891744216984/1744216646_3143721_1350828876_abaa42dc9b629b5f2943ba95a39a1485_rle_crop_3751849913_0.png.png imagette221737891744216984/1744216646_3143721_1350828838_658eeac4f61cfe26450c8bcd50dcd36a_rle_crop_3751849988_0.png.png imagette221737891744216984/1744216646_3143721_1350828853_9b6472e85179e921287ca3c915f24168_rle_crop_3751849937_0.png.png imagette221737891744216984/1744216646_2656920_1350828948_65fca5a012ad92d21b2d4e16084b296b_rle_crop_3751849925_0.png.png imagette221737891744216984/1744216886_2660058_1350829222_0a64c33496c9bdb30193df8a273db5aa_rle_crop_3751852241_0.png.png imagette221737891744216984/1744216646_3143721_1350828853_9b6472e85179e921287ca3c915f24168_rle_crop_3751849938_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/fc185daaeac92d285313d4331bcaa993_37763654.png imagette221737891744216984 22173791 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=22173791 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350828873: '1744216394_3008664_1350828584_bcec5265a40ff734f6e6d3cb0a3b1012_rle_crop_3751845958_0.png', 1350828997: '1744216514_3010227_1350828781_0e944b8d047ce95699ef3e5b52ac848b_rle_crop_3751846690_0.png', 1350828998: '1744216514_3010227_1350828777_af7f113d17628a2bcb4354ea1077a9dd_rle_crop_3751846869_0.png', 1350829075: '1744216532_3010434_1350828726_226665dfa884bf85c8b275184417051f_rle_crop_3751847262_0.png', 1350829076: '1744216532_3010434_1350828726_226665dfa884bf85c8b275184417051f_rle_crop_3751847267_0.png', 1350829077: '1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847559_0.png', 1350829205: '1744216646_2656920_1350829046_66c14dba537f188c4b29a25274b6aa8f_rle_crop_3751849828_0.png', 1350829206: '1744216646_2656920_1350828935_f82fdd8494c3d88d2a595aee53b08aec_rle_crop_3751850033_0.png', 1350829453: '1744216752_3012893_1350829115_645109e131baa4cf5f618a527d52f934_rle_crop_3751850980_0.png', 1350829457: '1744216752_3012893_1350829109_1fbc7838e51f4182762e2d3f45db02aa_rle_crop_3751850988_0.png', 1350829613: '1744216886_2660058_1350829209_45f94c573c6c50b56a1a07e008e0eb0c_rle_crop_3751852267_0.png', 1350829614: '1744216886_2660058_1350829209_45f94c573c6c50b56a1a07e008e0eb0c_rle_crop_3751852271_0.png', 1350829625: '1744216874_3014509_1350829271_602eeb6f003d3e22d462b09d3adebb01_rle_crop_3751852451_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/b9e09830e738da32a76705c5a0b918cc_73326388.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/18147a6e18e57376fa420e6167946f4f_42638746.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/17bdaee8bbd825cbc422c1ebc206fc3f_95670289.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/9bc54c4aea2607bff139014216b06cf5_12603832.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/dfdd00ca181639b695c5a4006690d3c0_51123997.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1e1bf35a01eab86fb68166943a730b5d_40857663.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/bb8b622eb32008fab09baa1f7991e4be_561290.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/73b0c33bb7d92c4ed421e3861bb54ee1_49119873.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/33be6589170d741115aa939664b23b3e_12011981.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/9b5c4f7733d2d42ba8d01470a3786ad3_83180215.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/749633673802f3fe3ca315796d302be0_40649544.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/99fd1e8ff64a8665ff2cfe78c8ed2568_19377516.png change filename to text .imagette221737911744216986/ imagette221737911744216986/1744216532_3010434_1350828726_226665dfa884bf85c8b275184417051f_rle_crop_3751847262_0.png.png imagette221737911744216986/1744216752_3012893_1350829109_1fbc7838e51f4182762e2d3f45db02aa_rle_crop_3751850988_0.png.png imagette221737911744216986/1744216886_2660058_1350829209_45f94c573c6c50b56a1a07e008e0eb0c_rle_crop_3751852271_0.png.png imagette221737911744216986/1744216514_3010227_1350828777_af7f113d17628a2bcb4354ea1077a9dd_rle_crop_3751846869_0.png.png imagette221737911744216986/1744216646_2656920_1350828935_f82fdd8494c3d88d2a595aee53b08aec_rle_crop_3751850033_0.png.png imagette221737911744216986/1744216514_3010227_1350828781_0e944b8d047ce95699ef3e5b52ac848b_rle_crop_3751846690_0.png.png imagette221737911744216986/1744216646_2656920_1350829046_66c14dba537f188c4b29a25274b6aa8f_rle_crop_3751849828_0.png.png imagette221737911744216986/1744216752_3012893_1350829115_645109e131baa4cf5f618a527d52f934_rle_crop_3751850980_0.png.png imagette221737911744216986/1744216874_3014509_1350829271_602eeb6f003d3e22d462b09d3adebb01_rle_crop_3751852451_0.png.png imagette221737911744216986/1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847559_0.png.png imagette221737911744216986/1744216394_3008664_1350828584_bcec5265a40ff734f6e6d3cb0a3b1012_rle_crop_3751845958_0.png.png imagette221737911744216986/1744216532_3010434_1350828726_226665dfa884bf85c8b275184417051f_rle_crop_3751847267_0.png.png imagette221737911744216986/1744216886_2660058_1350829209_45f94c573c6c50b56a1a07e008e0eb0c_rle_crop_3751852267_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/607af08abd1ae98ffc64041ffe0d044e_95258201.png imagette221737911744216986 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22173731 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22173794,22173795,22173796,22173797,22173798,22173799,22173800,22173801,22173802,22173803,22173804,22173805?tags=papier,mal_croppe,cartonnette,Carton_brun,autre_refus,flou,kraft,Teint_Dans_La_Masse,environnement,Carton_gris,metal,plastique your option no_mail is active, we will not send the real mail to your client args[1350829657] : ('0.044424017317616554',) no score found for photo 1350829657 We are sending mail with results at report@fotonower.com args[1350829647] : ('0.044424017317616554',) no score found for photo 1350829647 We are sending mail with results at report@fotonower.com args[1350829642] : ('0.044424017317616554',) no score found for photo 1350829642 We are sending mail with results at report@fotonower.com args[1350829638] : ('0.044424017317616554',) no score found for photo 1350829638 We are sending mail with results at report@fotonower.com args[1350829623] : ('0.044424017317616554',) no score found for photo 1350829623 We are sending mail with results at report@fotonower.com args[1350829548] : ('0.044424017317616554',) no score found for photo 1350829548 We are sending mail with results at report@fotonower.com args[1350829545] : ('0.044424017317616554',) no score found for photo 1350829545 We are sending mail with results at report@fotonower.com refus_total : 0.044424017317616554 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=22173731 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_P22173731_09-04-2025_18_43_01.pdf results_Auto_P22173731_09-04-2025_18_43_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173731_09-04-2025_18_43_01.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','22173731','results_Auto_P22173731_09-04-2025_18_43_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173731_09-04-2025_18_43_01.pdf','pdf','','0.31','0.044424017317616554') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22173731]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350829657, 1350829647, 1350829642, 1350829638, 1350829623, 1350829548, 1350829545] map_info['map_portfolio_photo'] : {22173731: [1350829657, 1350829647, 1350829642, 1350829638, 1350829623, 1350829548, 1350829545, 1350829470, 1350829467, 1350829285, 1350829280, 1350829275, 1350829271, 1350829230, 1350829227, 1350829222, 1350829217, 1350829209, 1350829200, 1350829141, 1350829119, 1350829115, 1350829109, 1350829103, 1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831, 1350828785, 1350828781, 1350828779, 1350828777, 1350828731, 1350828726, 1350828653, 1350828642, 1350828637, 1350828631, 1350828594, 1350828587, 1350828584]} final : False mtd_id 4302 list_pids : [1350829657, 1350829647, 1350829642, 1350829638, 1350829623, 1350829548, 1350829545] 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, '2735678') ('4302', '22173731', '1350829657', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829647', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829642', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829638', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829623', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829548', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829545', None, None, None, None, None, '2735678') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '22173731', '1350829657', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829647', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829642', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829638', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829623', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829548', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829545', None, None, None, None, None, '2735678')] time used for this insertion : 0.01806926727294922 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.561043739318848 time spend to save output : 0.018219470977783203 total time spend for step 4 : 6.579263210296631 step5:split_time_score Wed Apr 9 18:43:07 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 : ['22173731'] 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 : [('22173731',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22173731) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350829657: {'path': 'temp/1744216981_2431385_1350829657_def6672f02909c94c0e0c93f9fd489d9.jpg', 'extension': 'jpg'}, 1350829545: {'path': 'temp/1744216981_2431385_1350829545_09d7845495676936a67959c65fc9af29.jpg', 'extension': 'jpg'}, 1350829548: {'path': 'temp/1744216981_2431385_1350829548_b4c967b0512b934b4519bc04e7ae8a46.jpg', 'extension': 'jpg'}, 1350829623: {'path': 'temp/1744216981_2431385_1350829623_0280173e8aabade849dd8e3135406ac9.jpg', 'extension': 'jpg'}, 1350829638: {'path': 'temp/1744216981_2431385_1350829638_babfd6003ffe32081f1cdec518c82e72.jpg', 'extension': 'jpg'}, 1350829642: {'path': 'temp/1744216981_2431385_1350829642_f64aa16781f9b332c3f9659dac61fd13.jpg', 'extension': 'jpg'}, 1350829647: {'path': 'temp/1744216981_2431385_1350829647_7c42e9b2fe939396fd270d794e549c13.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 = 22173731; (('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 = 22173731 group by h (('18', 52),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22173731 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 (22173731) 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 (22173731) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09042025 22173731 Nombre de photos uploadées : 52 / 23040 (0%) 09042025 22173731 Nombre de photos taguées (types de déchets): 0 / 52 (0%) 09042025 22173731 Nombre de photos taguées (volume) : 0 / 52 (0%) [{'photo_id': 1350828594, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a735e95135d1f145b73501b85bf270ac.jpg', 'username': None, 'uploaded_at': 1744216267, 'text': 'image_09042025_18_30_24_10134.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350828587, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1fda92231508d06690506fcb3ae9d346.jpg', 'username': None, 'uploaded_at': 1744216267, 'text': 'image_09042025_18_30_34_10135.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350828584, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/bcec5265a40ff734f6e6d3cb0a3b1012.jpg', 'username': None, 'uploaded_at': 1744216267, 'text': 'image_09042025_18_30_44_10136.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350828731, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/91dd290d45adf05a0177d73144b45014.jpg', 'username': None, 'uploaded_at': 1744216327, 'text': 'image_09042025_18_30_53_9126.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.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ???????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025331974029541016 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22173731, '2025-04-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725367,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02916860580444336 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= 1725367 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725367, 'dashboard_run_id': 1734726, 'mtr_portfolio_id': 22172422, 'dashboard_result_id': 9952416, '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_P22172422_09-04-2025_18_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22172489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22172490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22172491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22172492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22172493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22172494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22172495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22172496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22172497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22172498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22172499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22172500, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1734726, 'mtr_portfolio_id': 22173126, 'dashboard_result_id': 9952417, '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_P22173126_09-04-2025_18_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173154, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1734726, 'mtr_portfolio_id': 22173731, 'dashboard_result_id': 9952418, '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_P22173731_09-04-2025_18_40_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22173782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173793, '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 = 22172422 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': 2735576, 'mtr_portfolio_id': 22172422, 'created_at': datetime.datetime(2025, 4, 9, 18, 18, 57), 'result': '0.05798453404432712', 'result_long': None, 'result_double': None}] Qualite : 0.05798453404432712 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22172422 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22172422_09-04-2025_18_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22172422 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_P22172422_09-04-2025_18_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22172489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22172490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22172491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22172492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22172493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22172494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22172495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22172496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22172497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22172498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22172499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22172500, 'pht': 3726}}" where mtr_portfolio_id = 22172422 and dashboard_run_id = 1734726 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`=22172422 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9952416, 0.05798453404432712, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22172422_09-04-2025_18_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22172489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22172490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22172491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22172492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22172493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22172494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22172495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22172496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22172497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22172498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22172499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22172500, '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 = 22173126 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': 2735622, 'mtr_portfolio_id': 22173126, 'created_at': datetime.datetime(2025, 4, 9, 18, 32, 57), 'result': '0.05029595177268822', 'result_long': None, 'result_double': None}] Qualite : 0.05029595177268822 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22173126 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173126_09-04-2025_18_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22173126 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_P22173126_09-04-2025_18_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173154, 'pht': 3726}}" where mtr_portfolio_id = 22173126 and dashboard_run_id = 1734726 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`=22173126 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9952417, 0.05029595177268822, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173126_09-04-2025_18_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173154, '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 = 22173731 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': 2735678, 'mtr_portfolio_id': 22173731, 'created_at': datetime.datetime(2025, 4, 9, 18, 43, 1), 'result': '0.044424017317616554', 'result_long': None, 'result_double': None}] Qualite : 0.044424017317616554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22173731 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173731_09-04-2025_18_43_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22173731 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_P22173731_09-04-2025_18_43_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22173782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173793, 'pht': 3726}}" where mtr_portfolio_id = 22173731 and dashboard_run_id = 1734726 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`=22173731 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9952418, 0.044424017317616554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173731_09-04-2025_18_43_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22173782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173793, '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 (22172422,22173126,22173731) result : ((1350822544,), (1350822547,), (1350822555,), (1350822560,), (1350822620,), (1350822626,), (1350822635,), (1350822641,), (1350822684,), (1350822700,), (1350823188,), (1350823257,), (1350823382,), (1350823436,), (1350823502,), (1350823604,), (1350823608,), (1350823611,), (1350823614,), (1350823616,), (1350823619,), (1350823842,), (1350823883,), (1350823895,), (1350824136,), (1350824165,), (1350824191,), (1350824196,), (1350824203,), (1350824216,), (1350824283,), (1350824286,), (1350824287,), (1350824291,), (1350824299,), (1350824454,), (1350824486,), (1350824508,), (1350824530,), (1350824560,), (1350824930,), (1350824952,), (1350824958,), (1350824959,), (1350824963,), (1350824968,), (1350825045,), (1350825047,), (1350825050,), (1350825053,), (1350825078,), (1350825326,), (1350825344,), (1350825347,), (1350825359,), (1350825370,), (1350825374,), (1350825539,), (1350825576,), (1350825581,), (1350825608,), (1350825693,), (1350825975,), (1350825982,), (1350826111,), (1350826073,), (1350826078,), (1350826084,), (1350826088,), (1350826102,), (1350826243,), (1350826251,), (1350826257,), (1350826262,), (1350826267,), (1350826273,), (1350826501,), (1350826573,), (1350826651,), (1350826841,), (1350826846,), (1350826851,), (1350826868,), (1350826872,), (1350827052,), (1350827073,), (1350827117,), (1350827121,), (1350827128,), (1350827187,), (1350827252,), (1350827270,), (1350827274,), (1350827331,), (1350827334,), (1350827366,), (1350827384,), (1350827387,), (1350827400,), (1350827432,), (1350827436,), (1350827488,), (1350827514,), (1350827544,), (1350827561,), (1350827608,), (1350827612,), (1350827615,), (1350827653,), (1350827659,), (1350827663,), (1350827665,), (1350827673,), (1350827677,), (1350827723,), (1350827730,), (1350827741,), (1350827744,), (1350827753,), (1350827757,), (1350827863,), (1350827893,), (1350827903,), (1350828051,), (1350828060,), (1350828066,), (1350828087,), (1350828113,), (1350828317,), (1350828321,), (1350828327,), (1350828354,), (1350828372,), (1350828510,), (1350828519,), (1350828523,), (1350828529,), (1350828532,), (1350828598,), (1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,), (1350829103,), (1350829109,), (1350829115,), (1350829119,), (1350829141,), (1350829200,), (1350829209,), (1350829217,), (1350829222,), (1350829227,), (1350829230,), (1350829271,), (1350829275,), (1350829280,), (1350829285,), (1350829467,), (1350829470,), (1350829545,), (1350829548,), (1350829623,), (1350829638,), (1350829642,), (1350829647,), (1350829657,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09042025': {'nb_upload': 52, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22173731]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350829657, 1350829647, 1350829642, 1350829638, 1350829623, 1350829548, 1350829545] map_info['map_portfolio_photo'] : {22173731: [1350829657, 1350829647, 1350829642, 1350829638, 1350829623, 1350829548, 1350829545, 1350829470, 1350829467, 1350829285, 1350829280, 1350829275, 1350829271, 1350829230, 1350829227, 1350829222, 1350829217, 1350829209, 1350829200, 1350829141, 1350829119, 1350829115, 1350829109, 1350829103, 1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831, 1350828785, 1350828781, 1350828779, 1350828777, 1350828731, 1350828726, 1350828653, 1350828642, 1350828637, 1350828631, 1350828594, 1350828587, 1350828584]} final : True mtd_id 4302 list_pids : [1350829657, 1350829647, 1350829642, 1350829638, 1350829623, 1350829548, 1350829545] Looping around the photos to save general results len do output : 1 /22173731Didn'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, '2735678') ('4302', '22173731', '1350829657', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829647', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829642', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829638', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829623', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829548', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829545', None, None, None, None, None, '2735678') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22173731', 'None', None, None, None, None, '2735678'), ('4302', '22173731', '1350829657', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829647', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829642', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829638', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829623', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829548', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829545', None, None, None, None, None, '2735678')] time used for this insertion : 0.015279769897460938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34616708755493164 time spend to save output : 0.015473604202270508 total time spend for step 5 : 0.36164069175720215 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 (2735678) 2.16user 2.31system 0:11.90elapsed 37%CPU (0avgtext+0avgdata 158880maxresident)k 240inputs+16936outputs (1major+64106minor)pagefaults 0swaps