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 : 2451036 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 (2742578) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2742578) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22256877 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2742578'] with mtr_portfolio_ids : ['22256877'] and first list_photo_ids : [] new path : /proc/2451036/ Name: python3 Umask: 0002 State: R (running) Tgid: 2451036 Ngid: 0 Pid: 2451036 PPid: 2451034 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2451036 NSpid: 2451036 NSpgid: 2421239 NSsid: 2421239 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97868 kB VmRSS: 97868 kB RssAnon: 59812 kB RssFile: 38056 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 59 nonvoluntary_ctxt_switches: 103 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2451036', 'Ngid': '0', 'Pid': '2451036', 'PPid': '2451034', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2451036', 'NSpid': '2451036', 'NSpgid': '2421239', 'NSsid': '2421239', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97868 kB', 'VmRSS': '97868 kB', 'RssAnon': '59812 kB', 'RssFile': '38056 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '59', 'nonvoluntary_ctxt_switches': '103'} ('datou_batch_current', '2451036', '1106848', '0', '1106848', '865596', '97868', b'', 'marlene', '2742578') 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 (22256877) 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 (2742578 ) ) 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 (22256877) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351497435, 'portfolio_id': 22256877}, {'photo_id': 1351497412, 'portfolio_id': 22256877}, {'photo_id': 1351496838, 'portfolio_id': 22256877}, {'photo_id': 1351496809, 'portfolio_id': 22256877}, {'photo_id': 1351496786, 'portfolio_id': 22256877}, {'photo_id': 1351496745, 'portfolio_id': 22256877}, {'photo_id': 1351496691, 'portfolio_id': 22256877}, {'photo_id': 1351496679, 'portfolio_id': 22256877}, {'photo_id': 1351496635, 'portfolio_id': 22256877}, {'photo_id': 1351496617, 'portfolio_id': 22256877}, {'photo_id': 1351496600, 'portfolio_id': 22256877}, {'photo_id': 1351496583, 'portfolio_id': 22256877}, {'photo_id': 1351496511, 'portfolio_id': 22256877}, {'photo_id': 1351496508, 'portfolio_id': 22256877}, {'photo_id': 1351496502, 'portfolio_id': 22256877}, {'photo_id': 1351496490, 'portfolio_id': 22256877}, {'photo_id': 1351496486, 'portfolio_id': 22256877}, {'photo_id': 1351496481, 'portfolio_id': 22256877}, {'photo_id': 1351496449, 'portfolio_id': 22256877}, {'photo_id': 1351496446, 'portfolio_id': 22256877}, {'photo_id': 1351496443, 'portfolio_id': 22256877}, {'photo_id': 1351496441, 'portfolio_id': 22256877}, {'photo_id': 1351496438, 'portfolio_id': 22256877}, {'photo_id': 1351496435, 'portfolio_id': 22256877}, {'photo_id': 1351496385, 'portfolio_id': 22256877}, {'photo_id': 1351496382, 'portfolio_id': 22256877}, {'photo_id': 1351496297, 'portfolio_id': 22256877}, {'photo_id': 1351496288, 'portfolio_id': 22256877}, {'photo_id': 1351496283, 'portfolio_id': 22256877}, {'photo_id': 1351496278, 'portfolio_id': 22256877}, {'photo_id': 1351496277, 'portfolio_id': 22256877}, {'photo_id': 1351496272, 'portfolio_id': 22256877}, {'photo_id': 1351496230, 'portfolio_id': 22256877}, {'photo_id': 1351496220, 'portfolio_id': 22256877}, {'photo_id': 1351496211, 'portfolio_id': 22256877}, {'photo_id': 1351496207, 'portfolio_id': 22256877}, {'photo_id': 1351496199, 'portfolio_id': 22256877}, {'photo_id': 1351495830, 'portfolio_id': 22256877}, {'photo_id': 1351495808, 'portfolio_id': 22256877}, {'photo_id': 1351495778, 'portfolio_id': 22256877}, {'photo_id': 1351495760, 'portfolio_id': 22256877}, {'photo_id': 1351495642, 'portfolio_id': 22256877}, {'photo_id': 1351495625, 'portfolio_id': 22256877}, {'photo_id': 1351495610, 'portfolio_id': 22256877}, {'photo_id': 1351495586, 'portfolio_id': 22256877}, {'photo_id': 1351495582, 'portfolio_id': 22256877}, {'photo_id': 1351495575, 'portfolio_id': 22256877}, {'photo_id': 1351495494, 'portfolio_id': 22256877}, {'photo_id': 1351495489, 'portfolio_id': 22256877}, {'photo_id': 1351495476, 'portfolio_id': 22256877}, {'photo_id': 1351495464, 'portfolio_id': 22256877}, {'photo_id': 1351495453, 'portfolio_id': 22256877}] map_portfolio_id_photo_id: {22256877: [1351497435, 1351497412, 1351496838, 1351496809, 1351496786, 1351496745, 1351496691, 1351496679, 1351496635, 1351496617, 1351496600, 1351496583, 1351496511, 1351496508, 1351496502, 1351496490, 1351496486, 1351496481, 1351496449, 1351496446, 1351496443, 1351496441, 1351496438, 1351496435, 1351496385, 1351496382, 1351496297, 1351496288, 1351496283, 1351496278, 1351496277, 1351496272, 1351496230, 1351496220, 1351496211, 1351496207, 1351496199, 1351495830, 1351495808, 1351495778, 1351495760, 1351495642, 1351495625, 1351495610, 1351495586, 1351495582, 1351495575, 1351495494, 1351495489, 1351495476, 1351495464, 1351495453]} ##### 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.01689887046813965 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 11 08:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22256877) 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 : 22256877 get user id for portfolio 22256877 get sub ptf for main ptf 22256877, type 3726 and hashtags ['papier', 'Carton_brun', 'cartonnette', 'environnement', 'mal_croppe', 'plastique', 'kraft', 'flou', 'Teint_Dans_La_Masse', 'Carton_gris', 'metal', 'autre_refus'] 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`=22256877 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','cartonnette','environnement','mal_croppe','plastique','kraft','flou','Teint_Dans_La_Masse','Carton_gris','metal','autre_refus')) 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`=22256877 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','cartonnette','environnement','mal_croppe','plastique','kraft','flou','Teint_Dans_La_Masse','Carton_gris','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22256877, 'sub_port_id': 22256880, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725287, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 52, 59)}, 'mal_croppe': {'main_port_id': 22256877, 'sub_port_id': 22256881, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725288, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 52, 59)}, 'cartonnette': {'main_port_id': 22256877, 'sub_port_id': 22256882, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725289, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 52, 59)}, 'flou': {'main_port_id': 22256877, 'sub_port_id': 22256883, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725290, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 52, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22256877, 'sub_port_id': 22256884, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725291, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 52, 59)}, 'kraft': {'main_port_id': 22256877, 'sub_port_id': 22256885, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725292, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 52, 59)}, 'plastique': {'main_port_id': 22256877, 'sub_port_id': 22256886, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725293, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 52, 59)}, 'metal': {'main_port_id': 22256877, 'sub_port_id': 22256887, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725294, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 52, 59)}, 'autre_refus': {'main_port_id': 22256877, 'sub_port_id': 22256888, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725295, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 52, 59)}, 'papier': {'main_port_id': 22256877, 'sub_port_id': 22256889, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725296, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 52, 59)}, 'Carton_brun': {'main_port_id': 22256877, 'sub_port_id': 22256890, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725297, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 52, 59)}, 'Carton_gris': {'main_port_id': 22256877, 'sub_port_id': 22256891, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725298, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 52, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22256880 , 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=22256877 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 (22256880) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22256877) result : ((1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,)) 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 (1351496600) 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 22256881 , 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=22256877 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 (22256881) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22256877) result : ((1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,)) 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 (1351496600) 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 22256882 , 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=22256877 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 (22256882) result : ((1351496227,), (1351496394,), (1351496395,), (1351496396,), (1351496397,), (1351496494,), (1351496754,), (1351496756,), (1351496757,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22256877) result : ((1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,)) 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 (1351496600) 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 22256883 , 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=22256877 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 (22256883) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22256877) result : ((1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,)) 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 (1351496600) 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 22256884 , 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=22256877 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 (22256884) result : ((1351496222,), (1351496223,), (1351496224,), (1351496225,), (1351496387,), (1351496388,), (1351496389,), (1351496390,), (1351496488,), (1351496606,), (1351496607,), (1351496608,), (1351496715,), (1351497298,), (1351497299,), (1351497300,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22256877) result : ((1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,)) 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 (1351496600) 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 22256885 , 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=22256877 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 (22256885) result : ((1351496504,), (1351496505,), (1351496632,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22256877) result : ((1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,)) 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 (1351496600) 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 22256886 , 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=22256877 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 (22256886) result : ((1351496232,), (1351496233,), (1351496234,), (1351496311,), (1351496312,), (1351496398,), (1351496480,), (1351496500,), (1351496501,), (1351496619,), (1351496621,), (1351496622,), (1351496623,), (1351496766,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22256877) result : ((1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,)) 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 (1351496600) 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 22256887 , 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=22256877 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 (22256887) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22256877) result : ((1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,)) 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 (1351496600) 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 22256888 , 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=22256877 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 (22256888) result : ((1351496609,), (1351496721,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22256877) result : ((1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,)) 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 (1351496600) 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 22256889 , 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=22256877 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 (22256889) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22256877) result : ((1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,)) 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 (1351496600) 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 22256890 , 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=22256877 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 (22256890) result : ((1351496310,), (1351496496,), (1351496497,), (1351496498,), (1351496613,), (1351496614,), (1351496615,), (1351496675,), (1351496759,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22256877) result : ((1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,)) 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 (1351496600) 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 22256891 , 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=22256877 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 (22256891) result : ((1351496226,), (1351496392,), (1351496393,), (1351496491,), (1351496492,), (1351496493,), (1351496610,), (1351496736,), (1351496737,), (1351496738,), (1351496739,), (1351496740,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22256877) result : ((1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,)) 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 (1351496600) 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`=22256877 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','cartonnette','environnement','mal_croppe','plastique','kraft','flou','Teint_Dans_La_Masse','Carton_gris','metal','autre_refus')) 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`=22256877 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','cartonnette','environnement','mal_croppe','plastique','kraft','flou','Teint_Dans_La_Masse','Carton_gris','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22256877, 'sub_port_id': 22256892, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725299, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 53, 1)}, 'mal_croppe': {'main_port_id': 22256877, 'sub_port_id': 22256893, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725300, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 53, 1)}, 'cartonnette': {'main_port_id': 22256877, 'sub_port_id': 22256894, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725301, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 53, 1)}, 'flou': {'main_port_id': 22256877, 'sub_port_id': 22256895, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725302, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 53, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22256877, 'sub_port_id': 22256896, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725303, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 53, 1)}, 'kraft': {'main_port_id': 22256877, 'sub_port_id': 22256897, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725304, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 53, 1)}, 'plastique': {'main_port_id': 22256877, 'sub_port_id': 22256898, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725305, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 53, 1)}, 'metal': {'main_port_id': 22256877, 'sub_port_id': 22256899, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725306, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 53, 1)}, 'autre_refus': {'main_port_id': 22256877, 'sub_port_id': 22256900, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725307, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 53, 1)}, 'papier': {'main_port_id': 22256877, 'sub_port_id': 22256901, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725308, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 53, 1)}, 'Carton_brun': {'main_port_id': 22256877, 'sub_port_id': 22256902, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725309, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 53, 1)}, 'Carton_gris': {'main_port_id': 22256877, 'sub_port_id': 22256903, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725310, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 53, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22256892,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22256880 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22256893,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22256881 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22256894,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22256882 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22256895,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22256883 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22256896,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22256884 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22256897,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22256885 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22256898,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22256886 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22256899,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22256887 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22256900,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22256888 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22256901,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22256889 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22256902,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22256890 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22256903,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22256891 lien utilise dans velours : https://www.fotonower.com/velours/22256892,22256893,22256894,22256895,22256896,22256897,22256898,22256899,22256900,22256901,22256902,22256903?tags=environnement,mal_croppe,cartonnette,flou,Teint_Dans_La_Masse,kraft,plastique,metal,autre_refus,papier,Carton_brun,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22256877]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351497435, 1351497412, 1351496838, 1351496809, 1351496786, 1351496745, 1351496691, 1351496679] map_info['map_portfolio_photo'] : {22256877: [1351497435, 1351497412, 1351496838, 1351496809, 1351496786, 1351496745, 1351496691, 1351496679, 1351496635, 1351496617, 1351496600, 1351496583, 1351496511, 1351496508, 1351496502, 1351496490, 1351496486, 1351496481, 1351496449, 1351496446, 1351496443, 1351496441, 1351496438, 1351496435, 1351496385, 1351496382, 1351496297, 1351496288, 1351496283, 1351496278, 1351496277, 1351496272, 1351496230, 1351496220, 1351496211, 1351496207, 1351496199, 1351495830, 1351495808, 1351495778, 1351495760, 1351495642, 1351495625, 1351495610, 1351495586, 1351495582, 1351495575, 1351495494, 1351495489, 1351495476, 1351495464, 1351495453]} final : False mtd_id 4302 list_pids : [1351497435, 1351497412, 1351496838, 1351496809, 1351496786, 1351496745, 1351496691, 1351496679] Looping around the photos to save general results len do output : 1 /22256877. 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, '2742578') ('4302', '22256877', '1351497435', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351497412', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496838', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496809', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496786', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496745', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496691', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496679', None, None, None, None, None, '2742578') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22256877', "{'environnement': 22256880, 'mal_croppe': 22256881, 'cartonnette': 22256882, 'flou': 22256883, 'Teint_Dans_La_Masse': 22256884, 'kraft': 22256885, 'plastique': 22256886, 'metal': 22256887, 'autre_refus': 22256888, 'papier': 22256889, 'Carton_brun': 22256890, 'Carton_gris': 22256891}", None, None, None, None, '2742578'), ('4302', '22256877', '1351497435', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351497412', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496838', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496809', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496786', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496745', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496691', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496679', None, None, None, None, None, '2742578')] time used for this insertion : 0.015707015991210938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4718747138977051 time spend to save output : 0.016087770462036133 total time spend for step 1 : 0.4879624843597412 step2:final Fri Apr 11 08:00:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22256877) 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 22256877 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351495494,1351495489,1351495476,1351495464,1351495453,1351495642,1351495625,1351495610,1351495586,1351495582,1351495575,1351495830,1351495808,1351495778,1351495760,1351496230,1351496220,1351496211,1351496207,1351496199,1351496297,1351496288,1351496283,1351496278,1351496277,1351496272,1351496385,1351496382,1351496449,1351496446,1351496443,1351496441,1351496438,1351496435,1351496511,1351496508,1351496502,1351496490,1351496486,1351496481,1351496635,1351496617,1351496600,1351496583,1351496838,1351496809,1351496786,1351496745,1351496691,1351496679,1351497435,1351497412); 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([22256877]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ('0.06258302154999212',), 1351496679: ('0.06258302154999212',)} new output for save of step final : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ('0.06258302154999212',), 1351496679: ('0.06258302154999212',)} [1351497435, 1351497412, 1351496838, 1351496809, 1351496786, 1351496745, 1351496691, 1351496679] map_info['map_portfolio_photo'] : {22256877: [1351497435, 1351497412, 1351496838, 1351496809, 1351496786, 1351496745, 1351496691, 1351496679, 1351496635, 1351496617, 1351496600, 1351496583, 1351496511, 1351496508, 1351496502, 1351496490, 1351496486, 1351496481, 1351496449, 1351496446, 1351496443, 1351496441, 1351496438, 1351496435, 1351496385, 1351496382, 1351496297, 1351496288, 1351496283, 1351496278, 1351496277, 1351496272, 1351496230, 1351496220, 1351496211, 1351496207, 1351496199, 1351495830, 1351495808, 1351495778, 1351495760, 1351495642, 1351495625, 1351495610, 1351495586, 1351495582, 1351495575, 1351495494, 1351495489, 1351495476, 1351495464, 1351495453]} final : False mtd_id 4302 list_pids : [1351497435, 1351497412, 1351496838, 1351496809, 1351496786, 1351496745, 1351496691, 1351496679] Looping around the photos to save general results len do output : 8 /1351497435.Didn't retrieve data . /1351497412.Didn't retrieve data . /1351496838.Didn't retrieve data . /1351496809.Didn't retrieve data . /1351496786.Didn't retrieve data . /1351496745.Didn't retrieve data . /1351496691.Didn't retrieve data . /1351496679.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, '2742578') ('4302', '22256877', '1351497435', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351497412', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496838', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496809', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496786', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496745', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496691', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496679', None, None, None, None, None, '2742578') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22256877', '1351497435', '0.06258302154999212', None, None, None, None, '2742578'), ('4302', '22256877', '1351497412', '0.06258302154999212', None, None, None, None, '2742578'), ('4302', '22256877', '1351496838', '0.06258302154999212', None, None, None, None, '2742578'), ('4302', '22256877', '1351496809', '0.06258302154999212', None, None, None, None, '2742578'), ('4302', '22256877', '1351496786', '0.06258302154999212', None, None, None, None, '2742578'), ('4302', '22256877', '1351496745', '0.06258302154999212', None, None, None, None, '2742578'), ('4302', '22256877', '1351496691', '0.06258302154999212', None, None, None, None, '2742578'), ('4302', '22256877', '1351496679', '0.06258302154999212', None, None, None, None, '2742578')] time used for this insertion : 0.014695405960083008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06893301010131836 time spend to save output : 0.015079736709594727 total time spend for step 2 : 0.08401274681091309 step3:velours_tree Fri Apr 11 08:00:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22256877: [{'environnement': 22256880, 'mal_croppe': 22256881, 'cartonnette': 22256882, 'flou': 22256883, 'Teint_Dans_La_Masse': 22256884, 'kraft': 22256885, 'plastique': 22256886, 'metal': 22256887, 'autre_refus': 22256888, 'papier': 22256889, 'Carton_brun': 22256890, 'Carton_gris': 22256891}]} input_args_next_step : {22256877: ()} output_args : {22256877: [{'environnement': 22256880, 'mal_croppe': 22256881, 'cartonnette': 22256882, 'flou': 22256883, 'Teint_Dans_La_Masse': 22256884, 'kraft': 22256885, 'plastique': 22256886, 'metal': 22256887, 'autre_refus': 22256888, 'papier': 22256889, 'Carton_brun': 22256890, 'Carton_gris': 22256891}]} args : 22256877 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 : ({'environnement': 22256880, 'mal_croppe': 22256881, 'cartonnette': 22256882, 'flou': 22256883, 'Teint_Dans_La_Masse': 22256884, 'kraft': 22256885, 'plastique': 22256886, 'metal': 22256887, 'autre_refus': 22256888, 'papier': 22256889, 'Carton_brun': 22256890, 'Carton_gris': 22256891},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22256877) 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([22256877]) 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.3203706741333008 time spend to save output : 6.866455078125e-05 total time spend for step 3 : 0.32043933868408203 step4:send_mail_cod Fri Apr 11 08:00:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ('0.06258302154999212',), 1351496679: ('0.06258302154999212',)} input_args_next_step : {1351497435: ()} output_args : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ('0.06258302154999212',), 1351496679: ('0.06258302154999212',)} args : 1351497435 depend.output_id : 0 input_args_next_step : {1351497435: ('0.06258302154999212',), 1351497412: ()} output_args : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ('0.06258302154999212',), 1351496679: ('0.06258302154999212',)} args : 1351497412 depend.output_id : 0 input_args_next_step : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ()} output_args : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ('0.06258302154999212',), 1351496679: ('0.06258302154999212',)} args : 1351496838 depend.output_id : 0 input_args_next_step : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ()} output_args : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ('0.06258302154999212',), 1351496679: ('0.06258302154999212',)} args : 1351496809 depend.output_id : 0 input_args_next_step : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ()} output_args : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ('0.06258302154999212',), 1351496679: ('0.06258302154999212',)} args : 1351496786 depend.output_id : 0 input_args_next_step : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ()} output_args : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ('0.06258302154999212',), 1351496679: ('0.06258302154999212',)} args : 1351496745 depend.output_id : 0 input_args_next_step : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ()} output_args : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ('0.06258302154999212',), 1351496679: ('0.06258302154999212',)} args : 1351496691 depend.output_id : 0 input_args_next_step : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ('0.06258302154999212',), 1351496679: ()} output_args : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ('0.06258302154999212',), 1351496679: ('0.06258302154999212',)} args : 1351496679 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 : {22256877: [{'environnement': 22256880, 'mal_croppe': 22256881, 'cartonnette': 22256882, 'flou': 22256883, 'Teint_Dans_La_Masse': 22256884, 'kraft': 22256885, 'plastique': 22256886, 'metal': 22256887, 'autre_refus': 22256888, 'papier': 22256889, 'Carton_brun': 22256890, 'Carton_gris': 22256891}]} input_args_next_step : {1351497435: ('0.06258302154999212',), 1351497412: ('0.06258302154999212',), 1351496838: ('0.06258302154999212',), 1351496809: ('0.06258302154999212',), 1351496786: ('0.06258302154999212',), 1351496745: ('0.06258302154999212',), 1351496691: ('0.06258302154999212',), 1351496679: ('0.06258302154999212',), 22256877: ()} output_args : {22256877: [{'environnement': 22256880, 'mal_croppe': 22256881, 'cartonnette': 22256882, 'flou': 22256883, 'Teint_Dans_La_Masse': 22256884, 'kraft': 22256885, 'plastique': 22256886, 'metal': 22256887, 'autre_refus': 22256888, 'papier': 22256889, 'Carton_brun': 22256890, 'Carton_gris': 22256891}]} args : 22256877 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :9, first value : ('0.06258302154999212',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22256877) 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 (1351497435,1351497412,1351496838,1351496809,1351496786,1351496745,1351496691,1351496679) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351496679 begin to download photo : 1351496745 begin to download photo : 1351496809 begin to download photo : 1351497412 download finish for photo 1351496809 begin to download photo : 1351496838 download finish for photo 1351496745 begin to download photo : 1351496786 download finish for photo 1351496679 begin to download photo : 1351496691 download finish for photo 1351497412 begin to download photo : 1351497435 download finish for photo 1351496838 download finish for photo 1351496786 download finish for photo 1351496691 download finish for photo 1351497435 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette222568811744351260/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P22256877_11-04-2025_08_01_00.pdf 22256881 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=22256881 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222568811744351260 22256882 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=22256882 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351496227: '1744350691_1127455_1351495489_5ec43f421241f0983ee61835543a4bd2_rle_crop_3756191707_0.png', 1351496394: '1744350793_1128524_1351495625_d87aaa33e3d7060819406385da6854c9_rle_crop_3756193537_0.png', 1351496395: '1744350793_1128524_1351495610_55f9157b13ee75a7a150bc2a0b498360_rle_crop_3756193551_0.png', 1351496396: '1744350793_1128524_1351495586_e9768dfdcef89515e5cf6f4177e70d09_rle_crop_3756193568_0.png', 1351496397: '1744350793_1128524_1351495575_f6d56fb166d2a6e7789fd7260cbf8c35_rle_crop_3756193601_0.png', 1351496494: '1744350913_1129665_1351496288_622d1c29266603313069c4f3768fc19c_rle_crop_3756199915_0.png', 1351496754: '1744351032_1131283_1351496446_7ae886b5d9816b10ab19d2fd32668c09_rle_crop_3756215446_0.png', 1351496756: '1744351032_1131283_1351496441_71e650a34561caf7f928387c54da6612_rle_crop_3756215509_0.png', 1351496757: '1744351032_1131283_1351496438_dfe1ae2b1e2f467ca6aea41d741f15af_rle_crop_3756215644_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d751e4023d76fb3268b9306cf5566f36_66458954.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b71713fd28cc085e5f9743abc51c849d_55104789.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d4b01cd6b5a2576b87273baa6fcbe90f_11550503.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b9b980fa5024b653e74a008fa48afac8_34487264.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e58ffac9d477f3ed415278b366906c92_9158921.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d0ac10540430872d1d076db8e0c2761a_24893818.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/20a5f1d0889aa8b10431331f0bb27353_89304057.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9aa489bde05b38087323dfe877c9ff50_53794771.png change filename to text .imagette222568821744351260/ imagette222568821744351260/1744351032_1131283_1351496438_dfe1ae2b1e2f467ca6aea41d741f15af_rle_crop_3756215644_0.png.png imagette222568821744351260/1744350793_1128524_1351495610_55f9157b13ee75a7a150bc2a0b498360_rle_crop_3756193551_0.png.png imagette222568821744351260/1744350793_1128524_1351495625_d87aaa33e3d7060819406385da6854c9_rle_crop_3756193537_0.png.png imagette222568821744351260/1744350793_1128524_1351495575_f6d56fb166d2a6e7789fd7260cbf8c35_rle_crop_3756193601_0.png.png imagette222568821744351260/1744351032_1131283_1351496446_7ae886b5d9816b10ab19d2fd32668c09_rle_crop_3756215446_0.png.png imagette222568821744351260/1744350691_1127455_1351495489_5ec43f421241f0983ee61835543a4bd2_rle_crop_3756191707_0.png.png imagette222568821744351260/1744350913_1129665_1351496288_622d1c29266603313069c4f3768fc19c_rle_crop_3756199915_0.png.png imagette222568821744351260/1744350793_1128524_1351495586_e9768dfdcef89515e5cf6f4177e70d09_rle_crop_3756193568_0.png.png imagette222568821744351260/1744351032_1131283_1351496441_71e650a34561caf7f928387c54da6612_rle_crop_3756215509_0.png.png imagette222568831744351260/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8bca2657274ec27ecbafe664238cff00_41611687.png imagette222568821744351260 22256883 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=22256883 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222568831744351260 22256885 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=22256885 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351496504: '1744350913_1129665_1351496283_8d4f66594ef5e90b198c601e7f38272e_rle_crop_3756202533_0.png', 1351496505: '1744350913_1129665_1351496278_0d82be0ff0000c034595e0bf63489423_rle_crop_3756202719_0.png', 1351496632: '1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212301_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3273b60b814f3277b579d6182acb8a41_87447046.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a783cffab359e3539ff5f669d66fd6f0_44105152.png change filename to text .imagette222568851744351260/ imagette222568851744351260/1744350913_1129665_1351496283_8d4f66594ef5e90b198c601e7f38272e_rle_crop_3756202533_0.png.png imagette222568851744351260/1744350913_1129665_1351496278_0d82be0ff0000c034595e0bf63489423_rle_crop_3756202719_0.png.png imagette222568851744351260/1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212301_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/bc58ec650123bb2e9e9fd47c1a4ff7e6_19897379.png imagette222568851744351260 22256886 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=22256886 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351496232: '1744350691_1127455_1351495494_afc360260ee2c69239331be8e91c15a2_rle_crop_3756191701_0.png', 1351496233: '1744350691_1127455_1351495464_860f47fca6ea4205705696f095b87579_rle_crop_3756191729_0.png', 1351496234: '1744350691_1127455_1351495453_27e520513075cadee72cc5dff3cacb05_rle_crop_3756191742_0.png', 1351496311: '1744350807_1409549_1351495760_b319edfb392018df805e1678bbea0a49_rle_crop_3756193514_0.png', 1351496312: '1744350807_1409549_1351495760_b319edfb392018df805e1678bbea0a49_rle_crop_3756193521_0.png', 1351496398: '1744350793_1128524_1351495830_d4cd2187af6db75170d6e0cf2755ceea_rle_crop_3756193530_0.png', 1351496480: '1744350932_1129882_1351496230_89d444201fc4d737c9fa5c2cd88ead10_rle_crop_3756202757_0.png', 1351496500: '1744350913_1129665_1351496288_622d1c29266603313069c4f3768fc19c_rle_crop_3756199916_0.png', 1351496501: '1744350913_1129665_1351496272_543795d50280e9b77be702326580aad9_rle_crop_3756202807_0.png', 1351496619: '1744350953_1130154_1351496297_90cfe8d8d3af410e66af70990bc47e3c_rle_crop_3756208454_0.png', 1351496621: '1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212307_0.png', 1351496622: '1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212309_0.png', 1351496623: '1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212305_0.png', 1351496766: '1744351032_1131283_1351496441_71e650a34561caf7f928387c54da6612_rle_crop_3756215516_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b4368c49d12fe889236a61bdc6c9731d_38536427.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d6b4453a5d21acc6f05f9711471b4332_20723130.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e6be1c1574aca845145cb8af30a74db7_7669189.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ca9f4e5511e7ae7c8f8b49732b264511_46400105.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5a85d24d424ce8eed6ca98ee1334d119_41204568.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/45fabc2f81e138a39cdc9b76843132c8_27770833.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0106a550d3c915ae1de51eabe973461b_52342488.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/84fe9cecaeeeae878cedd39b9821cbf7_73265461.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/4bd9947e6c7c55eb73935d2a11857b48_33034486.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6b341f899f2dbddde0bd099913e5e990_35209758.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e244c662c3c179e3b20a6656441a34f1_46759423.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8acc178a66c3784178933c5f55a041e1_45143000.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/4947a4cd0b242a0314377471de171262_49217161.png change filename to text .imagette222568861744351260/ imagette222568861744351260/1744350953_1130154_1351496297_90cfe8d8d3af410e66af70990bc47e3c_rle_crop_3756208454_0.png.png imagette222568861744351260/1744350807_1409549_1351495760_b319edfb392018df805e1678bbea0a49_rle_crop_3756193521_0.png.png imagette222568861744351260/1744350913_1129665_1351496288_622d1c29266603313069c4f3768fc19c_rle_crop_3756199916_0.png.png imagette222568861744351260/1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212309_0.png.png imagette222568861744351260/1744350913_1129665_1351496272_543795d50280e9b77be702326580aad9_rle_crop_3756202807_0.png.png imagette222568861744351260/1744350691_1127455_1351495464_860f47fca6ea4205705696f095b87579_rle_crop_3756191729_0.png.png imagette222568861744351260/1744350691_1127455_1351495494_afc360260ee2c69239331be8e91c15a2_rle_crop_3756191701_0.png.png imagette222568861744351260/1744350793_1128524_1351495830_d4cd2187af6db75170d6e0cf2755ceea_rle_crop_3756193530_0.png.png imagette222568861744351260/1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212305_0.png.png imagette222568861744351260/1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212307_0.png.png imagette222568861744351260/1744350807_1409549_1351495760_b319edfb392018df805e1678bbea0a49_rle_crop_3756193514_0.png.png imagette222568861744351260/1744350932_1129882_1351496230_89d444201fc4d737c9fa5c2cd88ead10_rle_crop_3756202757_0.png.png imagette222568861744351260/1744350691_1127455_1351495453_27e520513075cadee72cc5dff3cacb05_rle_crop_3756191742_0.png.png imagette222568861744351260/1744351032_1131283_1351496441_71e650a34561caf7f928387c54da6612_rle_crop_3756215516_0.png.png imagette222568871744351261/ wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/844b374b1cd6950fc90d2bb0aa81211a_51744784.png imagette222568861744351260 22256887 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=22256887 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222568871744351261 22256888 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=22256888 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351496609: '1744350953_1130154_1351496297_90cfe8d8d3af410e66af70990bc47e3c_rle_crop_3756208460_0.png', 1351496721: '1744351032_1131283_1351496441_71e650a34561caf7f928387c54da6612_rle_crop_3756215510_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/22cc7d2a5a141ea11be1b4522759ee7e_10165642.png change filename to text .imagette222568881744351261/ imagette222568881744351261/1744351032_1131283_1351496441_71e650a34561caf7f928387c54da6612_rle_crop_3756215510_0.png.png imagette222568881744351261/1744350953_1130154_1351496297_90cfe8d8d3af410e66af70990bc47e3c_rle_crop_3756208460_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a95a66c4a62ce5b7a6b874a6e03bc689_4672144.png imagette222568881744351261 22256884 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=22256884 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351496222: '1744350691_1127455_1351495494_afc360260ee2c69239331be8e91c15a2_rle_crop_3756191702_0.png', 1351496223: '1744350691_1127455_1351495489_5ec43f421241f0983ee61835543a4bd2_rle_crop_3756191715_0.png', 1351496224: '1744350691_1127455_1351495464_860f47fca6ea4205705696f095b87579_rle_crop_3756191733_0.png', 1351496225: '1744350691_1127455_1351495453_27e520513075cadee72cc5dff3cacb05_rle_crop_3756191744_0.png', 1351496387: '1744350793_1128524_1351495625_d87aaa33e3d7060819406385da6854c9_rle_crop_3756193543_0.png', 1351496388: '1744350793_1128524_1351495625_d87aaa33e3d7060819406385da6854c9_rle_crop_3756193539_0.png', 1351496389: '1744350793_1128524_1351495610_55f9157b13ee75a7a150bc2a0b498360_rle_crop_3756193553_0.png', 1351496390: '1744350793_1128524_1351495586_e9768dfdcef89515e5cf6f4177e70d09_rle_crop_3756193571_0.png', 1351496488: '1744350913_1129665_1351496283_8d4f66594ef5e90b198c601e7f38272e_rle_crop_3756202528_0.png', 1351496606: '1744350953_1130154_1351496297_90cfe8d8d3af410e66af70990bc47e3c_rle_crop_3756208456_0.png', 1351496607: '1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212308_0.png', 1351496608: '1744350953_1130154_1351496199_976f536a6cffef5d061efc8fcb6eac0b_rle_crop_3756212323_0.png', 1351496715: '1744351032_1131283_1351496435_68c813416f7f2b884095fff7df4e2eb0_rle_crop_3756218319_0.png', 1351497298: '1744351153_1132382_1351496600_73b2fcb9eac49f70e4780f64dfdd77c2_rle_crop_3756218513_0.png', 1351497299: '1744351153_1132382_1351496583_2c43092c107165752d49169516cfefc9_rle_crop_3756218524_0.png', 1351497300: '1744351153_1132382_1351496583_2c43092c107165752d49169516cfefc9_rle_crop_3756218520_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/34637a61b6b0abc4feb106850c43cdfe_95245260.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/065a43b2f05291f6e8b63a1ff2c24cd6_33738951.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6aec0d8e3ad56d2ffc170766febec422_82439783.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/653a0d24eb2fea04c4d186e3742a66a0_27189678.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c1514b9108ec49c80a9d3677db138c7e_49929169.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0d441907c794a0a757f012239daf98c2_89453736.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/59055374d14b4eb2f0ab6e0e2add5fcc_95530337.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f2f8a598b324863e5ed665f96835d2b2_39523246.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d289163e9c79fa77bd509ce6c81f219f_91997810.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f9dda68c212f71d26264a013c3581be5_50553046.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/652d71c43b8095a50401ce70526cbb53_48411188.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3512df5fbaa08faa0e5546079e58a194_42302142.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/acd60fb0f18f53f40ce09d268b5ab7b5_52594605.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a0827765f7205a88611b16cf1647e597_17236118.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b23e06d9e0f673ac326d72a9da01fdee_99961208.png change filename to text .imagette222568841744351261/ imagette222568841744351261/1744351153_1132382_1351496600_73b2fcb9eac49f70e4780f64dfdd77c2_rle_crop_3756218513_0.png.png imagette222568841744351261/1744350691_1127455_1351495464_860f47fca6ea4205705696f095b87579_rle_crop_3756191733_0.png.png imagette222568841744351261/1744350953_1130154_1351496297_90cfe8d8d3af410e66af70990bc47e3c_rle_crop_3756208456_0.png.png imagette222568841744351261/1744351153_1132382_1351496583_2c43092c107165752d49169516cfefc9_rle_crop_3756218520_0.png.png imagette222568841744351261/1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212308_0.png.png imagette222568841744351261/1744350793_1128524_1351495610_55f9157b13ee75a7a150bc2a0b498360_rle_crop_3756193553_0.png.png imagette222568841744351261/1744350691_1127455_1351495494_afc360260ee2c69239331be8e91c15a2_rle_crop_3756191702_0.png.png imagette222568841744351261/1744351032_1131283_1351496435_68c813416f7f2b884095fff7df4e2eb0_rle_crop_3756218319_0.png.png imagette222568841744351261/1744350953_1130154_1351496199_976f536a6cffef5d061efc8fcb6eac0b_rle_crop_3756212323_0.png.png imagette222568841744351261/1744350793_1128524_1351495625_d87aaa33e3d7060819406385da6854c9_rle_crop_3756193539_0.png.png imagette222568841744351261/1744350691_1127455_1351495453_27e520513075cadee72cc5dff3cacb05_rle_crop_3756191744_0.png.png imagette222568841744351261/1744350913_1129665_1351496283_8d4f66594ef5e90b198c601e7f38272e_rle_crop_3756202528_0.png.png imagette222568841744351261/1744350793_1128524_1351495586_e9768dfdcef89515e5cf6f4177e70d09_rle_crop_3756193571_0.png.png imagette222568841744351261/1744351153_1132382_1351496583_2c43092c107165752d49169516cfefc9_rle_crop_3756218524_0.png.png imagette222568841744351261/1744350793_1128524_1351495625_d87aaa33e3d7060819406385da6854c9_rle_crop_3756193543_0.png.png imagette222568841744351261/1744350691_1127455_1351495489_5ec43f421241f0983ee61835543a4bd2_rle_crop_3756191715_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2a700d828da493ab141fb33ea4a9fb8f_34530582.png imagette222568841744351261 22256890 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=22256890 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351496310: '1744350807_1409549_1351495760_b319edfb392018df805e1678bbea0a49_rle_crop_3756193512_0.png', 1351496496: '1744350913_1129665_1351496283_8d4f66594ef5e90b198c601e7f38272e_rle_crop_3756202529_0.png', 1351496497: '1744350913_1129665_1351496278_0d82be0ff0000c034595e0bf63489423_rle_crop_3756202715_0.png', 1351496498: '1744350913_1129665_1351496277_04fbaf681c71a6307b48fab51e6b57c8_rle_crop_3756202799_0.png', 1351496613: '1744350953_1130154_1351496211_74962f5e697b75f1ceaa22e02a2228b8_rle_crop_3756211806_0.png', 1351496614: '1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212312_0.png', 1351496615: '1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212303_0.png', 1351496675: '1744351046_1415717_1351496382_6658f5c55b927ec5df6af15049d27812_rle_crop_3756215388_0.png', 1351496759: '1744351032_1131283_1351496441_71e650a34561caf7f928387c54da6612_rle_crop_3756215515_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/013c1e2027679a2c4a3183c2cb751bea_44482593.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d24da7aff24515304ff24bfe1941a3a1_80573416.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2d33d27b3847f6d892812dc89a6e7b9e_23154683.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c3edb88e4d25716b3941e03346c3ea58_78280689.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/77787a55d704fe8cb57a42e293b6295c_85387230.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/cc9e8bac1dd665a6cd4e0759f2a18c32_45543447.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e25af94d73b3bdc8d6ac12a0f7322d0d_37692149.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/bb929f42e6ee3e297cd517f577e2e757_43356794.png change filename to text .imagette222568901744351262/ imagette222568901744351262/1744350953_1130154_1351496211_74962f5e697b75f1ceaa22e02a2228b8_rle_crop_3756211806_0.png.png imagette222568901744351262/1744350913_1129665_1351496277_04fbaf681c71a6307b48fab51e6b57c8_rle_crop_3756202799_0.png.png imagette222568901744351262/1744350807_1409549_1351495760_b319edfb392018df805e1678bbea0a49_rle_crop_3756193512_0.png.png imagette222568901744351262/1744351046_1415717_1351496382_6658f5c55b927ec5df6af15049d27812_rle_crop_3756215388_0.png.png imagette222568901744351262/1744351032_1131283_1351496441_71e650a34561caf7f928387c54da6612_rle_crop_3756215515_0.png.png imagette222568901744351262/1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212312_0.png.png imagette222568901744351262/1744350913_1129665_1351496278_0d82be0ff0000c034595e0bf63489423_rle_crop_3756202715_0.png.png imagette222568901744351262/1744350913_1129665_1351496283_8d4f66594ef5e90b198c601e7f38272e_rle_crop_3756202529_0.png.png imagette222568901744351262/1744350953_1130154_1351496207_528c54b491466f378f87038b8c5f5196_rle_crop_3756212303_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1649adbe0d43942371505938f906bea4_12508220.png imagette222568901744351262 22256891 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=22256891 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351496226: '1744350691_1127455_1351495489_5ec43f421241f0983ee61835543a4bd2_rle_crop_3756191705_0.png', 1351496392: '1744350793_1128524_1351495830_d4cd2187af6db75170d6e0cf2755ceea_rle_crop_3756193528_0.png', 1351496393: '1744350793_1128524_1351495582_0f5b47e681f43701b745332a52f0c144_rle_crop_3756193585_0.png', 1351496491: '1744350913_1129665_1351496288_622d1c29266603313069c4f3768fc19c_rle_crop_3756199914_0.png', 1351496492: '1744350913_1129665_1351496283_8d4f66594ef5e90b198c601e7f38272e_rle_crop_3756202530_0.png', 1351496493: '1744350913_1129665_1351496278_0d82be0ff0000c034595e0bf63489423_rle_crop_3756202717_0.png', 1351496610: '1744350953_1130154_1351496211_74962f5e697b75f1ceaa22e02a2228b8_rle_crop_3756211800_0.png', 1351496736: '1744351032_1131283_1351496446_7ae886b5d9816b10ab19d2fd32668c09_rle_crop_3756215444_0.png', 1351496737: '1744351032_1131283_1351496446_7ae886b5d9816b10ab19d2fd32668c09_rle_crop_3756215445_0.png', 1351496738: '1744351032_1131283_1351496443_c451a750a2a2fbe9aadefffdd64f68c2_rle_crop_3756215500_0.png', 1351496739: '1744351032_1131283_1351496441_71e650a34561caf7f928387c54da6612_rle_crop_3756215512_0.png', 1351496740: '1744351032_1131283_1351496435_68c813416f7f2b884095fff7df4e2eb0_rle_crop_3756218322_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b181e2d4a8e561ec88ca66015407d2fb_53012341.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/60abcb9d54ab8ccf689874d71cf3d59f_71879963.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d18f1869e472f0dd6402a0b7082a987e_41561195.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/cdb3d13e1e280ed97f1e6b59eb15c932_86279301.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/005081f6de6dad41fcf5ab9e55f6d167_11843944.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2554aefd53e4881240acc6ce0882d4af_74140819.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8125a474d9ba332179a51e3e48608f77_10657047.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f7aa7aa8adc192d034e3a8755968b6ec_75995658.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8a0f641e6d2881f74a6123aa7bf25ea6_32652731.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5545705ee1bd8eab6f97df8713a9a611_39207179.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/19f2fd8503f4358e5cb3fcd6afd7c642_51849414.png change filename to text .imagette222568911744351263/ imagette222568911744351263/1744351032_1131283_1351496443_c451a750a2a2fbe9aadefffdd64f68c2_rle_crop_3756215500_0.png.png imagette222568911744351263/1744350793_1128524_1351495582_0f5b47e681f43701b745332a52f0c144_rle_crop_3756193585_0.png.png imagette222568911744351263/1744350793_1128524_1351495830_d4cd2187af6db75170d6e0cf2755ceea_rle_crop_3756193528_0.png.png imagette222568911744351263/1744351032_1131283_1351496441_71e650a34561caf7f928387c54da6612_rle_crop_3756215512_0.png.png imagette222568911744351263/1744351032_1131283_1351496446_7ae886b5d9816b10ab19d2fd32668c09_rle_crop_3756215445_0.png.png imagette222568911744351263/1744350913_1129665_1351496278_0d82be0ff0000c034595e0bf63489423_rle_crop_3756202717_0.png.png imagette222568911744351263/1744351032_1131283_1351496435_68c813416f7f2b884095fff7df4e2eb0_rle_crop_3756218322_0.png.png imagette222568911744351263/1744351032_1131283_1351496446_7ae886b5d9816b10ab19d2fd32668c09_rle_crop_3756215444_0.png.png imagette222568911744351263/1744350691_1127455_1351495489_5ec43f421241f0983ee61835543a4bd2_rle_crop_3756191705_0.png.png imagette222568911744351263/1744350913_1129665_1351496283_8d4f66594ef5e90b198c601e7f38272e_rle_crop_3756202530_0.png.png imagette222568911744351263/1744350953_1130154_1351496211_74962f5e697b75f1ceaa22e02a2228b8_rle_crop_3756211800_0.png.png imagette222568911744351263/1744350913_1129665_1351496288_622d1c29266603313069c4f3768fc19c_rle_crop_3756199914_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/104a4b6aa620235ee2ef7ed36bd6df7d_37482539.png imagette222568911744351263 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22256877 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22256892,22256893,22256894,22256895,22256896,22256897,22256898,22256899,22256900,22256901,22256902,22256903?tags=environnement,mal_croppe,cartonnette,flou,Teint_Dans_La_Masse,kraft,plastique,metal,autre_refus,papier,Carton_brun,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1351497435] : ('0.06258302154999212',) no score found for photo 1351497435 We are sending mail with results at report@fotonower.com args[1351497412] : ('0.06258302154999212',) no score found for photo 1351497412 We are sending mail with results at report@fotonower.com args[1351496838] : ('0.06258302154999212',) no score found for photo 1351496838 We are sending mail with results at report@fotonower.com args[1351496809] : ('0.06258302154999212',) no score found for photo 1351496809 We are sending mail with results at report@fotonower.com args[1351496786] : ('0.06258302154999212',) no score found for photo 1351496786 We are sending mail with results at report@fotonower.com args[1351496745] : ('0.06258302154999212',) no score found for photo 1351496745 We are sending mail with results at report@fotonower.com args[1351496691] : ('0.06258302154999212',) no score found for photo 1351496691 We are sending mail with results at report@fotonower.com args[1351496679] : ('0.06258302154999212',) no score found for photo 1351496679 We are sending mail with results at report@fotonower.com refus_total : 0.06258302154999212 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=22256877 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_P22256877_11-04-2025_08_01_00.pdf results_Auto_P22256877_11-04-2025_08_01_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22256877_11-04-2025_08_01_00.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','22256877','results_Auto_P22256877_11-04-2025_08_01_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22256877_11-04-2025_08_01_00.pdf','pdf','','0.27','0.06258302154999212') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22256877]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351497435, 1351497412, 1351496838, 1351496809, 1351496786, 1351496745, 1351496691, 1351496679] map_info['map_portfolio_photo'] : {22256877: [1351497435, 1351497412, 1351496838, 1351496809, 1351496786, 1351496745, 1351496691, 1351496679, 1351496635, 1351496617, 1351496600, 1351496583, 1351496511, 1351496508, 1351496502, 1351496490, 1351496486, 1351496481, 1351496449, 1351496446, 1351496443, 1351496441, 1351496438, 1351496435, 1351496385, 1351496382, 1351496297, 1351496288, 1351496283, 1351496278, 1351496277, 1351496272, 1351496230, 1351496220, 1351496211, 1351496207, 1351496199, 1351495830, 1351495808, 1351495778, 1351495760, 1351495642, 1351495625, 1351495610, 1351495586, 1351495582, 1351495575, 1351495494, 1351495489, 1351495476, 1351495464, 1351495453]} final : False mtd_id 4302 list_pids : [1351497435, 1351497412, 1351496838, 1351496809, 1351496786, 1351496745, 1351496691, 1351496679] 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, '2742578') ('4302', '22256877', '1351497435', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351497412', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496838', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496809', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496786', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496745', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496691', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496679', None, None, None, None, None, '2742578') 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', '22256877', '1351497435', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351497412', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496838', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496809', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496786', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496745', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496691', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496679', None, None, None, None, None, '2742578')] time used for this insertion : 0.012759208679199219 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.164813995361328 time spend to save output : 0.013048171997070312 total time spend for step 4 : 8.177862167358398 step5:split_time_score Fri Apr 11 08:01: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 : ['22256877'] 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 : [('22256877',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22256877) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351496809: {'path': 'temp/1744351259_2451036_1351496809_cb7dfbe6a83960ee67f812c73d04ea7e.jpg', 'extension': 'jpg'}, 1351496838: {'path': 'temp/1744351259_2451036_1351496838_7e291bcff277d5bea7d164d199bfc137.jpg', 'extension': 'jpg'}, 1351496745: {'path': 'temp/1744351259_2451036_1351496745_be89388ba9fe5ee39225054d9fa720eb.jpg', 'extension': 'jpg'}, 1351496786: {'path': 'temp/1744351259_2451036_1351496786_632f0355c6fc7fa46491cddf9075aa81.jpg', 'extension': 'jpg'}, 1351496679: {'path': 'temp/1744351259_2451036_1351496679_0a3c2043dfa99ba8872b80c0c9063f6d.jpg', 'extension': 'jpg'}, 1351496691: {'path': 'temp/1744351259_2451036_1351496691_33ebbb6cfbb11e13ec9f2979c8d757b4.jpg', 'extension': 'jpg'}, 1351497412: {'path': 'temp/1744351259_2451036_1351497412_6e1ad16f29438be6bd4497b0e03243db.jpg', 'extension': 'jpg'}, 1351497435: {'path': 'temp/1744351259_2451036_1351497435_2dfabf90906e788eac7028925d6b0bda.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 = 22256877; (('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 = 22256877 group by h (('07', 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=22256877 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 (22256877) 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 (22256877) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11042025 22256877 Nombre de photos uploadées : 52 / 23040 (0%) 11042025 22256877 Nombre de photos taguées (types de déchets): 0 / 52 (0%) 11042025 22256877 Nombre de photos taguées (volume) : 0 / 52 (0%) [{'photo_id': 1351495494, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/afc360260ee2c69239331be8e91c15a2.jpg', 'username': None, 'uploaded_at': 1744350547, 'text': 'image_11042025_07_48_04_10145.jpg'}, {'photo_id': 1351495489, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5ec43f421241f0983ee61835543a4bd2.jpg', 'username': None, 'uploaded_at': 1744350547, 'text': 'image_11042025_07_48_14_10138.jpg'}, {'photo_id': 1351495476, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/04f734ea4714af9fed1b6fbb9bb7dcd0.jpg', 'username': None, 'uploaded_at': 1744350547, 'text': 'image_11042025_07_48_24_10135.jpg'}, {'photo_id': 1351495464, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/860f47fca6ea4205705696f095b87579.jpg', 'username': None, 'uploaded_at': 1744350547, 'text': 'image_11042025_07_48_33_9127.jpg'}] 0 [] elapsed_time : load_data_split_time_score 7.62939453125e-06 elapsed_time : order_list_meta_photo_and_scores 1.9073486328125e-05 ???????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025856494903564453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22256877, '2025-04-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1733453,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02233719825744629 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= 1733453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742217, 'mtr_portfolio_id': 22255333, 'dashboard_result_id': 10013042, '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_P22255333_11-04-2025_07_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22255336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22255337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22255338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22255339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22255340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22255341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22255342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22255343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22255344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22255345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22255346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22255347, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742217, 'mtr_portfolio_id': 22255996, 'dashboard_result_id': 10013043, '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_P22255996_11-04-2025_07_50_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256064, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742217, 'mtr_portfolio_id': 22256877, 'dashboard_result_id': 10013044, '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_P22256877_11-04-2025_07_59_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256891, '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 = 22255333 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': 2742462, 'mtr_portfolio_id': 22255333, 'created_at': datetime.datetime(2025, 4, 11, 7, 33), 'result': '0.060143392302330116', 'result_long': None, 'result_double': None}] Qualite : 0.060143392302330116 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22255333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255333_11-04-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22255333 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_P22255333_11-04-2025_07_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22255336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22255337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22255338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22255339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22255340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22255341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22255342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22255343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22255344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22255345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22255346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22255347, 'pht': 3726}}" where mtr_portfolio_id = 22255333 and dashboard_run_id = 1742217 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`=22255333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10013042, 0.060143392302330116, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255333_11-04-2025_07_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22255336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22255337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22255338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22255339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22255340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22255341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22255342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22255343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22255344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22255345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22255346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22255347, '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 = 22255996 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': 2742518, 'mtr_portfolio_id': 22255996, 'created_at': datetime.datetime(2025, 4, 11, 7, 50, 59), 'result': '0.056899860998053525', 'result_long': None, 'result_double': None}] Qualite : 0.056899860998053525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22255996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255996_11-04-2025_07_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22255996 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_P22255996_11-04-2025_07_50_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256064, 'pht': 3726}}" where mtr_portfolio_id = 22255996 and dashboard_run_id = 1742217 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`=22255996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10013043, 0.056899860998053525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255996_11-04-2025_07_50_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256064, '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 = 22256877 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': 2742578, 'mtr_portfolio_id': 22256877, 'created_at': datetime.datetime(2025, 4, 11, 8, 0, 59), 'result': '0.06258302154999212', 'result_long': None, 'result_double': None}] Qualite : 0.06258302154999212 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22256877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22256877_11-04-2025_08_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22256877 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_P22256877_11-04-2025_08_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256891, 'pht': 3726}}" where mtr_portfolio_id = 22256877 and dashboard_run_id = 1742217 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`=22256877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10013044, 0.06258302154999212, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22256877_11-04-2025_08_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256891, '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 (22255333,22255996,22256877) result : ((1351488319,), (1351488373,), (1351488413,), (1351488716,), (1351488732,), (1351488993,), (1351489031,), (1351489439,), (1351489488,), (1351489791,), (1351490157,), (1351490176,), (1351490276,), (1351490294,), (1351490301,), (1351490308,), (1351490312,), (1351490367,), (1351490373,), (1351490407,), (1351490417,), (1351490603,), (1351490628,), (1351490650,), (1351490681,), (1351490690,), (1351490708,), (1351491049,), (1351491065,), (1351491073,), (1351491092,), (1351491111,), (1351491278,), (1351491331,), (1351491353,), (1351491375,), (1351491390,), (1351491526,), (1351491530,), (1351491575,), (1351491606,), (1351491640,), (1351491725,), (1351491740,), (1351492099,), (1351492119,), (1351492184,), (1351492430,), (1351492425,), (1351492562,), (1351492571,), (1351492575,), (1351492582,), (1351492586,), (1351492612,), (1351492615,), (1351492630,), (1351492634,), (1351492638,), (1351492751,), (1351492779,), (1351492782,), (1351492785,), (1351492921,), (1351492934,), (1351492957,), (1351493001,), (1351493032,), (1351493040,), (1351493200,), (1351493234,), (1351493307,), (1351493331,), (1351493431,), (1351493445,), (1351493451,), (1351493471,), (1351493474,), (1351493480,), (1351493536,), (1351493554,), (1351493560,), (1351493564,), (1351493722,), (1351493746,), (1351493755,), (1351493775,), (1351493793,), (1351493804,), (1351493857,), (1351493860,), (1351493863,), (1351493884,), (1351493920,), (1351493946,), (1351494136,), (1351494138,), (1351494210,), (1351494215,), (1351494255,), (1351494342,), (1351494347,), (1351494351,), (1351494354,), (1351494359,), (1351494374,), (1351494533,), (1351494546,), (1351494562,), (1351494605,), (1351494612,), (1351494838,), (1351494876,), (1351494956,), (1351495499,), (1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11042025': {'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([22256877]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351497435, 1351497412, 1351496838, 1351496809, 1351496786, 1351496745, 1351496691, 1351496679] map_info['map_portfolio_photo'] : {22256877: [1351497435, 1351497412, 1351496838, 1351496809, 1351496786, 1351496745, 1351496691, 1351496679, 1351496635, 1351496617, 1351496600, 1351496583, 1351496511, 1351496508, 1351496502, 1351496490, 1351496486, 1351496481, 1351496449, 1351496446, 1351496443, 1351496441, 1351496438, 1351496435, 1351496385, 1351496382, 1351496297, 1351496288, 1351496283, 1351496278, 1351496277, 1351496272, 1351496230, 1351496220, 1351496211, 1351496207, 1351496199, 1351495830, 1351495808, 1351495778, 1351495760, 1351495642, 1351495625, 1351495610, 1351495586, 1351495582, 1351495575, 1351495494, 1351495489, 1351495476, 1351495464, 1351495453]} final : True mtd_id 4302 list_pids : [1351497435, 1351497412, 1351496838, 1351496809, 1351496786, 1351496745, 1351496691, 1351496679] Looping around the photos to save general results len do output : 1 /22256877Didn'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, '2742578') ('4302', '22256877', '1351497435', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351497412', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496838', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496809', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496786', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496745', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496691', None, None, None, None, None, '2742578') ('4302', None, None, None, None, None, None, None, '2742578') ('4302', '22256877', '1351496679', None, None, None, None, None, '2742578') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22256877', 'None', None, None, None, None, '2742578'), ('4302', '22256877', '1351497435', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351497412', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496838', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496809', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496786', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496745', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496691', None, None, None, None, None, '2742578'), ('4302', '22256877', '1351496679', None, None, None, None, None, '2742578')] time used for this insertion : 0.014868736267089844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3685038089752197 time spend to save output : 0.015346527099609375 total time spend for step 5 : 0.3838503360748291 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 (2742578) 2.46user 2.19system 0:13.74elapsed 33%CPU (0avgtext+0avgdata 158304maxresident)k 112inputs+14128outputs (17major+74778minor)pagefaults 0swaps