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 : 4076694 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 (2751479) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2751479) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327827 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2751479'] with mtr_portfolio_ids : ['22327827'] and first list_photo_ids : [] new path : /proc/4076694/ Name: python3 Umask: 0002 State: R (running) Tgid: 4076694 Ngid: 0 Pid: 4076694 PPid: 4076693 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4076694 NSpid: 4076694 NSpgid: 4073151 NSsid: 4073151 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97740 kB VmRSS: 97740 kB RssAnon: 59776 kB RssFile: 37964 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 55 nonvoluntary_ctxt_switches: 99 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4076694', 'Ngid': '0', 'Pid': '4076694', 'PPid': '4076693', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4076694', 'NSpid': '4076694', 'NSpgid': '4073151', 'NSsid': '4073151', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97740 kB', 'VmRSS': '97740 kB', 'RssAnon': '59776 kB', 'RssFile': '37964 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '55', 'nonvoluntary_ctxt_switches': '99'} ('datou_batch_current', '4076694', '1106936', '0', '1106936', '865684', '97740', b'', 'marlene', '2751479') 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 (22327827) 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 (2751479 ) ) 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 (22327827) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1352921650, 'portfolio_id': 22327827}, {'photo_id': 1352921648, 'portfolio_id': 22327827}, {'photo_id': 1352921647, 'portfolio_id': 22327827}, {'photo_id': 1352921644, 'portfolio_id': 22327827}, {'photo_id': 1352921598, 'portfolio_id': 22327827}, {'photo_id': 1352921595, 'portfolio_id': 22327827}, {'photo_id': 1352921591, 'portfolio_id': 22327827}, {'photo_id': 1352921586, 'portfolio_id': 22327827}, {'photo_id': 1352921575, 'portfolio_id': 22327827}, {'photo_id': 1352921532, 'portfolio_id': 22327827}, {'photo_id': 1352921530, 'portfolio_id': 22327827}, {'photo_id': 1352921483, 'portfolio_id': 22327827}, {'photo_id': 1352921481, 'portfolio_id': 22327827}, {'photo_id': 1352921477, 'portfolio_id': 22327827}, {'photo_id': 1352921430, 'portfolio_id': 22327827}, {'photo_id': 1352921429, 'portfolio_id': 22327827}, {'photo_id': 1352921428, 'portfolio_id': 22327827}, {'photo_id': 1352921426, 'portfolio_id': 22327827}, {'photo_id': 1352921399, 'portfolio_id': 22327827}, {'photo_id': 1352921398, 'portfolio_id': 22327827}, {'photo_id': 1352921395, 'portfolio_id': 22327827}, {'photo_id': 1352921394, 'portfolio_id': 22327827}, {'photo_id': 1352921351, 'portfolio_id': 22327827}, {'photo_id': 1352921349, 'portfolio_id': 22327827}, {'photo_id': 1352921333, 'portfolio_id': 22327827}, {'photo_id': 1352921200, 'portfolio_id': 22327827}, {'photo_id': 1352921196, 'portfolio_id': 22327827}, {'photo_id': 1352921193, 'portfolio_id': 22327827}, {'photo_id': 1352921190, 'portfolio_id': 22327827}, {'photo_id': 1352921186, 'portfolio_id': 22327827}, {'photo_id': 1352921070, 'portfolio_id': 22327827}, {'photo_id': 1352921068, 'portfolio_id': 22327827}, {'photo_id': 1352921065, 'portfolio_id': 22327827}, {'photo_id': 1352921049, 'portfolio_id': 22327827}, {'photo_id': 1352921047, 'portfolio_id': 22327827}, {'photo_id': 1352920373, 'portfolio_id': 22327827}, {'photo_id': 1352920328, 'portfolio_id': 22327827}, {'photo_id': 1352920326, 'portfolio_id': 22327827}, {'photo_id': 1352920324, 'portfolio_id': 22327827}, {'photo_id': 1352920322, 'portfolio_id': 22327827}, {'photo_id': 1352920320, 'portfolio_id': 22327827}, {'photo_id': 1352920282, 'portfolio_id': 22327827}, {'photo_id': 1352920280, 'portfolio_id': 22327827}] map_portfolio_id_photo_id: {22327827: [1352921650, 1352921648, 1352921647, 1352921644, 1352921598, 1352921595, 1352921591, 1352921586, 1352921575, 1352921532, 1352921530, 1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186, 1352921070, 1352921068, 1352921065, 1352921049, 1352921047, 1352920373, 1352920328, 1352920326, 1352920324, 1352920322, 1352920320, 1352920282, 1352920280]} ##### 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.016956329345703125 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 23 06:42:56 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 (22327827) 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 : 22327827 get user id for portfolio 22327827 get sub ptf for main ptf 22327827, type 3726 and hashtags ['flou', 'kraft', 'Carton_gris', 'Carton_brun', 'environnement', 'metal', 'autre_refus', 'papier', 'Teint_Dans_La_Masse', 'plastique', 'cartonnette', 'mal_croppe'] 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`=22327827 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','kraft','Carton_gris','Carton_brun','environnement','metal','autre_refus','papier','Teint_Dans_La_Masse','plastique','cartonnette','mal_croppe')) 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`=22327827 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','kraft','Carton_gris','Carton_brun','environnement','metal','autre_refus','papier','Teint_Dans_La_Masse','plastique','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22327827, 'sub_port_id': 22327867, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786128, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'metal': {'main_port_id': 22327827, 'sub_port_id': 22327868, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786129, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'kraft': {'main_port_id': 22327827, 'sub_port_id': 22327869, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786130, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'cartonnette': {'main_port_id': 22327827, 'sub_port_id': 22327870, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786131, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'Carton_gris': {'main_port_id': 22327827, 'sub_port_id': 22327871, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786132, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'mal_croppe': {'main_port_id': 22327827, 'sub_port_id': 22327872, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786133, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'flou': {'main_port_id': 22327827, 'sub_port_id': 22327873, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786134, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'Teint_Dans_La_Masse': {'main_port_id': 22327827, 'sub_port_id': 22327874, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786135, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'papier': {'main_port_id': 22327827, 'sub_port_id': 22327875, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786136, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'plastique': {'main_port_id': 22327827, 'sub_port_id': 22327876, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786137, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'Carton_brun': {'main_port_id': 22327827, 'sub_port_id': 22327877, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786138, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'environnement': {'main_port_id': 22327827, 'sub_port_id': 22327878, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786139, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22327867 , 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=22327827 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 (22327867) result : ((1352921171,), (1352921471,), (1352921507,), (1352921666,), (1352921700,), (1352921734,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,)) 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 (1352921200) 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 22327868 , 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=22327827 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 (22327868) result : ((1352921522,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,)) 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 (1352921200) 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 22327869 , 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=22327827 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 (22327869) result : ((1352921703,), (1352921704,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,)) 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 (1352921200) 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 22327870 , 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=22327827 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 (22327870) result : ((1352921183,), (1352921512,), (1352921514,), (1352921515,), (1352921562,), (1352921563,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,)) 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 (1352921200) 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 22327871 , 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=22327827 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 (22327871) result : ((1352921182,), (1352921473,), (1352921474,), (1352921475,), (1352921509,), (1352921510,), (1352921511,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,)) 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 (1352921200) 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 22327872 , 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=22327827 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 (22327872) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,)) 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 (1352921200) 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 22327873 , 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=22327827 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 (22327873) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,)) 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 (1352921200) 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 22327874 , 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=22327827 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 (22327874) result : ((1352921468,), (1352921469,), (1352921470,), (1352921502,), (1352921503,), (1352921504,), (1352921505,), (1352921553,), (1352921554,), (1352921555,), (1352921556,), (1352921557,), (1352921558,), (1352921559,), (1352921560,), (1352921578,), (1352921579,), (1352921580,), (1352921665,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,)) 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 (1352921200) 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 22327875 , 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=22327827 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 (22327875) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,)) 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 (1352921200) 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 22327876 , 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=22327827 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 (22327876) result : ((1352921520,), (1352921588,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,)) 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 (1352921200) 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 22327877 , 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=22327827 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 (22327877) result : ((1352921476,), (1352921478,), (1352921518,), (1352921519,), (1352921564,), (1352921565,), (1352921566,), (1352921581,), (1352921582,), (1352921583,), (1352921585,), (1352921669,), (1352921701,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,)) 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 (1352921200) 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 22327878 , 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=22327827 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 (22327878) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,)) 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 (1352921200) 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`=22327827 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','kraft','Carton_gris','Carton_brun','environnement','metal','autre_refus','papier','Teint_Dans_La_Masse','plastique','cartonnette','mal_croppe')) 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`=22327827 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','kraft','Carton_gris','Carton_brun','environnement','metal','autre_refus','papier','Teint_Dans_La_Masse','plastique','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22327827, 'sub_port_id': 22327879, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786140, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'metal': {'main_port_id': 22327827, 'sub_port_id': 22327880, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786141, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'kraft': {'main_port_id': 22327827, 'sub_port_id': 22327881, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786142, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'cartonnette': {'main_port_id': 22327827, 'sub_port_id': 22327882, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786143, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'Carton_gris': {'main_port_id': 22327827, 'sub_port_id': 22327883, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786144, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'mal_croppe': {'main_port_id': 22327827, 'sub_port_id': 22327884, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786145, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'flou': {'main_port_id': 22327827, 'sub_port_id': 22327885, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786146, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'Teint_Dans_La_Masse': {'main_port_id': 22327827, 'sub_port_id': 22327886, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786147, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'papier': {'main_port_id': 22327827, 'sub_port_id': 22327887, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786148, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'plastique': {'main_port_id': 22327827, 'sub_port_id': 22327888, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786149, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'Carton_brun': {'main_port_id': 22327827, 'sub_port_id': 22327889, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786150, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'environnement': {'main_port_id': 22327827, 'sub_port_id': 22327890, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786151, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327879,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327867 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327880,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327868 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327881,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327869 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327882,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327870 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327883,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327871 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327884,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327872 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327885,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327873 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327886,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327874 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327887,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327875 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327888,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327876 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327889,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327877 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327890,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327878 lien utilise dans velours : https://www.fotonower.com/velours/22327879,22327880,22327881,22327882,22327883,22327884,22327885,22327886,22327887,22327888,22327889,22327890?tags=autre_refus,metal,kraft,cartonnette,Carton_gris,mal_croppe,flou,Teint_Dans_La_Masse,papier,plastique,Carton_brun,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22327827]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1352921650, 1352921648, 1352921647, 1352921644, 1352921598, 1352921595, 1352921591, 1352921586, 1352921575, 1352921532, 1352921530] map_info['map_portfolio_photo'] : {22327827: [1352921650, 1352921648, 1352921647, 1352921644, 1352921598, 1352921595, 1352921591, 1352921586, 1352921575, 1352921532, 1352921530, 1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186, 1352921070, 1352921068, 1352921065, 1352921049, 1352921047, 1352920373, 1352920328, 1352920326, 1352920324, 1352920322, 1352920320, 1352920282, 1352920280]} final : False mtd_id 4302 list_pids : [1352921650, 1352921648, 1352921647, 1352921644, 1352921598, 1352921595, 1352921591, 1352921586, 1352921575, 1352921532, 1352921530] Looping around the photos to save general results len do output : 1 /22327827. 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, '2751479') ('4302', '22327827', '1352921650', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921648', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921647', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921644', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921598', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921595', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921591', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921586', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921575', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921532', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921530', None, None, None, None, None, '2751479') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '22327827', "{'autre_refus': 22327867, 'metal': 22327868, 'kraft': 22327869, 'cartonnette': 22327870, 'Carton_gris': 22327871, 'mal_croppe': 22327872, 'flou': 22327873, 'Teint_Dans_La_Masse': 22327874, 'papier': 22327875, 'plastique': 22327876, 'Carton_brun': 22327877, 'environnement': 22327878}", None, None, None, None, '2751479'), ('4302', '22327827', '1352921650', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921648', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921647', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921644', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921598', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921595', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921591', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921586', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921575', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921532', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921530', None, None, None, None, None, '2751479')] time used for this insertion : 0.014698982238769531 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.46082425117492676 time spend to save output : 0.014978170394897461 total time spend for step 1 : 0.4758024215698242 step2:final Wed Apr 23 06:42:56 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 (22327827) 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 22327827 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1352920282,1352920280,1352920373,1352920328,1352920326,1352920324,1352920322,1352920320,1352921070,1352921068,1352921065,1352921049,1352921047,1352921200,1352921196,1352921193,1352921190,1352921186,1352921351,1352921349,1352921333,1352921399,1352921398,1352921395,1352921394,1352921430,1352921429,1352921428,1352921426,1352921483,1352921481,1352921477,1352921532,1352921530,1352921598,1352921595,1352921591,1352921586,1352921575,1352921650,1352921648,1352921647,1352921644); 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([22327827]) Inside saveOutput : final : False verbose : True original output for save of step final : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} new output for save of step final : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} [1352921650, 1352921648, 1352921647, 1352921644, 1352921598, 1352921595, 1352921591, 1352921586, 1352921575, 1352921532, 1352921530] map_info['map_portfolio_photo'] : {22327827: [1352921650, 1352921648, 1352921647, 1352921644, 1352921598, 1352921595, 1352921591, 1352921586, 1352921575, 1352921532, 1352921530, 1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186, 1352921070, 1352921068, 1352921065, 1352921049, 1352921047, 1352920373, 1352920328, 1352920326, 1352920324, 1352920322, 1352920320, 1352920282, 1352920280]} final : False mtd_id 4302 list_pids : [1352921650, 1352921648, 1352921647, 1352921644, 1352921598, 1352921595, 1352921591, 1352921586, 1352921575, 1352921532, 1352921530] Looping around the photos to save general results len do output : 11 /1352921650.Didn't retrieve data . /1352921648.Didn't retrieve data . /1352921647.Didn't retrieve data . /1352921644.Didn't retrieve data . /1352921598.Didn't retrieve data . /1352921595.Didn't retrieve data . /1352921591.Didn't retrieve data . /1352921586.Didn't retrieve data . /1352921575.Didn't retrieve data . /1352921532.Didn't retrieve data . /1352921530.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, '2751479') ('4302', '22327827', '1352921650', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921648', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921647', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921644', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921598', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921595', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921591', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921586', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921575', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921532', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921530', None, None, None, None, None, '2751479') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '22327827', '1352921650', '0.06327099763152055', None, None, None, None, '2751479'), ('4302', '22327827', '1352921648', '0.06327099763152055', None, None, None, None, '2751479'), ('4302', '22327827', '1352921647', '0.06327099763152055', None, None, None, None, '2751479'), ('4302', '22327827', '1352921644', '0.06327099763152055', None, None, None, None, '2751479'), ('4302', '22327827', '1352921598', '0.06327099763152055', None, None, None, None, '2751479'), ('4302', '22327827', '1352921595', '0.06327099763152055', None, None, None, None, '2751479'), ('4302', '22327827', '1352921591', '0.06327099763152055', None, None, None, None, '2751479'), ('4302', '22327827', '1352921586', '0.06327099763152055', None, None, None, None, '2751479'), ('4302', '22327827', '1352921575', '0.06327099763152055', None, None, None, None, '2751479'), ('4302', '22327827', '1352921532', '0.06327099763152055', None, None, None, None, '2751479'), ('4302', '22327827', '1352921530', '0.06327099763152055', None, None, None, None, '2751479')] time used for this insertion : 0.01342320442199707 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07010197639465332 time spend to save output : 0.01399087905883789 total time spend for step 2 : 0.08409285545349121 step3:velours_tree Wed Apr 23 06:42:56 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 : {22327827: [{'autre_refus': 22327867, 'metal': 22327868, 'kraft': 22327869, 'cartonnette': 22327870, 'Carton_gris': 22327871, 'mal_croppe': 22327872, 'flou': 22327873, 'Teint_Dans_La_Masse': 22327874, 'papier': 22327875, 'plastique': 22327876, 'Carton_brun': 22327877, 'environnement': 22327878}]} input_args_next_step : {22327827: ()} output_args : {22327827: [{'autre_refus': 22327867, 'metal': 22327868, 'kraft': 22327869, 'cartonnette': 22327870, 'Carton_gris': 22327871, 'mal_croppe': 22327872, 'flou': 22327873, 'Teint_Dans_La_Masse': 22327874, 'papier': 22327875, 'plastique': 22327876, 'Carton_brun': 22327877, 'environnement': 22327878}]} args : 22327827 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'autre_refus': 22327867, 'metal': 22327868, 'kraft': 22327869, 'cartonnette': 22327870, 'Carton_gris': 22327871, 'mal_croppe': 22327872, 'flou': 22327873, 'Teint_Dans_La_Masse': 22327874, 'papier': 22327875, 'plastique': 22327876, 'Carton_brun': 22327877, 'environnement': 22327878},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22327827) 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([22327827]) 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.40180110931396484 time spend to save output : 7.462501525878906e-05 total time spend for step 3 : 0.40187573432922363 step4:send_mail_cod Wed Apr 23 06:42:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} input_args_next_step : {1352921650: ()} output_args : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} args : 1352921650 depend.output_id : 0 input_args_next_step : {1352921650: ('0.06327099763152055',), 1352921648: ()} output_args : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} args : 1352921648 depend.output_id : 0 input_args_next_step : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ()} output_args : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} args : 1352921647 depend.output_id : 0 input_args_next_step : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ()} output_args : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} args : 1352921644 depend.output_id : 0 input_args_next_step : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ()} output_args : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} args : 1352921598 depend.output_id : 0 input_args_next_step : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ()} output_args : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} args : 1352921595 depend.output_id : 0 input_args_next_step : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ()} output_args : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} args : 1352921591 depend.output_id : 0 input_args_next_step : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ()} output_args : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} args : 1352921586 depend.output_id : 0 input_args_next_step : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ()} output_args : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} args : 1352921575 depend.output_id : 0 input_args_next_step : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ()} output_args : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} args : 1352921532 depend.output_id : 0 input_args_next_step : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ()} output_args : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',)} args : 1352921530 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 : {22327827: [{'autre_refus': 22327867, 'metal': 22327868, 'kraft': 22327869, 'cartonnette': 22327870, 'Carton_gris': 22327871, 'mal_croppe': 22327872, 'flou': 22327873, 'Teint_Dans_La_Masse': 22327874, 'papier': 22327875, 'plastique': 22327876, 'Carton_brun': 22327877, 'environnement': 22327878}]} input_args_next_step : {1352921650: ('0.06327099763152055',), 1352921648: ('0.06327099763152055',), 1352921647: ('0.06327099763152055',), 1352921644: ('0.06327099763152055',), 1352921598: ('0.06327099763152055',), 1352921595: ('0.06327099763152055',), 1352921591: ('0.06327099763152055',), 1352921586: ('0.06327099763152055',), 1352921575: ('0.06327099763152055',), 1352921532: ('0.06327099763152055',), 1352921530: ('0.06327099763152055',), 22327827: ()} output_args : {22327827: [{'autre_refus': 22327867, 'metal': 22327868, 'kraft': 22327869, 'cartonnette': 22327870, 'Carton_gris': 22327871, 'mal_croppe': 22327872, 'flou': 22327873, 'Teint_Dans_La_Masse': 22327874, 'papier': 22327875, 'plastique': 22327876, 'Carton_brun': 22327877, 'environnement': 22327878}]} args : 22327827 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 :12, first value : ('0.06327099763152055',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22327827) 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 (1352921650,1352921648,1352921647,1352921644,1352921598,1352921595,1352921591,1352921586,1352921575,1352921532,1352921530) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1352921530 begin to download photo : 1352921586 begin to download photo : 1352921598 begin to download photo : 1352921648 download finish for photo 1352921598 begin to download photo : 1352921644 download finish for photo 1352921530 begin to download photo : 1352921532 download finish for photo 1352921648 begin to download photo : 1352921650 download finish for photo 1352921586 begin to download photo : 1352921591 download finish for photo 1352921644 begin to download photo : 1352921647 download finish for photo 1352921532 begin to download photo : 1352921575 download finish for photo 1352921591 begin to download photo : 1352921595 download finish for photo 1352921650 download finish for photo 1352921647 download finish for photo 1352921575 download finish for photo 1352921595 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 : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P22327827_23-04-2025_06_42_57.pdf 22327867 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=22327867 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921171: '1745382822_2152432_1352920282_025de5de32b9344b8965ecad66b6488b_rle_crop_3764832769_0.png', 1352921471: '1745383060_2156381_1352921394_71afe728a3cc5e2f4635a46677838607_rle_crop_3764833686_0.png', 1352921507: '1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833834_0.png', 1352921666: '1745383273_3862754_1352921532_a4bbe773cfcaeb1214cd309865a3afe5_rle_crop_3764834594_0.png', 1352921700: '1745383307_2161921_1352921430_e2d2456fec8756dd4913d686f6e32415_rle_crop_3764835638_0.png', 1352921734: '1745383331_3863486_1352921426_43008fed923f53ec76e689a21eb0582a_rle_crop_3764835797_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/39d5bdd31845817337004ef85333e478_36980557.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/10de0a47d013572ba063bc4a3eb779b7_62720347.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a79c093d1b648534827df42e56a9eba9_13586108.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0f1118b08c3d5cb158e1ba99fad52354_89319414.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c06c7e44d17c2a2909c31b3b708e31b0_56365952.png change filename to text .imagette223278671745383377/ imagette223278671745383377/1745383273_3862754_1352921532_a4bbe773cfcaeb1214cd309865a3afe5_rle_crop_3764834594_0.png.png imagette223278671745383377/1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833834_0.png.png imagette223278671745383377/1745383331_3863486_1352921426_43008fed923f53ec76e689a21eb0582a_rle_crop_3764835797_0.png.png imagette223278671745383377/1745383060_2156381_1352921394_71afe728a3cc5e2f4635a46677838607_rle_crop_3764833686_0.png.png imagette223278671745383377/1745382822_2152432_1352920282_025de5de32b9344b8965ecad66b6488b_rle_crop_3764832769_0.png.png imagette223278671745383377/1745383307_2161921_1352921430_e2d2456fec8756dd4913d686f6e32415_rle_crop_3764835638_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4de23c7a7c1ccb466d44ac345aeebf98_22924193.png imagette223278671745383377 22327868 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=22327868 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921522: '1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833856_0.png'} change filename to text .imagette223278681745383378/ imagette223278681745383378/1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833856_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/54edcf7faa7a1255bac627136acd5c74_59606098.png imagette223278681745383378 22327869 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=22327869 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921703: '1745383307_2161921_1352921430_e2d2456fec8756dd4913d686f6e32415_rle_crop_3764835643_0.png', 1352921704: '1745383307_2161921_1352921430_e2d2456fec8756dd4913d686f6e32415_rle_crop_3764835637_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/906f4e5615b422b661a1bea1ed2191f3_32493488.png change filename to text .imagette223278691745383378/ imagette223278691745383378/1745383307_2161921_1352921430_e2d2456fec8756dd4913d686f6e32415_rle_crop_3764835637_0.png.png imagette223278691745383378/1745383307_2161921_1352921430_e2d2456fec8756dd4913d686f6e32415_rle_crop_3764835643_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d7515c5ffcc887773b19bdb5f42300e8_24557171.png imagette223278691745383378 22327870 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=22327870 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921183: '1745382822_2152432_1352920282_025de5de32b9344b8965ecad66b6488b_rle_crop_3764832765_0.png', 1352921512: '1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833858_0.png', 1352921514: '1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833853_0.png', 1352921515: '1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833879_0.png', 1352921562: '1745383153_3861232_1352921065_725fb262b0e444b01ecf4a36076e4337_rle_crop_3764834085_0.png', 1352921563: '1745383153_3861232_1352921049_e8a1ec47e9b9f96fc9edd294695702e4_rle_crop_3764834102_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/22a489d6b3550be6e63e02bbb6c8e11c_96592193.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/faee4c1732e362bffa34b21aa651c68a_61054857.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a8acd4eb473a3a6f37571f72bba0b09c_12245258.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2a92536c0d0ed0e9ebfea24705aabe16_75484080.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a6a63d34c6b0d67c671ea85b23021252_59835314.png change filename to text .imagette223278701745383378/ imagette223278701745383378/1745383153_3861232_1352921065_725fb262b0e444b01ecf4a36076e4337_rle_crop_3764834085_0.png.png imagette223278701745383378/1745382822_2152432_1352920282_025de5de32b9344b8965ecad66b6488b_rle_crop_3764832765_0.png.png imagette223278701745383378/1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833858_0.png.png imagette223278701745383378/1745383153_3861232_1352921049_e8a1ec47e9b9f96fc9edd294695702e4_rle_crop_3764834102_0.png.png imagette223278701745383378/1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833853_0.png.png imagette223278701745383378/1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833879_0.png.png imagette223278721745383378/ imagette223278731745383378/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/736c8ffa959df5ed530924edeca97d65_84870457.png imagette223278701745383378 22327872 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=22327872 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223278721745383378 22327873 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=22327873 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223278731745383378 22327876 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=22327876 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921520: '1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833885_0.png', 1352921588: '1745383180_2158939_1352921070_bbe9a3fc3f911574e11b7fac2d2277d8_rle_crop_3764834283_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/70ee1df2a42e2c1a49bd1c7108430d89_29703470.png change filename to text .imagette223278761745383378/ imagette223278761745383378/1745383180_2158939_1352921070_bbe9a3fc3f911574e11b7fac2d2277d8_rle_crop_3764834283_0.png.png imagette223278761745383378/1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833885_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2c4a1f41ab504df914dded8b1ee8f7c7_11086590.png imagette223278761745383378 22327871 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=22327871 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921182: '1745382822_2152432_1352920282_025de5de32b9344b8965ecad66b6488b_rle_crop_3764832772_0.png', 1352921473: '1745383060_2156381_1352921398_a2f8c42bd3ba34197f0d2b9cd898eb32_rle_crop_3764833663_0.png', 1352921474: '1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833669_0.png', 1352921475: '1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833676_0.png', 1352921509: '1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833831_0.png', 1352921510: '1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833833_0.png', 1352921511: '1745383091_3860637_1352921190_4d9634bb01fc01c8fbc99a86e7f4e677_rle_crop_3764833870_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9c12629a1d3f18e09dc8003ce5b81ec4_85199208.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/242ee45c22660fcf61692d4ed61f668b_95059615.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ff0b82fae23e72eac398e031e082e143_73757651.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/cb8d7807c7f0561bf92d158f89eadc70_55390772.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7a9268d5a3fe12a116744e731d3ffb63_11209377.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/19f603bab520192cc7f577872beb9767_53817871.png change filename to text .imagette223278711745383378/ imagette223278711745383378/1745383060_2156381_1352921398_a2f8c42bd3ba34197f0d2b9cd898eb32_rle_crop_3764833663_0.png.png imagette223278711745383378/1745382822_2152432_1352920282_025de5de32b9344b8965ecad66b6488b_rle_crop_3764832772_0.png.png imagette223278711745383378/1745383091_3860637_1352921190_4d9634bb01fc01c8fbc99a86e7f4e677_rle_crop_3764833870_0.png.png imagette223278711745383378/1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833669_0.png.png imagette223278711745383378/1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833831_0.png.png imagette223278711745383378/1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833676_0.png.png imagette223278711745383378/1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833833_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/af594b50b2836a8b30b070e87ac74a22_49384647.png imagette223278711745383378 22327874 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=22327874 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921555: '1745383153_3861232_1352921065_725fb262b0e444b01ecf4a36076e4337_rle_crop_3764834087_0.png', 1352921665: '1745383273_3862754_1352921532_a4bbe773cfcaeb1214cd309865a3afe5_rle_crop_3764834597_0.png', 1352921580: '1745383180_2158939_1352920322_4d1c75887e94494134fb731a1fe03e12_rle_crop_3764834333_0.png', 1352921579: '1745383180_2158939_1352920326_aa555d113dc5ccaccf8dcb31d4473825_rle_crop_3764834303_0.png', 1352921578: '1745383180_2158939_1352921070_bbe9a3fc3f911574e11b7fac2d2277d8_rle_crop_3764834285_0.png', 1352921560: '1745383153_3861232_1352921047_aaf288a162791d5f936feac5b455e2ac_rle_crop_3764834121_0.png', 1352921559: '1745383153_3861232_1352921049_e8a1ec47e9b9f96fc9edd294695702e4_rle_crop_3764834109_0.png', 1352921558: '1745383153_3861232_1352921049_e8a1ec47e9b9f96fc9edd294695702e4_rle_crop_3764834104_0.png', 1352921557: '1745383153_3861232_1352921065_725fb262b0e444b01ecf4a36076e4337_rle_crop_3764834099_0.png', 1352921556: '1745383153_3861232_1352921065_725fb262b0e444b01ecf4a36076e4337_rle_crop_3764834089_0.png', 1352921468: '1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833674_0.png', 1352921554: '1745383153_3861232_1352921068_bc0bbca5f8b79efaf8e3314c02065b52_rle_crop_3764834075_0.png', 1352921553: '1745383153_3861232_1352921200_3bf57ea938ec24bc4623b97592e59778_rle_crop_3764834055_0.png', 1352921505: '1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833883_0.png', 1352921504: '1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833884_0.png', 1352921503: '1745383091_3860637_1352921190_4d9634bb01fc01c8fbc99a86e7f4e677_rle_crop_3764833868_0.png', 1352921502: '1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833836_0.png', 1352921470: '1745383060_2156381_1352921394_71afe728a3cc5e2f4635a46677838607_rle_crop_3764833685_0.png', 1352921469: '1745383060_2156381_1352921394_71afe728a3cc5e2f4635a46677838607_rle_crop_3764833683_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/030d88e89e7dc4956344d8eb3d3a8363_36094654.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f0312163026c2e43b799b488f7f7f3b9_2114428.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/06021fc5f3d168b48a339860f57b5788_44787770.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ebcb106693596536d7f07c0330bbfa6f_28617117.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2225031754e203a2efcba802b0535920_27774029.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/10b20869c5fbc3ee19f1716b3db092db_72703207.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9bd79ec0ab4ee2832ad675e5056f9d65_94891429.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b50b237db12f6017b98581d4afffb7b3_3466485.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3d796bdc55791c89bd8c4015d865701d_16456918.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ce8b27de3e624f5598ac025a874b4c07_86057370.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7c0e250f2207c9ef954c27ea10b25309_47007636.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2e8d04382d0cce5a751315d6be800219_32647644.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8058d06f655eece7ccd63f43a2add583_76251117.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/819f4170ac4d6d9bc4c7a395d050367e_65533841.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/eb2636a357481309623233d97eabf00e_99145861.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f7d8cb07de444b53900eed1941f6cbc4_59510262.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c5b25223ea23703eac7d90431b1ba679_42735485.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a89e60ed7f00daff9ac87a1cff8c4642_57742107.png change filename to text .imagette223278741745383379/ imagette223278741745383379/1745383180_2158939_1352920322_4d1c75887e94494134fb731a1fe03e12_rle_crop_3764834333_0.png.png imagette223278741745383379/1745383180_2158939_1352921070_bbe9a3fc3f911574e11b7fac2d2277d8_rle_crop_3764834285_0.png.png imagette223278741745383379/1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833883_0.png.png imagette223278741745383379/1745383091_3860637_1352921190_4d9634bb01fc01c8fbc99a86e7f4e677_rle_crop_3764833868_0.png.png imagette223278741745383379/1745383153_3861232_1352921065_725fb262b0e444b01ecf4a36076e4337_rle_crop_3764834099_0.png.png imagette223278741745383379/1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833674_0.png.png imagette223278741745383379/1745383153_3861232_1352921200_3bf57ea938ec24bc4623b97592e59778_rle_crop_3764834055_0.png.png imagette223278741745383379/1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833884_0.png.png imagette223278741745383379/1745383153_3861232_1352921049_e8a1ec47e9b9f96fc9edd294695702e4_rle_crop_3764834104_0.png.png imagette223278741745383379/1745383153_3861232_1352921065_725fb262b0e444b01ecf4a36076e4337_rle_crop_3764834089_0.png.png imagette223278741745383379/1745383153_3861232_1352921065_725fb262b0e444b01ecf4a36076e4337_rle_crop_3764834087_0.png.png imagette223278741745383379/1745383153_3861232_1352921047_aaf288a162791d5f936feac5b455e2ac_rle_crop_3764834121_0.png.png imagette223278741745383379/1745383060_2156381_1352921394_71afe728a3cc5e2f4635a46677838607_rle_crop_3764833683_0.png.png imagette223278741745383379/1745383060_2156381_1352921394_71afe728a3cc5e2f4635a46677838607_rle_crop_3764833685_0.png.png imagette223278741745383379/1745383273_3862754_1352921532_a4bbe773cfcaeb1214cd309865a3afe5_rle_crop_3764834597_0.png.png imagette223278741745383379/1745383153_3861232_1352921068_bc0bbca5f8b79efaf8e3314c02065b52_rle_crop_3764834075_0.png.png imagette223278741745383379/1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833836_0.png.png imagette223278741745383379/1745383153_3861232_1352921049_e8a1ec47e9b9f96fc9edd294695702e4_rle_crop_3764834109_0.png.png imagette223278741745383379/1745383180_2158939_1352920326_aa555d113dc5ccaccf8dcb31d4473825_rle_crop_3764834303_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5fae5b5e2c4f292409494f1436378f69_68576863.png imagette223278741745383379 22327877 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=22327877 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921476: '1745383060_2156381_1352921398_a2f8c42bd3ba34197f0d2b9cd898eb32_rle_crop_3764833660_0.png', 1352921478: '1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833671_0.png', 1352921518: '1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833841_0.png', 1352921519: '1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833854_0.png', 1352921564: '1745383153_3861232_1352921068_bc0bbca5f8b79efaf8e3314c02065b52_rle_crop_3764834076_0.png', 1352921565: '1745383153_3861232_1352921065_725fb262b0e444b01ecf4a36076e4337_rle_crop_3764834094_0.png', 1352921566: '1745383153_3861232_1352921049_e8a1ec47e9b9f96fc9edd294695702e4_rle_crop_3764834105_0.png', 1352921581: '1745383180_2158939_1352920326_aa555d113dc5ccaccf8dcb31d4473825_rle_crop_3764834307_0.png', 1352921582: '1745383180_2158939_1352920324_acb390e135f7beb8dbc7b0f65108a009_rle_crop_3764834316_0.png', 1352921583: '1745383180_2158939_1352920322_4d1c75887e94494134fb731a1fe03e12_rle_crop_3764834325_0.png', 1352921585: '1745383180_2158939_1352920322_4d1c75887e94494134fb731a1fe03e12_rle_crop_3764834326_0.png', 1352921669: '1745383273_3862754_1352921481_194ceeb474bf403744b8b3cdf5c9702d_rle_crop_3764834614_0.png', 1352921701: '1745383307_2161921_1352921430_e2d2456fec8756dd4913d686f6e32415_rle_crop_3764835641_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8a288c3d849edaad038d37b4173e6a69_72910367.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e8e9f08d37145dd7e4cdaaf729b32fbb_64812147.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ee805a3abbd45ae0d8fa4b47755c6a3e_90521153.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/864f2dfe6317ca18dfc2b49b3d00bd55_32807295.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c304ebc97211c1d65d06323984745409_79239052.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a302ca270aa8e7c7d5d589ca0e29c7b8_22481965.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3d8ada441b2942b4390a0a7fc5bbbc9e_4188678.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0c9972b2732c494b7c11cd9626b0b43f_21357036.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/24d3deb2fb822da829dcc98367e2d1ae_20422620.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9d7487b86d5ef3aa5edb6907f7ca34bb_1710862.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/22c09607b4492eccfaa6afb498748322_16328929.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/50fd82300bc8b3527dc2787af2d4d46e_50357543.png change filename to text .imagette223278771745383380/ imagette223278771745383380/1745383153_3861232_1352921065_725fb262b0e444b01ecf4a36076e4337_rle_crop_3764834094_0.png.png imagette223278771745383380/1745383180_2158939_1352920322_4d1c75887e94494134fb731a1fe03e12_rle_crop_3764834325_0.png.png imagette223278771745383380/1745383273_3862754_1352921481_194ceeb474bf403744b8b3cdf5c9702d_rle_crop_3764834614_0.png.png imagette223278771745383380/1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833671_0.png.png imagette223278771745383380/1745383180_2158939_1352920322_4d1c75887e94494134fb731a1fe03e12_rle_crop_3764834326_0.png.png imagette223278771745383380/1745383153_3861232_1352921068_bc0bbca5f8b79efaf8e3314c02065b52_rle_crop_3764834076_0.png.png imagette223278771745383380/1745383180_2158939_1352920324_acb390e135f7beb8dbc7b0f65108a009_rle_crop_3764834316_0.png.png imagette223278771745383380/1745383307_2161921_1352921430_e2d2456fec8756dd4913d686f6e32415_rle_crop_3764835641_0.png.png imagette223278771745383380/1745383153_3861232_1352921049_e8a1ec47e9b9f96fc9edd294695702e4_rle_crop_3764834105_0.png.png imagette223278771745383380/1745383180_2158939_1352920326_aa555d113dc5ccaccf8dcb31d4473825_rle_crop_3764834307_0.png.png imagette223278771745383380/1745383060_2156381_1352921398_a2f8c42bd3ba34197f0d2b9cd898eb32_rle_crop_3764833660_0.png.png imagette223278771745383380/1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833854_0.png.png imagette223278771745383380/1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833841_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2a1a56501584188b2eda9ab4d6586018_49619268.png imagette223278771745383380 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22327827 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22327879,22327880,22327881,22327882,22327883,22327884,22327885,22327886,22327887,22327888,22327889,22327890?tags=autre_refus,metal,kraft,cartonnette,Carton_gris,mal_croppe,flou,Teint_Dans_La_Masse,papier,plastique,Carton_brun,environnement your option no_mail is active, we will not send the real mail to your client args[1352921650] : ('0.06327099763152055',) no score found for photo 1352921650 We are sending mail with results at report@fotonower.com args[1352921648] : ('0.06327099763152055',) no score found for photo 1352921648 We are sending mail with results at report@fotonower.com args[1352921647] : ('0.06327099763152055',) no score found for photo 1352921647 We are sending mail with results at report@fotonower.com args[1352921644] : ('0.06327099763152055',) no score found for photo 1352921644 We are sending mail with results at report@fotonower.com args[1352921598] : ('0.06327099763152055',) no score found for photo 1352921598 We are sending mail with results at report@fotonower.com args[1352921595] : ('0.06327099763152055',) no score found for photo 1352921595 We are sending mail with results at report@fotonower.com args[1352921591] : ('0.06327099763152055',) no score found for photo 1352921591 We are sending mail with results at report@fotonower.com args[1352921586] : ('0.06327099763152055',) no score found for photo 1352921586 We are sending mail with results at report@fotonower.com args[1352921575] : ('0.06327099763152055',) no score found for photo 1352921575 We are sending mail with results at report@fotonower.com args[1352921532] : ('0.06327099763152055',) no score found for photo 1352921532 We are sending mail with results at report@fotonower.com args[1352921530] : ('0.06327099763152055',) no score found for photo 1352921530 We are sending mail with results at report@fotonower.com refus_total : 0.06327099763152055 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=22327827 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_P22327827_23-04-2025_06_42_57.pdf results_Auto_P22327827_23-04-2025_06_42_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_42_57.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','22327827','results_Auto_P22327827_23-04-2025_06_42_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_42_57.pdf','pdf','','0.26','0.06327099763152055') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22327827]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1352921650, 1352921648, 1352921647, 1352921644, 1352921598, 1352921595, 1352921591, 1352921586, 1352921575, 1352921532, 1352921530] map_info['map_portfolio_photo'] : {22327827: [1352921650, 1352921648, 1352921647, 1352921644, 1352921598, 1352921595, 1352921591, 1352921586, 1352921575, 1352921532, 1352921530, 1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186, 1352921070, 1352921068, 1352921065, 1352921049, 1352921047, 1352920373, 1352920328, 1352920326, 1352920324, 1352920322, 1352920320, 1352920282, 1352920280]} final : False mtd_id 4302 list_pids : [1352921650, 1352921648, 1352921647, 1352921644, 1352921598, 1352921595, 1352921591, 1352921586, 1352921575, 1352921532, 1352921530] 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, '2751479') ('4302', '22327827', '1352921650', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921648', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921647', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921644', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921598', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921595', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921591', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921586', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921575', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921532', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921530', None, None, None, None, None, '2751479') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '22327827', '1352921650', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921648', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921647', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921644', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921598', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921595', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921591', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921586', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921575', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921532', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921530', None, None, None, None, None, '2751479')] time used for this insertion : 0.013968467712402344 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.86857533454895 time spend to save output : 0.014240503311157227 total time spend for step 4 : 4.882815837860107 step5:split_time_score Wed Apr 23 06:43:02 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 : ['22327827'] 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 : [('22327827',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22327827) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1352921648: {'path': 'temp/1745383377_4076694_1352921648_1494cb112fe098fb663984df202fd75f.jpg', 'extension': 'jpg'}, 1352921650: {'path': 'temp/1745383377_4076694_1352921650_58fd2652f3fb49dd206f88c4bd9574f7.jpg', 'extension': 'jpg'}, 1352921598: {'path': 'temp/1745383377_4076694_1352921598_c04c77b1cbca23682009accbbb479e1b.jpg', 'extension': 'jpg'}, 1352921644: {'path': 'temp/1745383377_4076694_1352921644_8faa05756ab76b82dbbb9b85d7b7f6e4.jpg', 'extension': 'jpg'}, 1352921647: {'path': 'temp/1745383377_4076694_1352921647_bc9288d005e2e85cfe196e595f35cb25.jpg', 'extension': 'jpg'}, 1352921530: {'path': 'temp/1745383377_4076694_1352921530_1ddf9ae39e82ceabc2784eda777160b2.jpg', 'extension': 'jpg'}, 1352921532: {'path': 'temp/1745383377_4076694_1352921532_a4bbe773cfcaeb1214cd309865a3afe5.jpg', 'extension': 'jpg'}, 1352921575: {'path': 'temp/1745383377_4076694_1352921575_cdc8ec90719f199c4ed20bff06150269.jpg', 'extension': 'jpg'}, 1352921586: {'path': 'temp/1745383377_4076694_1352921586_0b7797bf76838f040f467498edeca0c3.jpg', 'extension': 'jpg'}, 1352921591: {'path': 'temp/1745383377_4076694_1352921591_dd30f243cee856e4c7acb509e242b109.jpg', 'extension': 'jpg'}, 1352921595: {'path': 'temp/1745383377_4076694_1352921595_21bb954366e78eb8f7fbd22d0d7fef7c.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 = 22327827; (('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 = 22327827 group by h (('06', 43),) 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=22327827 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 (22327827) 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 (22327827) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23042025 22327827 Nombre de photos uploadées : 43 / 23040 (0%) 23042025 22327827 Nombre de photos taguées (types de déchets): 0 / 43 (0%) 23042025 22327827 Nombre de photos taguées (volume) : 0 / 43 (0%) [{'photo_id': 1352920282, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/025de5de32b9344b8965ecad66b6488b.jpg', 'username': None, 'uploaded_at': 1745382667, 'text': 'image_23042025_06_30_13_010143m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1352920280, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/555f21d427385712f57f25086523199c.jpg', 'username': None, 'uploaded_at': 1745382667, 'text': 'image_23042025_06_30_23_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352920373, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b58a2af616789b52a5062dfe58f18663.jpg', 'username': None, 'uploaded_at': 1745382727, 'text': 'image_23042025_06_30_54_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352920328, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7f618cc0611be50d3a0799c9f42e04de.jpg', 'username': None, 'uploaded_at': 1745382727, 'text': 'image_23042025_06_31_03_009174m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ??????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019445419311523438 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22327827, '2025-04-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1739756,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023154735565185547 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= 1739756 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747887, 'mtr_portfolio_id': 22326303, 'dashboard_result_id': 10038227, '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_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747887, 'mtr_portfolio_id': 22326686, 'dashboard_result_id': 10038228, '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_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747887, 'mtr_portfolio_id': 22327416, 'dashboard_result_id': 10038229, '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_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747887, 'mtr_portfolio_id': 22327827, 'dashboard_result_id': 10038230, '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_P22327827_23-04-2025_06_38_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, '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 = 22326303 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': 2751328, 'mtr_portfolio_id': 22326303, 'created_at': datetime.datetime(2025, 4, 23, 6, 2, 59), 'result': '0.0705016942968641', 'result_long': None, 'result_double': None}] Qualite : 0.0705016942968641 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22326303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22326303 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_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, 'pht': 3726}}" where mtr_portfolio_id = 22326303 and dashboard_run_id = 1747887 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`=22326303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10038227, 0.0705016942968641, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, '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 = 22326686 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': 2751380, 'mtr_portfolio_id': 22326686, 'created_at': datetime.datetime(2025, 4, 23, 6, 20, 58), 'result': '0.08849670839449893', 'result_long': None, 'result_double': None}] Qualite : 0.08849670839449893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22326686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22326686 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_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, 'pht': 3726}}" where mtr_portfolio_id = 22326686 and dashboard_run_id = 1747887 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`=22326686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10038228, 0.08849670839449893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, '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 = 22327416 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': 2751439, 'mtr_portfolio_id': 22327416, 'created_at': datetime.datetime(2025, 4, 23, 6, 34, 58), 'result': '0.06719231217388424', 'result_long': None, 'result_double': None}] Qualite : 0.06719231217388424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22327416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22327416 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_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, 'pht': 3726}}" where mtr_portfolio_id = 22327416 and dashboard_run_id = 1747887 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`=22327416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10038229, 0.06719231217388424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, '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 = 22327827 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': 2751479, 'mtr_portfolio_id': 22327827, 'created_at': datetime.datetime(2025, 4, 23, 6, 42, 56), 'result': '0.06327099763152055', 'result_long': None, 'result_double': None}] Qualite : 0.06327099763152055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22327827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_42_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22327827 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_P22327827_23-04-2025_06_42_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, 'pht': 3726}}" where mtr_portfolio_id = 22327827 and dashboard_run_id = 1747887 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`=22327827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10038230, 0.06327099763152055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_42_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, '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 (22326303,22326686,22327416,22327827) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,), (1352917891,), (1352917944,), (1352918010,), (1352918087,), (1352918134,), (1352918466,), (1352918346,), (1352918398,), (1352918431,), (1352918642,), (1352918670,), (1352918701,), (1352918726,), (1352918756,), (1352918871,), (1352918872,), (1352918873,), (1352918874,), (1352918876,), (1352918879,), (1352918909,), (1352918912,), (1352918914,), (1352918916,), (1352918953,), (1352918954,), (1352918956,), (1352918957,), (1352918961,), (1352918964,), (1352918989,), (1352918992,), (1352918995,), (1352918997,), (1352919024,), (1352919025,), (1352919061,), (1352919064,), (1352919067,), (1352919072,), (1352919075,), (1352919120,), (1352919121,), (1352919122,), (1352919123,), (1352919125,), (1352919128,), (1352919180,), (1352919189,), (1352919193,), (1352919197,), (1352919202,), (1352919254,), (1352919257,), (1352919258,), (1352919259,), (1352919260,), (1352919262,), (1352919317,), (1352919319,), (1352919325,), (1352919363,), (1352919364,), (1352919365,), (1352919366,), (1352919367,), (1352919370,), (1352919417,), (1352919420,), (1352919422,), (1352919424,), (1352919426,), (1352919429,), (1352919476,), (1352919477,), (1352919479,), (1352919480,), (1352919483,), (1352919543,), (1352919532,), (1352919534,), (1352919536,), (1352919538,), (1352919541,), (1352919580,), (1352919587,), (1352919589,), (1352919591,), (1352919594,), (1352919652,), (1352919660,), (1352919662,), (1352919664,), (1352919698,), (1352919699,), (1352919701,), (1352919703,), (1352919706,), (1352919708,), (1352919756,), (1352919768,), (1352919771,), (1352919773,), (1352919835,), (1352919836,), (1352919837,), (1352919838,), (1352919841,), (1352919843,), (1352919876,), (1352919878,), (1352919880,), (1352919882,), (1352919926,), (1352919927,), (1352919928,), (1352919929,), (1352919930,), (1352919933,), (1352919969,), (1352919974,), (1352919977,), (1352919979,), (1352920010,), (1352920011,), (1352920012,), (1352920013,), (1352920016,), (1352920046,), (1352920048,), (1352920051,), (1352920053,), (1352920056,), (1352920058,), (1352920086,), (1352920087,), (1352920089,), (1352920090,), (1352920119,), (1352920126,), (1352920133,), (1352920137,), (1352920171,), (1352920173,), (1352920174,), (1352920175,), (1352920176,), (1352920218,), (1352920224,), (1352920226,), (1352920228,), (1352920283,), (1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23042025': {'nb_upload': 43, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22327827]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1352921650, 1352921648, 1352921647, 1352921644, 1352921598, 1352921595, 1352921591, 1352921586, 1352921575, 1352921532, 1352921530] map_info['map_portfolio_photo'] : {22327827: [1352921650, 1352921648, 1352921647, 1352921644, 1352921598, 1352921595, 1352921591, 1352921586, 1352921575, 1352921532, 1352921530, 1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186, 1352921070, 1352921068, 1352921065, 1352921049, 1352921047, 1352920373, 1352920328, 1352920326, 1352920324, 1352920322, 1352920320, 1352920282, 1352920280]} final : True mtd_id 4302 list_pids : [1352921650, 1352921648, 1352921647, 1352921644, 1352921598, 1352921595, 1352921591, 1352921586, 1352921575, 1352921532, 1352921530] Looping around the photos to save general results len do output : 1 /22327827Didn'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, '2751479') ('4302', '22327827', '1352921650', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921648', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921647', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921644', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921598', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921595', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921591', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921586', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921575', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921532', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921530', None, None, None, None, None, '2751479') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '22327827', 'None', None, None, None, None, '2751479'), ('4302', '22327827', '1352921650', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921648', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921647', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921644', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921598', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921595', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921591', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921586', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921575', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921532', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921530', None, None, None, None, None, '2751479')] time used for this insertion : 0.013731718063354492 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.350053071975708 time spend to save output : 0.014015674591064453 total time spend for step 5 : 0.36406874656677246 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 (2751479) 2.25user 2.46system 0:08.17elapsed 57%CPU (0avgtext+0avgdata 158812maxresident)k 39136inputs+13504outputs (213major+72824minor)pagefaults 0swaps