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 : 2174185 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 (2763299) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2763299) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22441671 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2763299'] with mtr_portfolio_ids : ['22441671'] and first list_photo_ids : [] new path : /proc/2174185/ Name: python3 Umask: 0002 State: R (running) Tgid: 2174185 Ngid: 0 Pid: 2174185 PPid: 2174184 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2174185 NSpid: 2174185 NSpgid: 2171267 NSsid: 2171267 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98208 kB VmRSS: 98208 kB RssAnon: 59804 kB RssFile: 38404 kB RssShmem: 0 kB VmData: 865684 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: 48 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2174185', 'Ngid': '0', 'Pid': '2174185', 'PPid': '2174184', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2174185', 'NSpid': '2174185', 'NSpgid': '2171267', 'NSsid': '2171267', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98208 kB', 'VmRSS': '98208 kB', 'RssAnon': '59804 kB', 'RssFile': '38404 kB', 'RssShmem': '0 kB', 'VmData': '865684 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': '48', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '2174185', '1106936', '0', '1106936', '865684', '98208', b'', 'marlene', '2763299') 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 (22441671) 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 (2763299 ) ) 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 (22441671) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353806808, 'portfolio_id': 22441671}, {'photo_id': 1353806806, 'portfolio_id': 22441671}, {'photo_id': 1353806803, 'portfolio_id': 22441671}, {'photo_id': 1353806745, 'portfolio_id': 22441671}, {'photo_id': 1353806742, 'portfolio_id': 22441671}, {'photo_id': 1353806739, 'portfolio_id': 22441671}, {'photo_id': 1353806736, 'portfolio_id': 22441671}, {'photo_id': 1353806732, 'portfolio_id': 22441671}, {'photo_id': 1353806725, 'portfolio_id': 22441671}, {'photo_id': 1353806500, 'portfolio_id': 22441671}, {'photo_id': 1353806496, 'portfolio_id': 22441671}, {'photo_id': 1353806477, 'portfolio_id': 22441671}, {'photo_id': 1353806455, 'portfolio_id': 22441671}, {'photo_id': 1353806418, 'portfolio_id': 22441671}, {'photo_id': 1353806375, 'portfolio_id': 22441671}, {'photo_id': 1353806155, 'portfolio_id': 22441671}, {'photo_id': 1353806152, 'portfolio_id': 22441671}, {'photo_id': 1353806145, 'portfolio_id': 22441671}, {'photo_id': 1353806133, 'portfolio_id': 22441671}, {'photo_id': 1353806098, 'portfolio_id': 22441671}, {'photo_id': 1353806095, 'portfolio_id': 22441671}, {'photo_id': 1353806091, 'portfolio_id': 22441671}, {'photo_id': 1353806088, 'portfolio_id': 22441671}, {'photo_id': 1353806085, 'portfolio_id': 22441671}, {'photo_id': 1353806080, 'portfolio_id': 22441671}, {'photo_id': 1353806027, 'portfolio_id': 22441671}, {'photo_id': 1353806008, 'portfolio_id': 22441671}, {'photo_id': 1353806004, 'portfolio_id': 22441671}, {'photo_id': 1353805991, 'portfolio_id': 22441671}, {'photo_id': 1353805962, 'portfolio_id': 22441671}, {'photo_id': 1353805937, 'portfolio_id': 22441671}, {'photo_id': 1353805669, 'portfolio_id': 22441671}, {'photo_id': 1353805661, 'portfolio_id': 22441671}, {'photo_id': 1353805656, 'portfolio_id': 22441671}, {'photo_id': 1353805652, 'portfolio_id': 22441671}, {'photo_id': 1353805464, 'portfolio_id': 22441671}, {'photo_id': 1353805461, 'portfolio_id': 22441671}, {'photo_id': 1353805460, 'portfolio_id': 22441671}, {'photo_id': 1353805451, 'portfolio_id': 22441671}, {'photo_id': 1353805448, 'portfolio_id': 22441671}, {'photo_id': 1353805092, 'portfolio_id': 22441671}, {'photo_id': 1353805076, 'portfolio_id': 22441671}, {'photo_id': 1353805061, 'portfolio_id': 22441671}, {'photo_id': 1353805040, 'portfolio_id': 22441671}, {'photo_id': 1353804999, 'portfolio_id': 22441671}, {'photo_id': 1353804997, 'portfolio_id': 22441671}, {'photo_id': 1353804995, 'portfolio_id': 22441671}, {'photo_id': 1353804992, 'portfolio_id': 22441671}, {'photo_id': 1353804693, 'portfolio_id': 22441671}, {'photo_id': 1353804689, 'portfolio_id': 22441671}, {'photo_id': 1353804687, 'portfolio_id': 22441671}, {'photo_id': 1353804671, 'portfolio_id': 22441671}, {'photo_id': 1353804652, 'portfolio_id': 22441671}] map_portfolio_id_photo_id: {22441671: [1353806808, 1353806806, 1353806803, 1353806745, 1353806742, 1353806739, 1353806736, 1353806732, 1353806725, 1353806500, 1353806496, 1353806477, 1353806455, 1353806418, 1353806375, 1353806155, 1353806152, 1353806145, 1353806133, 1353806098, 1353806095, 1353806091, 1353806088, 1353806085, 1353806080, 1353806027, 1353806008, 1353806004, 1353805991, 1353805962, 1353805937, 1353805669, 1353805661, 1353805656, 1353805652, 1353805464, 1353805461, 1353805460, 1353805451, 1353805448, 1353805092, 1353805076, 1353805061, 1353805040, 1353804999, 1353804997, 1353804995, 1353804992, 1353804693, 1353804689, 1353804687, 1353804671, 1353804652]} ##### 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.015775442123413086 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 25 16:56:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22441671) 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 : 22441671 get user id for portfolio 22441671 get sub ptf for main ptf 22441671, type 3726 and hashtags ['cartonnette', 'Carton_gris', 'flou', 'autre_refus', 'Teint_Dans_La_Masse', 'kraft', 'metal', 'papier', 'mal_croppe', 'Carton_brun', 'plastique', 'environnement'] 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`=22441671 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','flou','autre_refus','Teint_Dans_La_Masse','kraft','metal','papier','mal_croppe','Carton_brun','plastique','environnement')) 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`=22441671 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','flou','autre_refus','Teint_Dans_La_Masse','kraft','metal','papier','mal_croppe','Carton_brun','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22441671, 'sub_port_id': 22441701, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886878, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 28)}, 'cartonnette': {'main_port_id': 22441671, 'sub_port_id': 22441702, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886879, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 28)}, 'kraft': {'main_port_id': 22441671, 'sub_port_id': 22441703, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886880, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 28)}, 'Carton_brun': {'main_port_id': 22441671, 'sub_port_id': 22441704, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886881, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 28)}, 'mal_croppe': {'main_port_id': 22441671, 'sub_port_id': 22441705, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886882, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22441671, 'sub_port_id': 22441706, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886883, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 28)}, 'environnement': {'main_port_id': 22441671, 'sub_port_id': 22441707, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886884, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 28)}, 'plastique': {'main_port_id': 22441671, 'sub_port_id': 22441708, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886885, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 28)}, 'Carton_gris': {'main_port_id': 22441671, 'sub_port_id': 22441709, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886886, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 28)}, 'papier': {'main_port_id': 22441671, 'sub_port_id': 22441710, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886887, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 28)}, 'metal': {'main_port_id': 22441671, 'sub_port_id': 22441711, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886888, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 28)}, 'flou': {'main_port_id': 22441671, 'sub_port_id': 22441712, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886889, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22441701 , 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=22441671 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 (22441701) result : ((1353805581,), (1353805924,), (1353805925,), (1353805926,), (1353806067,), (1353806791,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22441671) result : ((1353804652,), (1353804671,), (1353804687,), (1353804689,), (1353804693,), (1353804992,), (1353804995,), (1353804997,), (1353804999,), (1353805040,), (1353805061,), (1353805076,), (1353805092,), (1353805448,), (1353805451,), (1353805460,), (1353805461,), (1353805464,), (1353805652,), (1353805656,), (1353805661,), (1353805669,), (1353805937,), (1353805962,), (1353805991,), (1353806004,), (1353806008,), (1353806027,), (1353806080,), (1353806085,), (1353806088,), (1353806091,), (1353806095,), (1353806098,), (1353806133,), (1353806145,), (1353806152,), (1353806155,), (1353806375,), (1353806418,), (1353806455,), (1353806477,), (1353806496,), (1353806500,), (1353806725,), (1353806732,), (1353806736,), (1353806739,), (1353806742,), (1353806745,), (1353806803,), (1353806806,), (1353806808,)) 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 (1353806500) 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 22441702 , 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=22441671 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 (22441702) result : ((1353805591,), (1353805929,), (1353806070,), (1353806071,), (1353806072,), (1353806129,), (1353806130,), (1353806131,), (1353806796,), (1353806797,), (1353806798,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22441671) result : ((1353804652,), (1353804671,), (1353804687,), (1353804689,), (1353804693,), (1353804992,), (1353804995,), (1353804997,), (1353804999,), (1353805040,), (1353805061,), (1353805076,), (1353805092,), (1353805448,), (1353805451,), (1353805460,), (1353805461,), (1353805464,), (1353805652,), (1353805656,), (1353805661,), (1353805669,), (1353805937,), (1353805962,), (1353805991,), (1353806004,), (1353806008,), (1353806027,), (1353806080,), (1353806085,), (1353806088,), (1353806091,), (1353806095,), (1353806098,), (1353806133,), (1353806145,), (1353806152,), (1353806155,), (1353806375,), (1353806418,), (1353806455,), (1353806477,), (1353806496,), (1353806500,), (1353806725,), (1353806732,), (1353806736,), (1353806739,), (1353806742,), (1353806745,), (1353806803,), (1353806806,), (1353806808,)) 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 (1353806500) 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 22441703 , 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=22441671 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 (22441703) result : ((1353805668,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22441671) result : ((1353804652,), (1353804671,), (1353804687,), (1353804689,), (1353804693,), (1353804992,), (1353804995,), (1353804997,), (1353804999,), (1353805040,), (1353805061,), (1353805076,), (1353805092,), (1353805448,), (1353805451,), (1353805460,), (1353805461,), (1353805464,), (1353805652,), (1353805656,), (1353805661,), (1353805669,), (1353805937,), (1353805962,), (1353805991,), (1353806004,), (1353806008,), (1353806027,), (1353806080,), (1353806085,), (1353806088,), (1353806091,), (1353806095,), (1353806098,), (1353806133,), (1353806145,), (1353806152,), (1353806155,), (1353806375,), (1353806418,), (1353806455,), (1353806477,), (1353806496,), (1353806500,), (1353806725,), (1353806732,), (1353806736,), (1353806739,), (1353806742,), (1353806745,), (1353806803,), (1353806806,), (1353806808,)) 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 (1353806500) 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 22441704 , 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=22441671 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 (22441704) result : ((1353805597,), (1353805662,), (1353805663,), (1353805930,), (1353805931,), (1353805932,), (1353805933,), (1353805934,), (1353806074,), (1353806075,), (1353806134,), (1353806135,), (1353806136,), (1353806137,), (1353806138,), (1353806139,), (1353806434,), (1353806437,), (1353806799,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22441671) result : ((1353804652,), (1353804671,), (1353804687,), (1353804689,), (1353804693,), (1353804992,), (1353804995,), (1353804997,), (1353804999,), (1353805040,), (1353805061,), (1353805076,), (1353805092,), (1353805448,), (1353805451,), (1353805460,), (1353805461,), (1353805464,), (1353805652,), (1353805656,), (1353805661,), (1353805669,), (1353805937,), (1353805962,), (1353805991,), (1353806004,), (1353806008,), (1353806027,), (1353806080,), (1353806085,), (1353806088,), (1353806091,), (1353806095,), (1353806098,), (1353806133,), (1353806145,), (1353806152,), (1353806155,), (1353806375,), (1353806418,), (1353806455,), (1353806477,), (1353806496,), (1353806500,), (1353806725,), (1353806732,), (1353806736,), (1353806739,), (1353806742,), (1353806745,), (1353806803,), (1353806806,), (1353806808,)) 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 (1353806500) 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 22441705 , 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=22441671 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 (22441705) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22441671) result : ((1353804652,), (1353804671,), (1353804687,), (1353804689,), (1353804693,), (1353804992,), (1353804995,), (1353804997,), (1353804999,), (1353805040,), (1353805061,), (1353805076,), (1353805092,), (1353805448,), (1353805451,), (1353805460,), (1353805461,), (1353805464,), (1353805652,), (1353805656,), (1353805661,), (1353805669,), (1353805937,), (1353805962,), (1353805991,), (1353806004,), (1353806008,), (1353806027,), (1353806080,), (1353806085,), (1353806088,), (1353806091,), (1353806095,), (1353806098,), (1353806133,), (1353806145,), (1353806152,), (1353806155,), (1353806375,), (1353806418,), (1353806455,), (1353806477,), (1353806496,), (1353806500,), (1353806725,), (1353806732,), (1353806736,), (1353806739,), (1353806742,), (1353806745,), (1353806803,), (1353806806,), (1353806808,)) 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 (1353806500) 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 22441706 , 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=22441671 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 (22441706) result : ((1353805572,), (1353805923,), (1353806065,), (1353806066,), (1353806119,), (1353806120,), (1353806789,), (1353806790,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22441671) result : ((1353804652,), (1353804671,), (1353804687,), (1353804689,), (1353804693,), (1353804992,), (1353804995,), (1353804997,), (1353804999,), (1353805040,), (1353805061,), (1353805076,), (1353805092,), (1353805448,), (1353805451,), (1353805460,), (1353805461,), (1353805464,), (1353805652,), (1353805656,), (1353805661,), (1353805669,), (1353805937,), (1353805962,), (1353805991,), (1353806004,), (1353806008,), (1353806027,), (1353806080,), (1353806085,), (1353806088,), (1353806091,), (1353806095,), (1353806098,), (1353806133,), (1353806145,), (1353806152,), (1353806155,), (1353806375,), (1353806418,), (1353806455,), (1353806477,), (1353806496,), (1353806500,), (1353806725,), (1353806732,), (1353806736,), (1353806739,), (1353806742,), (1353806745,), (1353806803,), (1353806806,), (1353806808,)) 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 (1353806500) 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 22441707 , 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=22441671 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 (22441707) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22441671) result : ((1353804652,), (1353804671,), (1353804687,), (1353804689,), (1353804693,), (1353804992,), (1353804995,), (1353804997,), (1353804999,), (1353805040,), (1353805061,), (1353805076,), (1353805092,), (1353805448,), (1353805451,), (1353805460,), (1353805461,), (1353805464,), (1353805652,), (1353805656,), (1353805661,), (1353805669,), (1353805937,), (1353805962,), (1353805991,), (1353806004,), (1353806008,), (1353806027,), (1353806080,), (1353806085,), (1353806088,), (1353806091,), (1353806095,), (1353806098,), (1353806133,), (1353806145,), (1353806152,), (1353806155,), (1353806375,), (1353806418,), (1353806455,), (1353806477,), (1353806496,), (1353806500,), (1353806725,), (1353806732,), (1353806736,), (1353806739,), (1353806742,), (1353806745,), (1353806803,), (1353806806,), (1353806808,)) 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 (1353806500) 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 22441708 , 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=22441671 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 (22441708) result : ((1353805606,), (1353805607,), (1353805665,), (1353805936,), (1353806141,), (1353806447,), (1353806449,), (1353806800,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22441671) result : ((1353804652,), (1353804671,), (1353804687,), (1353804689,), (1353804693,), (1353804992,), (1353804995,), (1353804997,), (1353804999,), (1353805040,), (1353805061,), (1353805076,), (1353805092,), (1353805448,), (1353805451,), (1353805460,), (1353805461,), (1353805464,), (1353805652,), (1353805656,), (1353805661,), (1353805669,), (1353805937,), (1353805962,), (1353805991,), (1353806004,), (1353806008,), (1353806027,), (1353806080,), (1353806085,), (1353806088,), (1353806091,), (1353806095,), (1353806098,), (1353806133,), (1353806145,), (1353806152,), (1353806155,), (1353806375,), (1353806418,), (1353806455,), (1353806477,), (1353806496,), (1353806500,), (1353806725,), (1353806732,), (1353806736,), (1353806739,), (1353806742,), (1353806745,), (1353806803,), (1353806806,), (1353806808,)) 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 (1353806500) 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 22441709 , 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=22441671 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 (22441709) result : ((1353805660,), (1353805927,), (1353805928,), (1353806069,), (1353806123,), (1353806124,), (1353806125,), (1353806126,), (1353806127,), (1353806420,), (1353806422,), (1353806793,), (1353806794,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22441671) result : ((1353804652,), (1353804671,), (1353804687,), (1353804689,), (1353804693,), (1353804992,), (1353804995,), (1353804997,), (1353804999,), (1353805040,), (1353805061,), (1353805076,), (1353805092,), (1353805448,), (1353805451,), (1353805460,), (1353805461,), (1353805464,), (1353805652,), (1353805656,), (1353805661,), (1353805669,), (1353805937,), (1353805962,), (1353805991,), (1353806004,), (1353806008,), (1353806027,), (1353806080,), (1353806085,), (1353806088,), (1353806091,), (1353806095,), (1353806098,), (1353806133,), (1353806145,), (1353806152,), (1353806155,), (1353806375,), (1353806418,), (1353806455,), (1353806477,), (1353806496,), (1353806500,), (1353806725,), (1353806732,), (1353806736,), (1353806739,), (1353806742,), (1353806745,), (1353806803,), (1353806806,), (1353806808,)) 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 (1353806500) 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 22441710 , 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=22441671 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 (22441710) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22441671) result : ((1353804652,), (1353804671,), (1353804687,), (1353804689,), (1353804693,), (1353804992,), (1353804995,), (1353804997,), (1353804999,), (1353805040,), (1353805061,), (1353805076,), (1353805092,), (1353805448,), (1353805451,), (1353805460,), (1353805461,), (1353805464,), (1353805652,), (1353805656,), (1353805661,), (1353805669,), (1353805937,), (1353805962,), (1353805991,), (1353806004,), (1353806008,), (1353806027,), (1353806080,), (1353806085,), (1353806088,), (1353806091,), (1353806095,), (1353806098,), (1353806133,), (1353806145,), (1353806152,), (1353806155,), (1353806375,), (1353806418,), (1353806455,), (1353806477,), (1353806496,), (1353806500,), (1353806725,), (1353806732,), (1353806736,), (1353806739,), (1353806742,), (1353806745,), (1353806803,), (1353806806,), (1353806808,)) 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 (1353806500) 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 22441711 , 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=22441671 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 (22441711) result : ((1353806076,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22441671) result : ((1353804652,), (1353804671,), (1353804687,), (1353804689,), (1353804693,), (1353804992,), (1353804995,), (1353804997,), (1353804999,), (1353805040,), (1353805061,), (1353805076,), (1353805092,), (1353805448,), (1353805451,), (1353805460,), (1353805461,), (1353805464,), (1353805652,), (1353805656,), (1353805661,), (1353805669,), (1353805937,), (1353805962,), (1353805991,), (1353806004,), (1353806008,), (1353806027,), (1353806080,), (1353806085,), (1353806088,), (1353806091,), (1353806095,), (1353806098,), (1353806133,), (1353806145,), (1353806152,), (1353806155,), (1353806375,), (1353806418,), (1353806455,), (1353806477,), (1353806496,), (1353806500,), (1353806725,), (1353806732,), (1353806736,), (1353806739,), (1353806742,), (1353806745,), (1353806803,), (1353806806,), (1353806808,)) 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 (1353806500) 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 22441712 , 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=22441671 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 (22441712) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22441671) result : ((1353804652,), (1353804671,), (1353804687,), (1353804689,), (1353804693,), (1353804992,), (1353804995,), (1353804997,), (1353804999,), (1353805040,), (1353805061,), (1353805076,), (1353805092,), (1353805448,), (1353805451,), (1353805460,), (1353805461,), (1353805464,), (1353805652,), (1353805656,), (1353805661,), (1353805669,), (1353805937,), (1353805962,), (1353805991,), (1353806004,), (1353806008,), (1353806027,), (1353806080,), (1353806085,), (1353806088,), (1353806091,), (1353806095,), (1353806098,), (1353806133,), (1353806145,), (1353806152,), (1353806155,), (1353806375,), (1353806418,), (1353806455,), (1353806477,), (1353806496,), (1353806500,), (1353806725,), (1353806732,), (1353806736,), (1353806739,), (1353806742,), (1353806745,), (1353806803,), (1353806806,), (1353806808,)) 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 (1353806500) 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`=22441671 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','flou','autre_refus','Teint_Dans_La_Masse','kraft','metal','papier','mal_croppe','Carton_brun','plastique','environnement')) 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`=22441671 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','flou','autre_refus','Teint_Dans_La_Masse','kraft','metal','papier','mal_croppe','Carton_brun','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22441671, 'sub_port_id': 22441713, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886890, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 30)}, 'cartonnette': {'main_port_id': 22441671, 'sub_port_id': 22441714, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886891, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 30)}, 'kraft': {'main_port_id': 22441671, 'sub_port_id': 22441715, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886892, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 30)}, 'Carton_brun': {'main_port_id': 22441671, 'sub_port_id': 22441716, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886893, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 30)}, 'mal_croppe': {'main_port_id': 22441671, 'sub_port_id': 22441717, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886894, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22441671, 'sub_port_id': 22441718, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886895, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 30)}, 'environnement': {'main_port_id': 22441671, 'sub_port_id': 22441719, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886896, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 30)}, 'plastique': {'main_port_id': 22441671, 'sub_port_id': 22441720, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886897, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 30)}, 'Carton_gris': {'main_port_id': 22441671, 'sub_port_id': 22441721, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886898, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 30)}, 'papier': {'main_port_id': 22441671, 'sub_port_id': 22441722, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886899, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 30)}, 'metal': {'main_port_id': 22441671, 'sub_port_id': 22441723, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886900, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 30)}, 'flou': {'main_port_id': 22441671, 'sub_port_id': 22441724, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14886901, 'last_updated_at': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 16, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 16, 51, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22441713,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22441701 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22441714,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22441702 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22441715,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22441703 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22441716,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22441704 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22441717,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22441705 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22441718,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22441706 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22441719,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22441707 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22441720,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22441708 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22441721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22441709 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22441722,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22441710 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22441723,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22441711 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22441724,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22441712 lien utilise dans velours : https://www.fotonower.com/velours/22441713,22441714,22441715,22441716,22441717,22441718,22441719,22441720,22441721,22441722,22441723,22441724?tags=autre_refus,cartonnette,kraft,Carton_brun,mal_croppe,Teint_Dans_La_Masse,environnement,plastique,Carton_gris,papier,metal,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22441671]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353806808, 1353806806, 1353806803, 1353806745, 1353806742, 1353806739, 1353806736, 1353806732, 1353806725, 1353806500, 1353806496, 1353806477, 1353806455, 1353806418, 1353806375] map_info['map_portfolio_photo'] : {22441671: [1353806808, 1353806806, 1353806803, 1353806745, 1353806742, 1353806739, 1353806736, 1353806732, 1353806725, 1353806500, 1353806496, 1353806477, 1353806455, 1353806418, 1353806375, 1353806155, 1353806152, 1353806145, 1353806133, 1353806098, 1353806095, 1353806091, 1353806088, 1353806085, 1353806080, 1353806027, 1353806008, 1353806004, 1353805991, 1353805962, 1353805937, 1353805669, 1353805661, 1353805656, 1353805652, 1353805464, 1353805461, 1353805460, 1353805451, 1353805448, 1353805092, 1353805076, 1353805061, 1353805040, 1353804999, 1353804997, 1353804995, 1353804992, 1353804693, 1353804689, 1353804687, 1353804671, 1353804652]} final : False mtd_id 4302 list_pids : [1353806808, 1353806806, 1353806803, 1353806745, 1353806742, 1353806739, 1353806736, 1353806732, 1353806725, 1353806500, 1353806496, 1353806477, 1353806455, 1353806418, 1353806375] Looping around the photos to save general results len do output : 1 /22441671. 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, '2763299') ('4302', '22441671', '1353806808', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806806', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806803', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806745', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806742', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806739', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806736', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806732', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806725', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806500', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806496', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806477', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806455', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806418', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806375', None, None, None, None, None, '2763299') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '22441671', "{'autre_refus': 22441701, 'cartonnette': 22441702, 'kraft': 22441703, 'Carton_brun': 22441704, 'mal_croppe': 22441705, 'Teint_Dans_La_Masse': 22441706, 'environnement': 22441707, 'plastique': 22441708, 'Carton_gris': 22441709, 'papier': 22441710, 'metal': 22441711, 'flou': 22441712}", None, None, None, None, '2763299'), ('4302', '22441671', '1353806808', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806806', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806803', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806745', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806742', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806739', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806736', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806732', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806725', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806500', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806496', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806477', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806455', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806418', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806375', None, None, None, None, None, '2763299')] time used for this insertion : 0.014636039733886719 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5153119564056396 time spend to save output : 0.014979839324951172 total time spend for step 1 : 0.5302917957305908 step2:final Fri Apr 25 16:56:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22441671) 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 22441671 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353804693,1353804689,1353804687,1353804671,1353804652,1353804999,1353804997,1353804995,1353804992,1353805092,1353805076,1353805061,1353805040,1353805464,1353805461,1353805460,1353805451,1353805448,1353805669,1353805661,1353805656,1353805652,1353806027,1353806008,1353806004,1353805991,1353805962,1353805937,1353806098,1353806095,1353806091,1353806088,1353806085,1353806080,1353806155,1353806152,1353806145,1353806133,1353806500,1353806496,1353806477,1353806455,1353806418,1353806375,1353806745,1353806742,1353806739,1353806736,1353806732,1353806725,1353806808,1353806806,1353806803); 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([22441671]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} new output for save of step final : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} [1353806808, 1353806806, 1353806803, 1353806745, 1353806742, 1353806739, 1353806736, 1353806732, 1353806725, 1353806500, 1353806496, 1353806477, 1353806455, 1353806418, 1353806375] map_info['map_portfolio_photo'] : {22441671: [1353806808, 1353806806, 1353806803, 1353806745, 1353806742, 1353806739, 1353806736, 1353806732, 1353806725, 1353806500, 1353806496, 1353806477, 1353806455, 1353806418, 1353806375, 1353806155, 1353806152, 1353806145, 1353806133, 1353806098, 1353806095, 1353806091, 1353806088, 1353806085, 1353806080, 1353806027, 1353806008, 1353806004, 1353805991, 1353805962, 1353805937, 1353805669, 1353805661, 1353805656, 1353805652, 1353805464, 1353805461, 1353805460, 1353805451, 1353805448, 1353805092, 1353805076, 1353805061, 1353805040, 1353804999, 1353804997, 1353804995, 1353804992, 1353804693, 1353804689, 1353804687, 1353804671, 1353804652]} final : False mtd_id 4302 list_pids : [1353806808, 1353806806, 1353806803, 1353806745, 1353806742, 1353806739, 1353806736, 1353806732, 1353806725, 1353806500, 1353806496, 1353806477, 1353806455, 1353806418, 1353806375] Looping around the photos to save general results len do output : 15 /1353806808.Didn't retrieve data . /1353806806.Didn't retrieve data . /1353806803.Didn't retrieve data . /1353806745.Didn't retrieve data . /1353806742.Didn't retrieve data . /1353806739.Didn't retrieve data . /1353806736.Didn't retrieve data . /1353806732.Didn't retrieve data . /1353806725.Didn't retrieve data . /1353806500.Didn't retrieve data . /1353806496.Didn't retrieve data . /1353806477.Didn't retrieve data . /1353806455.Didn't retrieve data . /1353806418.Didn't retrieve data . /1353806375.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, '2763299') ('4302', '22441671', '1353806808', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806806', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806803', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806745', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806742', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806739', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806736', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806732', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806725', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806500', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806496', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806477', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806455', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806418', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806375', None, None, None, None, None, '2763299') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '22441671', '1353806808', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806806', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806803', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806745', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806742', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806739', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806736', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806732', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806725', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806500', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806496', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806477', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806455', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806418', '0.06088908452262574', None, None, None, None, '2763299'), ('4302', '22441671', '1353806375', '0.06088908452262574', None, None, None, None, '2763299')] time used for this insertion : 0.01737689971923828 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07480168342590332 time spend to save output : 0.018084049224853516 total time spend for step 2 : 0.09288573265075684 step3:velours_tree Fri Apr 25 16:56:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22441671: [{'autre_refus': 22441701, 'cartonnette': 22441702, 'kraft': 22441703, 'Carton_brun': 22441704, 'mal_croppe': 22441705, 'Teint_Dans_La_Masse': 22441706, 'environnement': 22441707, 'plastique': 22441708, 'Carton_gris': 22441709, 'papier': 22441710, 'metal': 22441711, 'flou': 22441712}]} input_args_next_step : {22441671: ()} output_args : {22441671: [{'autre_refus': 22441701, 'cartonnette': 22441702, 'kraft': 22441703, 'Carton_brun': 22441704, 'mal_croppe': 22441705, 'Teint_Dans_La_Masse': 22441706, 'environnement': 22441707, 'plastique': 22441708, 'Carton_gris': 22441709, 'papier': 22441710, 'metal': 22441711, 'flou': 22441712}]} args : 22441671 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 : ({'autre_refus': 22441701, 'cartonnette': 22441702, 'kraft': 22441703, 'Carton_brun': 22441704, 'mal_croppe': 22441705, 'Teint_Dans_La_Masse': 22441706, 'environnement': 22441707, 'plastique': 22441708, 'Carton_gris': 22441709, 'papier': 22441710, 'metal': 22441711, 'flou': 22441712},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22441671) 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([22441671]) 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.31177234649658203 time spend to save output : 7.200241088867188e-05 total time spend for step 3 : 0.3118443489074707 step4:send_mail_cod Fri Apr 25 16:56:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} input_args_next_step : {1353806808: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806808 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806806 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806803 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806745 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806742 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806739 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806736 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806732 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806725 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806500 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806496 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806477 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806455 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806418 depend.output_id : 0 input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ()} output_args : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',)} args : 1353806375 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 : {22441671: [{'autre_refus': 22441701, 'cartonnette': 22441702, 'kraft': 22441703, 'Carton_brun': 22441704, 'mal_croppe': 22441705, 'Teint_Dans_La_Masse': 22441706, 'environnement': 22441707, 'plastique': 22441708, 'Carton_gris': 22441709, 'papier': 22441710, 'metal': 22441711, 'flou': 22441712}]} input_args_next_step : {1353806808: ('0.06088908452262574',), 1353806806: ('0.06088908452262574',), 1353806803: ('0.06088908452262574',), 1353806745: ('0.06088908452262574',), 1353806742: ('0.06088908452262574',), 1353806739: ('0.06088908452262574',), 1353806736: ('0.06088908452262574',), 1353806732: ('0.06088908452262574',), 1353806725: ('0.06088908452262574',), 1353806500: ('0.06088908452262574',), 1353806496: ('0.06088908452262574',), 1353806477: ('0.06088908452262574',), 1353806455: ('0.06088908452262574',), 1353806418: ('0.06088908452262574',), 1353806375: ('0.06088908452262574',), 22441671: ()} output_args : {22441671: [{'autre_refus': 22441701, 'cartonnette': 22441702, 'kraft': 22441703, 'Carton_brun': 22441704, 'mal_croppe': 22441705, 'Teint_Dans_La_Masse': 22441706, 'environnement': 22441707, 'plastique': 22441708, 'Carton_gris': 22441709, 'papier': 22441710, 'metal': 22441711, 'flou': 22441712}]} args : 22441671 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 :16, first value : ('0.06088908452262574',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22441671) 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 (1353806808,1353806806,1353806803,1353806745,1353806742,1353806739,1353806736,1353806732,1353806725,1353806500,1353806496,1353806477,1353806455,1353806418,1353806375) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353806375 begin to download photo : 1353806496 begin to download photo : 1353806736 begin to download photo : 1353806803 download finish for photo 1353806803 begin to download photo : 1353806806 download finish for photo 1353806736 begin to download photo : 1353806739 download finish for photo 1353806375 begin to download photo : 1353806418 download finish for photo 1353806496 begin to download photo : 1353806500 download finish for photo 1353806806 begin to download photo : 1353806808 download finish for photo 1353806739 begin to download photo : 1353806742 download finish for photo 1353806418 begin to download photo : 1353806455 download finish for photo 1353806500 begin to download photo : 1353806725 download finish for photo 1353806808 download finish for photo 1353806742 begin to download photo : 1353806745 download finish for photo 1353806455 begin to download photo : 1353806477 download finish for photo 1353806725 begin to download photo : 1353806732 download finish for photo 1353806745 download finish for photo 1353806477 download finish for photo 1353806732 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 : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P22441671_25-04-2025_16_56_58.pdf 22441701 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=22441701 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353805581: '1745592553_2122783_1353805076_4e26c4f6500a864150ede41edfcc4275_rle_crop_3770293877_0.png', 1353805924: '1745592611_2123464_1353804689_3db5d743cd30c59e141e1f828afdf451_rle_crop_3770296659_0.png', 1353805925: '1745592611_2123464_1353804687_d3ac7dd735076a188daa39738cbf12a3_rle_crop_3770296675_0.png', 1353805926: '1745592611_2123464_1353804687_d3ac7dd735076a188daa39738cbf12a3_rle_crop_3770296678_0.png', 1353806067: '1745592672_2124074_1353805661_44baa791e9de87cde025004c406a9a44_rle_crop_3770297201_0.png', 1353806791: '1745592912_2126193_1353806085_6d2160617ddcbad0ab1aca5fcf87cb01_rle_crop_3770310650_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/a9c82d013573a15f27c74d3dfea17110_56674704.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/abda31bcfd4e761fadb5e6ef5e917391_43621156.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/1c5b9c87c60bf1ee4cd9a6ba168601ec_85566225.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/3514c1bc9d64d6c54a63655c5e65db50_54543861.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/a3a3dd5fc74e84df3df774cff9f84b9f_88535537.png change filename to text .imagette224417011745593018/ imagette224417011745593018/1745592553_2122783_1353805076_4e26c4f6500a864150ede41edfcc4275_rle_crop_3770293877_0.png.png imagette224417011745593018/1745592611_2123464_1353804687_d3ac7dd735076a188daa39738cbf12a3_rle_crop_3770296675_0.png.png imagette224417011745593018/1745592672_2124074_1353805661_44baa791e9de87cde025004c406a9a44_rle_crop_3770297201_0.png.png imagette224417011745593018/1745592611_2123464_1353804687_d3ac7dd735076a188daa39738cbf12a3_rle_crop_3770296678_0.png.png imagette224417011745593018/1745592611_2123464_1353804689_3db5d743cd30c59e141e1f828afdf451_rle_crop_3770296659_0.png.png imagette224417011745593018/1745592912_2126193_1353806085_6d2160617ddcbad0ab1aca5fcf87cb01_rle_crop_3770310650_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/bc51b4d901e83a770c6e7da76ec4b34b_78845125.png imagette224417011745593018 22441702 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=22441702 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353805591: '1745592553_2122783_1353805076_4e26c4f6500a864150ede41edfcc4275_rle_crop_3770293879_0.png', 1353805929: '1745592611_2123464_1353804652_4150fd2b77186a82f0da129415b4b4a6_rle_crop_3770296717_0.png', 1353806070: '1745592672_2124074_1353805661_44baa791e9de87cde025004c406a9a44_rle_crop_3770297196_0.png', 1353806071: '1745592672_2124074_1353805656_0a52752531a1b92c84191c8d9a61a13d_rle_crop_3770297236_0.png', 1353806072: '1745592672_2124074_1353805652_238a10053902efa43e2557802ad81e6f_rle_crop_3770297254_0.png', 1353806129: '1745592733_2124670_1353805669_b99a6cd62fc05c599693d730dfd819de_rle_crop_3770304895_0.png', 1353806130: '1745592733_2124670_1353805461_9436a004483cf78e85a75392a10e1ab0_rle_crop_3770305151_0.png', 1353806131: '1745592733_2124670_1353805460_6804d03ddc716952d11c91ae0b3feb44_rle_crop_3770305835_0.png', 1353806796: '1745592912_2126193_1353806095_ca76bc7c46f0540fa9eb07e92180637e_rle_crop_3770310611_0.png', 1353806797: '1745592912_2126193_1353806091_4237d978c61df0c4a1f768a7e755d728_rle_crop_3770310626_0.png', 1353806798: '1745592912_2126193_1353806085_6d2160617ddcbad0ab1aca5fcf87cb01_rle_crop_3770310648_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/abf8993ef06a4b8aec85749f1a6b20c8_52293613.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/aeb71913b10236633a9223caf04cda2f_13485108.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/fc23d86751e9942e91b6c14f425309ff_76061610.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0319f6da337ee595d74e269e46e94ef9_61535306.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/26c6395120a5b35086a2cb39bca30da4_1130085.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/036802afe0113059bdf0938a59a26da3_11577120.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/5666a5f7a6028cba5c5509361bfd4e93_14860704.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/9cdd16d31c06ef0e2fb5463912cff4f3_93839964.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/321d9cd1e9638d02f089077095dd08ae_76436839.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c6f34511185e711c9aca73327eaad5c4_28058133.png change filename to text .imagette224417021745593019/ imagette224417021745593019/1745592912_2126193_1353806085_6d2160617ddcbad0ab1aca5fcf87cb01_rle_crop_3770310648_0.png.png imagette224417021745593019/1745592553_2122783_1353805076_4e26c4f6500a864150ede41edfcc4275_rle_crop_3770293879_0.png.png imagette224417021745593019/1745592733_2124670_1353805669_b99a6cd62fc05c599693d730dfd819de_rle_crop_3770304895_0.png.png imagette224417021745593019/1745592611_2123464_1353804652_4150fd2b77186a82f0da129415b4b4a6_rle_crop_3770296717_0.png.png imagette224417021745593019/1745592733_2124670_1353805461_9436a004483cf78e85a75392a10e1ab0_rle_crop_3770305151_0.png.png imagette224417021745593019/1745592912_2126193_1353806091_4237d978c61df0c4a1f768a7e755d728_rle_crop_3770310626_0.png.png imagette224417021745593019/1745592672_2124074_1353805661_44baa791e9de87cde025004c406a9a44_rle_crop_3770297196_0.png.png imagette224417021745593019/1745592672_2124074_1353805652_238a10053902efa43e2557802ad81e6f_rle_crop_3770297254_0.png.png imagette224417021745593019/1745592733_2124670_1353805460_6804d03ddc716952d11c91ae0b3feb44_rle_crop_3770305835_0.png.png imagette224417021745593019/1745592912_2126193_1353806095_ca76bc7c46f0540fa9eb07e92180637e_rle_crop_3770310611_0.png.png imagette224417021745593019/1745592672_2124074_1353805656_0a52752531a1b92c84191c8d9a61a13d_rle_crop_3770297236_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7fecf14fe0d8d457ba6f1e9065b7e559_26197272.png imagette224417021745593019 22441703 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=22441703 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353805668: '1745592588_2092705_1353804997_b6377b64a8532eb3bad2b5ab2122f773_rle_crop_3770296298_0.png'} change filename to text .imagette224417031745593019/ imagette224417031745593019/1745592588_2092705_1353804997_b6377b64a8532eb3bad2b5ab2122f773_rle_crop_3770296298_0.png.png imagette224417051745593019/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/bb6777d2d3eae6aa7804cf8d2cd810c1_24762166.png imagette224417031745593019 22441705 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=22441705 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224417051745593019 22441708 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=22441708 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353805606: '1745592553_2122783_1353805061_177fcc48e42917fac966cdbdad168983_rle_crop_3770293897_0.png', 1353805607: '1745592553_2122783_1353805061_177fcc48e42917fac966cdbdad168983_rle_crop_3770293902_0.png', 1353805665: '1745592588_2092705_1353804997_b6377b64a8532eb3bad2b5ab2122f773_rle_crop_3770296308_0.png', 1353805936: '1745592611_2123464_1353804693_0ebbcf5a89c9f8f66c11dfd32e7cb8e8_rle_crop_3770296639_0.png', 1353806141: '1745592733_2124670_1353805460_6804d03ddc716952d11c91ae0b3feb44_rle_crop_3770305838_0.png', 1353806447: '1745592823_2099080_1353806004_5311c4f7516620a4ebefc4b31843637a_rle_crop_3770310088_0.png', 1353806449: '1745592823_2099080_1353805991_8f9558327ea1f182e515332b1d45940b_rle_crop_3770310097_0.png', 1353806800: '1745592912_2126193_1353806085_6d2160617ddcbad0ab1aca5fcf87cb01_rle_crop_3770310645_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e549a1d2b391048389f0eb04de8d72b5_89622923.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b9a3f312f56c66140b31e11fb40784a2_4794499.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/62ac1b8b20be8781a978f35ba65c6e64_28924942.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/38a322424efa3d88cc50fbdba3f2d7c5_14962472.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/2fe37f557c304b3ade372235b953e222_11706122.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8e93663b4637341e82ff0e45d92c1f47_5114490.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/bd6a71ec7ed614c9922ab8d61a74c585_56932821.png change filename to text .imagette224417081745593019/ imagette224417081745593019/1745592823_2099080_1353806004_5311c4f7516620a4ebefc4b31843637a_rle_crop_3770310088_0.png.png imagette224417081745593019/1745592912_2126193_1353806085_6d2160617ddcbad0ab1aca5fcf87cb01_rle_crop_3770310645_0.png.png imagette224417081745593019/1745592823_2099080_1353805991_8f9558327ea1f182e515332b1d45940b_rle_crop_3770310097_0.png.png imagette224417081745593019/1745592588_2092705_1353804997_b6377b64a8532eb3bad2b5ab2122f773_rle_crop_3770296308_0.png.png imagette224417081745593019/1745592553_2122783_1353805061_177fcc48e42917fac966cdbdad168983_rle_crop_3770293897_0.png.png imagette224417081745593019/1745592733_2124670_1353805460_6804d03ddc716952d11c91ae0b3feb44_rle_crop_3770305838_0.png.png imagette224417081745593019/1745592553_2122783_1353805061_177fcc48e42917fac966cdbdad168983_rle_crop_3770293902_0.png.png imagette224417081745593019/1745592611_2123464_1353804693_0ebbcf5a89c9f8f66c11dfd32e7cb8e8_rle_crop_3770296639_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/84eb54d332cdf304c717b36ec466e18f_26911328.png imagette224417081745593019 22441711 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=22441711 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353806076: '1745592672_2124074_1353805656_0a52752531a1b92c84191c8d9a61a13d_rle_crop_3770297234_0.png'} change filename to text .imagette224417111745593020/ imagette224417111745593020/1745592672_2124074_1353805656_0a52752531a1b92c84191c8d9a61a13d_rle_crop_3770297234_0.png.png imagette224417121745593020/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/72af35862546a27f694e75d3071a2cc6_14476596.png imagette224417111745593020 22441712 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=22441712 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224417121745593020 22441704 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=22441704 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353806075: '1745592672_2124074_1353805652_238a10053902efa43e2557802ad81e6f_rle_crop_3770297261_0.png', 1353806799: '1745592912_2126193_1353806080_16993935ac37f2439b1accf34d4c849a_rle_crop_3770310660_0.png', 1353806437: '1745592823_2099080_1353805962_6e9fbcb315dfb18c05c55399799bd715_rle_crop_3770310105_0.png', 1353806434: '1745592823_2099080_1353806004_5311c4f7516620a4ebefc4b31843637a_rle_crop_3770310084_0.png', 1353806139: '1745592733_2124670_1353805448_c353835d6528c3d17e3bda1324114d23_rle_crop_3770306115_0.png', 1353806138: '1745592733_2124670_1353805451_3b4805369581b371e01adfb38e68c1e3_rle_crop_3770306093_0.png', 1353806137: '1745592733_2124670_1353805451_3b4805369581b371e01adfb38e68c1e3_rle_crop_3770306092_0.png', 1353806136: '1745592733_2124670_1353805451_3b4805369581b371e01adfb38e68c1e3_rle_crop_3770306085_0.png', 1353806135: '1745592733_2124670_1353805460_6804d03ddc716952d11c91ae0b3feb44_rle_crop_3770305841_0.png', 1353806134: '1745592733_2124670_1353805461_9436a004483cf78e85a75392a10e1ab0_rle_crop_3770305163_0.png', 1353805597: '1745592553_2122783_1353805061_177fcc48e42917fac966cdbdad168983_rle_crop_3770293900_0.png', 1353806074: '1745592672_2124074_1353805656_0a52752531a1b92c84191c8d9a61a13d_rle_crop_3770297240_0.png', 1353805934: '1745592611_2123464_1353804671_76c50d4bee2fcf09160744f91618293a_rle_crop_3770296701_0.png', 1353805933: '1745592611_2123464_1353804671_76c50d4bee2fcf09160744f91618293a_rle_crop_3770296692_0.png', 1353805932: '1745592611_2123464_1353804671_76c50d4bee2fcf09160744f91618293a_rle_crop_3770296704_0.png', 1353805931: '1745592611_2123464_1353804689_3db5d743cd30c59e141e1f828afdf451_rle_crop_3770296658_0.png', 1353805930: '1745592611_2123464_1353804999_847fad0a0aee9c173ffabfe48414c387_rle_crop_3770296618_0.png', 1353805663: '1745592588_2092705_1353804997_b6377b64a8532eb3bad2b5ab2122f773_rle_crop_3770296304_0.png', 1353805662: '1745592588_2092705_1353804997_b6377b64a8532eb3bad2b5ab2122f773_rle_crop_3770296303_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f93c3893a8b478e5fe07f7493a272902_73831325.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8599da02210e56b10fecbba71d020418_25673864.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/92e3666b5607491a7055e031cdd4d369_75381476.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/498346bfe5487977284524c476e0a640_27673431.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c08a86c4ed5e35f7a0dc11e19ec01140_79561024.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/59991a008848a3327b130a8eee3cf5dc_94422688.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/86afb2e8905c982a5dc0f680c6f9cd3b_46606798.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/46b70f67766aaa190fa13ca7a891637d_49235172.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c97e1c2653d17513900d63f8c715751f_3765736.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/38888e83c5ef96c5a0dfb76d94f56395_53708104.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/51fd2ffc7be1f70f16e770f2be225de3_59697901.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/744905e99281cc4f4131a02efc706663_69083791.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/263624bda811596f718e25e741636d35_24154674.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ba98d379b8dd24f6046785948b3588c9_31309509.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d43614b6139b288ef4535ef832321ee6_36442719.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0574d85025f4e55d2603235821e60619_64286218.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b90d85337731fcf83500c7321cf52c00_94811913.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7359228d28df6391deda02d2cd887bfe_17379859.png change filename to text .imagette224417041745593020/ imagette224417041745593020/1745592672_2124074_1353805652_238a10053902efa43e2557802ad81e6f_rle_crop_3770297261_0.png.png imagette224417041745593020/1745592672_2124074_1353805656_0a52752531a1b92c84191c8d9a61a13d_rle_crop_3770297240_0.png.png imagette224417041745593020/1745592611_2123464_1353804671_76c50d4bee2fcf09160744f91618293a_rle_crop_3770296704_0.png.png imagette224417041745593020/1745592611_2123464_1353804999_847fad0a0aee9c173ffabfe48414c387_rle_crop_3770296618_0.png.png imagette224417041745593020/1745592733_2124670_1353805460_6804d03ddc716952d11c91ae0b3feb44_rle_crop_3770305841_0.png.png imagette224417041745593020/1745592611_2123464_1353804671_76c50d4bee2fcf09160744f91618293a_rle_crop_3770296692_0.png.png imagette224417041745593020/1745592553_2122783_1353805061_177fcc48e42917fac966cdbdad168983_rle_crop_3770293900_0.png.png imagette224417041745593020/1745592823_2099080_1353806004_5311c4f7516620a4ebefc4b31843637a_rle_crop_3770310084_0.png.png imagette224417041745593020/1745592823_2099080_1353805962_6e9fbcb315dfb18c05c55399799bd715_rle_crop_3770310105_0.png.png imagette224417041745593020/1745592733_2124670_1353805451_3b4805369581b371e01adfb38e68c1e3_rle_crop_3770306093_0.png.png imagette224417041745593020/1745592588_2092705_1353804997_b6377b64a8532eb3bad2b5ab2122f773_rle_crop_3770296304_0.png.png imagette224417041745593020/1745592733_2124670_1353805448_c353835d6528c3d17e3bda1324114d23_rle_crop_3770306115_0.png.png imagette224417041745593020/1745592611_2123464_1353804689_3db5d743cd30c59e141e1f828afdf451_rle_crop_3770296658_0.png.png imagette224417041745593020/1745592733_2124670_1353805451_3b4805369581b371e01adfb38e68c1e3_rle_crop_3770306092_0.png.png imagette224417041745593020/1745592588_2092705_1353804997_b6377b64a8532eb3bad2b5ab2122f773_rle_crop_3770296303_0.png.png imagette224417041745593020/1745592733_2124670_1353805451_3b4805369581b371e01adfb38e68c1e3_rle_crop_3770306085_0.png.png imagette224417041745593020/1745592611_2123464_1353804671_76c50d4bee2fcf09160744f91618293a_rle_crop_3770296701_0.png.png imagette224417041745593020/1745592733_2124670_1353805461_9436a004483cf78e85a75392a10e1ab0_rle_crop_3770305163_0.png.png imagette224417041745593020/1745592912_2126193_1353806080_16993935ac37f2439b1accf34d4c849a_rle_crop_3770310660_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8cff839ee8f0a3d3866f770cb4a76fdc_6133643.png imagette224417041745593020 22441706 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=22441706 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353805572: '1745592553_2122783_1353805040_d0b85ae2b6328c9d7abf218a0282f567_rle_crop_3770293913_0.png', 1353805923: '1745592611_2123464_1353804687_d3ac7dd735076a188daa39738cbf12a3_rle_crop_3770296683_0.png', 1353806065: '1745592672_2124074_1353805656_0a52752531a1b92c84191c8d9a61a13d_rle_crop_3770297242_0.png', 1353806066: '1745592672_2124074_1353805652_238a10053902efa43e2557802ad81e6f_rle_crop_3770297258_0.png', 1353806119: '1745592733_2124670_1353805461_9436a004483cf78e85a75392a10e1ab0_rle_crop_3770305162_0.png', 1353806120: '1745592733_2124670_1353805460_6804d03ddc716952d11c91ae0b3feb44_rle_crop_3770305847_0.png', 1353806789: '1745592912_2126193_1353806155_5738004d1b9fbf1d85123ed80792b692_rle_crop_3770310603_0.png', 1353806790: '1745592912_2126193_1353806080_16993935ac37f2439b1accf34d4c849a_rle_crop_3770310663_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/db98f74990dbab1e41b301b6567a1317_61224525.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/07198c23296140886c70c424fa9be202_93492179.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/737ff15d4d0c2466b6d1516279c715c2_79254279.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/fb73b9f2eeb0c2b0cf5552f23761bff1_62668534.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/13075d88b853ba4d3f8ed30bbb0da8e3_47261026.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/99006cca2c29270c6b85efa73b626aad_13289535.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b76b1f56bb4fd671b3de06844f805fd8_12974661.png change filename to text .imagette224417061745593021/ imagette224417061745593021/1745592672_2124074_1353805652_238a10053902efa43e2557802ad81e6f_rle_crop_3770297258_0.png.png imagette224417061745593021/1745592672_2124074_1353805656_0a52752531a1b92c84191c8d9a61a13d_rle_crop_3770297242_0.png.png imagette224417061745593021/1745592611_2123464_1353804687_d3ac7dd735076a188daa39738cbf12a3_rle_crop_3770296683_0.png.png imagette224417061745593021/1745592912_2126193_1353806080_16993935ac37f2439b1accf34d4c849a_rle_crop_3770310663_0.png.png imagette224417061745593021/1745592912_2126193_1353806155_5738004d1b9fbf1d85123ed80792b692_rle_crop_3770310603_0.png.png imagette224417061745593021/1745592553_2122783_1353805040_d0b85ae2b6328c9d7abf218a0282f567_rle_crop_3770293913_0.png.png imagette224417061745593021/1745592733_2124670_1353805461_9436a004483cf78e85a75392a10e1ab0_rle_crop_3770305162_0.png.png imagette224417061745593021/1745592733_2124670_1353805460_6804d03ddc716952d11c91ae0b3feb44_rle_crop_3770305847_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c62a19bd00b62baa6a22ee5113ac76b7_95817229.png imagette224417061745593021 22441709 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=22441709 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353805660: '1745592588_2092705_1353804997_b6377b64a8532eb3bad2b5ab2122f773_rle_crop_3770296302_0.png', 1353805927: '1745592611_2123464_1353804652_4150fd2b77186a82f0da129415b4b4a6_rle_crop_3770296718_0.png', 1353805928: '1745592611_2123464_1353804652_4150fd2b77186a82f0da129415b4b4a6_rle_crop_3770296713_0.png', 1353806069: '1745592672_2124074_1353805656_0a52752531a1b92c84191c8d9a61a13d_rle_crop_3770297237_0.png', 1353806123: '1745592733_2124670_1353805669_b99a6cd62fc05c599693d730dfd819de_rle_crop_3770304902_0.png', 1353806124: '1745592733_2124670_1353805461_9436a004483cf78e85a75392a10e1ab0_rle_crop_3770305153_0.png', 1353806125: '1745592733_2124670_1353805451_3b4805369581b371e01adfb38e68c1e3_rle_crop_3770306088_0.png', 1353806126: '1745592733_2124670_1353805448_c353835d6528c3d17e3bda1324114d23_rle_crop_3770306108_0.png', 1353806127: '1745592733_2124670_1353805448_c353835d6528c3d17e3bda1324114d23_rle_crop_3770306112_0.png', 1353806420: '1745592823_2099080_1353806004_5311c4f7516620a4ebefc4b31843637a_rle_crop_3770310086_0.png', 1353806422: '1745592823_2099080_1353805937_8a379d21c4bea78cc7be13d89ae9f582_rle_crop_3770310119_0.png', 1353806793: '1745592912_2126193_1353806155_5738004d1b9fbf1d85123ed80792b692_rle_crop_3770310598_0.png', 1353806794: '1745592912_2126193_1353806085_6d2160617ddcbad0ab1aca5fcf87cb01_rle_crop_3770310649_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/71fc537f33d81cc89f493a2068c0d4ea_49064176.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ec4b90f53b1dc4da8e4c155583ac75aa_35535904.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/95fbde281604923c7315045d65f80fac_29241297.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/892af5c721ec5a819022fce78305379f_74070804.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ca6ce967b78dffd64f8ec255099b2075_80887657.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ef65eee51be06d3871a7b6d3e7b418cc_12690708.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/849004ddb3b952d5fa94865d5a3a71bf_61563592.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/090aba91c08fac63daba2ef1f2473125_50068551.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/9b3454fed8e587deb7cac49a22775e44_7560274.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/14d8b27841baae6c4f66aca99b602bc1_3318582.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/42b02ac72108801019c07593e44661b5_61730393.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/db55debab3761d37c8547be3ae1b1c7f_45462491.png change filename to text .imagette224417091745593022/ imagette224417091745593022/1745592912_2126193_1353806085_6d2160617ddcbad0ab1aca5fcf87cb01_rle_crop_3770310649_0.png.png imagette224417091745593022/1745592733_2124670_1353805669_b99a6cd62fc05c599693d730dfd819de_rle_crop_3770304902_0.png.png imagette224417091745593022/1745592823_2099080_1353806004_5311c4f7516620a4ebefc4b31843637a_rle_crop_3770310086_0.png.png imagette224417091745593022/1745592611_2123464_1353804652_4150fd2b77186a82f0da129415b4b4a6_rle_crop_3770296718_0.png.png imagette224417091745593022/1745592733_2124670_1353805448_c353835d6528c3d17e3bda1324114d23_rle_crop_3770306112_0.png.png imagette224417091745593022/1745592588_2092705_1353804997_b6377b64a8532eb3bad2b5ab2122f773_rle_crop_3770296302_0.png.png imagette224417091745593022/1745592611_2123464_1353804652_4150fd2b77186a82f0da129415b4b4a6_rle_crop_3770296713_0.png.png imagette224417091745593022/1745592733_2124670_1353805461_9436a004483cf78e85a75392a10e1ab0_rle_crop_3770305153_0.png.png imagette224417091745593022/1745592733_2124670_1353805448_c353835d6528c3d17e3bda1324114d23_rle_crop_3770306108_0.png.png imagette224417091745593022/1745592672_2124074_1353805656_0a52752531a1b92c84191c8d9a61a13d_rle_crop_3770297237_0.png.png imagette224417091745593022/1745592912_2126193_1353806155_5738004d1b9fbf1d85123ed80792b692_rle_crop_3770310598_0.png.png imagette224417091745593022/1745592823_2099080_1353805937_8a379d21c4bea78cc7be13d89ae9f582_rle_crop_3770310119_0.png.png imagette224417091745593022/1745592733_2124670_1353805451_3b4805369581b371e01adfb38e68c1e3_rle_crop_3770306088_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/16549b73da400190c0cf176e12bf6d95_87808916.png imagette224417091745593022 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22441671 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22441713,22441714,22441715,22441716,22441717,22441718,22441719,22441720,22441721,22441722,22441723,22441724?tags=autre_refus,cartonnette,kraft,Carton_brun,mal_croppe,Teint_Dans_La_Masse,environnement,plastique,Carton_gris,papier,metal,flou your option no_mail is active, we will not send the real mail to your client args[1353806808] : ('0.06088908452262574',) no score found for photo 1353806808 We are sending mail with results at report@fotonower.com args[1353806806] : ('0.06088908452262574',) no score found for photo 1353806806 We are sending mail with results at report@fotonower.com args[1353806803] : ('0.06088908452262574',) no score found for photo 1353806803 We are sending mail with results at report@fotonower.com args[1353806745] : ('0.06088908452262574',) no score found for photo 1353806745 We are sending mail with results at report@fotonower.com args[1353806742] : ('0.06088908452262574',) no score found for photo 1353806742 We are sending mail with results at report@fotonower.com args[1353806739] : ('0.06088908452262574',) no score found for photo 1353806739 We are sending mail with results at report@fotonower.com args[1353806736] : ('0.06088908452262574',) no score found for photo 1353806736 We are sending mail with results at report@fotonower.com args[1353806732] : ('0.06088908452262574',) no score found for photo 1353806732 We are sending mail with results at report@fotonower.com args[1353806725] : ('0.06088908452262574',) no score found for photo 1353806725 We are sending mail with results at report@fotonower.com args[1353806500] : ('0.06088908452262574',) no score found for photo 1353806500 We are sending mail with results at report@fotonower.com args[1353806496] : ('0.06088908452262574',) no score found for photo 1353806496 We are sending mail with results at report@fotonower.com args[1353806477] : ('0.06088908452262574',) no score found for photo 1353806477 We are sending mail with results at report@fotonower.com args[1353806455] : ('0.06088908452262574',) no score found for photo 1353806455 We are sending mail with results at report@fotonower.com args[1353806418] : ('0.06088908452262574',) no score found for photo 1353806418 We are sending mail with results at report@fotonower.com args[1353806375] : ('0.06088908452262574',) no score found for photo 1353806375 We are sending mail with results at report@fotonower.com refus_total : 0.06088908452262574 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=22441671 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_P22441671_25-04-2025_16_56_58.pdf results_Auto_P22441671_25-04-2025_16_56_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22441671_25-04-2025_16_56_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22441671','results_Auto_P22441671_25-04-2025_16_56_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22441671_25-04-2025_16_56_58.pdf','pdf','','0.32','0.06088908452262574') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22441671]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353806808, 1353806806, 1353806803, 1353806745, 1353806742, 1353806739, 1353806736, 1353806732, 1353806725, 1353806500, 1353806496, 1353806477, 1353806455, 1353806418, 1353806375] map_info['map_portfolio_photo'] : {22441671: [1353806808, 1353806806, 1353806803, 1353806745, 1353806742, 1353806739, 1353806736, 1353806732, 1353806725, 1353806500, 1353806496, 1353806477, 1353806455, 1353806418, 1353806375, 1353806155, 1353806152, 1353806145, 1353806133, 1353806098, 1353806095, 1353806091, 1353806088, 1353806085, 1353806080, 1353806027, 1353806008, 1353806004, 1353805991, 1353805962, 1353805937, 1353805669, 1353805661, 1353805656, 1353805652, 1353805464, 1353805461, 1353805460, 1353805451, 1353805448, 1353805092, 1353805076, 1353805061, 1353805040, 1353804999, 1353804997, 1353804995, 1353804992, 1353804693, 1353804689, 1353804687, 1353804671, 1353804652]} final : False mtd_id 4302 list_pids : [1353806808, 1353806806, 1353806803, 1353806745, 1353806742, 1353806739, 1353806736, 1353806732, 1353806725, 1353806500, 1353806496, 1353806477, 1353806455, 1353806418, 1353806375] 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, '2763299') ('4302', '22441671', '1353806808', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806806', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806803', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806745', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806742', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806739', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806736', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806732', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806725', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806500', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806496', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806477', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806455', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806418', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806375', None, None, None, None, None, '2763299') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '22441671', '1353806808', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806806', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806803', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806745', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806742', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806739', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806736', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806732', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806725', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806500', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806496', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806477', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806455', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806418', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806375', None, None, None, None, None, '2763299')] time used for this insertion : 0.016582012176513672 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.630215406417847 time spend to save output : 0.016899824142456055 total time spend for step 4 : 5.647115230560303 step5:split_time_score Fri Apr 25 16:57:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22441671'] 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 : [('22441671',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22441671) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353806803: {'path': 'temp/1745593018_2174185_1353806803_776123576ece802a70046ee7a8ecbbcf.jpg', 'extension': 'jpg'}, 1353806806: {'path': 'temp/1745593018_2174185_1353806806_af27d7887509c405da6e0bc86868fe1f.jpg', 'extension': 'jpg'}, 1353806808: {'path': 'temp/1745593018_2174185_1353806808_52a5f54ee02295ca870fc2f40b738f04.jpg', 'extension': 'jpg'}, 1353806736: {'path': 'temp/1745593018_2174185_1353806736_9063cd982e42c60d1d25a93dd688bfe7.jpg', 'extension': 'jpg'}, 1353806739: {'path': 'temp/1745593018_2174185_1353806739_c145b256e78a7d8c7f79ef9532c57325.jpg', 'extension': 'jpg'}, 1353806742: {'path': 'temp/1745593018_2174185_1353806742_5c3f8652635b24198204a61d1dacfa92.jpg', 'extension': 'jpg'}, 1353806745: {'path': 'temp/1745593018_2174185_1353806745_a5949ad7a4a410e1996812515f054b11.jpg', 'extension': 'jpg'}, 1353806375: {'path': 'temp/1745593018_2174185_1353806375_056de4633cf10424d9e41851e5db90e8.jpg', 'extension': 'jpg'}, 1353806418: {'path': 'temp/1745593018_2174185_1353806418_308b3d124f3e23dd1713ebf824603ded.jpg', 'extension': 'jpg'}, 1353806455: {'path': 'temp/1745593018_2174185_1353806455_de920dc0eb70a56da9298ad210477150.jpg', 'extension': 'jpg'}, 1353806477: {'path': 'temp/1745593018_2174185_1353806477_63e34ca59d18d2bdc1a5c3c36fff611a.jpg', 'extension': 'jpg'}, 1353806496: {'path': 'temp/1745593018_2174185_1353806496_6b98c6fae6b27b38fa0f3e02cee5f7a4.jpg', 'extension': 'jpg'}, 1353806500: {'path': 'temp/1745593018_2174185_1353806500_1d783d93fc778eecf3625a73495d3e5c.jpg', 'extension': 'jpg'}, 1353806725: {'path': 'temp/1745593018_2174185_1353806725_190e8e73aa7aeef29a5b2027aed249ff.jpg', 'extension': 'jpg'}, 1353806732: {'path': 'temp/1745593018_2174185_1353806732_c462afaa6dc98b1ab6731da5aa23f872.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 = 22441671; (('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 = 22441671 group by h (('16', 53),) 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=22441671 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 (22441671) 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 (22441671) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25042025 22441671 Nombre de photos uploadées : 53 / 23040 (0%) 25042025 22441671 Nombre de photos taguées (types de déchets): 0 / 53 (0%) 25042025 22441671 Nombre de photos taguées (volume) : 0 / 53 (0%) [{'photo_id': 1353804693, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0ebbcf5a89c9f8f66c11dfd32e7cb8e8.jpg', 'username': None, 'uploaded_at': 1745592367, 'text': 'image_25042025_16_45_03_010188m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353804689, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/3db5d743cd30c59e141e1f828afdf451.jpg', 'username': None, 'uploaded_at': 1745592367, 'text': 'image_25042025_16_45_13_010147m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1353804687, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d3ac7dd735076a188daa39738cbf12a3.jpg', 'username': None, 'uploaded_at': 1745592367, 'text': 'image_25042025_16_45_23_010149m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353804671, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/76c50d4bee2fcf09160744f91618293a.jpg', 'username': None, 'uploaded_at': 1745592367, 'text': 'image_25042025_16_45_33_010151m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002412080764770508 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22441671, '2025-04-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1747621,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02450418472290039 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= 1747621 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757629, 'mtr_portfolio_id': 22439586, 'dashboard_result_id': 10109284, '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_P22439586_25-04-2025_16_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22439648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22439650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22439651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22439652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22439654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22439655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22439656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22439658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22439659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22439660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22439662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22439663, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757629, 'mtr_portfolio_id': 22440054, 'dashboard_result_id': 10109285, '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_P22440054_25-04-2025_16_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22440096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22440097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22440098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22440099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22440100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22440101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22440102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22440103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22440104, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22440105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22440106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22440107, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757629, 'mtr_portfolio_id': 22440702, 'dashboard_result_id': 10109286, '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_P22440702_25-04-2025_16_50_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22440817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22440818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22440819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22440820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22440821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22440822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22440823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22440824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22440825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22440826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22440827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22440828, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757629, 'mtr_portfolio_id': 22441671, 'dashboard_result_id': 10109287, '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_P22441671_25-04-2025_16_55_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22441701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22441702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22441703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22441704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22441705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22441706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22441707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22441708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22441709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22441710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22441711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22441712, '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 = 22439586 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': 2763145, 'mtr_portfolio_id': 22439586, 'created_at': datetime.datetime(2025, 4, 25, 16, 16, 58), 'result': '0.02672657243219309', 'result_long': None, 'result_double': None}] Qualite : 0.02672657243219309 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22439586 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22439586_25-04-2025_16_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22439586 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_P22439586_25-04-2025_16_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22439648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22439650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22439651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22439652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22439654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22439655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22439656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22439658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22439659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22439660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22439662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22439663, 'pht': 3726}}" where mtr_portfolio_id = 22439586 and dashboard_run_id = 1757629 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`=22439586 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10109284, 0.02672657243219309, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22439586_25-04-2025_16_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22439648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22439650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22439651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22439652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22439654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22439655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22439656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22439658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22439659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22439660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22439662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22439663, '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 = 22440054 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': 2763173, 'mtr_portfolio_id': 22440054, 'created_at': datetime.datetime(2025, 4, 25, 16, 32, 58), 'result': '0.06426119522104286', 'result_long': None, 'result_double': None}] Qualite : 0.06426119522104286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22440054 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22440054_25-04-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22440054 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_P22440054_25-04-2025_16_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22440096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22440097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22440098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22440099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22440100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22440101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22440102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22440103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22440104, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22440105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22440106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22440107, 'pht': 3726}}" where mtr_portfolio_id = 22440054 and dashboard_run_id = 1757629 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`=22440054 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10109285, 0.06426119522104286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22440054_25-04-2025_16_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22440096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22440097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22440098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22440099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22440100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22440101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22440102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22440103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22440104, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22440105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22440106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22440107, '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 = 22440702 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': 2763237, 'mtr_portfolio_id': 22440702, 'created_at': datetime.datetime(2025, 4, 25, 16, 50, 59), 'result': '0.06318775502169534', 'result_long': None, 'result_double': None}] Qualite : 0.06318775502169534 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22440702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22440702_25-04-2025_16_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22440702 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_P22440702_25-04-2025_16_50_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22440817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22440818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22440819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22440820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22440821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22440822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22440823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22440824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22440825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22440826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22440827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22440828, 'pht': 3726}}" where mtr_portfolio_id = 22440702 and dashboard_run_id = 1757629 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`=22440702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10109286, 0.06318775502169534, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22440702_25-04-2025_16_50_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22440817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22440818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22440819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22440820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22440821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22440822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22440823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22440824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22440825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22440826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22440827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22440828, '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 = 22441671 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': 2763299, 'mtr_portfolio_id': 22441671, 'created_at': datetime.datetime(2025, 4, 25, 16, 56, 57), 'result': '0.06088908452262574', 'result_long': None, 'result_double': None}] Qualite : 0.06088908452262574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22441671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22441671_25-04-2025_16_56_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22441671 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_P22441671_25-04-2025_16_56_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22441701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22441702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22441703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22441704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22441705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22441706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22441707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22441708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22441709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22441710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22441711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22441712, 'pht': 3726}}" where mtr_portfolio_id = 22441671 and dashboard_run_id = 1757629 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`=22441671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10109287, 0.06088908452262574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22441671_25-04-2025_16_56_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22441701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22441702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22441703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22441704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22441705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22441706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22441707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22441708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22441709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22441710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22441711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22441712, '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 (22439586,22440054,22440702,22441671) result : ((1353783707,), (1353785290,), (1353785353,), (1353785611,), (1353785615,), (1353786009,), (1353786037,), (1353787331,), (1353787360,), (1353787390,), (1353787418,), (1353787939,), (1353787990,), (1353788068,), (1353788121,), (1353788662,), (1353788716,), (1353788755,), (1353788804,), (1353788858,), (1353788882,), (1353789021,), (1353789027,), (1353789032,), (1353789034,), (1353789725,), (1353789728,), (1353789736,), (1353790692,), (1353790645,), (1353791533,), (1353791599,), (1353791664,), (1353791695,), (1353792363,), (1353792385,), (1353792418,), (1353792428,), (1353792446,), (1353792555,), (1353792575,), (1353792579,), (1353792599,), (1353792662,), (1353792956,), (1353792987,), (1353793228,), (1353793255,), (1353793278,), (1353793292,), (1353793978,), (1353794059,), (1353794151,), (1353794224,), (1353794302,), (1353794320,), (1353794505,), (1353794510,), (1353794512,), (1353794528,), (1353794580,), (1353794593,), (1353794623,), (1353794675,), (1353794793,), (1353795629,), (1353795667,), (1353795725,), (1353795779,), (1353795793,), (1353796042,), (1353796045,), (1353796076,), (1353796104,), (1353796144,), (1353796673,), (1353796682,), (1353796687,), (1353796723,), (1353796876,), (1353796879,), (1353796883,), (1353796887,), (1353796891,), (1353797395,), (1353797399,), (1353797402,), (1353797405,), (1353797496,), (1353797577,), (1353797680,), (1353797715,), (1353797742,), (1353797771,), (1353798199,), (1353797994,), (1353797999,), (1353798012,), (1353798024,), (1353798064,), (1353798922,), (1353798945,), (1353798948,), (1353799302,), (1353799312,), (1353799317,), (1353799343,), (1353799424,), (1353799451,), (1353799766,), (1353799798,), (1353799952,), (1353800126,), (1353800427,), (1353800442,), (1353800598,), (1353800605,), (1353800621,), (1353801229,), (1353801233,), (1353801237,), (1353801246,), (1353801256,), (1353801263,), (1353801570,), (1353801573,), (1353801622,), (1353801702,), (1353801750,), (1353801805,), (1353801907,), (1353801961,), (1353802520,), (1353802546,), (1353802576,), (1353802608,), (1353802646,), (1353802660,), (1353802792,), (1353802823,), (1353802852,), (1353803178,), (1353803208,), (1353803236,), (1353803264,), (1353803307,), (1353803320,), (1353803696,), (1353803708,), (1353803711,), (1353803712,), (1353803715,), (1353803717,), (1353804018,), (1353804071,), (1353804729,), (1353804652,), (1353804671,), (1353804687,), (1353804689,), (1353804693,), (1353804992,), (1353804995,), (1353804997,), (1353804999,), (1353805040,), (1353805061,), (1353805076,), (1353805092,), (1353805448,), (1353805451,), (1353805460,), (1353805461,), (1353805464,), (1353805652,), (1353805656,), (1353805661,), (1353805669,), (1353805937,), (1353805962,), (1353805991,), (1353806004,), (1353806008,), (1353806027,), (1353806080,), (1353806085,), (1353806088,), (1353806091,), (1353806095,), (1353806098,), (1353806133,), (1353806145,), (1353806152,), (1353806155,), (1353806375,), (1353806418,), (1353806455,), (1353806477,), (1353806496,), (1353806500,), (1353806725,), (1353806732,), (1353806736,), (1353806739,), (1353806742,), (1353806745,), (1353806803,), (1353806806,), (1353806808,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25042025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22441671]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353806808, 1353806806, 1353806803, 1353806745, 1353806742, 1353806739, 1353806736, 1353806732, 1353806725, 1353806500, 1353806496, 1353806477, 1353806455, 1353806418, 1353806375] map_info['map_portfolio_photo'] : {22441671: [1353806808, 1353806806, 1353806803, 1353806745, 1353806742, 1353806739, 1353806736, 1353806732, 1353806725, 1353806500, 1353806496, 1353806477, 1353806455, 1353806418, 1353806375, 1353806155, 1353806152, 1353806145, 1353806133, 1353806098, 1353806095, 1353806091, 1353806088, 1353806085, 1353806080, 1353806027, 1353806008, 1353806004, 1353805991, 1353805962, 1353805937, 1353805669, 1353805661, 1353805656, 1353805652, 1353805464, 1353805461, 1353805460, 1353805451, 1353805448, 1353805092, 1353805076, 1353805061, 1353805040, 1353804999, 1353804997, 1353804995, 1353804992, 1353804693, 1353804689, 1353804687, 1353804671, 1353804652]} final : True mtd_id 4302 list_pids : [1353806808, 1353806806, 1353806803, 1353806745, 1353806742, 1353806739, 1353806736, 1353806732, 1353806725, 1353806500, 1353806496, 1353806477, 1353806455, 1353806418, 1353806375] Looping around the photos to save general results len do output : 1 /22441671Didn'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, '2763299') ('4302', '22441671', '1353806808', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806806', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806803', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806745', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806742', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806739', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806736', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806732', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806725', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806500', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806496', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806477', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806455', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806418', None, None, None, None, None, '2763299') ('4302', None, None, None, None, None, None, None, '2763299') ('4302', '22441671', '1353806375', None, None, None, None, None, '2763299') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '22441671', 'None', None, None, None, None, '2763299'), ('4302', '22441671', '1353806808', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806806', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806803', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806745', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806742', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806739', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806736', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806732', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806725', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806500', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806496', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806477', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806455', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806418', None, None, None, None, None, '2763299'), ('4302', '22441671', '1353806375', None, None, None, None, None, '2763299')] time used for this insertion : 0.01591348648071289 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.36207032203674316 time spend to save output : 0.016190290451049805 total time spend for step 5 : 0.37826061248779297 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 (2763299) 2.37user 2.38system 0:08.40elapsed 56%CPU (0avgtext+0avgdata 160232maxresident)k 1560inputs+18952outputs (38major+75253minor)pagefaults 0swaps