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 : 3706036 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 (2810664) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2810664) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813765 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2810664'] with mtr_portfolio_ids : ['22813765'] and first list_photo_ids : [] new path : /proc/3706036/ Name: python3 Umask: 0002 State: R (running) Tgid: 3706036 Ngid: 0 Pid: 3706036 PPid: 3706035 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3706036 NSpid: 3706036 NSpgid: 3702839 NSsid: 3702839 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98340 kB VmRSS: 98340 kB RssAnon: 60196 kB RssFile: 38144 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3706036', 'Ngid': '0', 'Pid': '3706036', 'PPid': '3706035', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3706036', 'NSpid': '3706036', 'NSpgid': '3702839', 'NSsid': '3702839', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98340 kB', 'VmRSS': '98340 kB', 'RssAnon': '60196 kB', 'RssFile': '38144 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '53', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '3706036', '1107228', '0', '1107228', '865976', '98340', b'', 'marlene', '2810664') 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 (22813765) 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 (2810664 ) ) 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 (22813765) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1357136225, 'portfolio_id': 22813765}, {'photo_id': 1357136222, 'portfolio_id': 22813765}, {'photo_id': 1357136220, 'portfolio_id': 22813765}, {'photo_id': 1357136177, 'portfolio_id': 22813765}, {'photo_id': 1357136174, 'portfolio_id': 22813765}, {'photo_id': 1357136172, 'portfolio_id': 22813765}, {'photo_id': 1357136170, 'portfolio_id': 22813765}, {'photo_id': 1357136166, 'portfolio_id': 22813765}, {'photo_id': 1357136062, 'portfolio_id': 22813765}, {'photo_id': 1357136055, 'portfolio_id': 22813765}, {'photo_id': 1357136040, 'portfolio_id': 22813765}, {'photo_id': 1357136023, 'portfolio_id': 22813765}, {'photo_id': 1357136019, 'portfolio_id': 22813765}, {'photo_id': 1357135966, 'portfolio_id': 22813765}, {'photo_id': 1357135955, 'portfolio_id': 22813765}, {'photo_id': 1357135946, 'portfolio_id': 22813765}, {'photo_id': 1357135943, 'portfolio_id': 22813765}, {'photo_id': 1357135937, 'portfolio_id': 22813765}, {'photo_id': 1357135888, 'portfolio_id': 22813765}, {'photo_id': 1357135864, 'portfolio_id': 22813765}, {'photo_id': 1357135836, 'portfolio_id': 22813765}, {'photo_id': 1357135809, 'portfolio_id': 22813765}, {'photo_id': 1357135624, 'portfolio_id': 22813765}, {'photo_id': 1357135620, 'portfolio_id': 22813765}, {'photo_id': 1357135618, 'portfolio_id': 22813765}, {'photo_id': 1357135616, 'portfolio_id': 22813765}, {'photo_id': 1357135612, 'portfolio_id': 22813765}, {'photo_id': 1357135562, 'portfolio_id': 22813765}, {'photo_id': 1357135534, 'portfolio_id': 22813765}, {'photo_id': 1357135523, 'portfolio_id': 22813765}, {'photo_id': 1357135500, 'portfolio_id': 22813765}, {'photo_id': 1357135245, 'portfolio_id': 22813765}, {'photo_id': 1357135243, 'portfolio_id': 22813765}, {'photo_id': 1357135239, 'portfolio_id': 22813765}, {'photo_id': 1357135237, 'portfolio_id': 22813765}, {'photo_id': 1357135225, 'portfolio_id': 22813765}, {'photo_id': 1357135186, 'portfolio_id': 22813765}, {'photo_id': 1357134956, 'portfolio_id': 22813765}, {'photo_id': 1357134918, 'portfolio_id': 22813765}, {'photo_id': 1357134913, 'portfolio_id': 22813765}, {'photo_id': 1357134908, 'portfolio_id': 22813765}, {'photo_id': 1357134736, 'portfolio_id': 22813765}, {'photo_id': 1357134542, 'portfolio_id': 22813765}, {'photo_id': 1357134081, 'portfolio_id': 22813765}, {'photo_id': 1357134079, 'portfolio_id': 22813765}, {'photo_id': 1357134074, 'portfolio_id': 22813765}, {'photo_id': 1357133902, 'portfolio_id': 22813765}, {'photo_id': 1357133895, 'portfolio_id': 22813765}, {'photo_id': 1357133888, 'portfolio_id': 22813765}, {'photo_id': 1357133865, 'portfolio_id': 22813765}, {'photo_id': 1357133838, 'portfolio_id': 22813765}, {'photo_id': 1357133536, 'portfolio_id': 22813765}, {'photo_id': 1357133489, 'portfolio_id': 22813765}, {'photo_id': 1357133462, 'portfolio_id': 22813765}, {'photo_id': 1357133433, 'portfolio_id': 22813765}, {'photo_id': 1357133417, 'portfolio_id': 22813765}, {'photo_id': 1357132768, 'portfolio_id': 22813765}, {'photo_id': 1357132713, 'portfolio_id': 22813765}] map_portfolio_id_photo_id: {22813765: [1357136225, 1357136222, 1357136220, 1357136177, 1357136174, 1357136172, 1357136170, 1357136166, 1357136062, 1357136055, 1357136040, 1357136023, 1357136019, 1357135966, 1357135955, 1357135946, 1357135943, 1357135937, 1357135888, 1357135864, 1357135836, 1357135809, 1357135624, 1357135620, 1357135618, 1357135616, 1357135612, 1357135562, 1357135534, 1357135523, 1357135500, 1357135245, 1357135243, 1357135239, 1357135237, 1357135225, 1357135186, 1357134956, 1357134918, 1357134913, 1357134908, 1357134736, 1357134542, 1357134081, 1357134079, 1357134074, 1357133902, 1357133895, 1357133888, 1357133865, 1357133838, 1357133536, 1357133489, 1357133462, 1357133433, 1357133417, 1357132768, 1357132713]} ##### 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.014675617218017578 #### 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 May 9 08:14: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 (22813765) 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 : 22813765 get user id for portfolio 22813765 get sub ptf for main ptf 22813765, type 3726 and hashtags ['Carton_gris', 'flou', 'autre_refus', 'metal', 'kraft', 'Carton_brun', 'mal_croppe', 'cartonnette', 'Teint_Dans_La_Masse', 'environnement', 'papier', 'plastique'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22813765 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','autre_refus','metal','kraft','Carton_brun','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','papier','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22813765 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','autre_refus','metal','kraft','Carton_brun','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22813765, 'sub_port_id': 22813772, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218176, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 29)}, 'plastique': {'main_port_id': 22813765, 'sub_port_id': 22813773, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218177, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 29)}, 'Carton_brun': {'main_port_id': 22813765, 'sub_port_id': 22813774, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218178, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 29)}, 'flou': {'main_port_id': 22813765, 'sub_port_id': 22813775, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218179, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 29)}, 'autre_refus': {'main_port_id': 22813765, 'sub_port_id': 22813776, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218180, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22813765, 'sub_port_id': 22813777, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218181, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 29)}, 'kraft': {'main_port_id': 22813765, 'sub_port_id': 22813778, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218182, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 29)}, 'mal_croppe': {'main_port_id': 22813765, 'sub_port_id': 22813779, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218183, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 29)}, 'cartonnette': {'main_port_id': 22813765, 'sub_port_id': 22813780, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218184, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 29)}, 'Carton_gris': {'main_port_id': 22813765, 'sub_port_id': 22813781, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218185, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 29)}, 'environnement': {'main_port_id': 22813765, 'sub_port_id': 22813782, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218186, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 29)}, 'metal': {'main_port_id': 22813765, 'sub_port_id': 22813783, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218187, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22813772 , 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=22813765 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 (22813772) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813765) result : ((1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,)) 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 (1357135500) 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 22813773 , 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=22813765 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 (22813773) result : ((1357135769,), (1357135771,), (1357135772,), (1357136253,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813765) result : ((1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,)) 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 (1357135500) 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 22813774 , 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=22813765 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 (22813774) result : ((1357134032,), (1357134034,), (1357134144,), (1357135607,), (1357135921,), (1357135934,), (1357136150,), (1357136151,), (1357136153,), (1357136275,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813765) result : ((1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,)) 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 (1357135500) 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 22813775 , 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=22813765 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 (22813775) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813765) result : ((1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,)) 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 (1357135500) 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 22813776 , 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=22813765 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 (22813776) result : ((1357135604,), (1357135605,), (1357135917,), (1357136269,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813765) result : ((1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,)) 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 (1357135500) 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 22813777 , 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=22813765 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 (22813777) result : ((1357134003,), (1357134005,), (1357134007,), (1357134011,), (1357134140,), (1357134141,), (1357134142,), (1357135587,), (1357135600,), (1357135601,), (1357135602,), (1357135932,), (1357135933,), (1357136267,), (1357136268,), (1357136320,), (1357136321,), (1357136322,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813765) result : ((1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,)) 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 (1357135500) 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 22813778 , 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=22813765 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 (22813778) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813765) result : ((1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,)) 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 (1357135500) 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 22813779 , 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=22813765 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 (22813779) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813765) result : ((1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,)) 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 (1357135500) 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 22813780 , 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=22813765 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 (22813780) result : ((1357134973,), (1357135756,), (1357135757,), (1357135758,), (1357135918,), (1357135919,), (1357136252,), (1357136273,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813765) result : ((1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,)) 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 (1357135500) 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 22813781 , 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=22813765 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 (22813781) result : ((1357134021,), (1357135606,), (1357135746,), (1357136146,), (1357136272,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813765) result : ((1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,)) 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 (1357135500) 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 22813782 , 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=22813765 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 (22813782) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813765) result : ((1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,)) 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 (1357135500) 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 22813783 , 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=22813765 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 (22813783) result : ((1357136255,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813765) result : ((1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,)) 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 (1357135500) 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`=22813765 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','autre_refus','metal','kraft','Carton_brun','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','papier','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22813765 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','autre_refus','metal','kraft','Carton_brun','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22813765, 'sub_port_id': 22813784, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218188, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 31)}, 'plastique': {'main_port_id': 22813765, 'sub_port_id': 22813785, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218189, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 31)}, 'Carton_brun': {'main_port_id': 22813765, 'sub_port_id': 22813786, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218190, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 31)}, 'flou': {'main_port_id': 22813765, 'sub_port_id': 22813787, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218191, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 31)}, 'autre_refus': {'main_port_id': 22813765, 'sub_port_id': 22813788, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218192, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 22813765, 'sub_port_id': 22813789, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218193, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 31)}, 'kraft': {'main_port_id': 22813765, 'sub_port_id': 22813790, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218194, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 31)}, 'mal_croppe': {'main_port_id': 22813765, 'sub_port_id': 22813791, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218195, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 31)}, 'cartonnette': {'main_port_id': 22813765, 'sub_port_id': 22813792, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218196, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 31)}, 'Carton_gris': {'main_port_id': 22813765, 'sub_port_id': 22813793, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218197, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 31)}, 'environnement': {'main_port_id': 22813765, 'sub_port_id': 22813794, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218198, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 31)}, 'metal': {'main_port_id': 22813765, 'sub_port_id': 22813795, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15218199, 'last_updated_at': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 8, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 8, 3, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813784,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813772 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813785,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813773 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813786,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813774 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813787,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813775 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813788,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813776 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813789,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813777 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813790,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813778 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813791,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813779 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813792,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813780 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813793,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813781 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813794,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813782 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813795,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813783 lien utilise dans velours : https://www.fotonower.com/velours/22813784,22813785,22813786,22813787,22813788,22813789,22813790,22813791,22813792,22813793,22813794,22813795?tags=papier,plastique,Carton_brun,flou,autre_refus,Teint_Dans_La_Masse,kraft,mal_croppe,cartonnette,Carton_gris,environnement,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22813765]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1357136225, 1357136222, 1357136220, 1357136177, 1357136174, 1357136172, 1357136170, 1357136166] map_info['map_portfolio_photo'] : {22813765: [1357136225, 1357136222, 1357136220, 1357136177, 1357136174, 1357136172, 1357136170, 1357136166, 1357136062, 1357136055, 1357136040, 1357136023, 1357136019, 1357135966, 1357135955, 1357135946, 1357135943, 1357135937, 1357135888, 1357135864, 1357135836, 1357135809, 1357135624, 1357135620, 1357135618, 1357135616, 1357135612, 1357135562, 1357135534, 1357135523, 1357135500, 1357135245, 1357135243, 1357135239, 1357135237, 1357135225, 1357135186, 1357134956, 1357134918, 1357134913, 1357134908, 1357134736, 1357134542, 1357134081, 1357134079, 1357134074, 1357133902, 1357133895, 1357133888, 1357133865, 1357133838, 1357133536, 1357133489, 1357133462, 1357133433, 1357133417, 1357132768, 1357132713]} final : False mtd_id 4302 list_pids : [1357136225, 1357136222, 1357136220, 1357136177, 1357136174, 1357136172, 1357136170, 1357136166] Looping around the photos to save general results len do output : 1 /22813765. 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, '2810664') ('4302', '22813765', '1357136225', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136222', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136220', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136177', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136174', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136172', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136170', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136166', None, None, None, None, None, '2810664') 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, '22813765', "{'papier': 22813772, 'plastique': 22813773, 'Carton_brun': 22813774, 'flou': 22813775, 'autre_refus': 22813776, 'Teint_Dans_La_Masse': 22813777, 'kraft': 22813778, 'mal_croppe': 22813779, 'cartonnette': 22813780, 'Carton_gris': 22813781, 'environnement': 22813782, 'metal': 22813783}", None, None, None, None, '2810664'), ('4302', '22813765', '1357136225', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136222', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136220', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136177', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136174', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136172', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136170', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136166', None, None, None, None, None, '2810664')] time used for this insertion : 0.015743017196655273 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.46132683753967285 time spend to save output : 0.01601386070251465 total time spend for step 1 : 0.4773406982421875 step2:final Fri May 9 08:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22813765) 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 22813765 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1357132768,1357132713,1357133536,1357133489,1357133462,1357133433,1357133417,1357133902,1357133895,1357133888,1357133865,1357133838,1357134081,1357134079,1357134074,1357134956,1357134918,1357134913,1357134908,1357134736,1357134542,1357135245,1357135243,1357135239,1357135237,1357135225,1357135186,1357135562,1357135534,1357135523,1357135500,1357135624,1357135620,1357135618,1357135616,1357135612,1357135888,1357135864,1357135836,1357135809,1357135966,1357135955,1357135946,1357135943,1357135937,1357136062,1357136055,1357136040,1357136023,1357136019,1357136177,1357136174,1357136172,1357136170,1357136166,1357136225,1357136222,1357136220); 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([22813765]) Inside saveOutput : final : False verbose : True original output for save of step final : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ('0.06494928596269031',), 1357136166: ('0.06494928596269031',)} new output for save of step final : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ('0.06494928596269031',), 1357136166: ('0.06494928596269031',)} [1357136225, 1357136222, 1357136220, 1357136177, 1357136174, 1357136172, 1357136170, 1357136166] map_info['map_portfolio_photo'] : {22813765: [1357136225, 1357136222, 1357136220, 1357136177, 1357136174, 1357136172, 1357136170, 1357136166, 1357136062, 1357136055, 1357136040, 1357136023, 1357136019, 1357135966, 1357135955, 1357135946, 1357135943, 1357135937, 1357135888, 1357135864, 1357135836, 1357135809, 1357135624, 1357135620, 1357135618, 1357135616, 1357135612, 1357135562, 1357135534, 1357135523, 1357135500, 1357135245, 1357135243, 1357135239, 1357135237, 1357135225, 1357135186, 1357134956, 1357134918, 1357134913, 1357134908, 1357134736, 1357134542, 1357134081, 1357134079, 1357134074, 1357133902, 1357133895, 1357133888, 1357133865, 1357133838, 1357133536, 1357133489, 1357133462, 1357133433, 1357133417, 1357132768, 1357132713]} final : False mtd_id 4302 list_pids : [1357136225, 1357136222, 1357136220, 1357136177, 1357136174, 1357136172, 1357136170, 1357136166] Looping around the photos to save general results len do output : 8 /1357136225.Didn't retrieve data . /1357136222.Didn't retrieve data . /1357136220.Didn't retrieve data . /1357136177.Didn't retrieve data . /1357136174.Didn't retrieve data . /1357136172.Didn't retrieve data . /1357136170.Didn't retrieve data . /1357136166.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, '2810664') ('4302', '22813765', '1357136225', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136222', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136220', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136177', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136174', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136172', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136170', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136166', None, None, None, None, None, '2810664') 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', '22813765', '1357136225', '0.06494928596269031', None, None, None, None, '2810664'), ('4302', '22813765', '1357136222', '0.06494928596269031', None, None, None, None, '2810664'), ('4302', '22813765', '1357136220', '0.06494928596269031', None, None, None, None, '2810664'), ('4302', '22813765', '1357136177', '0.06494928596269031', None, None, None, None, '2810664'), ('4302', '22813765', '1357136174', '0.06494928596269031', None, None, None, None, '2810664'), ('4302', '22813765', '1357136172', '0.06494928596269031', None, None, None, None, '2810664'), ('4302', '22813765', '1357136170', '0.06494928596269031', None, None, None, None, '2810664'), ('4302', '22813765', '1357136166', '0.06494928596269031', None, None, None, None, '2810664')] time used for this insertion : 0.013072729110717773 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07287383079528809 time spend to save output : 0.014077186584472656 total time spend for step 2 : 0.08695101737976074 step3:velours_tree Fri May 9 08:14: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 : {22813765: [{'papier': 22813772, 'plastique': 22813773, 'Carton_brun': 22813774, 'flou': 22813775, 'autre_refus': 22813776, 'Teint_Dans_La_Masse': 22813777, 'kraft': 22813778, 'mal_croppe': 22813779, 'cartonnette': 22813780, 'Carton_gris': 22813781, 'environnement': 22813782, 'metal': 22813783}]} input_args_next_step : {22813765: ()} output_args : {22813765: [{'papier': 22813772, 'plastique': 22813773, 'Carton_brun': 22813774, 'flou': 22813775, 'autre_refus': 22813776, 'Teint_Dans_La_Masse': 22813777, 'kraft': 22813778, 'mal_croppe': 22813779, 'cartonnette': 22813780, 'Carton_gris': 22813781, 'environnement': 22813782, 'metal': 22813783}]} args : 22813765 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 22813772, 'plastique': 22813773, 'Carton_brun': 22813774, 'flou': 22813775, 'autre_refus': 22813776, 'Teint_Dans_La_Masse': 22813777, 'kraft': 22813778, 'mal_croppe': 22813779, 'cartonnette': 22813780, 'Carton_gris': 22813781, 'environnement': 22813782, 'metal': 22813783},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22813765) 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([22813765]) 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.33599257469177246 time spend to save output : 4.1484832763671875e-05 total time spend for step 3 : 0.33603405952453613 step4:send_mail_cod Fri May 9 08:14: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 : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ('0.06494928596269031',), 1357136166: ('0.06494928596269031',)} input_args_next_step : {1357136225: ()} output_args : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ('0.06494928596269031',), 1357136166: ('0.06494928596269031',)} args : 1357136225 depend.output_id : 0 input_args_next_step : {1357136225: ('0.06494928596269031',), 1357136222: ()} output_args : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ('0.06494928596269031',), 1357136166: ('0.06494928596269031',)} args : 1357136222 depend.output_id : 0 input_args_next_step : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ()} output_args : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ('0.06494928596269031',), 1357136166: ('0.06494928596269031',)} args : 1357136220 depend.output_id : 0 input_args_next_step : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ()} output_args : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ('0.06494928596269031',), 1357136166: ('0.06494928596269031',)} args : 1357136177 depend.output_id : 0 input_args_next_step : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ()} output_args : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ('0.06494928596269031',), 1357136166: ('0.06494928596269031',)} args : 1357136174 depend.output_id : 0 input_args_next_step : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ()} output_args : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ('0.06494928596269031',), 1357136166: ('0.06494928596269031',)} args : 1357136172 depend.output_id : 0 input_args_next_step : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ()} output_args : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ('0.06494928596269031',), 1357136166: ('0.06494928596269031',)} args : 1357136170 depend.output_id : 0 input_args_next_step : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ('0.06494928596269031',), 1357136166: ()} output_args : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ('0.06494928596269031',), 1357136166: ('0.06494928596269031',)} args : 1357136166 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 : {22813765: [{'papier': 22813772, 'plastique': 22813773, 'Carton_brun': 22813774, 'flou': 22813775, 'autre_refus': 22813776, 'Teint_Dans_La_Masse': 22813777, 'kraft': 22813778, 'mal_croppe': 22813779, 'cartonnette': 22813780, 'Carton_gris': 22813781, 'environnement': 22813782, 'metal': 22813783}]} input_args_next_step : {1357136225: ('0.06494928596269031',), 1357136222: ('0.06494928596269031',), 1357136220: ('0.06494928596269031',), 1357136177: ('0.06494928596269031',), 1357136174: ('0.06494928596269031',), 1357136172: ('0.06494928596269031',), 1357136170: ('0.06494928596269031',), 1357136166: ('0.06494928596269031',), 22813765: ()} output_args : {22813765: [{'papier': 22813772, 'plastique': 22813773, 'Carton_brun': 22813774, 'flou': 22813775, 'autre_refus': 22813776, 'Teint_Dans_La_Masse': 22813777, 'kraft': 22813778, 'mal_croppe': 22813779, 'cartonnette': 22813780, 'Carton_gris': 22813781, 'environnement': 22813782, 'metal': 22813783}]} args : 22813765 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.06494928596269031',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22813765) 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 (1357136225,1357136222,1357136220,1357136177,1357136174,1357136172,1357136170,1357136166) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1357136166 begin to download photo : 1357136172 begin to download photo : 1357136177 begin to download photo : 1357136222 download finish for photo 1357136177 begin to download photo : 1357136220 download finish for photo 1357136222 begin to download photo : 1357136225 download finish for photo 1357136166 begin to download photo : 1357136170 download finish for photo 1357136172 begin to download photo : 1357136174 download finish for photo 1357136220 download finish for photo 1357136225 download finish for photo 1357136170 download finish for photo 1357136174 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P22813765_09-05-2025_08_14_59.pdf 22813773 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=22813773 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357135769: '1746770893_4010589_1357134081_c50e612acc3a2272256becbc2f358b58_rle_crop_3790997809_0.png', 1357135771: '1746770893_4010589_1357133865_3cb4dd44777eb3487dc774e56df26193_rle_crop_3790997855_0.png', 1357135772: '1746770893_4010589_1357133838_8d58b7b0ed1ffebca4192db9fb7c61cd_rle_crop_3790997913_0.png', 1357136253: '1746771190_4014094_1357136170_2d8fbf13b31e42de8c19e94229e76ed0_rle_crop_3791000406_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1bdd26a237341867e508461fac5e3b25_92560668.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/481df2e8c721f6e05dfc8a1643fa8d92_553231.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b862f9e4dbc4fc98a7cb8f0d7a0ef462_58381229.png change filename to text .imagette228137731746771299/ imagette228137731746771299/1746770893_4010589_1357133838_8d58b7b0ed1ffebca4192db9fb7c61cd_rle_crop_3790997913_0.png.png imagette228137731746771299/1746770893_4010589_1357133865_3cb4dd44777eb3487dc774e56df26193_rle_crop_3790997855_0.png.png imagette228137731746771299/1746771190_4014094_1357136170_2d8fbf13b31e42de8c19e94229e76ed0_rle_crop_3791000406_0.png.png imagette228137731746771299/1746770893_4010589_1357134081_c50e612acc3a2272256becbc2f358b58_rle_crop_3790997809_0.png.png imagette228137751746771299/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/575b85d7d3eb2050b6cdebcaf4c6847e_40368480.png imagette228137731746771299 22813775 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=22813775 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228137751746771299 22813776 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=22813776 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357135604: '1746770831_4009968_1357134736_11ee4c992550f447d1bf13fdb117c1d2_rle_crop_3790998154_0.png', 1357135605: '1746770831_4009968_1357134736_11ee4c992550f447d1bf13fdb117c1d2_rle_crop_3790998152_0.png', 1357135917: '1746770952_4011410_1357135523_c09e09039fe10ff8326d783cc3e5af6e_rle_crop_3790999194_0.png', 1357136269: '1746771206_2910918_1357136177_42c1c0ff36d663e573923b42d4a730e4_rle_crop_3791000429_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/af1f43d041ab98ff946e06676bd0541e_60139374.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/3937693936807b0797771c5d5389d199_77685302.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/aeacc5c178f37d673c099329a362fbcb_38340317.png change filename to text .imagette228137761746771299/ imagette228137761746771299/1746770831_4009968_1357134736_11ee4c992550f447d1bf13fdb117c1d2_rle_crop_3790998154_0.png.png imagette228137761746771299/1746770831_4009968_1357134736_11ee4c992550f447d1bf13fdb117c1d2_rle_crop_3790998152_0.png.png imagette228137761746771299/1746770952_4011410_1357135523_c09e09039fe10ff8326d783cc3e5af6e_rle_crop_3790999194_0.png.png imagette228137761746771299/1746771206_2910918_1357136177_42c1c0ff36d663e573923b42d4a730e4_rle_crop_3791000429_0.png.png imagette228137781746771300/ imagette228137791746771300/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/3756d4ad7d62a25d2362113f09561287_3166852.png imagette228137761746771299 22813778 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=22813778 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228137781746771300 22813779 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=22813779 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228137791746771300 22813780 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=22813780 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357134973: '1746770712_4008719_1357134079_f4e3f6e4b41e54274d4b286e4a393c29_rle_crop_3790996957_0.png', 1357135756: '1746770893_4010589_1357134081_c50e612acc3a2272256becbc2f358b58_rle_crop_3790997799_0.png', 1357135757: '1746770893_4010589_1357133895_58f8860346c7cee32797c4c3410ab1bf_rle_crop_3790997813_0.png', 1357135758: '1746770893_4010589_1357133838_8d58b7b0ed1ffebca4192db9fb7c61cd_rle_crop_3790997905_0.png', 1357135918: '1746770952_4011410_1357135523_c09e09039fe10ff8326d783cc3e5af6e_rle_crop_3790999191_0.png', 1357135919: '1746770952_4011410_1357135523_c09e09039fe10ff8326d783cc3e5af6e_rle_crop_3790999190_0.png', 1357136252: '1746771190_4014094_1357136166_5f901377e86df9a5679e0dbe3bb7de41_rle_crop_3791000413_0.png', 1357136273: '1746771206_2910918_1357136023_e3ee5cf740c032680ee5e48731983555_rle_crop_3791000470_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/747517cc8f09518b6937d0c5014a0fbb_36131056.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/a4331276369a35e985a1478660f06d6f_44234451.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/743b0ea599a7f829464cda3133f0c37b_62112288.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/bb36ad2c2a37a0e7ef2717ccf938275c_9495456.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8142b9f0cdeea860692d125b4d1c2ace_49081827.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/3214e217d2ab912120cbf3bce66a0804_40229723.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/ffa68f3f75c5ea2a09fcd0372a7eb211_74134056.png change filename to text .imagette228137801746771300/ imagette228137801746771300/1746770952_4011410_1357135523_c09e09039fe10ff8326d783cc3e5af6e_rle_crop_3790999190_0.png.png imagette228137801746771300/1746770952_4011410_1357135523_c09e09039fe10ff8326d783cc3e5af6e_rle_crop_3790999191_0.png.png imagette228137801746771300/1746771190_4014094_1357136166_5f901377e86df9a5679e0dbe3bb7de41_rle_crop_3791000413_0.png.png imagette228137801746771300/1746770893_4010589_1357133838_8d58b7b0ed1ffebca4192db9fb7c61cd_rle_crop_3790997905_0.png.png imagette228137801746771300/1746771206_2910918_1357136023_e3ee5cf740c032680ee5e48731983555_rle_crop_3791000470_0.png.png imagette228137801746771300/1746770712_4008719_1357134079_f4e3f6e4b41e54274d4b286e4a393c29_rle_crop_3790996957_0.png.png imagette228137801746771300/1746770893_4010589_1357133895_58f8860346c7cee32797c4c3410ab1bf_rle_crop_3790997813_0.png.png imagette228137801746771300/1746770893_4010589_1357134081_c50e612acc3a2272256becbc2f358b58_rle_crop_3790997799_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e1670ba9b0de001280ef93ca08fa68b0_15100664.png imagette228137801746771300 22813783 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=22813783 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357136255: '1746771190_4014094_1357136170_2d8fbf13b31e42de8c19e94229e76ed0_rle_crop_3791000402_0.png'} change filename to text .imagette228137831746771300/ imagette228137831746771300/1746771190_4014094_1357136170_2d8fbf13b31e42de8c19e94229e76ed0_rle_crop_3791000402_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/81a939c66720e0d9fd50d9e44e00bf99_43488075.png imagette228137831746771300 22813774 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=22813774 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357134032: '1746770605_2898592_1357133433_15c9a3493fc17581801602f6b229ff1a_rle_crop_3790996074_0.png', 1357134034: '1746770605_2898592_1357133417_5ecd765cbde6cf46da7b15fe2589b00a_rle_crop_3790996126_0.png', 1357134144: '1746770652_4008107_1357133536_cb7238d09f177962d427339f851df50d_rle_crop_3790996831_0.png', 1357135607: '1746770831_4009968_1357134542_c868999b90a56a6262219389e69143ee_rle_crop_3790998169_0.png', 1357135921: '1746770952_4011410_1357135523_c09e09039fe10ff8326d783cc3e5af6e_rle_crop_3790999197_0.png', 1357135934: '1746770966_2905196_1357135186_ff16b64b5ef4169a555dcac6a1a09134_rle_crop_3790999269_0.png', 1357136150: '1746771086_2908174_1357135864_6db72d93e03205216e379dfc208aa383_rle_crop_3790999938_0.png', 1357136151: '1746771086_2908174_1357135836_d70f52add53db40a118723ca41731ef9_rle_crop_3790999952_0.png', 1357136153: '1746771086_2908174_1357135809_bc0d3d3a6d074217405778f0c5c8b06c_rle_crop_3790999979_0.png', 1357136275: '1746771206_2910918_1357136055_f08d1948f0630e19e3465e6703fab88b_rle_crop_3791000448_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/4cf387102038dbaa6d86653b2a6fe836_7232297.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8ada23c5cc8b428d353bd92c5cbb433f_87906456.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/de972b9665a43d600a3ce9b97b93df31_20751019.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/376fa31f319a5ec98e15325fbdf3363c_41146726.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/0391e487b4646463a8d338a1c9cdf391_39565535.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e5ef38effb38bf707df7ec5089ed7591_78471095.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/0bb069a817da66b9600bdaced6b9d769_14290462.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/3795988e9d90fbfcef66d22dad2ad76a_16714997.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/42ce52062fc67a1a69b264e1e7beda53_88643964.png change filename to text .imagette228137741746771300/ imagette228137741746771300/1746770605_2898592_1357133433_15c9a3493fc17581801602f6b229ff1a_rle_crop_3790996074_0.png.png imagette228137741746771300/1746771086_2908174_1357135836_d70f52add53db40a118723ca41731ef9_rle_crop_3790999952_0.png.png imagette228137741746771300/1746770605_2898592_1357133417_5ecd765cbde6cf46da7b15fe2589b00a_rle_crop_3790996126_0.png.png imagette228137741746771300/1746771086_2908174_1357135864_6db72d93e03205216e379dfc208aa383_rle_crop_3790999938_0.png.png imagette228137741746771300/1746770652_4008107_1357133536_cb7238d09f177962d427339f851df50d_rle_crop_3790996831_0.png.png imagette228137741746771300/1746771086_2908174_1357135809_bc0d3d3a6d074217405778f0c5c8b06c_rle_crop_3790999979_0.png.png imagette228137741746771300/1746770966_2905196_1357135186_ff16b64b5ef4169a555dcac6a1a09134_rle_crop_3790999269_0.png.png imagette228137741746771300/1746770952_4011410_1357135523_c09e09039fe10ff8326d783cc3e5af6e_rle_crop_3790999197_0.png.png imagette228137741746771300/1746771206_2910918_1357136055_f08d1948f0630e19e3465e6703fab88b_rle_crop_3791000448_0.png.png imagette228137741746771300/1746770831_4009968_1357134542_c868999b90a56a6262219389e69143ee_rle_crop_3790998169_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/236ffbbf267e57c483b8ac376d36e7ac_57834274.png imagette228137741746771300 22813777 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=22813777 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357135601: '1746770831_4009968_1357134913_e0b825d91cb28764de8cf4ff6a5c59e7_rle_crop_3790998127_0.png', 1357136322: '1746771251_4014647_1357135612_2ee5f776586c922fd946b7d995582178_rle_crop_3791000713_0.png', 1357136321: '1746771251_4014647_1357135616_e7d5893f4fab681b050957cd194e55ed_rle_crop_3791000695_0.png', 1357136320: '1746771251_4014647_1357135888_bdf8ed9a7a87502d41a04ad48a029937_rle_crop_3791000653_0.png', 1357136268: '1746771206_2910918_1357136019_756f98f9d1e50fca4d03d82e2f660471_rle_crop_3791000485_0.png', 1357136267: '1746771206_2910918_1357136040_d992f45a79ac49160dbffb6523bddfe7_rle_crop_3791000463_0.png', 1357135933: '1746770966_2905196_1357135186_ff16b64b5ef4169a555dcac6a1a09134_rle_crop_3790999274_0.png', 1357135932: '1746770966_2905196_1357135186_ff16b64b5ef4169a555dcac6a1a09134_rle_crop_3790999267_0.png', 1357135602: '1746770831_4009968_1357134542_c868999b90a56a6262219389e69143ee_rle_crop_3790998168_0.png', 1357134003: '1746770605_2898592_1357133489_2cfc9208373424ab98fa67a850d699ee_rle_crop_3790996000_0.png', 1357135600: '1746770831_4009968_1357134918_7a138560e8c3060ac4cca6569cf68acb_rle_crop_3790998121_0.png', 1357135587: '1746770846_2902580_1357134956_b2e6b4446cd552a7b03a844915fac484_rle_crop_3790998112_0.png', 1357134142: '1746770652_4008107_1357132713_93cf483fcbbbce669c10378c1ffc8c31_rle_crop_3790996851_0.png', 1357134141: '1746770652_4008107_1357132713_93cf483fcbbbce669c10378c1ffc8c31_rle_crop_3790996849_0.png', 1357134140: '1746770652_4008107_1357132768_1ff46fe80244ff93209fc3b81d455043_rle_crop_3790996844_0.png', 1357134011: '1746770605_2898592_1357133417_5ecd765cbde6cf46da7b15fe2589b00a_rle_crop_3790996123_0.png', 1357134007: '1746770605_2898592_1357133433_15c9a3493fc17581801602f6b229ff1a_rle_crop_3790996079_0.png', 1357134005: '1746770605_2898592_1357133462_d252472bc4c1794ea5004e7ea84bb0b4_rle_crop_3790996033_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/4299fe95219618b73cb64f6954f5b249_89114648.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8aa826c24e7d5137224355c4f88c5c29_95528278.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/dbb3af1e05af3a57e2f76a877f0331e7_50105696.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/39df4a04cc43b51c861c302a2792a71c_63165430.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/38220e0c4f696d953a1d1ace8523d377_6655130.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/13d774d5b376483be6f9e863ad52ac5d_81074973.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/3eb92171a49a6940400ca40ca497820a_63777674.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/0edd44463b2d4fb6641dacc81e039151_85436368.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/5ed6a892ddcecee5dcb8a103e21896bb_93035026.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/70f1daf50a6b30d733828491aa512e01_3806171.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/22a49a9b01f54f9da81ece7a97a401f5_84036683.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1ec360bbfd00aba3953f54e5ce6d1a33_60340235.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c083cb6fb4a499d3f7604f229c1a2404_27729.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/754a077858234f4860b2461006487c81_36138114.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/80c3b5242f97b8902e8dbe35e08ca460_40069348.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/45da3028cda645f597ab815899806e0f_19890824.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/07aa0768d388494503f67156fb0f446e_5321936.png change filename to text .imagette228137771746771301/ imagette228137771746771301/1746770966_2905196_1357135186_ff16b64b5ef4169a555dcac6a1a09134_rle_crop_3790999267_0.png.png imagette228137771746771301/1746770652_4008107_1357132713_93cf483fcbbbce669c10378c1ffc8c31_rle_crop_3790996851_0.png.png imagette228137771746771301/1746770605_2898592_1357133433_15c9a3493fc17581801602f6b229ff1a_rle_crop_3790996079_0.png.png imagette228137771746771301/1746770846_2902580_1357134956_b2e6b4446cd552a7b03a844915fac484_rle_crop_3790998112_0.png.png imagette228137771746771301/1746770831_4009968_1357134542_c868999b90a56a6262219389e69143ee_rle_crop_3790998168_0.png.png imagette228137771746771301/1746771251_4014647_1357135612_2ee5f776586c922fd946b7d995582178_rle_crop_3791000713_0.png.png imagette228137771746771301/1746770605_2898592_1357133462_d252472bc4c1794ea5004e7ea84bb0b4_rle_crop_3790996033_0.png.png imagette228137771746771301/1746770605_2898592_1357133417_5ecd765cbde6cf46da7b15fe2589b00a_rle_crop_3790996123_0.png.png imagette228137771746771301/1746771251_4014647_1357135888_bdf8ed9a7a87502d41a04ad48a029937_rle_crop_3791000653_0.png.png imagette228137771746771301/1746771206_2910918_1357136040_d992f45a79ac49160dbffb6523bddfe7_rle_crop_3791000463_0.png.png imagette228137771746771301/1746770652_4008107_1357132713_93cf483fcbbbce669c10378c1ffc8c31_rle_crop_3790996849_0.png.png imagette228137771746771301/1746770831_4009968_1357134918_7a138560e8c3060ac4cca6569cf68acb_rle_crop_3790998121_0.png.png imagette228137771746771301/1746770831_4009968_1357134913_e0b825d91cb28764de8cf4ff6a5c59e7_rle_crop_3790998127_0.png.png imagette228137771746771301/1746770605_2898592_1357133489_2cfc9208373424ab98fa67a850d699ee_rle_crop_3790996000_0.png.png imagette228137771746771301/1746770966_2905196_1357135186_ff16b64b5ef4169a555dcac6a1a09134_rle_crop_3790999274_0.png.png imagette228137771746771301/1746771206_2910918_1357136019_756f98f9d1e50fca4d03d82e2f660471_rle_crop_3791000485_0.png.png imagette228137771746771301/1746771251_4014647_1357135616_e7d5893f4fab681b050957cd194e55ed_rle_crop_3791000695_0.png.png imagette228137771746771301/1746770652_4008107_1357132768_1ff46fe80244ff93209fc3b81d455043_rle_crop_3790996844_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/fe2a75d38f025337d3cca71931009fe2_88471130.png imagette228137771746771301 22813781 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=22813781 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357134021: '1746770605_2898592_1357133417_5ecd765cbde6cf46da7b15fe2589b00a_rle_crop_3790996128_0.png', 1357135606: '1746770831_4009968_1357134736_11ee4c992550f447d1bf13fdb117c1d2_rle_crop_3790998148_0.png', 1357135746: '1746770893_4010589_1357133865_3cb4dd44777eb3487dc774e56df26193_rle_crop_3790997847_0.png', 1357136146: '1746771086_2908174_1357135864_6db72d93e03205216e379dfc208aa383_rle_crop_3790999935_0.png', 1357136272: '1746771206_2910918_1357136177_42c1c0ff36d663e573923b42d4a730e4_rle_crop_3791000430_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/2a13e88937456a6504278861f38a686e_12315681.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/709a114c4b9ca1876abfb11c7c673c12_87092026.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/4698ae9d1d234af2a9ff6f42cfc43b7e_67217857.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/08aef38383ad388911fcf9f091f47139_80321971.png change filename to text .imagette228137811746771302/ imagette228137811746771302/1746771086_2908174_1357135864_6db72d93e03205216e379dfc208aa383_rle_crop_3790999935_0.png.png imagette228137811746771302/1746770831_4009968_1357134736_11ee4c992550f447d1bf13fdb117c1d2_rle_crop_3790998148_0.png.png imagette228137811746771302/1746771206_2910918_1357136177_42c1c0ff36d663e573923b42d4a730e4_rle_crop_3791000430_0.png.png imagette228137811746771302/1746770605_2898592_1357133417_5ecd765cbde6cf46da7b15fe2589b00a_rle_crop_3790996128_0.png.png imagette228137811746771302/1746770893_4010589_1357133865_3cb4dd44777eb3487dc774e56df26193_rle_crop_3790997847_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/615d2c4d5d86c831707056553f9cad24_7312714.png imagette228137811746771302 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22813765 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22813784,22813785,22813786,22813787,22813788,22813789,22813790,22813791,22813792,22813793,22813794,22813795?tags=papier,plastique,Carton_brun,flou,autre_refus,Teint_Dans_La_Masse,kraft,mal_croppe,cartonnette,Carton_gris,environnement,metal your option no_mail is active, we will not send the real mail to your client args[1357136225] : ('0.06494928596269031',) no score found for photo 1357136225 We are sending mail with results at report@fotonower.com args[1357136222] : ('0.06494928596269031',) no score found for photo 1357136222 We are sending mail with results at report@fotonower.com args[1357136220] : ('0.06494928596269031',) no score found for photo 1357136220 We are sending mail with results at report@fotonower.com args[1357136177] : ('0.06494928596269031',) no score found for photo 1357136177 We are sending mail with results at report@fotonower.com args[1357136174] : ('0.06494928596269031',) no score found for photo 1357136174 We are sending mail with results at report@fotonower.com args[1357136172] : ('0.06494928596269031',) no score found for photo 1357136172 We are sending mail with results at report@fotonower.com args[1357136170] : ('0.06494928596269031',) no score found for photo 1357136170 We are sending mail with results at report@fotonower.com args[1357136166] : ('0.06494928596269031',) no score found for photo 1357136166 We are sending mail with results at report@fotonower.com refus_total : 0.06494928596269031 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=22813765 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_P22813765_09-05-2025_08_14_59.pdf results_Auto_P22813765_09-05-2025_08_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_14_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22813765','results_Auto_P22813765_09-05-2025_08_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_14_59.pdf','pdf','','0.23','0.06494928596269031') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22813765]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1357136225, 1357136222, 1357136220, 1357136177, 1357136174, 1357136172, 1357136170, 1357136166] map_info['map_portfolio_photo'] : {22813765: [1357136225, 1357136222, 1357136220, 1357136177, 1357136174, 1357136172, 1357136170, 1357136166, 1357136062, 1357136055, 1357136040, 1357136023, 1357136019, 1357135966, 1357135955, 1357135946, 1357135943, 1357135937, 1357135888, 1357135864, 1357135836, 1357135809, 1357135624, 1357135620, 1357135618, 1357135616, 1357135612, 1357135562, 1357135534, 1357135523, 1357135500, 1357135245, 1357135243, 1357135239, 1357135237, 1357135225, 1357135186, 1357134956, 1357134918, 1357134913, 1357134908, 1357134736, 1357134542, 1357134081, 1357134079, 1357134074, 1357133902, 1357133895, 1357133888, 1357133865, 1357133838, 1357133536, 1357133489, 1357133462, 1357133433, 1357133417, 1357132768, 1357132713]} final : False mtd_id 4302 list_pids : [1357136225, 1357136222, 1357136220, 1357136177, 1357136174, 1357136172, 1357136170, 1357136166] 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, '2810664') ('4302', '22813765', '1357136225', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136222', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136220', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136177', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136174', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136172', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136170', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136166', None, None, None, None, None, '2810664') 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', '22813765', '1357136225', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136222', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136220', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136177', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136174', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136172', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136170', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136166', None, None, None, None, None, '2810664')] time used for this insertion : 0.01389002799987793 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.5350189208984375 time spend to save output : 0.014129161834716797 total time spend for step 4 : 4.549148082733154 step5:split_time_score Fri May 9 08:15:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22813765'] 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 : [('22813765',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22813765) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1357136177: {'path': 'temp/1746771299_3706036_1357136177_42c1c0ff36d663e573923b42d4a730e4.jpg', 'extension': 'jpg'}, 1357136220: {'path': 'temp/1746771299_3706036_1357136220_2018e91753515e24825c837d61672fd7.jpg', 'extension': 'jpg'}, 1357136222: {'path': 'temp/1746771299_3706036_1357136222_7098178968183310a72afd41a54a9a84.jpg', 'extension': 'jpg'}, 1357136225: {'path': 'temp/1746771299_3706036_1357136225_8cabe1d24b5de330808318c06ccdc16f.jpg', 'extension': 'jpg'}, 1357136166: {'path': 'temp/1746771299_3706036_1357136166_5f901377e86df9a5679e0dbe3bb7de41.jpg', 'extension': 'jpg'}, 1357136170: {'path': 'temp/1746771299_3706036_1357136170_2d8fbf13b31e42de8c19e94229e76ed0.jpg', 'extension': 'jpg'}, 1357136172: {'path': 'temp/1746771299_3706036_1357136172_8ef9966706b80cc445aace8217d12cd7.jpg', 'extension': 'jpg'}, 1357136174: {'path': 'temp/1746771299_3706036_1357136174_26229fb22dc4da710f06171f8443a530.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 = 22813765; (('arc_en_ciel_jrm_live',), ('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 = 22813765 group by h (('08', 58),) 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=22813765 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 (22813765) 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 (22813765) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09052025 22813765 Nombre de photos uploadées : 58 / 23040 (0%) 09052025 22813765 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 09052025 22813765 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1357132768, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1ff46fe80244ff93209fc3b81d455043.jpg', 'username': None, 'uploaded_at': 1746770477, 'text': 'image_09052025_08_00_23_009127m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357132713, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/93cf483fcbbbce669c10378c1ffc8c31.jpg', 'username': None, 'uploaded_at': 1746770477, 'text': 'image_09052025_08_00_33_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357133536, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/cb7238d09f177962d427339f851df50d.jpg', 'username': None, 'uploaded_at': 1746770528, 'text': 'image_09052025_08_00_44_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357133489, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/2cfc9208373424ab98fa67a850d699ee.jpg', 'username': None, 'uploaded_at': 1746770528, 'text': 'image_09052025_08_01_04_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0967254638671875e-05 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002871990203857422 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22813765, '2025-05-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1789478,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02300739288330078 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= 1789478 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1789478, 'dashboard_run_id': 1797810, 'mtr_portfolio_id': 22812382, 'dashboard_result_id': 10429448, '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_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1797810, 'mtr_portfolio_id': 22812747, 'dashboard_result_id': 10429449, '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_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1797810, 'mtr_portfolio_id': 22813158, 'dashboard_result_id': 10429450, '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_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1797810, 'mtr_portfolio_id': 22813765, 'dashboard_result_id': 10429451, '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_P22813765_09-05-2025_08_12_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, '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 = 22812382 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': 2810497, 'mtr_portfolio_id': 22812382, 'created_at': datetime.datetime(2025, 5, 9, 7, 33), 'result': '0.03290544309501728', 'result_long': None, 'result_double': None}] Qualite : 0.03290544309501728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22812382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22812382 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_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, 'pht': 3726}}" where mtr_portfolio_id = 22812382 and dashboard_run_id = 1797812 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`=22812382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10429448, 0.03290544309501728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, '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 = 22812747 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': 2810539, 'mtr_portfolio_id': 22812747, 'created_at': datetime.datetime(2025, 5, 9, 7, 46, 59), 'result': '0.04560334557780507', 'result_long': None, 'result_double': None}] Qualite : 0.04560334557780507 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22812747 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22812747 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_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, 'pht': 3726}}" where mtr_portfolio_id = 22812747 and dashboard_run_id = 1797812 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`=22812747 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10429449, 0.04560334557780507, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, '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 = 22813158 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': 2810590, 'mtr_portfolio_id': 22813158, 'created_at': datetime.datetime(2025, 5, 9, 8, 2, 58), 'result': '0.06227089715816248', 'result_long': None, 'result_double': None}] Qualite : 0.06227089715816248 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22813158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22813158 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_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, 'pht': 3726}}" where mtr_portfolio_id = 22813158 and dashboard_run_id = 1797812 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`=22813158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10429450, 0.06227089715816248, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, '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 = 22813765 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': 2810664, 'mtr_portfolio_id': 22813765, 'created_at': datetime.datetime(2025, 5, 9, 8, 14, 59), 'result': '0.06494928596269031', 'result_long': None, 'result_double': None}] Qualite : 0.06494928596269031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22813765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22813765 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_P22813765_09-05-2025_08_14_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, 'pht': 3726}}" where mtr_portfolio_id = 22813765 and dashboard_run_id = 1797812 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`=22813765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10429451, 0.06494928596269031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_14_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, '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 (22812382,22812747,22813158,22813765) result : ((1357127691,), (1357127694,), (1357127696,), (1357127698,), (1357127741,), (1357127745,), (1357127748,), (1357127756,), (1357127830,), (1357127835,), (1357127885,), (1357127889,), (1357127891,), (1357127896,), (1357127935,), (1357127938,), (1357127942,), (1357127946,), (1357127983,), (1357127989,), (1357127993,), (1357127996,), (1357128034,), (1357128038,), (1357128043,), (1357128098,), (1357128101,), (1357128104,), (1357128108,), (1357128163,), (1357128168,), (1357128173,), (1357128178,), (1357128230,), (1357128234,), (1357128237,), (1357128241,), (1357128285,), (1357128296,), (1357128304,), (1357128348,), (1357128351,), (1357128355,), (1357128359,), (1357128364,), (1357128372,), (1357128533,), (1357128538,), (1357128542,), (1357128598,), (1357128602,), (1357128607,), (1357128659,), (1357128653,), (1357128656,), (1357128709,), (1357128714,), (1357128718,), (1357128722,), (1357128727,), (1357128732,), (1357128766,), (1357128772,), (1357128776,), (1357128783,), (1357128787,), (1357128819,), (1357128826,), (1357128830,), (1357128844,), (1357128902,), (1357128908,), (1357128913,), (1357128917,), (1357128921,), (1357128961,), (1357128966,), (1357128971,), (1357128976,), (1357129019,), (1357129027,), (1357129032,), (1357129034,), (1357129039,), (1357129075,), (1357129149,), (1357129205,), (1357129209,), (1357129212,), (1357129215,), (1357129219,), (1357129260,), (1357129265,), (1357129270,), (1357129315,), (1357129319,), (1357129330,), (1357129334,), (1357129350,), (1357129395,), (1357129399,), (1357129405,), (1357129411,), (1357129415,), (1357129463,), (1357129466,), (1357129470,), (1357129473,), (1357129543,), (1357129547,), (1357129551,), (1357129554,), (1357129591,), (1357129597,), (1357129703,), (1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,), (1357131639,), (1357131722,), (1357131784,), (1357131846,), (1357131900,), (1357131950,), (1357132198,), (1357132277,), (1357132361,), (1357132437,), (1357132822,), (1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09052025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22813765]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1357136225, 1357136222, 1357136220, 1357136177, 1357136174, 1357136172, 1357136170, 1357136166] map_info['map_portfolio_photo'] : {22813765: [1357136225, 1357136222, 1357136220, 1357136177, 1357136174, 1357136172, 1357136170, 1357136166, 1357136062, 1357136055, 1357136040, 1357136023, 1357136019, 1357135966, 1357135955, 1357135946, 1357135943, 1357135937, 1357135888, 1357135864, 1357135836, 1357135809, 1357135624, 1357135620, 1357135618, 1357135616, 1357135612, 1357135562, 1357135534, 1357135523, 1357135500, 1357135245, 1357135243, 1357135239, 1357135237, 1357135225, 1357135186, 1357134956, 1357134918, 1357134913, 1357134908, 1357134736, 1357134542, 1357134081, 1357134079, 1357134074, 1357133902, 1357133895, 1357133888, 1357133865, 1357133838, 1357133536, 1357133489, 1357133462, 1357133433, 1357133417, 1357132768, 1357132713]} final : True mtd_id 4302 list_pids : [1357136225, 1357136222, 1357136220, 1357136177, 1357136174, 1357136172, 1357136170, 1357136166] Looping around the photos to save general results len do output : 1 /22813765Didn'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, '2810664') ('4302', '22813765', '1357136225', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136222', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136220', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136177', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136174', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136172', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136170', None, None, None, None, None, '2810664') ('4302', None, None, None, None, None, None, None, '2810664') ('4302', '22813765', '1357136166', None, None, None, None, None, '2810664') 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, '22813765', 'None', None, None, None, None, '2810664'), ('4302', '22813765', '1357136225', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136222', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136220', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136177', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136174', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136172', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136170', None, None, None, None, None, '2810664'), ('4302', '22813765', '1357136166', None, None, None, None, None, '2810664')] time used for this insertion : 0.07114601135253906 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.35081934928894043 time spend to save output : 0.07135891914367676 total time spend for step 5 : 0.4221782684326172 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 (2810664) 2.05user 2.43system 0:08.21elapsed 54%CPU (0avgtext+0avgdata 159256maxresident)k 168inputs+12744outputs (3major+64541minor)pagefaults 0swaps