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 : 2449394 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 (2600112) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2600112) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20681180 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2600112'] with mtr_portfolio_ids : ['20681180'] and first list_photo_ids : [] new path : /proc/2449394/ Name: python3 Umask: 0002 State: R (running) Tgid: 2449394 Ngid: 0 Pid: 2449394 PPid: 2449393 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2449394 NSpid: 2449394 NSpgid: 2448212 NSsid: 2448212 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98644 kB VmRSS: 98644 kB RssAnon: 59752 kB RssFile: 38892 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 568 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 61 nonvoluntary_ctxt_switches: 180 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2449394', 'Ngid': '0', 'Pid': '2449394', 'PPid': '2449393', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2449394', 'NSpid': '2449394', 'NSpgid': '2448212', 'NSsid': '2448212', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98644 kB', 'VmRSS': '98644 kB', 'RssAnon': '59752 kB', 'RssFile': '38892 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '568 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '61', 'nonvoluntary_ctxt_switches': '180'} ('datou_batch_current', '2449394', '1106928', '0', '1106928', '865680', '98644', b'', 'marlene', '2600112') 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 (20681180) 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 (2600112 ) ) 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 (20681180) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338624375, 'portfolio_id': 20681180}, {'photo_id': 1338624373, 'portfolio_id': 20681180}, {'photo_id': 1338624371, 'portfolio_id': 20681180}, {'photo_id': 1338624369, 'portfolio_id': 20681180}, {'photo_id': 1338624363, 'portfolio_id': 20681180}, {'photo_id': 1338624276, 'portfolio_id': 20681180}, {'photo_id': 1338624225, 'portfolio_id': 20681180}, {'photo_id': 1338624196, 'portfolio_id': 20681180}, {'photo_id': 1338624194, 'portfolio_id': 20681180}, {'photo_id': 1338624116, 'portfolio_id': 20681180}, {'photo_id': 1338623959, 'portfolio_id': 20681180}, {'photo_id': 1338623904, 'portfolio_id': 20681180}, {'photo_id': 1338623902, 'portfolio_id': 20681180}, {'photo_id': 1338623900, 'portfolio_id': 20681180}, {'photo_id': 1338623888, 'portfolio_id': 20681180}, {'photo_id': 1338623480, 'portfolio_id': 20681180}, {'photo_id': 1338623288, 'portfolio_id': 20681180}, {'photo_id': 1338623101, 'portfolio_id': 20681180}, {'photo_id': 1338622914, 'portfolio_id': 20681180}, {'photo_id': 1338622635, 'portfolio_id': 20681180}, {'photo_id': 1338622623, 'portfolio_id': 20681180}, {'photo_id': 1338622620, 'portfolio_id': 20681180}, {'photo_id': 1338622617, 'portfolio_id': 20681180}, {'photo_id': 1338622614, 'portfolio_id': 20681180}, {'photo_id': 1338622613, 'portfolio_id': 20681180}, {'photo_id': 1338622593, 'portfolio_id': 20681180}, {'photo_id': 1338622586, 'portfolio_id': 20681180}, {'photo_id': 1338622584, 'portfolio_id': 20681180}, {'photo_id': 1338622573, 'portfolio_id': 20681180}, {'photo_id': 1338622568, 'portfolio_id': 20681180}, {'photo_id': 1338622539, 'portfolio_id': 20681180}, {'photo_id': 1338622528, 'portfolio_id': 20681180}, {'photo_id': 1338622523, 'portfolio_id': 20681180}, {'photo_id': 1338622521, 'portfolio_id': 20681180}, {'photo_id': 1338622519, 'portfolio_id': 20681180}, {'photo_id': 1338622518, 'portfolio_id': 20681180}, {'photo_id': 1338622498, 'portfolio_id': 20681180}, {'photo_id': 1338622494, 'portfolio_id': 20681180}, {'photo_id': 1338622491, 'portfolio_id': 20681180}, {'photo_id': 1338622488, 'portfolio_id': 20681180}, {'photo_id': 1338622398, 'portfolio_id': 20681180}, {'photo_id': 1338622395, 'portfolio_id': 20681180}, {'photo_id': 1338622389, 'portfolio_id': 20681180}, {'photo_id': 1338622382, 'portfolio_id': 20681180}, {'photo_id': 1338622380, 'portfolio_id': 20681180}, {'photo_id': 1338622377, 'portfolio_id': 20681180}, {'photo_id': 1338622320, 'portfolio_id': 20681180}, {'photo_id': 1338622303, 'portfolio_id': 20681180}, {'photo_id': 1338622299, 'portfolio_id': 20681180}, {'photo_id': 1338622296, 'portfolio_id': 20681180}, {'photo_id': 1338622293, 'portfolio_id': 20681180}] map_portfolio_id_photo_id: {20681180: [1338624375, 1338624373, 1338624371, 1338624369, 1338624363, 1338624276, 1338624225, 1338624196, 1338624194, 1338624116, 1338623959, 1338623904, 1338623902, 1338623900, 1338623888, 1338623480, 1338623288, 1338623101, 1338622914, 1338622635, 1338622623, 1338622620, 1338622617, 1338622614, 1338622613, 1338622593, 1338622586, 1338622584, 1338622573, 1338622568, 1338622539, 1338622528, 1338622523, 1338622521, 1338622519, 1338622518, 1338622498, 1338622494, 1338622491, 1338622488, 1338622398, 1338622395, 1338622389, 1338622382, 1338622380, 1338622377, 1338622320, 1338622303, 1338622299, 1338622296, 1338622293]} ##### 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.020648717880249023 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Feb 20 16:26:30 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 (20681180) 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 : 20681180 get user id for portfolio 20681180 get sub ptf for main ptf 20681180, type 3726 and hashtags ['Carton_brun', 'autre_refus', 'mal_croppe', 'environnement', 'plastique', 'papier', 'flou', 'metal', 'cartonnette', 'Carton_gris', 'Teint_Dans_La_Masse', 'kraft'] 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`=20681180 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','mal_croppe','environnement','plastique','papier','flou','metal','cartonnette','Carton_gris','Teint_Dans_La_Masse','kraft')) 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`=20681180 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','mal_croppe','environnement','plastique','papier','flou','metal','cartonnette','Carton_gris','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20681180, 'sub_port_id': 20681191, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331314, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 30)}, 'papier': {'main_port_id': 20681180, 'sub_port_id': 20681192, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331315, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 30)}, 'Carton_brun': {'main_port_id': 20681180, 'sub_port_id': 20681193, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331316, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 30)}, 'plastique': {'main_port_id': 20681180, 'sub_port_id': 20681194, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331317, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 30)}, 'kraft': {'main_port_id': 20681180, 'sub_port_id': 20681195, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331318, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 30)}, 'mal_croppe': {'main_port_id': 20681180, 'sub_port_id': 20681196, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331319, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 30)}, 'environnement': {'main_port_id': 20681180, 'sub_port_id': 20681197, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331320, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 30)}, 'flou': {'main_port_id': 20681180, 'sub_port_id': 20681198, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331321, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 30)}, 'Carton_gris': {'main_port_id': 20681180, 'sub_port_id': 20681199, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331322, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 30)}, 'autre_refus': {'main_port_id': 20681180, 'sub_port_id': 20681200, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331323, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 30)}, 'metal': {'main_port_id': 20681180, 'sub_port_id': 20681201, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331324, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 20681180, 'sub_port_id': 20681202, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331325, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20681191 , 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=20681180 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 (20681191) result : ((1338622656,), (1338622657,), (1338624299,), (1338624404,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20681180) result : ((1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,)) 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 (1338623900) 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 20681192 , 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=20681180 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 (20681192) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20681180) result : ((1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,)) 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 (1338623900) 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 20681193 , 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=20681180 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 (20681193) result : ((1338622659,), (1338622660,), (1338622661,), (1338624303,), (1338624304,), (1338624305,), (1338624306,), (1338624405,), (1338624406,), (1338624407,), (1338624408,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20681180) result : ((1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,)) 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 (1338623900) 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 20681194 , 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=20681180 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 (20681194) result : ((1338622662,), (1338622663,), (1338624307,), (1338624308,), (1338624309,), (1338624411,), (1338624412,), (1338624413,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20681180) result : ((1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,)) 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 (1338623900) 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 20681195 , 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=20681180 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 (20681195) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20681180) result : ((1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,)) 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 (1338623900) 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 20681196 , 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=20681180 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 (20681196) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20681180) result : ((1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,)) 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 (1338623900) 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 20681197 , 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=20681180 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 (20681197) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20681180) result : ((1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,)) 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 (1338623900) 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 20681198 , 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=20681180 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 (20681198) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20681180) result : ((1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,)) 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 (1338623900) 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 20681199 , 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=20681180 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 (20681199) result : ((1338624295,), (1338624296,), (1338624297,), (1338624298,), (1338624399,), (1338624400,), (1338624401,), (1338624402,), (1338624403,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20681180) result : ((1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,)) 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 (1338623900) 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 20681200 , 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=20681180 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 (20681200) result : ((1338624291,), (1338624397,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20681180) result : ((1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,)) 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 (1338623900) 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 20681201 , 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=20681180 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 (20681201) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20681180) result : ((1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,)) 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 (1338623900) 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 20681202 , 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=20681180 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 (20681202) result : ((1338624287,), (1338624288,), (1338624289,), (1338624290,), (1338624361,), (1338624393,), (1338624394,), (1338624395,), (1338624396,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20681180) result : ((1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,)) 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 (1338623900) 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`=20681180 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','mal_croppe','environnement','plastique','papier','flou','metal','cartonnette','Carton_gris','Teint_Dans_La_Masse','kraft')) 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`=20681180 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','mal_croppe','environnement','plastique','papier','flou','metal','cartonnette','Carton_gris','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20681180, 'sub_port_id': 20681203, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331326, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 31)}, 'papier': {'main_port_id': 20681180, 'sub_port_id': 20681204, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331327, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 31)}, 'Carton_brun': {'main_port_id': 20681180, 'sub_port_id': 20681205, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331328, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 31)}, 'plastique': {'main_port_id': 20681180, 'sub_port_id': 20681206, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331329, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 31)}, 'kraft': {'main_port_id': 20681180, 'sub_port_id': 20681207, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331330, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 31)}, 'mal_croppe': {'main_port_id': 20681180, 'sub_port_id': 20681208, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331331, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 31)}, 'environnement': {'main_port_id': 20681180, 'sub_port_id': 20681209, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331332, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 31)}, 'flou': {'main_port_id': 20681180, 'sub_port_id': 20681210, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331333, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 31)}, 'Carton_gris': {'main_port_id': 20681180, 'sub_port_id': 20681211, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331334, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 31)}, 'autre_refus': {'main_port_id': 20681180, 'sub_port_id': 20681212, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331335, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 31)}, 'metal': {'main_port_id': 20681180, 'sub_port_id': 20681213, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331336, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 20681180, 'sub_port_id': 20681214, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13331337, 'last_updated_at': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 16, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 16, 19, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20681203,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20681191 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20681204,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20681192 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20681205,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20681193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20681206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20681194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20681207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20681195 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20681208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20681196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20681209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20681197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20681210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20681198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20681211,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20681199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20681212,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20681200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20681213,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20681201 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20681214,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20681202 lien utilise dans velours : https://www.fotonower.com/velours/20681203,20681204,20681205,20681206,20681207,20681208,20681209,20681210,20681211,20681212,20681213,20681214?tags=cartonnette,papier,Carton_brun,plastique,kraft,mal_croppe,environnement,flou,Carton_gris,autre_refus,metal,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20681180]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338624375, 1338624373, 1338624371, 1338624369, 1338624363, 1338624276, 1338624225, 1338624196, 1338624194] map_info['map_portfolio_photo'] : {20681180: [1338624375, 1338624373, 1338624371, 1338624369, 1338624363, 1338624276, 1338624225, 1338624196, 1338624194, 1338624116, 1338623959, 1338623904, 1338623902, 1338623900, 1338623888, 1338623480, 1338623288, 1338623101, 1338622914, 1338622635, 1338622623, 1338622620, 1338622617, 1338622614, 1338622613, 1338622593, 1338622586, 1338622584, 1338622573, 1338622568, 1338622539, 1338622528, 1338622523, 1338622521, 1338622519, 1338622518, 1338622498, 1338622494, 1338622491, 1338622488, 1338622398, 1338622395, 1338622389, 1338622382, 1338622380, 1338622377, 1338622320, 1338622303, 1338622299, 1338622296, 1338622293]} final : False mtd_id 4302 list_pids : [1338624375, 1338624373, 1338624371, 1338624369, 1338624363, 1338624276, 1338624225, 1338624196, 1338624194] Looping around the photos to save general results len do output : 1 /20681180. 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, '2600112') ('4302', '20681180', '1338624375', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624373', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624371', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624369', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624363', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624276', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624225', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624196', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624194', None, None, None, None, None, '2600112') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '20681180', "{'cartonnette': 20681191, 'papier': 20681192, 'Carton_brun': 20681193, 'plastique': 20681194, 'kraft': 20681195, 'mal_croppe': 20681196, 'environnement': 20681197, 'flou': 20681198, 'Carton_gris': 20681199, 'autre_refus': 20681200, 'metal': 20681201, 'Teint_Dans_La_Masse': 20681202}", None, None, None, None, '2600112'), ('4302', '20681180', '1338624375', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624373', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624371', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624369', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624363', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624276', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624225', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624196', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624194', None, None, None, None, None, '2600112')] time used for this insertion : 0.013436555862426758 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0259664058685303 time spend to save output : 0.01374506950378418 total time spend for step 1 : 1.0397114753723145 step2:final Thu Feb 20 16:26:31 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 (20681180) 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 20681180 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338622320,1338622303,1338622299,1338622296,1338622293,1338622398,1338622395,1338622389,1338622382,1338622380,1338622377,1338622498,1338622494,1338622491,1338622488,1338622539,1338622528,1338622523,1338622521,1338622519,1338622518,1338622593,1338622586,1338622584,1338622573,1338622568,1338622635,1338622623,1338622620,1338622617,1338622614,1338622613,1338623480,1338623288,1338623101,1338622914,1338624116,1338623959,1338623904,1338623902,1338623900,1338623888,1338624276,1338624225,1338624196,1338624194,1338624375,1338624373,1338624371,1338624369,1338624363); 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([20681180]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ('0.045892643139612464',)} new output for save of step final : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ('0.045892643139612464',)} [1338624375, 1338624373, 1338624371, 1338624369, 1338624363, 1338624276, 1338624225, 1338624196, 1338624194] map_info['map_portfolio_photo'] : {20681180: [1338624375, 1338624373, 1338624371, 1338624369, 1338624363, 1338624276, 1338624225, 1338624196, 1338624194, 1338624116, 1338623959, 1338623904, 1338623902, 1338623900, 1338623888, 1338623480, 1338623288, 1338623101, 1338622914, 1338622635, 1338622623, 1338622620, 1338622617, 1338622614, 1338622613, 1338622593, 1338622586, 1338622584, 1338622573, 1338622568, 1338622539, 1338622528, 1338622523, 1338622521, 1338622519, 1338622518, 1338622498, 1338622494, 1338622491, 1338622488, 1338622398, 1338622395, 1338622389, 1338622382, 1338622380, 1338622377, 1338622320, 1338622303, 1338622299, 1338622296, 1338622293]} final : False mtd_id 4302 list_pids : [1338624375, 1338624373, 1338624371, 1338624369, 1338624363, 1338624276, 1338624225, 1338624196, 1338624194] Looping around the photos to save general results len do output : 9 /1338624375.Didn't retrieve data . /1338624373.Didn't retrieve data . /1338624371.Didn't retrieve data . /1338624369.Didn't retrieve data . /1338624363.Didn't retrieve data . /1338624276.Didn't retrieve data . /1338624225.Didn't retrieve data . /1338624196.Didn't retrieve data . /1338624194.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, '2600112') ('4302', '20681180', '1338624375', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624373', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624371', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624369', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624363', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624276', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624225', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624196', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624194', None, None, None, None, None, '2600112') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '20681180', '1338624375', '0.045892643139612464', None, None, None, None, '2600112'), ('4302', '20681180', '1338624373', '0.045892643139612464', None, None, None, None, '2600112'), ('4302', '20681180', '1338624371', '0.045892643139612464', None, None, None, None, '2600112'), ('4302', '20681180', '1338624369', '0.045892643139612464', None, None, None, None, '2600112'), ('4302', '20681180', '1338624363', '0.045892643139612464', None, None, None, None, '2600112'), ('4302', '20681180', '1338624276', '0.045892643139612464', None, None, None, None, '2600112'), ('4302', '20681180', '1338624225', '0.045892643139612464', None, None, None, None, '2600112'), ('4302', '20681180', '1338624196', '0.045892643139612464', None, None, None, None, '2600112'), ('4302', '20681180', '1338624194', '0.045892643139612464', None, None, None, None, '2600112')] time used for this insertion : 0.022782564163208008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08866143226623535 time spend to save output : 0.023326635360717773 total time spend for step 2 : 0.11198806762695312 step3:velours_tree Thu Feb 20 16:26:31 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 : {20681180: [{'cartonnette': 20681191, 'papier': 20681192, 'Carton_brun': 20681193, 'plastique': 20681194, 'kraft': 20681195, 'mal_croppe': 20681196, 'environnement': 20681197, 'flou': 20681198, 'Carton_gris': 20681199, 'autre_refus': 20681200, 'metal': 20681201, 'Teint_Dans_La_Masse': 20681202}]} input_args_next_step : {20681180: ()} output_args : {20681180: [{'cartonnette': 20681191, 'papier': 20681192, 'Carton_brun': 20681193, 'plastique': 20681194, 'kraft': 20681195, 'mal_croppe': 20681196, 'environnement': 20681197, 'flou': 20681198, 'Carton_gris': 20681199, 'autre_refus': 20681200, 'metal': 20681201, 'Teint_Dans_La_Masse': 20681202}]} args : 20681180 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 : ({'cartonnette': 20681191, 'papier': 20681192, 'Carton_brun': 20681193, 'plastique': 20681194, 'kraft': 20681195, 'mal_croppe': 20681196, 'environnement': 20681197, 'flou': 20681198, 'Carton_gris': 20681199, 'autre_refus': 20681200, 'metal': 20681201, 'Teint_Dans_La_Masse': 20681202},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20681180) 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([20681180]) 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.31499242782592773 time spend to save output : 5.125999450683594e-05 total time spend for step 3 : 0.31504368782043457 step4:send_mail_cod Thu Feb 20 16:26:31 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 : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ('0.045892643139612464',)} input_args_next_step : {1338624375: ()} output_args : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ('0.045892643139612464',)} args : 1338624375 depend.output_id : 0 input_args_next_step : {1338624375: ('0.045892643139612464',), 1338624373: ()} output_args : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ('0.045892643139612464',)} args : 1338624373 depend.output_id : 0 input_args_next_step : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ()} output_args : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ('0.045892643139612464',)} args : 1338624371 depend.output_id : 0 input_args_next_step : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ()} output_args : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ('0.045892643139612464',)} args : 1338624369 depend.output_id : 0 input_args_next_step : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ()} output_args : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ('0.045892643139612464',)} args : 1338624363 depend.output_id : 0 input_args_next_step : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ()} output_args : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ('0.045892643139612464',)} args : 1338624276 depend.output_id : 0 input_args_next_step : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ()} output_args : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ('0.045892643139612464',)} args : 1338624225 depend.output_id : 0 input_args_next_step : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ()} output_args : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ('0.045892643139612464',)} args : 1338624196 depend.output_id : 0 input_args_next_step : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ()} output_args : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ('0.045892643139612464',)} args : 1338624194 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 : {20681180: [{'cartonnette': 20681191, 'papier': 20681192, 'Carton_brun': 20681193, 'plastique': 20681194, 'kraft': 20681195, 'mal_croppe': 20681196, 'environnement': 20681197, 'flou': 20681198, 'Carton_gris': 20681199, 'autre_refus': 20681200, 'metal': 20681201, 'Teint_Dans_La_Masse': 20681202}]} input_args_next_step : {1338624375: ('0.045892643139612464',), 1338624373: ('0.045892643139612464',), 1338624371: ('0.045892643139612464',), 1338624369: ('0.045892643139612464',), 1338624363: ('0.045892643139612464',), 1338624276: ('0.045892643139612464',), 1338624225: ('0.045892643139612464',), 1338624196: ('0.045892643139612464',), 1338624194: ('0.045892643139612464',), 20681180: ()} output_args : {20681180: [{'cartonnette': 20681191, 'papier': 20681192, 'Carton_brun': 20681193, 'plastique': 20681194, 'kraft': 20681195, 'mal_croppe': 20681196, 'environnement': 20681197, 'flou': 20681198, 'Carton_gris': 20681199, 'autre_refus': 20681200, 'metal': 20681201, 'Teint_Dans_La_Masse': 20681202}]} args : 20681180 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 :10, first value : ('0.045892643139612464',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20681180) 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 (1338624375,1338624373,1338624371,1338624369,1338624363,1338624276,1338624225,1338624196,1338624194) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338624194 begin to download photo : 1338624225 begin to download photo : 1338624363 begin to download photo : 1338624371 begin to download photo : 1338624375 download finish for photo 1338624375 download finish for photo 1338624363 begin to download photo : 1338624369 download finish for photo 1338624371 begin to download photo : 1338624373 download finish for photo 1338624194 begin to download photo : 1338624196 download finish for photo 1338624225 begin to download photo : 1338624276 download finish for photo 1338624369 download finish for photo 1338624373 download finish for photo 1338624196 download finish for photo 1338624276 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P20681180_20-02-2025_16_26_32.pdf 20681191 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=20681191 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338622656: '1740064791_2063091_1338622320_27c36eb8243d42c41f00b6dd780b1726_rle_crop_3680710782_0.png', 1338622657: '1740064791_2063091_1338622296_f36cffa2abf0682c9d580a61b63be04a_rle_crop_3680710835_0.png', 1338624299: '1740064973_2071271_1338622519_0b9497d96f96230efd94909b1126586f_rle_crop_3680712461_0.png', 1338624404: '1740065071_2076663_1338622519_0b9497d96f96230efd94909b1126586f_rle_crop_3680712461_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/d8143b6df4aacc83664aeb2d0e3a740b_82953769.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4b0b125284d51a1a8c5bb17177dc89e1_75839.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/3cceade21cc23e451406870a996f195d_8102127.png change filename to text .imagette206811911740065192/ imagette206811911740065192/1740065071_2076663_1338622519_0b9497d96f96230efd94909b1126586f_rle_crop_3680712461_0.png.png imagette206811911740065192/1740064973_2071271_1338622519_0b9497d96f96230efd94909b1126586f_rle_crop_3680712461_0.png.png imagette206811911740065192/1740064791_2063091_1338622296_f36cffa2abf0682c9d580a61b63be04a_rle_crop_3680710835_0.png.png imagette206811911740065192/1740064791_2063091_1338622320_27c36eb8243d42c41f00b6dd780b1726_rle_crop_3680710782_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/3cceade21cc23e451406870a996f195d_10114043.png imagette206811911740065192 20681194 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=20681194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338622662: '1740064791_2063091_1338622299_5ec1cbea54e5c04aeed0db9ede13b860_rle_crop_3680710821_0.png', 1338622663: '1740064791_2063091_1338622296_f36cffa2abf0682c9d580a61b63be04a_rle_crop_3680710846_0.png', 1338624307: '1740064973_2071271_1338622521_a47963fe432286f7667e83da543aa0e2_rle_crop_3680712451_0.png', 1338624308: '1740064973_2071271_1338622519_0b9497d96f96230efd94909b1126586f_rle_crop_3680712468_0.png', 1338624309: '1740064973_2071271_1338622518_7316c388bb29e35ac08aba390181af7b_rle_crop_3680712483_0.png', 1338624411: '1740065071_2076663_1338622521_a47963fe432286f7667e83da543aa0e2_rle_crop_3680712451_0.png', 1338624412: '1740065071_2076663_1338622519_0b9497d96f96230efd94909b1126586f_rle_crop_3680712468_0.png', 1338624413: '1740065071_2076663_1338622518_7316c388bb29e35ac08aba390181af7b_rle_crop_3680712483_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/b43d68221d80a62eced5fe6c6acac7fa_3141967.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/280719623cdb74a4f8905f6214bb46b1_63589334.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/0a19818fc0f2b64ae6436470d62089bf_80368510.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/bf02df641a21a0b03375c068d0e5b94a_34119478.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/83d312e08b4993b06ba11b853ea0f9d6_72950573.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/0a19818fc0f2b64ae6436470d62089bf_53370946.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/bf02df641a21a0b03375c068d0e5b94a_91632017.png change filename to text .imagette206811941740065192/ imagette206811941740065192/1740065071_2076663_1338622521_a47963fe432286f7667e83da543aa0e2_rle_crop_3680712451_0.png.png imagette206811941740065192/1740064973_2071271_1338622519_0b9497d96f96230efd94909b1126586f_rle_crop_3680712468_0.png.png imagette206811941740065192/1740064791_2063091_1338622299_5ec1cbea54e5c04aeed0db9ede13b860_rle_crop_3680710821_0.png.png imagette206811941740065192/1740064791_2063091_1338622296_f36cffa2abf0682c9d580a61b63be04a_rle_crop_3680710846_0.png.png imagette206811941740065192/1740065071_2076663_1338622518_7316c388bb29e35ac08aba390181af7b_rle_crop_3680712483_0.png.png imagette206811941740065192/1740065071_2076663_1338622519_0b9497d96f96230efd94909b1126586f_rle_crop_3680712468_0.png.png imagette206811941740065192/1740064973_2071271_1338622518_7316c388bb29e35ac08aba390181af7b_rle_crop_3680712483_0.png.png imagette206811941740065192/1740064973_2071271_1338622521_a47963fe432286f7667e83da543aa0e2_rle_crop_3680712451_0.png.png imagette206811951740065193/ imagette206811961740065193/ imagette206811981740065193/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/83d312e08b4993b06ba11b853ea0f9d6_34167953.png imagette206811941740065192 20681195 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=20681195 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206811951740065193 20681196 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=20681196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206811961740065193 20681198 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=20681198 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206811981740065193 20681200 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=20681200 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338624291: '1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712234_0.png', 1338624397: '1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712234_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/7d18216e9d14521bce5929d0d669ef48_72043066.png change filename to text .imagette206812001740065193/ imagette206812001740065193/1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712234_0.png.png imagette206812001740065193/1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712234_0.png.png imagette206812011740065193/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/7d18216e9d14521bce5929d0d669ef48_55488148.png imagette206812001740065193 20681201 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=20681201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206812011740065193 20681193 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=20681193 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338622659: '1740064791_2063091_1338622299_5ec1cbea54e5c04aeed0db9ede13b860_rle_crop_3680710820_0.png', 1338622660: '1740064791_2063091_1338622296_f36cffa2abf0682c9d580a61b63be04a_rle_crop_3680710844_0.png', 1338622661: '1740064791_2063091_1338622293_8d8c9d6688464c11758dc067163ceefc_rle_crop_3680710860_0.png', 1338624303: '1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712240_0.png', 1338624304: '1740064973_2071271_1338622523_cd74981de55cfc2ad34c84379795ddeb_rle_crop_3680712285_0.png', 1338624305: '1740064973_2071271_1338622523_cd74981de55cfc2ad34c84379795ddeb_rle_crop_3680712283_0.png', 1338624306: '1740064973_2071271_1338622521_a47963fe432286f7667e83da543aa0e2_rle_crop_3680712447_0.png', 1338624405: '1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712240_0.png', 1338624406: '1740065071_2076663_1338622523_cd74981de55cfc2ad34c84379795ddeb_rle_crop_3680712285_0.png', 1338624407: '1740065071_2076663_1338622523_cd74981de55cfc2ad34c84379795ddeb_rle_crop_3680712283_0.png', 1338624408: '1740065071_2076663_1338622521_a47963fe432286f7667e83da543aa0e2_rle_crop_3680712447_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/47c0c121d9e4aa38092399d9182bb5f7_6451133.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/98485ad1de0425647ca197800c261319_50222049.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/8319bb452e0351c7464563ecc2ebc2d0_28785201.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/b910f24e26340c191ef25c11ea6f771e_47263221.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/dbf4489aef8de62b55c0f13d7f40bb3a_40272178.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/fc1619c510d86ceb30a2cfe18117383e_95465104.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/24826df85b50507a7ab9673ebe5b975e_79049895.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/b910f24e26340c191ef25c11ea6f771e_34957258.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/dbf4489aef8de62b55c0f13d7f40bb3a_16676621.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/fc1619c510d86ceb30a2cfe18117383e_4197675.png change filename to text .imagette206811931740065193/ imagette206811931740065193/1740065071_2076663_1338622521_a47963fe432286f7667e83da543aa0e2_rle_crop_3680712447_0.png.png imagette206811931740065193/1740064973_2071271_1338622523_cd74981de55cfc2ad34c84379795ddeb_rle_crop_3680712283_0.png.png imagette206811931740065193/1740064791_2063091_1338622293_8d8c9d6688464c11758dc067163ceefc_rle_crop_3680710860_0.png.png imagette206811931740065193/1740065071_2076663_1338622523_cd74981de55cfc2ad34c84379795ddeb_rle_crop_3680712283_0.png.png imagette206811931740065193/1740064791_2063091_1338622299_5ec1cbea54e5c04aeed0db9ede13b860_rle_crop_3680710820_0.png.png imagette206811931740065193/1740064973_2071271_1338622523_cd74981de55cfc2ad34c84379795ddeb_rle_crop_3680712285_0.png.png imagette206811931740065193/1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712240_0.png.png imagette206811931740065193/1740064791_2063091_1338622296_f36cffa2abf0682c9d580a61b63be04a_rle_crop_3680710844_0.png.png imagette206811931740065193/1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712240_0.png.png imagette206811931740065193/1740064973_2071271_1338622521_a47963fe432286f7667e83da543aa0e2_rle_crop_3680712447_0.png.png imagette206811931740065193/1740065071_2076663_1338622523_cd74981de55cfc2ad34c84379795ddeb_rle_crop_3680712285_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/24826df85b50507a7ab9673ebe5b975e_64963309.png imagette206811931740065193 20681199 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=20681199 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338624295: '1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712238_0.png', 1338624296: '1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712230_0.png', 1338624297: '1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712239_0.png', 1338624298: '1740064973_2071271_1338622518_7316c388bb29e35ac08aba390181af7b_rle_crop_3680712473_0.png', 1338624399: '1740065071_2076663_1338622593_8f941630f04079df4ee1a4e9b37679ce_rle_crop_3680714022_0.png', 1338624400: '1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712238_0.png', 1338624401: '1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712230_0.png', 1338624402: '1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712239_0.png', 1338624403: '1740065071_2076663_1338622518_7316c388bb29e35ac08aba390181af7b_rle_crop_3680712473_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/273ff1747f48dee5303f9b82b9635738_48245667.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/bb8597591324f1da7d4c73a7aaaca9ce_39882094.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/40a4575d0d2b424e9623624267cddf24_63245199.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/1ce4237428a5dd053a342f4dfc349fd6_58131307.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/592256e2dfa5e35c8abd02c5aa7d69b0_54366802.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/273ff1747f48dee5303f9b82b9635738_12678887.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/bb8597591324f1da7d4c73a7aaaca9ce_56052803.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/40a4575d0d2b424e9623624267cddf24_33624436.png change filename to text .imagette206811991740065193/ imagette206811991740065193/1740065071_2076663_1338622593_8f941630f04079df4ee1a4e9b37679ce_rle_crop_3680714022_0.png.png imagette206811991740065193/1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712239_0.png.png imagette206811991740065193/1740064973_2071271_1338622518_7316c388bb29e35ac08aba390181af7b_rle_crop_3680712473_0.png.png imagette206811991740065193/1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712239_0.png.png imagette206811991740065193/1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712238_0.png.png imagette206811991740065193/1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712230_0.png.png imagette206811991740065193/1740065071_2076663_1338622518_7316c388bb29e35ac08aba390181af7b_rle_crop_3680712473_0.png.png imagette206811991740065193/1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712230_0.png.png imagette206811991740065193/1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712238_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/1ce4237428a5dd053a342f4dfc349fd6_35266183.png imagette206811991740065193 20681202 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=20681202 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338624287: '1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712233_0.png', 1338624288: '1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712244_0.png', 1338624289: '1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712247_0.png', 1338624290: '1740064973_2071271_1338622523_cd74981de55cfc2ad34c84379795ddeb_rle_crop_3680712289_0.png', 1338624361: '1740065033_2072155_1338622539_528aa0ff0bc200c433ecd5464e5150ff_rle_crop_3680712822_0.png', 1338624393: '1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712233_0.png', 1338624394: '1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712244_0.png', 1338624395: '1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712247_0.png', 1338624396: '1740065071_2076663_1338622523_cd74981de55cfc2ad34c84379795ddeb_rle_crop_3680712289_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/dd0360cb4e0576ae94e0e05faed21ae4_26751707.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4ca2d29a183d0348c0919641d9fce9ef_2552340.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4e63e83e0a17f57febe5418adff82c47_50793749.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/2e133af969b8bf70a2a42692e8c6256a_77571283.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4dac44f9b9c437bf21774864acd52390_52168346.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/dd0360cb4e0576ae94e0e05faed21ae4_42560222.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4ca2d29a183d0348c0919641d9fce9ef_32146763.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4e63e83e0a17f57febe5418adff82c47_46205391.png change filename to text .imagette206812021740065194/ imagette206812021740065194/1740064973_2071271_1338622523_cd74981de55cfc2ad34c84379795ddeb_rle_crop_3680712289_0.png.png imagette206812021740065194/1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712233_0.png.png imagette206812021740065194/1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712247_0.png.png imagette206812021740065194/1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712244_0.png.png imagette206812021740065194/1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712244_0.png.png imagette206812021740065194/1740065071_2076663_1338622523_cd74981de55cfc2ad34c84379795ddeb_rle_crop_3680712289_0.png.png imagette206812021740065194/1740065033_2072155_1338622539_528aa0ff0bc200c433ecd5464e5150ff_rle_crop_3680712822_0.png.png imagette206812021740065194/1740065071_2076663_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712233_0.png.png imagette206812021740065194/1740064973_2071271_1338622528_5fd64e0dc5c9c1bb67a536e743a7ceb9_rle_crop_3680712247_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/2e133af969b8bf70a2a42692e8c6256a_11923468.png imagette206812021740065194 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20681180 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20681203,20681204,20681205,20681206,20681207,20681208,20681209,20681210,20681211,20681212,20681213,20681214?tags=cartonnette,papier,Carton_brun,plastique,kraft,mal_croppe,environnement,flou,Carton_gris,autre_refus,metal,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1338624375] : ('0.045892643139612464',) no score found for photo 1338624375 We are sending mail with results at report@fotonower.com args[1338624373] : ('0.045892643139612464',) no score found for photo 1338624373 We are sending mail with results at report@fotonower.com args[1338624371] : ('0.045892643139612464',) no score found for photo 1338624371 We are sending mail with results at report@fotonower.com args[1338624369] : ('0.045892643139612464',) no score found for photo 1338624369 We are sending mail with results at report@fotonower.com args[1338624363] : ('0.045892643139612464',) no score found for photo 1338624363 We are sending mail with results at report@fotonower.com args[1338624276] : ('0.045892643139612464',) no score found for photo 1338624276 We are sending mail with results at report@fotonower.com args[1338624225] : ('0.045892643139612464',) no score found for photo 1338624225 We are sending mail with results at report@fotonower.com args[1338624196] : ('0.045892643139612464',) no score found for photo 1338624196 We are sending mail with results at report@fotonower.com args[1338624194] : ('0.045892643139612464',) no score found for photo 1338624194 We are sending mail with results at report@fotonower.com refus_total : 0.045892643139612464 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=20681180 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_P20681180_20-02-2025_16_26_32.pdf results_Auto_P20681180_20-02-2025_16_26_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_20-02-2025_16_26_32.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','20681180','results_Auto_P20681180_20-02-2025_16_26_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_20-02-2025_16_26_32.pdf','pdf','','0.18','0.045892643139612464') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20681180]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338624375, 1338624373, 1338624371, 1338624369, 1338624363, 1338624276, 1338624225, 1338624196, 1338624194] map_info['map_portfolio_photo'] : {20681180: [1338624375, 1338624373, 1338624371, 1338624369, 1338624363, 1338624276, 1338624225, 1338624196, 1338624194, 1338624116, 1338623959, 1338623904, 1338623902, 1338623900, 1338623888, 1338623480, 1338623288, 1338623101, 1338622914, 1338622635, 1338622623, 1338622620, 1338622617, 1338622614, 1338622613, 1338622593, 1338622586, 1338622584, 1338622573, 1338622568, 1338622539, 1338622528, 1338622523, 1338622521, 1338622519, 1338622518, 1338622498, 1338622494, 1338622491, 1338622488, 1338622398, 1338622395, 1338622389, 1338622382, 1338622380, 1338622377, 1338622320, 1338622303, 1338622299, 1338622296, 1338622293]} final : False mtd_id 4302 list_pids : [1338624375, 1338624373, 1338624371, 1338624369, 1338624363, 1338624276, 1338624225, 1338624196, 1338624194] 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, '2600112') ('4302', '20681180', '1338624375', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624373', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624371', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624369', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624363', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624276', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624225', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624196', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624194', None, None, None, None, None, '2600112') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20681180', '1338624375', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624373', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624371', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624369', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624363', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624276', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624225', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624196', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624194', None, None, None, None, None, '2600112')] time used for this insertion : 0.018036842346191406 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.985804319381714 time spend to save output : 0.018280982971191406 total time spend for step 4 : 4.004085302352905 step5:split_time_score Thu Feb 20 16:26:35 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 : ['20681180'] 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 : [('20681180',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20681180) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338624375: {'path': 'temp/1740065191_2449394_1338624375_1da0f3f0c1f1d86d94be5d33596f908e.jpg', 'extension': 'jpg'}, 1338624363: {'path': 'temp/1740065191_2449394_1338624363_2815eb47b6b7e95f0ef10f71cc14cb15.jpg', 'extension': 'jpg'}, 1338624369: {'path': 'temp/1740065191_2449394_1338624369_ac671d2f87f0c60eea3b1969daf20c44.jpg', 'extension': 'jpg'}, 1338624371: {'path': 'temp/1740065191_2449394_1338624371_c142b7ba7322cbcae4bc2ca62639d579.jpg', 'extension': 'jpg'}, 1338624373: {'path': 'temp/1740065191_2449394_1338624373_0485ba5ac5cc22d3f4d71542a03e3e96.jpg', 'extension': 'jpg'}, 1338624194: {'path': 'temp/1740065191_2449394_1338624194_43e60201846ed9e3b330194a964a9051.jpg', 'extension': 'jpg'}, 1338624196: {'path': 'temp/1740065191_2449394_1338624196_bb79cf9d0809fda53bd0455df1a75ec5.jpg', 'extension': 'jpg'}, 1338624225: {'path': 'temp/1740065191_2449394_1338624225_9de7f7d7ef45223ac58d5dd01986965d.jpg', 'extension': 'jpg'}, 1338624276: {'path': 'temp/1740065191_2449394_1338624276_4f9b2d62662fca1d50fdf755b03d9b3f.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 = 20681180; (('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 = 20681180 group by h (('16', 51),) 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=20681180 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 (20681180) 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 (20681180) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 20022025 20681180 Nombre de photos uploadées : 51 / 23040 (0%) 20022025 20681180 Nombre de photos taguées (types de déchets): 0 / 51 (0%) 20022025 20681180 Nombre de photos taguées (volume) : 0 / 51 (0%) [{'photo_id': 1338622320, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/27c36eb8243d42c41f00b6dd780b1726.jpg', 'username': None, 'uploaded_at': 1740064582, 'text': 'image_20022025_16_15_04_010148m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1338622303, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/cd72234e097c93a6b94f72cf6137564f.jpg', 'username': None, 'uploaded_at': 1740064582, 'text': 'image_20022025_16_15_14_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338622299, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/5ec1cbea54e5c04aeed0db9ede13b860.jpg', 'username': None, 'uploaded_at': 1740064582, 'text': 'image_20022025_16_15_24_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1338622296, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/f36cffa2abf0682c9d580a61b63be04a.jpg', 'username': None, 'uploaded_at': 1740064582, 'text': 'image_20022025_16_15_34_010134m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0030586719512939453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20681180, '2025-02-20' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1613763,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03291821479797363 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= 1613763 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621485, 'mtr_portfolio_id': 20679292, 'dashboard_result_id': 8977340, '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_P20679292_20-02-2025_15_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679331, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621485, 'mtr_portfolio_id': 20679803, 'dashboard_result_id': 8977341, '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_P20679803_20-02-2025_16_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621485, 'mtr_portfolio_id': 20680429, 'dashboard_result_id': 8977342, '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_P20680429_20-02-2025_16_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20680435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20680436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20680437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20680438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20680439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20680440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20680441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20680442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20680443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20680444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20680445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20680446, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1621485, 'mtr_portfolio_id': 20681180, 'dashboard_result_id': 8977343, '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_P20681180_20-02-2025_16_24_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20681191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20681192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20681193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20681194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20681195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20681196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20681197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20681198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20681199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20681200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20681201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20681202, '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 = 20679292 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': 2599910, 'mtr_portfolio_id': 20679292, 'created_at': datetime.datetime(2025, 2, 20, 15, 48, 59), 'result': '0.04291927462634941', 'result_long': None, 'result_double': None}] Qualite : 0.04291927462634941 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20679292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679292_20-02-2025_15_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20679292 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_P20679292_20-02-2025_15_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679331, 'pht': 3726}}" where mtr_portfolio_id = 20679292 and dashboard_run_id = 1621485 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`=20679292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8977340, 0.04291927462634941, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679292_20-02-2025_15_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679331, '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 = 20679803 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': 2599950, 'mtr_portfolio_id': 20679803, 'created_at': datetime.datetime(2025, 2, 20, 16, 2, 59), 'result': '0.03881486633818575', 'result_long': None, 'result_double': None}] Qualite : 0.03881486633818575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20679803 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_20-02-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20679803 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_P20679803_20-02-2025_16_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, 'pht': 3726}}" where mtr_portfolio_id = 20679803 and dashboard_run_id = 1621485 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`=20679803 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8977341, 0.03881486633818575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_20-02-2025_16_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, '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 = 20680429 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': 2600034, 'mtr_portfolio_id': 20680429, 'created_at': datetime.datetime(2025, 2, 20, 16, 19), 'result': '0.0723532848141455', 'result_long': None, 'result_double': None}] Qualite : 0.0723532848141455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20680429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20680429_20-02-2025_16_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20680429 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_P20680429_20-02-2025_16_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20680435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20680436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20680437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20680438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20680439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20680440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20680441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20680442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20680443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20680444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20680445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20680446, 'pht': 3726}}" where mtr_portfolio_id = 20680429 and dashboard_run_id = 1621485 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`=20680429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8977342, 0.0723532848141455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20680429_20-02-2025_16_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20680435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20680436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20680437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20680438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20680439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20680440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20680441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20680442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20680443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20680444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20680445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20680446, '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 = 20681180 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': 2600112, 'mtr_portfolio_id': 20681180, 'created_at': datetime.datetime(2025, 2, 20, 16, 26, 31), 'result': '0.045892643139612464', 'result_long': None, 'result_double': None}] Qualite : 0.045892643139612464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20681180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_20-02-2025_16_26_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20681180 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_P20681180_20-02-2025_16_26_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20681191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20681192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20681193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20681194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20681195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20681196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20681197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20681198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20681199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20681200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20681201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20681202, 'pht': 3726}}" where mtr_portfolio_id = 20681180 and dashboard_run_id = 1621485 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`=20681180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8977343, 0.045892643139612464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_20-02-2025_16_26_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20681191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20681192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20681193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20681194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20681195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20681196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20681197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20681198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20681199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20681200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20681201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20681202, '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 (20679292,20679803,20680429,20681180) result : ((1338611427,), (1338611429,), (1338611506,), (1338611514,), (1338611527,), (1338611529,), (1338611530,), (1338611533,), (1338611574,), (1338611577,), (1338611580,), (1338611584,), (1338611689,), (1338611691,), (1338611694,), (1338611697,), (1338611703,), (1338611710,), (1338611740,), (1338611742,), (1338611745,), (1338611749,), (1338611753,), (1338611756,), (1338612014,), (1338612239,), (1338612335,), (1338612489,), (1338612528,), (1338612602,), (1338612687,), (1338612741,), (1338612745,), (1338612750,), (1338612973,), (1338613049,), (1338613118,), (1338613123,), (1338613203,), (1338613228,), (1338613348,), (1338613370,), (1338613385,), (1338613418,), (1338613460,), (1338613464,), (1338613467,), (1338613471,), (1338613475,), (1338613478,), (1338613492,), (1338613494,), (1338613499,), (1338613502,), (1338613524,), (1338613533,), (1338613535,), (1338613538,), (1338613541,), (1338613545,), (1338613569,), (1338613571,), (1338613573,), (1338613577,), (1338613598,), (1338613602,), (1338613605,), (1338613608,), (1338613611,), (1338613632,), (1338613634,), (1338613636,), (1338613639,), (1338613640,), (1338613666,), (1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,), (1338615127,), (1338615202,), (1338615362,), (1338615508,), (1338615563,), (1338615584,), (1338615754,), (1338615758,), (1338615762,), (1338615766,), (1338616355,), (1338616403,), (1338616460,), (1338616522,), (1338616653,), (1338616736,), (1338617009,), (1338617014,), (1338617020,), (1338617023,), (1338617024,), (1338617063,), (1338617036,), (1338617040,), (1338617049,), (1338617058,), (1338617710,), (1338617733,), (1338617736,), (1338618544,), (1338618582,), (1338618604,), (1338618769,), (1338618773,), (1338618780,), (1338619063,), (1338619114,), (1338619116,), (1338619136,), (1338619498,), (1338619501,), (1338619503,), (1338619505,), (1338619512,), (1338619548,), (1338619550,), (1338619554,), (1338619559,), (1338619568,), (1338619574,), (1338619689,), (1338619720,), (1338619754,), (1338619813,), (1338620405,), (1338620408,), (1338620410,), (1338620420,), (1338620433,), (1338620435,), (1338620678,), (1338620717,), (1338620738,), (1338620743,), (1338620747,), (1338620817,), (1338620820,), (1338620873,), (1338620942,), (1338621032,), (1338621330,), (1338621333,), (1338621337,), (1338621341,), (1338621345,), (1338621607,), (1338621757,), (1338621823,), (1338621867,), (1338621870,), (1338621874,), (1338622111,), (1338622114,), (1338622116,), (1338622157,), (1338622189,), (1338622194,), (1338622198,), (1338622202,), (1338622206,), (1338622208,), (1338622258,), (1338622262,), (1338622266,), (1338622269,), (1338622323,), (1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'20022025': {'nb_upload': 51, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20681180]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338624375, 1338624373, 1338624371, 1338624369, 1338624363, 1338624276, 1338624225, 1338624196, 1338624194] map_info['map_portfolio_photo'] : {20681180: [1338624375, 1338624373, 1338624371, 1338624369, 1338624363, 1338624276, 1338624225, 1338624196, 1338624194, 1338624116, 1338623959, 1338623904, 1338623902, 1338623900, 1338623888, 1338623480, 1338623288, 1338623101, 1338622914, 1338622635, 1338622623, 1338622620, 1338622617, 1338622614, 1338622613, 1338622593, 1338622586, 1338622584, 1338622573, 1338622568, 1338622539, 1338622528, 1338622523, 1338622521, 1338622519, 1338622518, 1338622498, 1338622494, 1338622491, 1338622488, 1338622398, 1338622395, 1338622389, 1338622382, 1338622380, 1338622377, 1338622320, 1338622303, 1338622299, 1338622296, 1338622293]} final : True mtd_id 4302 list_pids : [1338624375, 1338624373, 1338624371, 1338624369, 1338624363, 1338624276, 1338624225, 1338624196, 1338624194] Looping around the photos to save general results len do output : 1 /20681180Didn'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, '2600112') ('4302', '20681180', '1338624375', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624373', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624371', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624369', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624363', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624276', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624225', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624196', None, None, None, None, None, '2600112') ('4302', None, None, None, None, None, None, None, '2600112') ('4302', '20681180', '1338624194', None, None, None, None, None, '2600112') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '20681180', 'None', None, None, None, None, '2600112'), ('4302', '20681180', '1338624375', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624373', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624371', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624369', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624363', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624276', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624225', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624196', None, None, None, None, None, '2600112'), ('4302', '20681180', '1338624194', None, None, None, None, None, '2600112')] time used for this insertion : 0.021170854568481445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4362971782684326 time spend to save output : 0.021433591842651367 total time spend for step 5 : 0.457730770111084 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 (2600112) 2.23user 1.90system 0:10.43elapsed 39%CPU (0avgtext+0avgdata 159792maxresident)k 3288inputs+12088outputs (62major+77371minor)pagefaults 0swaps