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 : 1779349 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 (2621276) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2621276) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20898262 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2621276'] with mtr_portfolio_ids : ['20898262'] and first list_photo_ids : [] new path : /proc/1779349/ Name: python3 Umask: 0002 State: R (running) Tgid: 1779349 Ngid: 0 Pid: 1779349 PPid: 1779348 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1779349 NSpid: 1779349 NSpgid: 1776445 NSsid: 1776445 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97836 kB VmRSS: 97836 kB RssAnon: 59804 kB RssFile: 38032 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 75 nonvoluntary_ctxt_switches: 159 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1779349', 'Ngid': '0', 'Pid': '1779349', 'PPid': '1779348', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1779349', 'NSpid': '1779349', 'NSpgid': '1776445', 'NSsid': '1776445', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97836 kB', 'VmRSS': '97836 kB', 'RssAnon': '59804 kB', 'RssFile': '38032 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '75', 'nonvoluntary_ctxt_switches': '159'} ('datou_batch_current', '1779349', '1106844', '0', '1106844', '865592', '97836', b'', 'marlene', '2621276') 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 (20898262) 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 (2621276 ) ) 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 (20898262) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340005192, 'portfolio_id': 20898262}, {'photo_id': 1340005188, 'portfolio_id': 20898262}, {'photo_id': 1340005183, 'portfolio_id': 20898262}, {'photo_id': 1340005151, 'portfolio_id': 20898262}, {'photo_id': 1340005145, 'portfolio_id': 20898262}, {'photo_id': 1340005140, 'portfolio_id': 20898262}, {'photo_id': 1340005135, 'portfolio_id': 20898262}, {'photo_id': 1340005133, 'portfolio_id': 20898262}, {'photo_id': 1340005131, 'portfolio_id': 20898262}, {'photo_id': 1340005105, 'portfolio_id': 20898262}, {'photo_id': 1340005100, 'portfolio_id': 20898262}, {'photo_id': 1340005092, 'portfolio_id': 20898262}, {'photo_id': 1340005086, 'portfolio_id': 20898262}, {'photo_id': 1340005059, 'portfolio_id': 20898262}, {'photo_id': 1340005052, 'portfolio_id': 20898262}, {'photo_id': 1340005044, 'portfolio_id': 20898262}, {'photo_id': 1340005038, 'portfolio_id': 20898262}, {'photo_id': 1340005033, 'portfolio_id': 20898262}, {'photo_id': 1340005029, 'portfolio_id': 20898262}, {'photo_id': 1340005008, 'portfolio_id': 20898262}, {'photo_id': 1340005003, 'portfolio_id': 20898262}, {'photo_id': 1340004998, 'portfolio_id': 20898262}, {'photo_id': 1340004994, 'portfolio_id': 20898262}, {'photo_id': 1340004991, 'portfolio_id': 20898262}, {'photo_id': 1340004957, 'portfolio_id': 20898262}, {'photo_id': 1340004951, 'portfolio_id': 20898262}, {'photo_id': 1340004946, 'portfolio_id': 20898262}, {'photo_id': 1340004897, 'portfolio_id': 20898262}, {'photo_id': 1340004894, 'portfolio_id': 20898262}, {'photo_id': 1340004892, 'portfolio_id': 20898262}, {'photo_id': 1340004866, 'portfolio_id': 20898262}, {'photo_id': 1340004861, 'portfolio_id': 20898262}, {'photo_id': 1340004856, 'portfolio_id': 20898262}, {'photo_id': 1340004853, 'portfolio_id': 20898262}, {'photo_id': 1340004850, 'portfolio_id': 20898262}, {'photo_id': 1340004788, 'portfolio_id': 20898262}, {'photo_id': 1340004784, 'portfolio_id': 20898262}, {'photo_id': 1340004781, 'portfolio_id': 20898262}, {'photo_id': 1340004746, 'portfolio_id': 20898262}, {'photo_id': 1340004725, 'portfolio_id': 20898262}, {'photo_id': 1340004684, 'portfolio_id': 20898262}, {'photo_id': 1340004679, 'portfolio_id': 20898262}, {'photo_id': 1340004597, 'portfolio_id': 20898262}, {'photo_id': 1340004375, 'portfolio_id': 20898262}, {'photo_id': 1340004370, 'portfolio_id': 20898262}, {'photo_id': 1340004364, 'portfolio_id': 20898262}, {'photo_id': 1340004359, 'portfolio_id': 20898262}, {'photo_id': 1340003682, 'portfolio_id': 20898262}, {'photo_id': 1340003679, 'portfolio_id': 20898262}, {'photo_id': 1340003617, 'portfolio_id': 20898262}, {'photo_id': 1340003608, 'portfolio_id': 20898262}, {'photo_id': 1340003603, 'portfolio_id': 20898262}, {'photo_id': 1340003598, 'portfolio_id': 20898262}, {'photo_id': 1340003594, 'portfolio_id': 20898262}, {'photo_id': 1340003586, 'portfolio_id': 20898262}, {'photo_id': 1340003541, 'portfolio_id': 20898262}, {'photo_id': 1340003536, 'portfolio_id': 20898262}, {'photo_id': 1340003531, 'portfolio_id': 20898262}, {'photo_id': 1340003514, 'portfolio_id': 20898262}, {'photo_id': 1340003500, 'portfolio_id': 20898262}, {'photo_id': 1340003496, 'portfolio_id': 20898262}, {'photo_id': 1340003458, 'portfolio_id': 20898262}, {'photo_id': 1340003455, 'portfolio_id': 20898262}] map_portfolio_id_photo_id: {20898262: [1340005192, 1340005188, 1340005183, 1340005151, 1340005145, 1340005140, 1340005135, 1340005133, 1340005131, 1340005105, 1340005100, 1340005092, 1340005086, 1340005059, 1340005052, 1340005044, 1340005038, 1340005033, 1340005029, 1340005008, 1340005003, 1340004998, 1340004994, 1340004991, 1340004957, 1340004951, 1340004946, 1340004897, 1340004894, 1340004892, 1340004866, 1340004861, 1340004856, 1340004853, 1340004850, 1340004788, 1340004784, 1340004781, 1340004746, 1340004725, 1340004684, 1340004679, 1340004597, 1340004375, 1340004370, 1340004364, 1340004359, 1340003682, 1340003679, 1340003617, 1340003608, 1340003603, 1340003598, 1340003594, 1340003586, 1340003541, 1340003536, 1340003531, 1340003514, 1340003500, 1340003496, 1340003458, 1340003455]} ##### 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.015732765197753906 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Feb 27 23:14: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 (20898262) 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 : 20898262 get user id for portfolio 20898262 get sub ptf for main ptf 20898262, type 3726 and hashtags ['Teint_Dans_La_Masse', 'metal', 'flou', 'mal_croppe', 'environnement', 'plastique', 'kraft', 'Carton_gris', 'autre_refus', 'Carton_brun', 'cartonnette', 'papier'] 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`=20898262 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','flou','mal_croppe','environnement','plastique','kraft','Carton_gris','autre_refus','Carton_brun','cartonnette','papier')) 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`=20898262 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','flou','mal_croppe','environnement','plastique','kraft','Carton_gris','autre_refus','Carton_brun','cartonnette','papier')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20898262, 'sub_port_id': 20898277, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527021, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'Carton_gris': {'main_port_id': 20898262, 'sub_port_id': 20898278, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527022, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'metal': {'main_port_id': 20898262, 'sub_port_id': 20898279, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527023, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'Carton_brun': {'main_port_id': 20898262, 'sub_port_id': 20898280, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527024, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'environnement': {'main_port_id': 20898262, 'sub_port_id': 20898281, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527025, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'kraft': {'main_port_id': 20898262, 'sub_port_id': 20898282, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527026, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'autre_refus': {'main_port_id': 20898262, 'sub_port_id': 20898283, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527027, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'cartonnette': {'main_port_id': 20898262, 'sub_port_id': 20898284, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527028, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'flou': {'main_port_id': 20898262, 'sub_port_id': 20898285, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527029, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20898262, 'sub_port_id': 20898286, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527030, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'mal_croppe': {'main_port_id': 20898262, 'sub_port_id': 20898287, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527031, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'papier': {'main_port_id': 20898262, 'sub_port_id': 20898288, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527032, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20898277 , 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=20898262 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 (20898277) result : ((1340004747,), (1340004748,), (1340004749,), (1340004773,), (1340004774,), (1340004838,), (1340004843,), (1340004844,), (1340004983,), (1340005078,), (1340005079,), (1340005099,), (1340005231,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20898262) result : ((1340003455,), (1340003458,), (1340003496,), (1340003500,), (1340003514,), (1340003531,), (1340003536,), (1340003541,), (1340003586,), (1340003594,), (1340003598,), (1340003603,), (1340003608,), (1340003617,), (1340003679,), (1340003682,), (1340004359,), (1340004364,), (1340004370,), (1340004375,), (1340004597,), (1340004679,), (1340004684,), (1340004725,), (1340004746,), (1340004781,), (1340004784,), (1340004788,), (1340004850,), (1340004853,), (1340004856,), (1340004861,), (1340004866,), (1340004892,), (1340004894,), (1340004897,), (1340004946,), (1340004951,), (1340004957,), (1340004991,), (1340004994,), (1340004998,), (1340005003,), (1340005008,), (1340005029,), (1340005033,), (1340005038,), (1340005044,), (1340005052,), (1340005059,), (1340005086,), (1340005092,), (1340005100,), (1340005105,), (1340005131,), (1340005133,), (1340005135,), (1340005140,), (1340005145,), (1340005151,), (1340005183,), (1340005188,), (1340005192,)) 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 (1340003500,1340005100) 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 20898278 , 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=20898262 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 (20898278) result : ((1340003674,), (1340003675,), (1340004726,), (1340004727,), (1340004760,), (1340004761,), (1340004762,), (1340004836,), (1340004972,), (1340004973,), (1340004985,), (1340005069,), (1340005070,), (1340005093,), (1340005171,), (1340005172,), (1340005173,), (1340005217,), (1340005218,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20898262) result : ((1340003455,), (1340003458,), (1340003496,), (1340003500,), (1340003514,), (1340003531,), (1340003536,), (1340003541,), (1340003586,), (1340003594,), (1340003598,), (1340003603,), (1340003608,), (1340003617,), (1340003679,), (1340003682,), (1340004359,), (1340004364,), (1340004370,), (1340004375,), (1340004597,), (1340004679,), (1340004684,), (1340004725,), (1340004746,), (1340004781,), (1340004784,), (1340004788,), (1340004850,), (1340004853,), (1340004856,), (1340004861,), (1340004866,), (1340004892,), (1340004894,), (1340004897,), (1340004946,), (1340004951,), (1340004957,), (1340004991,), (1340004994,), (1340004998,), (1340005003,), (1340005008,), (1340005029,), (1340005033,), (1340005038,), (1340005044,), (1340005052,), (1340005059,), (1340005086,), (1340005092,), (1340005100,), (1340005105,), (1340005131,), (1340005133,), (1340005135,), (1340005140,), (1340005145,), (1340005151,), (1340005183,), (1340005188,), (1340005192,)) 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 (1340003500,1340005100) 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 20898279 , 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=20898262 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 (20898279) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20898262) result : ((1340003455,), (1340003458,), (1340003496,), (1340003500,), (1340003514,), (1340003531,), (1340003536,), (1340003541,), (1340003586,), (1340003594,), (1340003598,), (1340003603,), (1340003608,), (1340003617,), (1340003679,), (1340003682,), (1340004359,), (1340004364,), (1340004370,), (1340004375,), (1340004597,), (1340004679,), (1340004684,), (1340004725,), (1340004746,), (1340004781,), (1340004784,), (1340004788,), (1340004850,), (1340004853,), (1340004856,), (1340004861,), (1340004866,), (1340004892,), (1340004894,), (1340004897,), (1340004946,), (1340004951,), (1340004957,), (1340004991,), (1340004994,), (1340004998,), (1340005003,), (1340005008,), (1340005029,), (1340005033,), (1340005038,), (1340005044,), (1340005052,), (1340005059,), (1340005086,), (1340005092,), (1340005100,), (1340005105,), (1340005131,), (1340005133,), (1340005135,), (1340005140,), (1340005145,), (1340005151,), (1340005183,), (1340005188,), (1340005192,)) 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 (1340003500,1340005100) 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 20898280 , 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=20898262 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 (20898280) result : ((1340003676,), (1340004744,), (1340004745,), (1340004767,), (1340004768,), (1340004769,), (1340004770,), (1340004771,), (1340004772,), (1340004839,), (1340004979,), (1340004980,), (1340004981,), (1340004982,), (1340005071,), (1340005072,), (1340005073,), (1340005074,), (1340005075,), (1340005076,), (1340005096,), (1340005097,), (1340005174,), (1340005175,), (1340005176,), (1340005177,), (1340005178,), (1340005225,), (1340005226,), (1340005227,), (1340005228,), (1340005229,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20898262) result : ((1340003455,), (1340003458,), (1340003496,), (1340003500,), (1340003514,), (1340003531,), (1340003536,), (1340003541,), (1340003586,), (1340003594,), (1340003598,), (1340003603,), (1340003608,), (1340003617,), (1340003679,), (1340003682,), (1340004359,), (1340004364,), (1340004370,), (1340004375,), (1340004597,), (1340004679,), (1340004684,), (1340004725,), (1340004746,), (1340004781,), (1340004784,), (1340004788,), (1340004850,), (1340004853,), (1340004856,), (1340004861,), (1340004866,), (1340004892,), (1340004894,), (1340004897,), (1340004946,), (1340004951,), (1340004957,), (1340004991,), (1340004994,), (1340004998,), (1340005003,), (1340005008,), (1340005029,), (1340005033,), (1340005038,), (1340005044,), (1340005052,), (1340005059,), (1340005086,), (1340005092,), (1340005100,), (1340005105,), (1340005131,), (1340005133,), (1340005135,), (1340005140,), (1340005145,), (1340005151,), (1340005183,), (1340005188,), (1340005192,)) 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 (1340003500,1340005100) 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 20898281 , 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=20898262 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 (20898281) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20898262) result : ((1340003455,), (1340003458,), (1340003496,), (1340003500,), (1340003514,), (1340003531,), (1340003536,), (1340003541,), (1340003586,), (1340003594,), (1340003598,), (1340003603,), (1340003608,), (1340003617,), (1340003679,), (1340003682,), (1340004359,), (1340004364,), (1340004370,), (1340004375,), (1340004597,), (1340004679,), (1340004684,), (1340004725,), (1340004746,), (1340004781,), (1340004784,), (1340004788,), (1340004850,), (1340004853,), (1340004856,), (1340004861,), (1340004866,), (1340004892,), (1340004894,), (1340004897,), (1340004946,), (1340004951,), (1340004957,), (1340004991,), (1340004994,), (1340004998,), (1340005003,), (1340005008,), (1340005029,), (1340005033,), (1340005038,), (1340005044,), (1340005052,), (1340005059,), (1340005086,), (1340005092,), (1340005100,), (1340005105,), (1340005131,), (1340005133,), (1340005135,), (1340005140,), (1340005145,), (1340005151,), (1340005183,), (1340005188,), (1340005192,)) 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 (1340003500,1340005100) 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 20898282 , 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=20898262 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 (20898282) result : ((1340004753,), (1340004754,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20898262) result : ((1340003455,), (1340003458,), (1340003496,), (1340003500,), (1340003514,), (1340003531,), (1340003536,), (1340003541,), (1340003586,), (1340003594,), (1340003598,), (1340003603,), (1340003608,), (1340003617,), (1340003679,), (1340003682,), (1340004359,), (1340004364,), (1340004370,), (1340004375,), (1340004597,), (1340004679,), (1340004684,), (1340004725,), (1340004746,), (1340004781,), (1340004784,), (1340004788,), (1340004850,), (1340004853,), (1340004856,), (1340004861,), (1340004866,), (1340004892,), (1340004894,), (1340004897,), (1340004946,), (1340004951,), (1340004957,), (1340004991,), (1340004994,), (1340004998,), (1340005003,), (1340005008,), (1340005029,), (1340005033,), (1340005038,), (1340005044,), (1340005052,), (1340005059,), (1340005086,), (1340005092,), (1340005100,), (1340005105,), (1340005131,), (1340005133,), (1340005135,), (1340005140,), (1340005145,), (1340005151,), (1340005183,), (1340005188,), (1340005192,)) 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 (1340003500,1340005100) 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 20898283 , 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=20898262 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 (20898283) result : ((1340004704,), (1340004706,), (1340004708,), (1340004758,), (1340004834,), (1340005068,), (1340005090,), (1340005091,), (1340005169,), (1340005212,), (1340005213,), (1340005214,), (1340005215,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20898262) result : ((1340003455,), (1340003458,), (1340003496,), (1340003500,), (1340003514,), (1340003531,), (1340003536,), (1340003541,), (1340003586,), (1340003594,), (1340003598,), (1340003603,), (1340003608,), (1340003617,), (1340003679,), (1340003682,), (1340004359,), (1340004364,), (1340004370,), (1340004375,), (1340004597,), (1340004679,), (1340004684,), (1340004725,), (1340004746,), (1340004781,), (1340004784,), (1340004788,), (1340004850,), (1340004853,), (1340004856,), (1340004861,), (1340004866,), (1340004892,), (1340004894,), (1340004897,), (1340004946,), (1340004951,), (1340004957,), (1340004991,), (1340004994,), (1340004998,), (1340005003,), (1340005008,), (1340005029,), (1340005033,), (1340005038,), (1340005044,), (1340005052,), (1340005059,), (1340005086,), (1340005092,), (1340005100,), (1340005105,), (1340005131,), (1340005133,), (1340005135,), (1340005140,), (1340005145,), (1340005151,), (1340005183,), (1340005188,), (1340005192,)) 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 (1340003500,1340005100) 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 20898284 , 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=20898262 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 (20898284) result : ((1340004737,), (1340004738,), (1340004764,), (1340004765,), (1340004835,), (1340004837,), (1340004976,), (1340004977,), (1340004986,), (1340004987,), (1340004988,), (1340005094,), (1340005222,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20898262) result : ((1340003455,), (1340003458,), (1340003496,), (1340003500,), (1340003514,), (1340003531,), (1340003536,), (1340003541,), (1340003586,), (1340003594,), (1340003598,), (1340003603,), (1340003608,), (1340003617,), (1340003679,), (1340003682,), (1340004359,), (1340004364,), (1340004370,), (1340004375,), (1340004597,), (1340004679,), (1340004684,), (1340004725,), (1340004746,), (1340004781,), (1340004784,), (1340004788,), (1340004850,), (1340004853,), (1340004856,), (1340004861,), (1340004866,), (1340004892,), (1340004894,), (1340004897,), (1340004946,), (1340004951,), (1340004957,), (1340004991,), (1340004994,), (1340004998,), (1340005003,), (1340005008,), (1340005029,), (1340005033,), (1340005038,), (1340005044,), (1340005052,), (1340005059,), (1340005086,), (1340005092,), (1340005100,), (1340005105,), (1340005131,), (1340005133,), (1340005135,), (1340005140,), (1340005145,), (1340005151,), (1340005183,), (1340005188,), (1340005192,)) 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 (1340003500,1340005100) 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 20898285 , 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=20898262 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 (20898285) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20898262) result : ((1340003455,), (1340003458,), (1340003496,), (1340003500,), (1340003514,), (1340003531,), (1340003536,), (1340003541,), (1340003586,), (1340003594,), (1340003598,), (1340003603,), (1340003608,), (1340003617,), (1340003679,), (1340003682,), (1340004359,), (1340004364,), (1340004370,), (1340004375,), (1340004597,), (1340004679,), (1340004684,), (1340004725,), (1340004746,), (1340004781,), (1340004784,), (1340004788,), (1340004850,), (1340004853,), (1340004856,), (1340004861,), (1340004866,), (1340004892,), (1340004894,), (1340004897,), (1340004946,), (1340004951,), (1340004957,), (1340004991,), (1340004994,), (1340004998,), (1340005003,), (1340005008,), (1340005029,), (1340005033,), (1340005038,), (1340005044,), (1340005052,), (1340005059,), (1340005086,), (1340005092,), (1340005100,), (1340005105,), (1340005131,), (1340005133,), (1340005135,), (1340005140,), (1340005145,), (1340005151,), (1340005183,), (1340005188,), (1340005192,)) 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 (1340003500,1340005100) 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 20898286 , 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=20898262 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 (20898286) result : ((1340004687,), (1340004688,), (1340004756,), (1340004757,), (1340004971,), (1340005065,), (1340005066,), (1340005167,), (1340005168,), (1340005204,), (1340005205,), (1340005206,), (1340005207,), (1340005208,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20898262) result : ((1340003455,), (1340003458,), (1340003496,), (1340003500,), (1340003514,), (1340003531,), (1340003536,), (1340003541,), (1340003586,), (1340003594,), (1340003598,), (1340003603,), (1340003608,), (1340003617,), (1340003679,), (1340003682,), (1340004359,), (1340004364,), (1340004370,), (1340004375,), (1340004597,), (1340004679,), (1340004684,), (1340004725,), (1340004746,), (1340004781,), (1340004784,), (1340004788,), (1340004850,), (1340004853,), (1340004856,), (1340004861,), (1340004866,), (1340004892,), (1340004894,), (1340004897,), (1340004946,), (1340004951,), (1340004957,), (1340004991,), (1340004994,), (1340004998,), (1340005003,), (1340005008,), (1340005029,), (1340005033,), (1340005038,), (1340005044,), (1340005052,), (1340005059,), (1340005086,), (1340005092,), (1340005100,), (1340005105,), (1340005131,), (1340005133,), (1340005135,), (1340005140,), (1340005145,), (1340005151,), (1340005183,), (1340005188,), (1340005192,)) 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 (1340003500,1340005100) 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 20898287 , 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=20898262 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 (20898287) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20898262) result : ((1340003455,), (1340003458,), (1340003496,), (1340003500,), (1340003514,), (1340003531,), (1340003536,), (1340003541,), (1340003586,), (1340003594,), (1340003598,), (1340003603,), (1340003608,), (1340003617,), (1340003679,), (1340003682,), (1340004359,), (1340004364,), (1340004370,), (1340004375,), (1340004597,), (1340004679,), (1340004684,), (1340004725,), (1340004746,), (1340004781,), (1340004784,), (1340004788,), (1340004850,), (1340004853,), (1340004856,), (1340004861,), (1340004866,), (1340004892,), (1340004894,), (1340004897,), (1340004946,), (1340004951,), (1340004957,), (1340004991,), (1340004994,), (1340004998,), (1340005003,), (1340005008,), (1340005029,), (1340005033,), (1340005038,), (1340005044,), (1340005052,), (1340005059,), (1340005086,), (1340005092,), (1340005100,), (1340005105,), (1340005131,), (1340005133,), (1340005135,), (1340005140,), (1340005145,), (1340005151,), (1340005183,), (1340005188,), (1340005192,)) 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 (1340003500,1340005100) 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 20898288 , 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=20898262 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 (20898288) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20898262) result : ((1340003455,), (1340003458,), (1340003496,), (1340003500,), (1340003514,), (1340003531,), (1340003536,), (1340003541,), (1340003586,), (1340003594,), (1340003598,), (1340003603,), (1340003608,), (1340003617,), (1340003679,), (1340003682,), (1340004359,), (1340004364,), (1340004370,), (1340004375,), (1340004597,), (1340004679,), (1340004684,), (1340004725,), (1340004746,), (1340004781,), (1340004784,), (1340004788,), (1340004850,), (1340004853,), (1340004856,), (1340004861,), (1340004866,), (1340004892,), (1340004894,), (1340004897,), (1340004946,), (1340004951,), (1340004957,), (1340004991,), (1340004994,), (1340004998,), (1340005003,), (1340005008,), (1340005029,), (1340005033,), (1340005038,), (1340005044,), (1340005052,), (1340005059,), (1340005086,), (1340005092,), (1340005100,), (1340005105,), (1340005131,), (1340005133,), (1340005135,), (1340005140,), (1340005145,), (1340005151,), (1340005183,), (1340005188,), (1340005192,)) 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 (1340003500,1340005100) 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`=20898262 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','flou','mal_croppe','environnement','plastique','kraft','Carton_gris','autre_refus','Carton_brun','cartonnette','papier')) 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`=20898262 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','flou','mal_croppe','environnement','plastique','kraft','Carton_gris','autre_refus','Carton_brun','cartonnette','papier')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20898262, 'sub_port_id': 20898289, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527033, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'Carton_gris': {'main_port_id': 20898262, 'sub_port_id': 20898290, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527034, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'metal': {'main_port_id': 20898262, 'sub_port_id': 20898291, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527035, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'Carton_brun': {'main_port_id': 20898262, 'sub_port_id': 20898292, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527036, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'environnement': {'main_port_id': 20898262, 'sub_port_id': 20898293, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527037, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'kraft': {'main_port_id': 20898262, 'sub_port_id': 20898294, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527038, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'autre_refus': {'main_port_id': 20898262, 'sub_port_id': 20898295, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527039, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'cartonnette': {'main_port_id': 20898262, 'sub_port_id': 20898296, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527040, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'flou': {'main_port_id': 20898262, 'sub_port_id': 20898297, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527041, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20898262, 'sub_port_id': 20898298, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527042, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'mal_croppe': {'main_port_id': 20898262, 'sub_port_id': 20898299, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527043, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}, 'papier': {'main_port_id': 20898262, 'sub_port_id': 20898300, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13527044, 'last_updated_at': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 23, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 23, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20898289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20898277 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20898290,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20898278 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20898291,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20898279 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20898292,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20898280 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20898293,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20898281 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20898294,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20898282 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20898295,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20898283 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20898296,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20898284 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20898297,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20898285 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20898298,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20898286 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20898299,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20898287 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20898300,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20898288 lien utilise dans velours : https://www.fotonower.com/velours/20898289,20898290,20898291,20898292,20898293,20898294,20898295,20898296,20898297,20898298,20898299,20898300?tags=plastique,Carton_gris,metal,Carton_brun,environnement,kraft,autre_refus,cartonnette,flou,Teint_Dans_La_Masse,mal_croppe,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20898262]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340005192, 1340005188, 1340005183, 1340005151, 1340005145, 1340005140, 1340005135, 1340005133, 1340005131, 1340005105, 1340005100, 1340005092, 1340005086] map_info['map_portfolio_photo'] : {20898262: [1340005192, 1340005188, 1340005183, 1340005151, 1340005145, 1340005140, 1340005135, 1340005133, 1340005131, 1340005105, 1340005100, 1340005092, 1340005086, 1340005059, 1340005052, 1340005044, 1340005038, 1340005033, 1340005029, 1340005008, 1340005003, 1340004998, 1340004994, 1340004991, 1340004957, 1340004951, 1340004946, 1340004897, 1340004894, 1340004892, 1340004866, 1340004861, 1340004856, 1340004853, 1340004850, 1340004788, 1340004784, 1340004781, 1340004746, 1340004725, 1340004684, 1340004679, 1340004597, 1340004375, 1340004370, 1340004364, 1340004359, 1340003682, 1340003679, 1340003617, 1340003608, 1340003603, 1340003598, 1340003594, 1340003586, 1340003541, 1340003536, 1340003531, 1340003514, 1340003500, 1340003496, 1340003458, 1340003455]} final : False mtd_id 4302 list_pids : [1340005192, 1340005188, 1340005183, 1340005151, 1340005145, 1340005140, 1340005135, 1340005133, 1340005131, 1340005105, 1340005100, 1340005092, 1340005086] Looping around the photos to save general results len do output : 1 /20898262. 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, '2621276') ('4302', '20898262', '1340005192', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005188', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005183', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005151', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005145', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005140', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005135', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005133', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005131', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005105', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005100', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005092', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005086', None, None, None, None, None, '2621276') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '20898262', "{'plastique': 20898277, 'Carton_gris': 20898278, 'metal': 20898279, 'Carton_brun': 20898280, 'environnement': 20898281, 'kraft': 20898282, 'autre_refus': 20898283, 'cartonnette': 20898284, 'flou': 20898285, 'Teint_Dans_La_Masse': 20898286, 'mal_croppe': 20898287, 'papier': 20898288}", None, None, None, None, '2621276'), ('4302', '20898262', '1340005192', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005188', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005183', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005151', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005145', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005140', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005135', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005133', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005131', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005105', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005100', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005092', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005086', None, None, None, None, None, '2621276')] time used for this insertion : 0.013632535934448242 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4860379695892334 time spend to save output : 0.014003753662109375 total time spend for step 1 : 0.5000417232513428 step2:final Thu Feb 27 23:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20898262) 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 20898262 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340003458,1340003455,1340003541,1340003536,1340003531,1340003514,1340003500,1340003496,1340003617,1340003608,1340003603,1340003598,1340003594,1340003586,1340003682,1340003679,1340004375,1340004370,1340004364,1340004359,1340004746,1340004725,1340004684,1340004679,1340004597,1340004788,1340004784,1340004781,1340004866,1340004861,1340004856,1340004853,1340004850,1340004957,1340004951,1340004946,1340004897,1340004894,1340004892,1340005008,1340005003,1340004998,1340004994,1340004991,1340005059,1340005052,1340005044,1340005038,1340005033,1340005029,1340005105,1340005100,1340005092,1340005086,1340005151,1340005145,1340005140,1340005135,1340005133,1340005131,1340005192,1340005188,1340005183); 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([20898262]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} new output for save of step final : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} [1340005192, 1340005188, 1340005183, 1340005151, 1340005145, 1340005140, 1340005135, 1340005133, 1340005131, 1340005105, 1340005100, 1340005092, 1340005086] map_info['map_portfolio_photo'] : {20898262: [1340005192, 1340005188, 1340005183, 1340005151, 1340005145, 1340005140, 1340005135, 1340005133, 1340005131, 1340005105, 1340005100, 1340005092, 1340005086, 1340005059, 1340005052, 1340005044, 1340005038, 1340005033, 1340005029, 1340005008, 1340005003, 1340004998, 1340004994, 1340004991, 1340004957, 1340004951, 1340004946, 1340004897, 1340004894, 1340004892, 1340004866, 1340004861, 1340004856, 1340004853, 1340004850, 1340004788, 1340004784, 1340004781, 1340004746, 1340004725, 1340004684, 1340004679, 1340004597, 1340004375, 1340004370, 1340004364, 1340004359, 1340003682, 1340003679, 1340003617, 1340003608, 1340003603, 1340003598, 1340003594, 1340003586, 1340003541, 1340003536, 1340003531, 1340003514, 1340003500, 1340003496, 1340003458, 1340003455]} final : False mtd_id 4302 list_pids : [1340005192, 1340005188, 1340005183, 1340005151, 1340005145, 1340005140, 1340005135, 1340005133, 1340005131, 1340005105, 1340005100, 1340005092, 1340005086] Looping around the photos to save general results len do output : 13 /1340005192.Didn't retrieve data . /1340005188.Didn't retrieve data . /1340005183.Didn't retrieve data . /1340005151.Didn't retrieve data . /1340005145.Didn't retrieve data . /1340005140.Didn't retrieve data . /1340005135.Didn't retrieve data . /1340005133.Didn't retrieve data . /1340005131.Didn't retrieve data . /1340005105.Didn't retrieve data . /1340005100.Didn't retrieve data . /1340005092.Didn't retrieve data . /1340005086.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, '2621276') ('4302', '20898262', '1340005192', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005188', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005183', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005151', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005145', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005140', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005135', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005133', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005131', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005105', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005100', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005092', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005086', None, None, None, None, None, '2621276') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '20898262', '1340005192', '0.09650036264258037', None, None, None, None, '2621276'), ('4302', '20898262', '1340005188', '0.09650036264258037', None, None, None, None, '2621276'), ('4302', '20898262', '1340005183', '0.09650036264258037', None, None, None, None, '2621276'), ('4302', '20898262', '1340005151', '0.09650036264258037', None, None, None, None, '2621276'), ('4302', '20898262', '1340005145', '0.09650036264258037', None, None, None, None, '2621276'), ('4302', '20898262', '1340005140', '0.09650036264258037', None, None, None, None, '2621276'), ('4302', '20898262', '1340005135', '0.09650036264258037', None, None, None, None, '2621276'), ('4302', '20898262', '1340005133', '0.09650036264258037', None, None, None, None, '2621276'), ('4302', '20898262', '1340005131', '0.09650036264258037', None, None, None, None, '2621276'), ('4302', '20898262', '1340005105', '0.09650036264258037', None, None, None, None, '2621276'), ('4302', '20898262', '1340005100', '0.09650036264258037', None, None, None, None, '2621276'), ('4302', '20898262', '1340005092', '0.09650036264258037', None, None, None, None, '2621276'), ('4302', '20898262', '1340005086', '0.09650036264258037', None, None, None, None, '2621276')] time used for this insertion : 0.013194561004638672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07207369804382324 time spend to save output : 0.013994932174682617 total time spend for step 2 : 0.08606863021850586 step3:velours_tree Thu Feb 27 23:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20898262: [{'plastique': 20898277, 'Carton_gris': 20898278, 'metal': 20898279, 'Carton_brun': 20898280, 'environnement': 20898281, 'kraft': 20898282, 'autre_refus': 20898283, 'cartonnette': 20898284, 'flou': 20898285, 'Teint_Dans_La_Masse': 20898286, 'mal_croppe': 20898287, 'papier': 20898288}]} input_args_next_step : {20898262: ()} output_args : {20898262: [{'plastique': 20898277, 'Carton_gris': 20898278, 'metal': 20898279, 'Carton_brun': 20898280, 'environnement': 20898281, 'kraft': 20898282, 'autre_refus': 20898283, 'cartonnette': 20898284, 'flou': 20898285, 'Teint_Dans_La_Masse': 20898286, 'mal_croppe': 20898287, 'papier': 20898288}]} args : 20898262 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 : ({'plastique': 20898277, 'Carton_gris': 20898278, 'metal': 20898279, 'Carton_brun': 20898280, 'environnement': 20898281, 'kraft': 20898282, 'autre_refus': 20898283, 'cartonnette': 20898284, 'flou': 20898285, 'Teint_Dans_La_Masse': 20898286, 'mal_croppe': 20898287, 'papier': 20898288},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20898262) 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([20898262]) 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.4912433624267578 time spend to save output : 6.103515625e-05 total time spend for step 3 : 0.4913043975830078 step4:send_mail_cod Thu Feb 27 23:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} input_args_next_step : {1340005192: ()} output_args : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} args : 1340005192 depend.output_id : 0 input_args_next_step : {1340005192: ('0.09650036264258037',), 1340005188: ()} output_args : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} args : 1340005188 depend.output_id : 0 input_args_next_step : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ()} output_args : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} args : 1340005183 depend.output_id : 0 input_args_next_step : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ()} output_args : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} args : 1340005151 depend.output_id : 0 input_args_next_step : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ()} output_args : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} args : 1340005145 depend.output_id : 0 input_args_next_step : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ()} output_args : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} args : 1340005140 depend.output_id : 0 input_args_next_step : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ()} output_args : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} args : 1340005135 depend.output_id : 0 input_args_next_step : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ()} output_args : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} args : 1340005133 depend.output_id : 0 input_args_next_step : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ()} output_args : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} args : 1340005131 depend.output_id : 0 input_args_next_step : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ()} output_args : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} args : 1340005105 depend.output_id : 0 input_args_next_step : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ()} output_args : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} args : 1340005100 depend.output_id : 0 input_args_next_step : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ()} output_args : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} args : 1340005092 depend.output_id : 0 input_args_next_step : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ()} output_args : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',)} args : 1340005086 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 : {20898262: [{'plastique': 20898277, 'Carton_gris': 20898278, 'metal': 20898279, 'Carton_brun': 20898280, 'environnement': 20898281, 'kraft': 20898282, 'autre_refus': 20898283, 'cartonnette': 20898284, 'flou': 20898285, 'Teint_Dans_La_Masse': 20898286, 'mal_croppe': 20898287, 'papier': 20898288}]} input_args_next_step : {1340005192: ('0.09650036264258037',), 1340005188: ('0.09650036264258037',), 1340005183: ('0.09650036264258037',), 1340005151: ('0.09650036264258037',), 1340005145: ('0.09650036264258037',), 1340005140: ('0.09650036264258037',), 1340005135: ('0.09650036264258037',), 1340005133: ('0.09650036264258037',), 1340005131: ('0.09650036264258037',), 1340005105: ('0.09650036264258037',), 1340005100: ('0.09650036264258037',), 1340005092: ('0.09650036264258037',), 1340005086: ('0.09650036264258037',), 20898262: ()} output_args : {20898262: [{'plastique': 20898277, 'Carton_gris': 20898278, 'metal': 20898279, 'Carton_brun': 20898280, 'environnement': 20898281, 'kraft': 20898282, 'autre_refus': 20898283, 'cartonnette': 20898284, 'flou': 20898285, 'Teint_Dans_La_Masse': 20898286, 'mal_croppe': 20898287, 'papier': 20898288}]} args : 20898262 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 :14, first value : ('0.09650036264258037',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20898262) 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 (1340005192,1340005188,1340005183,1340005151,1340005145,1340005140,1340005135,1340005133,1340005131,1340005105,1340005100,1340005092,1340005086) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340005086 begin to download photo : 1340005105 begin to download photo : 1340005135 begin to download photo : 1340005151 begin to download photo : 1340005192 download finish for photo 1340005105 begin to download photo : 1340005131 download finish for photo 1340005086 begin to download photo : 1340005092 download finish for photo 1340005192 download finish for photo 1340005151 begin to download photo : 1340005183 download finish for photo 1340005135 begin to download photo : 1340005140 download finish for photo 1340005131 begin to download photo : 1340005133 download finish for photo 1340005092 begin to download photo : 1340005100 download finish for photo 1340005183 begin to download photo : 1340005188 download finish for photo 1340005140 begin to download photo : 1340005145 download finish for photo 1340005133 download finish for photo 1340005100 download finish for photo 1340005188 download finish for photo 1340005145 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 : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P20898262_27-02-2025_23_14_59.pdf 20898277 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=20898277 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340004747: '1740693913_1996785_1340003608_48babff59ad333657fd37afc46f0e387_rle_crop_3689184854_0.png', 1340004748: '1740693913_1996785_1340003603_023fb40680e3634c5261ec388b461a4f_rle_crop_3689184870_0.png', 1340004749: '1740693913_1996785_1340003586_a9924e5b0586e4a0c4c861256df655c0_rle_crop_3689184914_0.png', 1340004773: '1740693933_1996966_1340003617_c951987cd3f9861ebfd034a7483e607a_rle_crop_3689184934_0.png', 1340004774: '1740693933_1996966_1340003500_f8a85aee66390f297dd9994915028921_rle_crop_3689184993_0.png', 1340004838: '1740694050_1998347_1340003679_7935dacd60fd8c9b05aab86bee43f64f_rle_crop_3689185351_0.png', 1340004843: '1740694030_1998115_1340004364_e82834b539fe64c0c6a11d2dd153e71a_rle_crop_3689185322_0.png', 1340004844: '1740694030_1998115_1340004359_e6ac16d8a1c0c96cd050bf4fe551b1be_rle_crop_3689185335_0.png', 1340004983: '1740694151_1999387_1340004788_76d1e7eb9e7be18417d1ce3bab513ee4_rle_crop_3689186490_0.png', 1340005078: '1740694270_2000686_1340004946_7494cd5d0a77ff9a755d846519cc8e98_rle_crop_3689187107_0.png', 1340005079: '1740694270_2000686_1340004894_160247184abb43ce38808bfa2d9b3952_rle_crop_3689187155_0.png', 1340005099: '1740694296_2000904_1340004853_f6716b3e0c97f0739e708f4f11daed33_rle_crop_3689187454_0.png', 1340005231: '1740694412_2002499_1340005029_94f0144bfea41dbd327802b1809fd33d_rle_crop_3689189174_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/40c5daf698a26a352dd3035b85aa682c_39419647.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/7d0487422de1ba2a3a4023783d0579f7_32858477.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/0432d816a799655059345d71562344b2_69664307.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/24d5364538d24a15c1db56121c0e81de_56952311.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/73efeecf9324ffa528810a09995cd683_69144295.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/8c14693145d83a2569b25615552b12c9_21668769.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/61eecc8adb79e42ef0fc8ab073b2e072_98663129.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/9262c9271d0f0c898ff91cdd14bc9cb1_29679431.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ea29e6822dd38d1dee6f523dcacc2852_22882648.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/bdb9d0297e6ed4b95a4d97ea578d1e7a_56206193.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/147fad2087b02edeb1054947776ff66f_5472196.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ff5d44e9dfc97a141c6631b5c6aee752_34605284.png change filename to text .imagette208982771740694499/ imagette208982771740694499/1740694050_1998347_1340003679_7935dacd60fd8c9b05aab86bee43f64f_rle_crop_3689185351_0.png.png imagette208982771740694499/1740694030_1998115_1340004359_e6ac16d8a1c0c96cd050bf4fe551b1be_rle_crop_3689185335_0.png.png imagette208982771740694499/1740694151_1999387_1340004788_76d1e7eb9e7be18417d1ce3bab513ee4_rle_crop_3689186490_0.png.png imagette208982771740694499/1740694270_2000686_1340004894_160247184abb43ce38808bfa2d9b3952_rle_crop_3689187155_0.png.png imagette208982771740694499/1740693933_1996966_1340003500_f8a85aee66390f297dd9994915028921_rle_crop_3689184993_0.png.png imagette208982771740694499/1740693913_1996785_1340003603_023fb40680e3634c5261ec388b461a4f_rle_crop_3689184870_0.png.png imagette208982771740694499/1740694030_1998115_1340004364_e82834b539fe64c0c6a11d2dd153e71a_rle_crop_3689185322_0.png.png imagette208982771740694499/1740693913_1996785_1340003586_a9924e5b0586e4a0c4c861256df655c0_rle_crop_3689184914_0.png.png imagette208982771740694499/1740693913_1996785_1340003608_48babff59ad333657fd37afc46f0e387_rle_crop_3689184854_0.png.png imagette208982771740694499/1740693933_1996966_1340003617_c951987cd3f9861ebfd034a7483e607a_rle_crop_3689184934_0.png.png imagette208982771740694499/1740694412_2002499_1340005029_94f0144bfea41dbd327802b1809fd33d_rle_crop_3689189174_0.png.png imagette208982771740694499/1740694296_2000904_1340004853_f6716b3e0c97f0739e708f4f11daed33_rle_crop_3689187454_0.png.png imagette208982771740694499/1740694270_2000686_1340004946_7494cd5d0a77ff9a755d846519cc8e98_rle_crop_3689187107_0.png.png imagette208982791740694500/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/a7ad8caae1a04f4182d1bd74e797b1a7_7601829.png imagette208982771740694499 20898279 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=20898279 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208982791740694500 20898282 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=20898282 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340004753: '1740693913_1996785_1340003608_48babff59ad333657fd37afc46f0e387_rle_crop_3689184843_0.png', 1340004754: '1740693913_1996785_1340003598_3fe918284a283a6b3954cfecffd53baa_rle_crop_3689184883_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/d960e9719b9292b8447b96543d60440c_17003847.png change filename to text .imagette208982821740694500/ imagette208982821740694500/1740693913_1996785_1340003608_48babff59ad333657fd37afc46f0e387_rle_crop_3689184843_0.png.png imagette208982821740694500/1740693913_1996785_1340003598_3fe918284a283a6b3954cfecffd53baa_rle_crop_3689184883_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/4aebb9d967e19b4396e2ca0116f4540b_60286680.png imagette208982821740694500 20898283 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=20898283 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340004704: '1740693913_1996785_1340003608_48babff59ad333657fd37afc46f0e387_rle_crop_3689184844_0.png', 1340004706: '1740693913_1996785_1340003594_3dd565c51347c6f49b48ee1cdc80dee2_rle_crop_3689184891_0.png', 1340004708: '1740693913_1996785_1340003586_a9924e5b0586e4a0c4c861256df655c0_rle_crop_3689184906_0.png', 1340004758: '1740693933_1996966_1340003496_0e7ffe5ea99bc4d1e3b1ece2e5011f8a_rle_crop_3689185016_0.png', 1340004834: '1740694030_1998115_1340004359_e6ac16d8a1c0c96cd050bf4fe551b1be_rle_crop_3689185337_0.png', 1340005068: '1740694270_2000686_1340004946_7494cd5d0a77ff9a755d846519cc8e98_rle_crop_3689187105_0.png', 1340005090: '1740694296_2000904_1340004856_b527003dcc8a45eca76b9f3437d94831_rle_crop_3689187436_0.png', 1340005091: '1740694296_2000904_1340004853_f6716b3e0c97f0739e708f4f11daed33_rle_crop_3689187448_0.png', 1340005169: '1740694393_2002238_1340004991_028f57020ea0706458468ff19a70e676_rle_crop_3689188752_0.png', 1340005212: '1740694412_2002499_1340005052_84ea44dce0580580c4b8756799652bfa_rle_crop_3689189097_0.png', 1340005213: '1740694412_2002499_1340005038_99b3cf75060df4cb4b29e5e5fd42a52e_rle_crop_3689189139_0.png', 1340005214: '1740694412_2002499_1340005033_42e3a9a5629ba24553410401304cb938_rle_crop_3689189159_0.png', 1340005215: '1740694412_2002499_1340005029_94f0144bfea41dbd327802b1809fd33d_rle_crop_3689189175_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/a65fd0982bb399e36b11d54f54be1b79_33552066.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/6ffa84df95c4b323bcf90c116b01cbc0_81029644.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/b7af1e4448cfd87301de089366b66be4_83591513.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/2e290843ee51534688d81de7c731b504_27892793.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/554c078e8eacf577cebd9ce963f120f2_23250519.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/d4c707c7e83d48880f1c87fab3fa3895_11397045.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/f38b91695fe8326433fd85b09e0b320a_27093839.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/1d5ca249b3a8e3e22c4fba84e8df8996_26371452.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/5674a87ea36aa9879672f8e80bff73c6_98603476.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/866f527ee8e7dfde06ad15f514f6c9c9_21953339.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/2e3a0d095030a3a4ba85b575eea75c07_64373893.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/661280960ce0aab585e7425b2be2555d_86830642.png change filename to text .imagette208982831740694500/ imagette208982831740694500/1740693933_1996966_1340003496_0e7ffe5ea99bc4d1e3b1ece2e5011f8a_rle_crop_3689185016_0.png.png imagette208982831740694500/1740693913_1996785_1340003608_48babff59ad333657fd37afc46f0e387_rle_crop_3689184844_0.png.png imagette208982831740694500/1740694270_2000686_1340004946_7494cd5d0a77ff9a755d846519cc8e98_rle_crop_3689187105_0.png.png imagette208982831740694500/1740694412_2002499_1340005038_99b3cf75060df4cb4b29e5e5fd42a52e_rle_crop_3689189139_0.png.png imagette208982831740694500/1740694393_2002238_1340004991_028f57020ea0706458468ff19a70e676_rle_crop_3689188752_0.png.png imagette208982831740694500/1740693913_1996785_1340003586_a9924e5b0586e4a0c4c861256df655c0_rle_crop_3689184906_0.png.png imagette208982831740694500/1740693913_1996785_1340003594_3dd565c51347c6f49b48ee1cdc80dee2_rle_crop_3689184891_0.png.png imagette208982831740694500/1740694030_1998115_1340004359_e6ac16d8a1c0c96cd050bf4fe551b1be_rle_crop_3689185337_0.png.png imagette208982831740694500/1740694412_2002499_1340005029_94f0144bfea41dbd327802b1809fd33d_rle_crop_3689189175_0.png.png imagette208982831740694500/1740694296_2000904_1340004856_b527003dcc8a45eca76b9f3437d94831_rle_crop_3689187436_0.png.png imagette208982831740694500/1740694296_2000904_1340004853_f6716b3e0c97f0739e708f4f11daed33_rle_crop_3689187448_0.png.png imagette208982831740694500/1740694412_2002499_1340005052_84ea44dce0580580c4b8756799652bfa_rle_crop_3689189097_0.png.png imagette208982831740694500/1740694412_2002499_1340005033_42e3a9a5629ba24553410401304cb938_rle_crop_3689189159_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/849193dcba29821d9a00281a3938c3c5_97387793.png imagette208982831740694500 20898284 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=20898284 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340004737: '1740693913_1996785_1340003608_48babff59ad333657fd37afc46f0e387_rle_crop_3689184845_0.png', 1340004738: '1740693913_1996785_1340003603_023fb40680e3634c5261ec388b461a4f_rle_crop_3689184863_0.png', 1340004764: '1740693933_1996966_1340003617_c951987cd3f9861ebfd034a7483e607a_rle_crop_3689184925_0.png', 1340004765: '1740693933_1996966_1340003617_c951987cd3f9861ebfd034a7483e607a_rle_crop_3689184927_0.png', 1340004835: '1740694030_1998115_1340004370_32025c00bec1a65a427272e2bf222624_rle_crop_3689185311_0.png', 1340004837: '1740694030_1998115_1340004364_e82834b539fe64c0c6a11d2dd153e71a_rle_crop_3689185320_0.png', 1340004976: '1740694151_1999387_1340004725_1456ce0f308dfdee232159db3cbb74c8_rle_crop_3689186512_0.png', 1340004977: '1740694151_1999387_1340004679_e1b5406b810bd29546576a8987749a38_rle_crop_3689186618_0.png', 1340004986: '1740694171_1999604_1340004784_9ea9bbb5e8fd706b3b2c4bdd95b9a066_rle_crop_3689186642_0.png', 1340004987: '1740694171_1999604_1340004784_9ea9bbb5e8fd706b3b2c4bdd95b9a066_rle_crop_3689186648_0.png', 1340004988: '1740694171_1999604_1340004781_52a066cb56091b5ccce6c15ee5ee4396_rle_crop_3689186659_0.png', 1340005094: '1740694296_2000904_1340004853_f6716b3e0c97f0739e708f4f11daed33_rle_crop_3689187449_0.png', 1340005222: '1740694412_2002499_1340005033_42e3a9a5629ba24553410401304cb938_rle_crop_3689189165_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/3d5517b7c5fd3b90b110703eda10c71b_19175764.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ae93393de994a82293d0e2e13fcd42f4_36298102.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/35f3bb2d835f1e05feb573d20b3188db_43528666.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/f35c6ddea3020f6263c847658249251c_67959027.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/7ba1507c9e3a748c2df8393ddbb1cd91_28561158.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/137e9d8c5ef7d22981bab7920731aad2_11422877.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/0456640100370d7b516703c4b0d28009_89522048.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/dde5dd740cb99072f126b674ff76f1d4_53752432.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/0a926572fe24223379316240efe6951d_89084845.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/2531da48bb774637c3bd26f1b1176b68_62421623.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/bda7561dada053889440e31c929aaf34_75726432.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/71290e4d2aebc23a7f94cf26d141254a_99740141.png change filename to text .imagette208982841740694500/ imagette208982841740694500/1740694151_1999387_1340004725_1456ce0f308dfdee232159db3cbb74c8_rle_crop_3689186512_0.png.png imagette208982841740694500/1740693913_1996785_1340003603_023fb40680e3634c5261ec388b461a4f_rle_crop_3689184863_0.png.png imagette208982841740694500/1740694030_1998115_1340004370_32025c00bec1a65a427272e2bf222624_rle_crop_3689185311_0.png.png imagette208982841740694500/1740694171_1999604_1340004781_52a066cb56091b5ccce6c15ee5ee4396_rle_crop_3689186659_0.png.png imagette208982841740694500/1740693933_1996966_1340003617_c951987cd3f9861ebfd034a7483e607a_rle_crop_3689184925_0.png.png imagette208982841740694500/1740694412_2002499_1340005033_42e3a9a5629ba24553410401304cb938_rle_crop_3689189165_0.png.png imagette208982841740694500/1740694171_1999604_1340004784_9ea9bbb5e8fd706b3b2c4bdd95b9a066_rle_crop_3689186648_0.png.png imagette208982841740694500/1740693913_1996785_1340003608_48babff59ad333657fd37afc46f0e387_rle_crop_3689184845_0.png.png imagette208982841740694500/1740693933_1996966_1340003617_c951987cd3f9861ebfd034a7483e607a_rle_crop_3689184927_0.png.png imagette208982841740694500/1740694171_1999604_1340004784_9ea9bbb5e8fd706b3b2c4bdd95b9a066_rle_crop_3689186642_0.png.png imagette208982841740694500/1740694296_2000904_1340004853_f6716b3e0c97f0739e708f4f11daed33_rle_crop_3689187449_0.png.png imagette208982841740694500/1740694151_1999387_1340004679_e1b5406b810bd29546576a8987749a38_rle_crop_3689186618_0.png.png imagette208982841740694500/1740694030_1998115_1340004364_e82834b539fe64c0c6a11d2dd153e71a_rle_crop_3689185320_0.png.png imagette208982851740694501/ imagette208982871740694501/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/c8fa4ca992d090679728bcce8458bae6_39769975.png imagette208982841740694500 20898285 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=20898285 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208982851740694501 20898287 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=20898287 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208982871740694501 20898278 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=20898278 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340004973: '1740694151_1999387_1340004679_e1b5406b810bd29546576a8987749a38_rle_crop_3689186622_0.png', 1340005218: '1740694412_2002499_1340005033_42e3a9a5629ba24553410401304cb938_rle_crop_3689189161_0.png', 1340005217: '1740694412_2002499_1340005052_84ea44dce0580580c4b8756799652bfa_rle_crop_3689189098_0.png', 1340005173: '1740694393_2002238_1340004994_322b736492bbf7ebede2b9de5c2e8df4_rle_crop_3689188739_0.png', 1340005172: '1740694393_2002238_1340004998_84c78887aa252bcf27a834a644da749c_rle_crop_3689188732_0.png', 1340005171: '1740694393_2002238_1340005003_de0816df9449a8c82d4ec71202780bf6_rle_crop_3689188716_0.png', 1340005093: '1740694296_2000904_1340004861_4083b7b1892c87932babb8513b3a12da_rle_crop_3689187428_0.png', 1340005070: '1740694270_2000686_1340004894_160247184abb43ce38808bfa2d9b3952_rle_crop_3689187153_0.png', 1340005069: '1740694270_2000686_1340004951_973fd7307bc4176fcf6736563fecbdbe_rle_crop_3689187088_0.png', 1340004985: '1740694171_1999604_1340004784_9ea9bbb5e8fd706b3b2c4bdd95b9a066_rle_crop_3689186641_0.png', 1340003674: '1740693812_1995670_1340003458_15f8fb57826c1babfc7224369ed467c5_rle_crop_3689184182_0.png', 1340004972: '1740694151_1999387_1340004788_76d1e7eb9e7be18417d1ce3bab513ee4_rle_crop_3689186493_0.png', 1340004836: '1740694050_1998347_1340004375_3cfc7ead0dba7542fa86045fb51cd9f4_rle_crop_3689185346_0.png', 1340004762: '1740693933_1996966_1340003496_0e7ffe5ea99bc4d1e3b1ece2e5011f8a_rle_crop_3689185010_0.png', 1340004761: '1740693933_1996966_1340003531_3bb84b780624f83e7b96bac7011a275c_rle_crop_3689184951_0.png', 1340004760: '1740693933_1996966_1340003536_8f639919fab81a0f917ff177ed0bb8c9_rle_crop_3689184941_0.png', 1340004727: '1740693913_1996785_1340003598_3fe918284a283a6b3954cfecffd53baa_rle_crop_3689184884_0.png', 1340004726: '1740693913_1996785_1340003603_023fb40680e3634c5261ec388b461a4f_rle_crop_3689184860_0.png', 1340003675: '1740693812_1995670_1340003455_d26bf46afc6351348c673d9f1a9be2e6_rle_crop_3689184191_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/7afcaef558c001ea13ebd9393fb04280_16285452.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fb2f078de5e87e23d21f4bf51828df4b_3090799.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/51668e8396aea6b6d48a3cac04f60495_80419641.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/2cac331f7718a54753c5f23b4f1167f7_10166189.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/59833bd1b26ddf90276409a3e6bf8a61_36447112.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/e376d3144c4d28ebee6f595aa2d66946_53394551.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/8f3fe89869e4b6ebfb6eb55ef44fbe2b_51001239.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ac116a6e33b538abf3d063dafacfe182_7125806.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/074d3c808f0cb0c6519ee20a53d119f2_47165365.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/372e7961dd9ff7984ddca6d74e39ac22_66250953.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/99bf74be9a605e134e6018217f35fcd7_57598103.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/f2b99e9da4f62e351f7ceae7ceb0ea15_94648433.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fc687a0585f32bab9e07df09035f5c82_72085070.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/7c08e821cb46c803d52b606e8b75f7f4_28305382.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/e62c584a0c96fd4875369e32f8031252_10527242.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/3adc32287cf0e7b3ee97958248355aa2_56162217.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/6be799f456f3910555469d27260a1901_35891934.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/f308f65df60ad775022d5669a36cd249_58223843.png change filename to text .imagette208982781740694501/ imagette208982781740694501/1740694412_2002499_1340005052_84ea44dce0580580c4b8756799652bfa_rle_crop_3689189098_0.png.png imagette208982781740694501/1740693933_1996966_1340003496_0e7ffe5ea99bc4d1e3b1ece2e5011f8a_rle_crop_3689185010_0.png.png imagette208982781740694501/1740693933_1996966_1340003536_8f639919fab81a0f917ff177ed0bb8c9_rle_crop_3689184941_0.png.png imagette208982781740694501/1740694270_2000686_1340004951_973fd7307bc4176fcf6736563fecbdbe_rle_crop_3689187088_0.png.png imagette208982781740694501/1740694393_2002238_1340004998_84c78887aa252bcf27a834a644da749c_rle_crop_3689188732_0.png.png imagette208982781740694501/1740693812_1995670_1340003455_d26bf46afc6351348c673d9f1a9be2e6_rle_crop_3689184191_0.png.png imagette208982781740694501/1740694393_2002238_1340005003_de0816df9449a8c82d4ec71202780bf6_rle_crop_3689188716_0.png.png imagette208982781740694501/1740694270_2000686_1340004894_160247184abb43ce38808bfa2d9b3952_rle_crop_3689187153_0.png.png imagette208982781740694501/1740693913_1996785_1340003603_023fb40680e3634c5261ec388b461a4f_rle_crop_3689184860_0.png.png imagette208982781740694501/1740694412_2002499_1340005033_42e3a9a5629ba24553410401304cb938_rle_crop_3689189161_0.png.png imagette208982781740694501/1740693933_1996966_1340003531_3bb84b780624f83e7b96bac7011a275c_rle_crop_3689184951_0.png.png imagette208982781740694501/1740694050_1998347_1340004375_3cfc7ead0dba7542fa86045fb51cd9f4_rle_crop_3689185346_0.png.png imagette208982781740694501/1740693812_1995670_1340003458_15f8fb57826c1babfc7224369ed467c5_rle_crop_3689184182_0.png.png imagette208982781740694501/1740694151_1999387_1340004679_e1b5406b810bd29546576a8987749a38_rle_crop_3689186622_0.png.png imagette208982781740694501/1740694151_1999387_1340004788_76d1e7eb9e7be18417d1ce3bab513ee4_rle_crop_3689186493_0.png.png imagette208982781740694501/1740694296_2000904_1340004861_4083b7b1892c87932babb8513b3a12da_rle_crop_3689187428_0.png.png imagette208982781740694501/1740694171_1999604_1340004784_9ea9bbb5e8fd706b3b2c4bdd95b9a066_rle_crop_3689186641_0.png.png imagette208982781740694501/1740694393_2002238_1340004994_322b736492bbf7ebede2b9de5c2e8df4_rle_crop_3689188739_0.png.png imagette208982781740694501/1740693913_1996785_1340003598_3fe918284a283a6b3954cfecffd53baa_rle_crop_3689184884_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/c717f07489c7574dfe3af0f8b1129db5_76893268.png imagette208982781740694501 20898280 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=20898280 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340005073: '1740694270_2000686_1340004946_7494cd5d0a77ff9a755d846519cc8e98_rle_crop_3689187109_0.png', 1340005229: '1740694412_2002499_1340005029_94f0144bfea41dbd327802b1809fd33d_rle_crop_3689189180_0.png', 1340005228: '1740694412_2002499_1340005033_42e3a9a5629ba24553410401304cb938_rle_crop_3689189163_0.png', 1340005227: '1740694412_2002499_1340005038_99b3cf75060df4cb4b29e5e5fd42a52e_rle_crop_3689189147_0.png', 1340005226: '1740694412_2002499_1340005044_08a893a1cddcf60bd7029df127139714_rle_crop_3689189125_0.png', 1340005225: '1740694412_2002499_1340005052_84ea44dce0580580c4b8756799652bfa_rle_crop_3689189100_0.png', 1340005178: '1740694393_2002238_1340004991_028f57020ea0706458468ff19a70e676_rle_crop_3689188751_0.png', 1340005177: '1740694393_2002238_1340004991_028f57020ea0706458468ff19a70e676_rle_crop_3689188754_0.png', 1340005176: '1740694393_2002238_1340005059_622e125705d89c8b15d5f3e8b229e26f_rle_crop_3689188708_0.png', 1340005175: '1740694393_2002238_1340005059_622e125705d89c8b15d5f3e8b229e26f_rle_crop_3689188707_0.png', 1340005174: '1740694393_2002238_1340005059_622e125705d89c8b15d5f3e8b229e26f_rle_crop_3689188699_0.png', 1340005097: '1740694296_2000904_1340004853_f6716b3e0c97f0739e708f4f11daed33_rle_crop_3689187453_0.png', 1340005096: '1740694296_2000904_1340004957_5de26115e7adc84b5c7a88e97bc9ec4b_rle_crop_3689187418_0.png', 1340005076: '1740694270_2000686_1340004892_69c7d0035c1951d9121aa4f58333a653_rle_crop_3689187169_0.png', 1340005075: '1740694270_2000686_1340004897_686e80b13218b4c36e07e19a707609e6_rle_crop_3689187126_0.png', 1340005074: '1740694270_2000686_1340004897_686e80b13218b4c36e07e19a707609e6_rle_crop_3689187125_0.png', 1340003676: '1740693812_1995670_1340003458_15f8fb57826c1babfc7224369ed467c5_rle_crop_3689184181_0.png', 1340005072: '1740694270_2000686_1340004946_7494cd5d0a77ff9a755d846519cc8e98_rle_crop_3689187114_0.png', 1340005071: '1740694270_2000686_1340004951_973fd7307bc4176fcf6736563fecbdbe_rle_crop_3689187090_0.png', 1340004982: '1740694151_1999387_1340004597_5bda906f553021a19a1a34b146fda308_rle_crop_3689186631_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/1d50bfb064ae9503b7efd06b33b7634c_14386978.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/9a22d67acc09dcda39f167542b503bef_75180923.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/1f8dcd73d0a597d3591957612ce27398_88852046.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fa74159ca55ef3c11f72b2af4fb61cdc_85426976.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/b8d4157110ba797d9a9a510fa25e425f_1385830.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/bb24d54f25daef1dc44cf212d7930cb7_44139106.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/b9aa87783c773f0381bb168dabfb67ae_13658495.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/5d022b72bdcaa7e3c7f880deab1c089a_4427266.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/683d17e7f51a58a7cc599849b33b29ce_750712.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/611a99a44a14213bb3150d28eefb3bea_23652916.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/a88246f9ef4cb6084a6bfa4746d43b5c_91893560.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/29f127a798fbabb9fba6bcc54eb11205_72151036.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/cb3da5424d54ea418332ad87f24b0519_70920034.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/92f85105c6caa8193f801ba4e006986d_39737258.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/15d3084a029f49ec02a64637c1383d7e_86232506.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/22ae256a3ad84a71ad3eaf7080b1eca5_49907347.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/b3580d2fa97474e71d33740228d079f3_86270920.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/96a27dddcf7b1cff802cd169cb631e3e_74590864.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/e9d2895d63d8001e5a6949c5dbe702b5_30094915.png change filename to text .imagette208982801740694502/ imagette208982801740694502/1740694393_2002238_1340004991_028f57020ea0706458468ff19a70e676_rle_crop_3689188754_0.png.png imagette208982801740694502/1740694296_2000904_1340004853_f6716b3e0c97f0739e708f4f11daed33_rle_crop_3689187453_0.png.png imagette208982801740694502/1740694393_2002238_1340005059_622e125705d89c8b15d5f3e8b229e26f_rle_crop_3689188708_0.png.png imagette208982801740694502/1740694270_2000686_1340004897_686e80b13218b4c36e07e19a707609e6_rle_crop_3689187125_0.png.png imagette208982801740694502/1740694412_2002499_1340005038_99b3cf75060df4cb4b29e5e5fd42a52e_rle_crop_3689189147_0.png.png imagette208982801740694502/1740694270_2000686_1340004946_7494cd5d0a77ff9a755d846519cc8e98_rle_crop_3689187114_0.png.png imagette208982801740694502/1740694393_2002238_1340005059_622e125705d89c8b15d5f3e8b229e26f_rle_crop_3689188699_0.png.png imagette208982801740694502/1740694270_2000686_1340004892_69c7d0035c1951d9121aa4f58333a653_rle_crop_3689187169_0.png.png imagette208982801740694502/1740694412_2002499_1340005033_42e3a9a5629ba24553410401304cb938_rle_crop_3689189163_0.png.png imagette208982801740694502/1740694393_2002238_1340004991_028f57020ea0706458468ff19a70e676_rle_crop_3689188751_0.png.png imagette208982801740694502/1740694412_2002499_1340005044_08a893a1cddcf60bd7029df127139714_rle_crop_3689189125_0.png.png imagette208982801740694502/1740694270_2000686_1340004897_686e80b13218b4c36e07e19a707609e6_rle_crop_3689187126_0.png.png imagette208982801740694502/1740694151_1999387_1340004597_5bda906f553021a19a1a34b146fda308_rle_crop_3689186631_0.png.png imagette208982801740694502/1740694296_2000904_1340004957_5de26115e7adc84b5c7a88e97bc9ec4b_rle_crop_3689187418_0.png.png imagette208982801740694502/1740694412_2002499_1340005029_94f0144bfea41dbd327802b1809fd33d_rle_crop_3689189180_0.png.png imagette208982801740694502/1740693812_1995670_1340003458_15f8fb57826c1babfc7224369ed467c5_rle_crop_3689184181_0.png.png imagette208982801740694502/1740694270_2000686_1340004946_7494cd5d0a77ff9a755d846519cc8e98_rle_crop_3689187109_0.png.png imagette208982801740694502/1740694393_2002238_1340005059_622e125705d89c8b15d5f3e8b229e26f_rle_crop_3689188707_0.png.png imagette208982801740694502/1740694412_2002499_1340005052_84ea44dce0580580c4b8756799652bfa_rle_crop_3689189100_0.png.png imagette208982801740694502/1740694270_2000686_1340004951_973fd7307bc4176fcf6736563fecbdbe_rle_crop_3689187090_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/908a71146ae6c22d595bedb02c344867_58951861.png imagette208982801740694502 20898286 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=20898286 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340004687: '1740693913_1996785_1340003608_48babff59ad333657fd37afc46f0e387_rle_crop_3689184851_0.png', 1340004688: '1740693913_1996785_1340003586_a9924e5b0586e4a0c4c861256df655c0_rle_crop_3689184910_0.png', 1340004756: '1740693933_1996966_1340003514_2258a407dfa3685a30fa61de7672e5a2_rle_crop_3689184967_0.png', 1340004757: '1740693933_1996966_1340003496_0e7ffe5ea99bc4d1e3b1ece2e5011f8a_rle_crop_3689185021_0.png', 1340004971: '1740694151_1999387_1340004725_1456ce0f308dfdee232159db3cbb74c8_rle_crop_3689186511_0.png', 1340005065: '1740694270_2000686_1340004897_686e80b13218b4c36e07e19a707609e6_rle_crop_3689187134_0.png', 1340005066: '1740694270_2000686_1340004894_160247184abb43ce38808bfa2d9b3952_rle_crop_3689187161_0.png', 1340005167: '1740694393_2002238_1340005003_de0816df9449a8c82d4ec71202780bf6_rle_crop_3689188721_0.png', 1340005168: '1740694393_2002238_1340004991_028f57020ea0706458468ff19a70e676_rle_crop_3689188749_0.png', 1340005204: '1740694412_2002499_1340005052_84ea44dce0580580c4b8756799652bfa_rle_crop_3689189111_0.png', 1340005205: '1740694412_2002499_1340005044_08a893a1cddcf60bd7029df127139714_rle_crop_3689189131_0.png', 1340005206: '1740694412_2002499_1340005038_99b3cf75060df4cb4b29e5e5fd42a52e_rle_crop_3689189152_0.png', 1340005207: '1740694412_2002499_1340005033_42e3a9a5629ba24553410401304cb938_rle_crop_3689189167_0.png', 1340005208: '1740694412_2002499_1340005029_94f0144bfea41dbd327802b1809fd33d_rle_crop_3689189181_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/7d746c135be43f6095d316d565e64a66_52032794.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/970da9635b2c694ae982509ff74feeb7_79228364.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/bf8d385764480faf60de023a76bf6bb1_60533976.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/78246d5aaf4f0a6a0c4831bc77991411_86387836.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/07869d99c5778769ff86f980d8785d0e_37083066.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/9018e97720c543f42f279bf15771e2b3_81437717.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/e77303fb5870e5f3595d222057b05bd7_1819211.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/834d8aa8598d6f9526d10a24ec8ae31a_14246308.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/6663dfc602d515a1745662170b174ab9_98250114.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/5060dd8629ed694da8d8990848835b8a_54727262.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/9084e5cc7491d9927a2ce57b0843ddd6_77065833.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/1c39bf435aaa28c99c28c90d2b5ceaa6_68698267.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/b758bfbe9f8f9a8322f418ddad521500_6718825.png change filename to text .imagette208982861740694503/ imagette208982861740694503/1740693913_1996785_1340003608_48babff59ad333657fd37afc46f0e387_rle_crop_3689184851_0.png.png imagette208982861740694503/1740694393_2002238_1340004991_028f57020ea0706458468ff19a70e676_rle_crop_3689188749_0.png.png imagette208982861740694503/1740694412_2002499_1340005038_99b3cf75060df4cb4b29e5e5fd42a52e_rle_crop_3689189152_0.png.png imagette208982861740694503/1740693913_1996785_1340003586_a9924e5b0586e4a0c4c861256df655c0_rle_crop_3689184910_0.png.png imagette208982861740694503/1740694412_2002499_1340005033_42e3a9a5629ba24553410401304cb938_rle_crop_3689189167_0.png.png imagette208982861740694503/1740694270_2000686_1340004894_160247184abb43ce38808bfa2d9b3952_rle_crop_3689187161_0.png.png imagette208982861740694503/1740694270_2000686_1340004897_686e80b13218b4c36e07e19a707609e6_rle_crop_3689187134_0.png.png imagette208982861740694503/1740693933_1996966_1340003496_0e7ffe5ea99bc4d1e3b1ece2e5011f8a_rle_crop_3689185021_0.png.png imagette208982861740694503/1740694393_2002238_1340005003_de0816df9449a8c82d4ec71202780bf6_rle_crop_3689188721_0.png.png imagette208982861740694503/1740694151_1999387_1340004725_1456ce0f308dfdee232159db3cbb74c8_rle_crop_3689186511_0.png.png imagette208982861740694503/1740694412_2002499_1340005052_84ea44dce0580580c4b8756799652bfa_rle_crop_3689189111_0.png.png imagette208982861740694503/1740694412_2002499_1340005044_08a893a1cddcf60bd7029df127139714_rle_crop_3689189131_0.png.png imagette208982861740694503/1740694412_2002499_1340005029_94f0144bfea41dbd327802b1809fd33d_rle_crop_3689189181_0.png.png imagette208982861740694503/1740693933_1996966_1340003514_2258a407dfa3685a30fa61de7672e5a2_rle_crop_3689184967_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/25b95001040bba301f9c32a7934dfde0_85113053.png imagette208982861740694503 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20898262 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20898289,20898290,20898291,20898292,20898293,20898294,20898295,20898296,20898297,20898298,20898299,20898300?tags=plastique,Carton_gris,metal,Carton_brun,environnement,kraft,autre_refus,cartonnette,flou,Teint_Dans_La_Masse,mal_croppe,papier your option no_mail is active, we will not send the real mail to your client args[1340005192] : ('0.09650036264258037',) no score found for photo 1340005192 We are sending mail with results at report@fotonower.com args[1340005188] : ('0.09650036264258037',) no score found for photo 1340005188 We are sending mail with results at report@fotonower.com args[1340005183] : ('0.09650036264258037',) no score found for photo 1340005183 We are sending mail with results at report@fotonower.com args[1340005151] : ('0.09650036264258037',) no score found for photo 1340005151 We are sending mail with results at report@fotonower.com args[1340005145] : ('0.09650036264258037',) no score found for photo 1340005145 We are sending mail with results at report@fotonower.com args[1340005140] : ('0.09650036264258037',) no score found for photo 1340005140 We are sending mail with results at report@fotonower.com args[1340005135] : ('0.09650036264258037',) no score found for photo 1340005135 We are sending mail with results at report@fotonower.com args[1340005133] : ('0.09650036264258037',) no score found for photo 1340005133 We are sending mail with results at report@fotonower.com args[1340005131] : ('0.09650036264258037',) no score found for photo 1340005131 We are sending mail with results at report@fotonower.com args[1340005105] : ('0.09650036264258037',) no score found for photo 1340005105 We are sending mail with results at report@fotonower.com args[1340005100] : ('0.09650036264258037',) no score found for photo 1340005100 We are sending mail with results at report@fotonower.com args[1340005092] : ('0.09650036264258037',) no score found for photo 1340005092 We are sending mail with results at report@fotonower.com args[1340005086] : ('0.09650036264258037',) no score found for photo 1340005086 We are sending mail with results at report@fotonower.com refus_total : 0.09650036264258037 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=20898262 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_P20898262_27-02-2025_23_14_59.pdf results_Auto_P20898262_27-02-2025_23_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20898262_27-02-2025_23_14_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20898262','results_Auto_P20898262_27-02-2025_23_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20898262_27-02-2025_23_14_59.pdf','pdf','','0.44','0.09650036264258037') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20898262]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340005192, 1340005188, 1340005183, 1340005151, 1340005145, 1340005140, 1340005135, 1340005133, 1340005131, 1340005105, 1340005100, 1340005092, 1340005086] map_info['map_portfolio_photo'] : {20898262: [1340005192, 1340005188, 1340005183, 1340005151, 1340005145, 1340005140, 1340005135, 1340005133, 1340005131, 1340005105, 1340005100, 1340005092, 1340005086, 1340005059, 1340005052, 1340005044, 1340005038, 1340005033, 1340005029, 1340005008, 1340005003, 1340004998, 1340004994, 1340004991, 1340004957, 1340004951, 1340004946, 1340004897, 1340004894, 1340004892, 1340004866, 1340004861, 1340004856, 1340004853, 1340004850, 1340004788, 1340004784, 1340004781, 1340004746, 1340004725, 1340004684, 1340004679, 1340004597, 1340004375, 1340004370, 1340004364, 1340004359, 1340003682, 1340003679, 1340003617, 1340003608, 1340003603, 1340003598, 1340003594, 1340003586, 1340003541, 1340003536, 1340003531, 1340003514, 1340003500, 1340003496, 1340003458, 1340003455]} final : False mtd_id 4302 list_pids : [1340005192, 1340005188, 1340005183, 1340005151, 1340005145, 1340005140, 1340005135, 1340005133, 1340005131, 1340005105, 1340005100, 1340005092, 1340005086] 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, '2621276') ('4302', '20898262', '1340005192', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005188', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005183', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005151', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005145', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005140', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005135', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005133', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005131', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005105', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005100', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005092', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005086', None, None, None, None, None, '2621276') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '20898262', '1340005192', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005188', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005183', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005151', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005145', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005140', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005135', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005133', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005131', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005105', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005100', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005092', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005086', None, None, None, None, None, '2621276')] time used for this insertion : 0.01366281509399414 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.01508641242981 time spend to save output : 0.013996124267578125 total time spend for step 4 : 7.029082536697388 step5:split_time_score Thu Feb 27 23:15:05 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 : ['20898262'] 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 : [('20898262',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20898262) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340005192: {'path': 'temp/1740694498_1779349_1340005192_cc3c768ec6aaea8defb12de59d9afc86.jpg', 'extension': 'jpg'}, 1340005105: {'path': 'temp/1740694498_1779349_1340005105_78e1fcf4a5ff0c3863dbcc20b82f9364.jpg', 'extension': 'jpg'}, 1340005131: {'path': 'temp/1740694498_1779349_1340005131_28d357e30e4e61053fbff419092eacf8.jpg', 'extension': 'jpg'}, 1340005133: {'path': 'temp/1740694498_1779349_1340005133_f9d59b2a9097d887261dd6efaa75f007.jpg', 'extension': 'jpg'}, 1340005086: {'path': 'temp/1740694498_1779349_1340005086_c832db0a97011b9c83f8f2ea83807160.jpg', 'extension': 'jpg'}, 1340005092: {'path': 'temp/1740694498_1779349_1340005092_0bc1e7adeaa7d1be09aae39ecc0ab3f6.jpg', 'extension': 'jpg'}, 1340005100: {'path': 'temp/1740694498_1779349_1340005100_7447029b5a97d57a195e9c11cc6e913c.jpg', 'extension': 'jpg'}, 1340005151: {'path': 'temp/1740694498_1779349_1340005151_063a953c2b414cef17a0a0d8d28d545a.jpg', 'extension': 'jpg'}, 1340005183: {'path': 'temp/1740694498_1779349_1340005183_45009a62a017fefdc34d22739208d3da.jpg', 'extension': 'jpg'}, 1340005188: {'path': 'temp/1740694498_1779349_1340005188_c5ac67ff4f6ece868fe5693f17d77f3b.jpg', 'extension': 'jpg'}, 1340005135: {'path': 'temp/1740694498_1779349_1340005135_e0cae0ad3d52b63653547f5dd6d3d582.jpg', 'extension': 'jpg'}, 1340005140: {'path': 'temp/1740694498_1779349_1340005140_a2bb05f423b2d52c3c44e83313ccf861.jpg', 'extension': 'jpg'}, 1340005145: {'path': 'temp/1740694498_1779349_1340005145_2c9b6661119e9cc7ff6b858860c106b3.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 = 20898262; (('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 = 20898262 group by h (('23', 63),) 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=20898262 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 (20898262) 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 (20898262) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27022025 20898262 Nombre de photos uploadées : 63 / 23040 (0%) 27022025 20898262 Nombre de photos taguées (types de déchets): 0 / 63 (0%) 27022025 20898262 Nombre de photos taguées (volume) : 0 / 63 (0%) [{'photo_id': 1340003458, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/15f8fb57826c1babfc7224369ed467c5.jpg', 'username': None, 'uploaded_at': 1740693671, 'text': 'image_27022025_23_00_14_10205.jpg'}, {'photo_id': 1340003455, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/d26bf46afc6351348c673d9f1a9be2e6.jpg', 'username': None, 'uploaded_at': 1740693671, 'text': 'image_27022025_23_00_24_10139.jpg'}, {'photo_id': 1340003541, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/d4daf1ddb5573198416fdb672807166b.jpg', 'username': None, 'uploaded_at': 1740693731, 'text': 'image_27022025_23_00_55_10135.jpg'}, {'photo_id': 1340003536, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/8f639919fab81a0f917ff177ed0bb8c9.jpg', 'username': None, 'uploaded_at': 1740693731, 'text': 'image_27022025_23_01_05_010150m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ??????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002958059310913086 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20898262, '2025-02-27' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1627066,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02209782600402832 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= 1627066 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1627066, 'dashboard_run_id': 1636818, 'mtr_portfolio_id': 20896126, 'dashboard_result_id': 9114025, '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_P20896126_27-02-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20896140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20896141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20896142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20896143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20896144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20896145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20896146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20896147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20896148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20896149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20896150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20896151, 'pht': 3726}}"}, {'dashboat_entry_day': 1627066, 'dashboard_run_id': 1636818, 'mtr_portfolio_id': 20896823, 'dashboard_result_id': 9114026, '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_P20896823_27-02-2025_22_48_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20896833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20896834, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20896835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20896836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20896837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20896838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20896839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20896840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20896841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20896842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20896843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20896844, 'pht': 3726}}"}, {'dashboat_entry_day': 1627066, 'dashboard_run_id': 1636818, 'mtr_portfolio_id': 20897801, 'dashboard_result_id': 9114027, '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_P20897801_27-02-2025_23_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20897803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20897804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20897805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20897806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20897807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20897808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20897809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20897810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20897811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20897812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20897813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20897814, 'pht': 3726}}"}, {'dashboat_entry_day': 1627066, 'dashboard_run_id': 1636818, 'mtr_portfolio_id': 20898262, 'dashboard_result_id': 9114028, '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_P20898262_27-02-2025_23_12_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20898277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20898278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20898279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20898280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20898281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20898282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20898283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20898284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20898285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20898286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20898287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20898288, '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 = 20896126 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': 2621117, 'mtr_portfolio_id': 20896126, 'created_at': datetime.datetime(2025, 2, 27, 22, 32, 58), 'result': '0.09865698136596955', 'result_long': None, 'result_double': None}] Qualite : 0.09865698136596955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20896126 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20896126_27-02-2025_22_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20896126 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_P20896126_27-02-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20896140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20896141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20896142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20896143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20896144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20896145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20896146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20896147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20896148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20896149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20896150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20896151, 'pht': 3726}}" where mtr_portfolio_id = 20896126 and dashboard_run_id = 1636818 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`=20896126 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9114025, 0.09865698136596955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20896126_27-02-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20896140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20896141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20896142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20896143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20896144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20896145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20896146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20896147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20896148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20896149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20896150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20896151, '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 = 20896823 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': 2621183, 'mtr_portfolio_id': 20896823, 'created_at': datetime.datetime(2025, 2, 27, 22, 48, 30), 'result': '0.09730255508821797', 'result_long': None, 'result_double': None}] Qualite : 0.09730255508821797 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20896823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20896823_27-02-2025_22_48_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20896823 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_P20896823_27-02-2025_22_48_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20896833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20896834, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20896835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20896836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20896837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20896838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20896839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20896840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20896841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20896842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20896843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20896844, 'pht': 3726}}" where mtr_portfolio_id = 20896823 and dashboard_run_id = 1636818 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`=20896823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9114026, 0.09730255508821797, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20896823_27-02-2025_22_48_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20896833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20896834, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20896835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20896836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20896837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20896838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20896839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20896840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20896841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20896842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20896843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20896844, '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 = 20897801 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': 2621246, 'mtr_portfolio_id': 20897801, 'created_at': datetime.datetime(2025, 2, 27, 23, 2, 57), 'result': '0.11008026018811713', 'result_long': None, 'result_double': None}] Qualite : 0.11008026018811713 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20897801 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20897801_27-02-2025_23_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20897801 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_P20897801_27-02-2025_23_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20897803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20897804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20897805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20897806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20897807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20897808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20897809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20897810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20897811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20897812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20897813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20897814, 'pht': 3726}}" where mtr_portfolio_id = 20897801 and dashboard_run_id = 1636818 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`=20897801 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9114027, 0.11008026018811713, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20897801_27-02-2025_23_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20897803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20897804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20897805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20897806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20897807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20897808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20897809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20897810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20897811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20897812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20897813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20897814, '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 = 20898262 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': 2621276, 'mtr_portfolio_id': 20898262, 'created_at': datetime.datetime(2025, 2, 27, 23, 14, 58), 'result': '0.09650036264258037', 'result_long': None, 'result_double': None}] Qualite : 0.09650036264258037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20898262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20898262_27-02-2025_23_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20898262 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_P20898262_27-02-2025_23_14_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20898277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20898278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20898279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20898280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20898281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20898282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20898283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20898284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20898285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20898286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20898287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20898288, 'pht': 3726}}" where mtr_portfolio_id = 20898262 and dashboard_run_id = 1636818 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`=20898262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9114028, 0.09650036264258037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20898262_27-02-2025_23_14_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20898277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20898278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20898279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20898280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20898281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20898282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20898283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20898284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20898285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20898286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20898287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20898288, '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 (20896126,20896823,20897801,20898262) result : ((1339992165,), (1339992167,), (1339992169,), (1339992171,), (1339992237,), (1339992246,), (1339992247,), (1339992248,), (1339992251,), (1339992304,), (1339992306,), (1339992308,), (1339992335,), (1339992338,), (1339992344,), (1339992351,), (1339992356,), (1339992378,), (1339992451,), (1339992456,), (1339992458,), (1339992462,), (1339992496,), (1339993237,), (1339993238,), (1339993239,), (1339993537,), (1339993539,), (1339993540,), (1339993547,), (1339993549,), (1339993551,), (1339993857,), (1339993859,), (1339993872,), (1339993874,), (1339993875,), (1339993978,), (1339993988,), (1339993990,), (1339993993,), (1339993995,), (1339994520,), (1339994545,), (1339994550,), (1339994562,), (1339994574,), (1339994915,), (1339994993,), (1339995072,), (1339995129,), (1339995137,), (1339995144,), (1339995174,), (1339995178,), (1339995182,), (1339995187,), (1339995192,), (1339995197,), (1339995229,), (1339995232,), (1339995236,), (1339995246,), (1339995289,), (1339995300,), (1339995308,), (1339995313,), (1339995319,), (1339995327,), (1339995361,), (1339995363,), (1339995366,), (1339995370,), (1339995375,), (1339995463,), (1339995434,), (1339995437,), (1339995443,), (1339995447,), (1339995455,), (1339995484,), (1339995488,), (1339995493,), (1339995556,), (1339995559,), (1339995562,), (1339995590,), (1339995820,), (1339996303,), (1339996396,), (1339996560,), (1339996655,), (1339996997,), (1339997006,), (1339997047,), (1339997142,), (1339997367,), (1339997369,), (1339997372,), (1339997376,), (1339997380,), (1339997386,), (1339997714,), (1339997718,), (1339997721,), (1339997726,), (1339997733,), (1339997749,), (1339997878,), (1339997883,), (1339997885,), (1339997936,), (1339997940,), (1339997943,), (1339997948,), (1339997952,), (1339997957,), (1339998004,), (1339998006,), (1339998008,), (1339998080,), (1339998116,), (1339998118,), (1339998121,), (1339998149,), (1339998150,), (1339998152,), (1339998153,), (1339998155,), (1339998184,), (1339998187,), (1339998189,), (1339998191,), (1339998193,), (1339998242,), (1339998246,), (1339998248,), (1339998297,), (1339998303,), (1339998305,), (1339998308,), (1339998310,), (1339998313,), (1339998839,), (1339998690,), (1339998737,), (1339998808,), (1340000914,), (1340000919,), (1340000926,), (1340001096,), (1340001101,), (1340001107,), (1340001113,), (1340001118,), (1340001124,), (1340001149,), (1340001150,), (1340001202,), (1340001206,), (1340001211,), (1340001215,), (1340001239,), (1340001242,), (1340001247,), (1340001292,), (1340001297,), (1340001301,), (1340001311,), (1340001318,), (1340001359,), (1340001361,), (1340001363,), (1340001366,), (1340001370,), (1340001375,), (1340001398,), (1340001404,), (1340001416,), (1340001421,), (1340001425,), (1340001780,), (1340001872,), (1340001956,), (1340002049,), (1340002154,), (1340002582,), (1340002585,), (1340002593,), (1340002606,), (1340002611,), (1340003098,), (1340003102,), (1340003111,), (1340003120,), (1340003127,), (1340003462,), (1340003455,), (1340003458,), (1340003496,), (1340003500,), (1340003514,), (1340003531,), (1340003536,), (1340003541,), (1340003586,), (1340003594,), (1340003598,), (1340003603,), (1340003608,), (1340003617,), (1340003679,), (1340003682,), (1340004359,), (1340004364,), (1340004370,), (1340004375,), (1340004597,), (1340004679,), (1340004684,), (1340004725,), (1340004746,), (1340004781,), (1340004784,), (1340004788,), (1340004850,), (1340004853,), (1340004856,), (1340004861,), (1340004866,), (1340004892,), (1340004894,), (1340004897,), (1340004946,), (1340004951,), (1340004957,), (1340004991,), (1340004994,), (1340004998,), (1340005003,), (1340005008,), (1340005029,), (1340005033,), (1340005038,), (1340005044,), (1340005052,), (1340005059,), (1340005086,), (1340005092,), (1340005100,), (1340005105,), (1340005131,), (1340005133,), (1340005135,), (1340005140,), (1340005145,), (1340005151,), (1340005183,), (1340005188,), (1340005192,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27022025': {'nb_upload': 63, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20898262]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340005192, 1340005188, 1340005183, 1340005151, 1340005145, 1340005140, 1340005135, 1340005133, 1340005131, 1340005105, 1340005100, 1340005092, 1340005086] map_info['map_portfolio_photo'] : {20898262: [1340005192, 1340005188, 1340005183, 1340005151, 1340005145, 1340005140, 1340005135, 1340005133, 1340005131, 1340005105, 1340005100, 1340005092, 1340005086, 1340005059, 1340005052, 1340005044, 1340005038, 1340005033, 1340005029, 1340005008, 1340005003, 1340004998, 1340004994, 1340004991, 1340004957, 1340004951, 1340004946, 1340004897, 1340004894, 1340004892, 1340004866, 1340004861, 1340004856, 1340004853, 1340004850, 1340004788, 1340004784, 1340004781, 1340004746, 1340004725, 1340004684, 1340004679, 1340004597, 1340004375, 1340004370, 1340004364, 1340004359, 1340003682, 1340003679, 1340003617, 1340003608, 1340003603, 1340003598, 1340003594, 1340003586, 1340003541, 1340003536, 1340003531, 1340003514, 1340003500, 1340003496, 1340003458, 1340003455]} final : True mtd_id 4302 list_pids : [1340005192, 1340005188, 1340005183, 1340005151, 1340005145, 1340005140, 1340005135, 1340005133, 1340005131, 1340005105, 1340005100, 1340005092, 1340005086] Looping around the photos to save general results len do output : 1 /20898262Didn'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, '2621276') ('4302', '20898262', '1340005192', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005188', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005183', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005151', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005145', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005140', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005135', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005133', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005131', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005105', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005100', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005092', None, None, None, None, None, '2621276') ('4302', None, None, None, None, None, None, None, '2621276') ('4302', '20898262', '1340005086', None, None, None, None, None, '2621276') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '20898262', 'None', None, None, None, None, '2621276'), ('4302', '20898262', '1340005192', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005188', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005183', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005151', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005145', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005140', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005135', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005133', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005131', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005105', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005100', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005092', None, None, None, None, None, '2621276'), ('4302', '20898262', '1340005086', None, None, None, None, None, '2621276')] time used for this insertion : 0.014570951461791992 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34310269355773926 time spend to save output : 0.014844417572021484 total time spend for step 5 : 0.35794711112976074 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 (2621276) 2.63user 2.52system 0:11.61elapsed 44%CPU (0avgtext+0avgdata 160976maxresident)k 33968inputs+24104outputs (244major+74842minor)pagefaults 0swaps