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 : 1275479 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 (2603107) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2603107) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20711349 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2603107'] with mtr_portfolio_ids : ['20711349'] and first list_photo_ids : [] new path : /proc/1275479/ Name: python3 Umask: 0002 State: R (running) Tgid: 1275479 Ngid: 0 Pid: 1275479 PPid: 1275478 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1275479 NSpid: 1275479 NSpgid: 1272921 NSsid: 1272921 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99240 kB VmRSS: 99240 kB RssAnon: 59756 kB RssFile: 39484 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 588 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: 65 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1275479', 'Ngid': '0', 'Pid': '1275479', 'PPid': '1275478', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1275479', 'NSpid': '1275479', 'NSpgid': '1272921', 'NSsid': '1272921', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99240 kB', 'VmRSS': '99240 kB', 'RssAnon': '59756 kB', 'RssFile': '39484 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '588 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': '65', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '1275479', '1106840', '0', '1106840', '865592', '99240', b'', 'marlene', '2603107') 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 (20711349) 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 (2603107 ) ) 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 (20711349) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338760703, 'portfolio_id': 20711349}, {'photo_id': 1338760694, 'portfolio_id': 20711349}, {'photo_id': 1338760683, 'portfolio_id': 20711349}, {'photo_id': 1338760681, 'portfolio_id': 20711349}, {'photo_id': 1338760651, 'portfolio_id': 20711349}, {'photo_id': 1338760615, 'portfolio_id': 20711349}, {'photo_id': 1338760613, 'portfolio_id': 20711349}, {'photo_id': 1338760611, 'portfolio_id': 20711349}, {'photo_id': 1338760534, 'portfolio_id': 20711349}, {'photo_id': 1338760531, 'portfolio_id': 20711349}, {'photo_id': 1338760490, 'portfolio_id': 20711349}, {'photo_id': 1338760488, 'portfolio_id': 20711349}, {'photo_id': 1338760253, 'portfolio_id': 20711349}, {'photo_id': 1338760245, 'portfolio_id': 20711349}, {'photo_id': 1338760236, 'portfolio_id': 20711349}, {'photo_id': 1338760233, 'portfolio_id': 20711349}, {'photo_id': 1338760231, 'portfolio_id': 20711349}, {'photo_id': 1338759852, 'portfolio_id': 20711349}, {'photo_id': 1338759725, 'portfolio_id': 20711349}, {'photo_id': 1338759632, 'portfolio_id': 20711349}, {'photo_id': 1338759486, 'portfolio_id': 20711349}, {'photo_id': 1338759344, 'portfolio_id': 20711349}, {'photo_id': 1338759342, 'portfolio_id': 20711349}, {'photo_id': 1338759309, 'portfolio_id': 20711349}, {'photo_id': 1338759301, 'portfolio_id': 20711349}, {'photo_id': 1338759293, 'portfolio_id': 20711349}, {'photo_id': 1338759279, 'portfolio_id': 20711349}, {'photo_id': 1338759267, 'portfolio_id': 20711349}, {'photo_id': 1338759264, 'portfolio_id': 20711349}, {'photo_id': 1338759262, 'portfolio_id': 20711349}, {'photo_id': 1338759256, 'portfolio_id': 20711349}, {'photo_id': 1338759251, 'portfolio_id': 20711349}, {'photo_id': 1338759249, 'portfolio_id': 20711349}, {'photo_id': 1338759226, 'portfolio_id': 20711349}, {'photo_id': 1338759224, 'portfolio_id': 20711349}, {'photo_id': 1338759222, 'portfolio_id': 20711349}, {'photo_id': 1338759220, 'portfolio_id': 20711349}, {'photo_id': 1338759206, 'portfolio_id': 20711349}, {'photo_id': 1338759204, 'portfolio_id': 20711349}, {'photo_id': 1338759201, 'portfolio_id': 20711349}, {'photo_id': 1338759198, 'portfolio_id': 20711349}, {'photo_id': 1338759196, 'portfolio_id': 20711349}, {'photo_id': 1338759194, 'portfolio_id': 20711349}, {'photo_id': 1338759161, 'portfolio_id': 20711349}, {'photo_id': 1338759159, 'portfolio_id': 20711349}, {'photo_id': 1338759157, 'portfolio_id': 20711349}, {'photo_id': 1338759155, 'portfolio_id': 20711349}, {'photo_id': 1338759153, 'portfolio_id': 20711349}, {'photo_id': 1338759133, 'portfolio_id': 20711349}, {'photo_id': 1338759131, 'portfolio_id': 20711349}, {'photo_id': 1338759128, 'portfolio_id': 20711349}, {'photo_id': 1338759125, 'portfolio_id': 20711349}, {'photo_id': 1338759118, 'portfolio_id': 20711349}] map_portfolio_id_photo_id: {20711349: [1338760703, 1338760694, 1338760683, 1338760681, 1338760651, 1338760615, 1338760613, 1338760611, 1338760534, 1338760531, 1338760490, 1338760488, 1338760253, 1338760245, 1338760236, 1338760233, 1338760231, 1338759852, 1338759725, 1338759632, 1338759486, 1338759344, 1338759342, 1338759309, 1338759301, 1338759293, 1338759279, 1338759267, 1338759264, 1338759262, 1338759256, 1338759251, 1338759249, 1338759226, 1338759224, 1338759222, 1338759220, 1338759206, 1338759204, 1338759201, 1338759198, 1338759196, 1338759194, 1338759161, 1338759159, 1338759157, 1338759155, 1338759153, 1338759133, 1338759131, 1338759128, 1338759125, 1338759118]} ##### 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.016855239868164062 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Feb 21 06:12:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20711349) 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 : 20711349 get user id for portfolio 20711349 get sub ptf for main ptf 20711349, type 3726 and hashtags ['Carton_gris', 'papier', 'mal_croppe', 'autre_refus', 'plastique', 'Carton_brun', 'environnement', 'Teint_Dans_La_Masse', 'metal', 'flou', 'kraft', 'cartonnette'] 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`=20711349 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','mal_croppe','autre_refus','plastique','Carton_brun','environnement','Teint_Dans_La_Masse','metal','flou','kraft','cartonnette')) 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`=20711349 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','mal_croppe','autre_refus','plastique','Carton_brun','environnement','Teint_Dans_La_Masse','metal','flou','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20711349, 'sub_port_id': 20711378, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358524, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 57)}, 'kraft': {'main_port_id': 20711349, 'sub_port_id': 20711379, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358525, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 57)}, 'autre_refus': {'main_port_id': 20711349, 'sub_port_id': 20711380, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358526, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 57)}, 'environnement': {'main_port_id': 20711349, 'sub_port_id': 20711381, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358527, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 57)}, 'flou': {'main_port_id': 20711349, 'sub_port_id': 20711382, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358528, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 57)}, 'Carton_brun': {'main_port_id': 20711349, 'sub_port_id': 20711383, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358529, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 57)}, 'cartonnette': {'main_port_id': 20711349, 'sub_port_id': 20711384, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358530, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 57)}, 'mal_croppe': {'main_port_id': 20711349, 'sub_port_id': 20711385, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358531, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 57)}, 'metal': {'main_port_id': 20711349, 'sub_port_id': 20711386, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358532, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 57)}, 'papier': {'main_port_id': 20711349, 'sub_port_id': 20711387, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358533, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 57)}, 'Carton_gris': {'main_port_id': 20711349, 'sub_port_id': 20711388, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358534, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 57)}, 'plastique': {'main_port_id': 20711349, 'sub_port_id': 20711389, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358535, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20711378 , 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=20711349 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 (20711378) result : ((1338759597,), (1338759599,), (1338759601,), (1338759603,), (1338759850,), (1338760539,), (1338760541,), (1338760598,), (1338760660,), (1338760661,), (1338760662,), (1338760663,), (1338760664,), (1338760685,), (1338760686,), (1338760697,), (1338760698,), (1338760706,), (1338760707,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20711349) result : ((1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20711379 , 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=20711349 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 (20711379) result : ((1338759836,), (1338760675,), (1338760699,), (1338760719,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20711349) result : ((1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20711380 , 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=20711349 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 (20711380) result : ((1338760604,), (1338760665,), (1338760678,), (1338760687,), (1338760708,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20711349) result : ((1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20711381 , 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=20711349 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 (20711381) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20711349) result : ((1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20711382 , 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=20711349 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 (20711382) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20711349) result : ((1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20711383 , 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=20711349 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 (20711383) result : ((1338759736,), (1338759977,), (1338759979,), (1338759981,), (1338759983,), (1338760609,), (1338760610,), (1338760672,), (1338760695,), (1338760696,), (1338760713,), (1338760714,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20711349) result : ((1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20711384 , 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=20711349 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 (20711384) result : ((1338759719,), (1338759721,), (1338760585,), (1338760608,), (1338760670,), (1338760671,), (1338760691,), (1338760701,), (1338760712,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20711349) result : ((1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20711385 , 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=20711349 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 (20711385) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20711349) result : ((1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20711386 , 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=20711349 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 (20711386) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20711349) result : ((1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20711387 , 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=20711349 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 (20711387) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20711349) result : ((1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20711388 , 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=20711349 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 (20711388) result : ((1338759654,), (1338759656,), (1338759658,), (1338759660,), (1338759906,), (1338759908,), (1338759910,), (1338760548,), (1338760605,), (1338760606,), (1338760607,), (1338760666,), (1338760667,), (1338760668,), (1338760669,), (1338760679,), (1338760688,), (1338760689,), (1338760690,), (1338760700,), (1338760710,), (1338760711,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20711349) result : ((1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20711389 , 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=20711349 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 (20711389) result : ((1338759797,), (1338759799,), (1338760019,), (1338760586,), (1338760673,), (1338760674,), (1338760704,), (1338760716,), (1338760717,), (1338760718,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20711349) result : ((1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=20711349 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','mal_croppe','autre_refus','plastique','Carton_brun','environnement','Teint_Dans_La_Masse','metal','flou','kraft','cartonnette')) 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`=20711349 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','mal_croppe','autre_refus','plastique','Carton_brun','environnement','Teint_Dans_La_Masse','metal','flou','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20711349, 'sub_port_id': 20711390, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358536, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 59)}, 'kraft': {'main_port_id': 20711349, 'sub_port_id': 20711391, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358537, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 59)}, 'autre_refus': {'main_port_id': 20711349, 'sub_port_id': 20711392, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358538, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 59)}, 'environnement': {'main_port_id': 20711349, 'sub_port_id': 20711393, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358539, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 59)}, 'flou': {'main_port_id': 20711349, 'sub_port_id': 20711394, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358540, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 59)}, 'Carton_brun': {'main_port_id': 20711349, 'sub_port_id': 20711395, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358541, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 59)}, 'cartonnette': {'main_port_id': 20711349, 'sub_port_id': 20711396, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358542, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 59)}, 'mal_croppe': {'main_port_id': 20711349, 'sub_port_id': 20711397, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358543, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 59)}, 'metal': {'main_port_id': 20711349, 'sub_port_id': 20711398, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358544, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 59)}, 'papier': {'main_port_id': 20711349, 'sub_port_id': 20711399, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358545, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 59)}, 'Carton_gris': {'main_port_id': 20711349, 'sub_port_id': 20711400, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358546, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 59)}, 'plastique': {'main_port_id': 20711349, 'sub_port_id': 20711401, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13358547, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20711390,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20711378 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20711391,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20711379 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20711392,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20711380 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20711393,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20711381 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20711394,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20711382 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20711395,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20711383 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20711396,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20711384 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20711397,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20711385 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20711398,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20711386 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20711399,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20711387 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20711400,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20711388 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20711401,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20711389 lien utilise dans velours : https://www.fotonower.com/velours/20711390,20711391,20711392,20711393,20711394,20711395,20711396,20711397,20711398,20711399,20711400,20711401?tags=Teint_Dans_La_Masse,kraft,autre_refus,environnement,flou,Carton_brun,cartonnette,mal_croppe,metal,papier,Carton_gris,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20711349]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338760703, 1338760694, 1338760683, 1338760681, 1338760651, 1338760615, 1338760613, 1338760611] map_info['map_portfolio_photo'] : {20711349: [1338760703, 1338760694, 1338760683, 1338760681, 1338760651, 1338760615, 1338760613, 1338760611, 1338760534, 1338760531, 1338760490, 1338760488, 1338760253, 1338760245, 1338760236, 1338760233, 1338760231, 1338759852, 1338759725, 1338759632, 1338759486, 1338759344, 1338759342, 1338759309, 1338759301, 1338759293, 1338759279, 1338759267, 1338759264, 1338759262, 1338759256, 1338759251, 1338759249, 1338759226, 1338759224, 1338759222, 1338759220, 1338759206, 1338759204, 1338759201, 1338759198, 1338759196, 1338759194, 1338759161, 1338759159, 1338759157, 1338759155, 1338759153, 1338759133, 1338759131, 1338759128, 1338759125, 1338759118]} final : False mtd_id 4302 list_pids : [1338760703, 1338760694, 1338760683, 1338760681, 1338760651, 1338760615, 1338760613, 1338760611] Looping around the photos to save general results len do output : 1 /20711349. 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, '2603107') ('4302', '20711349', '1338760703', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760694', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760683', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760681', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760651', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760615', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760613', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760611', None, None, None, None, None, '2603107') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20711349', "{'Teint_Dans_La_Masse': 20711378, 'kraft': 20711379, 'autre_refus': 20711380, 'environnement': 20711381, 'flou': 20711382, 'Carton_brun': 20711383, 'cartonnette': 20711384, 'mal_croppe': 20711385, 'metal': 20711386, 'papier': 20711387, 'Carton_gris': 20711388, 'plastique': 20711389}", None, None, None, None, '2603107'), ('4302', '20711349', '1338760703', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760694', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760683', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760681', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760651', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760615', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760613', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760611', None, None, None, None, None, '2603107')] time used for this insertion : 0.012820243835449219 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.2141945362091064 time spend to save output : 0.013049125671386719 total time spend for step 1 : 3.227243661880493 step2:final Fri Feb 21 06:13:00 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 (20711349) 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 20711349 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338759133,1338759131,1338759128,1338759125,1338759118,1338759161,1338759159,1338759157,1338759155,1338759153,1338759206,1338759204,1338759201,1338759198,1338759196,1338759194,1338759226,1338759224,1338759222,1338759220,1338759267,1338759264,1338759262,1338759256,1338759251,1338759249,1338759309,1338759301,1338759293,1338759279,1338759852,1338759725,1338759632,1338759486,1338759344,1338759342,1338760253,1338760245,1338760236,1338760233,1338760231,1338760534,1338760531,1338760490,1338760488,1338760651,1338760615,1338760613,1338760611,1338760703,1338760694,1338760683,1338760681); 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([20711349]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ('0.046098212021837406',), 1338760611: ('0.046098212021837406',)} new output for save of step final : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ('0.046098212021837406',), 1338760611: ('0.046098212021837406',)} [1338760703, 1338760694, 1338760683, 1338760681, 1338760651, 1338760615, 1338760613, 1338760611] map_info['map_portfolio_photo'] : {20711349: [1338760703, 1338760694, 1338760683, 1338760681, 1338760651, 1338760615, 1338760613, 1338760611, 1338760534, 1338760531, 1338760490, 1338760488, 1338760253, 1338760245, 1338760236, 1338760233, 1338760231, 1338759852, 1338759725, 1338759632, 1338759486, 1338759344, 1338759342, 1338759309, 1338759301, 1338759293, 1338759279, 1338759267, 1338759264, 1338759262, 1338759256, 1338759251, 1338759249, 1338759226, 1338759224, 1338759222, 1338759220, 1338759206, 1338759204, 1338759201, 1338759198, 1338759196, 1338759194, 1338759161, 1338759159, 1338759157, 1338759155, 1338759153, 1338759133, 1338759131, 1338759128, 1338759125, 1338759118]} final : False mtd_id 4302 list_pids : [1338760703, 1338760694, 1338760683, 1338760681, 1338760651, 1338760615, 1338760613, 1338760611] Looping around the photos to save general results len do output : 8 /1338760703.Didn't retrieve data . /1338760694.Didn't retrieve data . /1338760683.Didn't retrieve data . /1338760681.Didn't retrieve data . /1338760651.Didn't retrieve data . /1338760615.Didn't retrieve data . /1338760613.Didn't retrieve data . /1338760611.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, '2603107') ('4302', '20711349', '1338760703', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760694', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760683', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760681', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760651', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760615', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760613', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760611', None, None, None, None, None, '2603107') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20711349', '1338760703', '0.046098212021837406', None, None, None, None, '2603107'), ('4302', '20711349', '1338760694', '0.046098212021837406', None, None, None, None, '2603107'), ('4302', '20711349', '1338760683', '0.046098212021837406', None, None, None, None, '2603107'), ('4302', '20711349', '1338760681', '0.046098212021837406', None, None, None, None, '2603107'), ('4302', '20711349', '1338760651', '0.046098212021837406', None, None, None, None, '2603107'), ('4302', '20711349', '1338760615', '0.046098212021837406', None, None, None, None, '2603107'), ('4302', '20711349', '1338760613', '0.046098212021837406', None, None, None, None, '2603107'), ('4302', '20711349', '1338760611', '0.046098212021837406', None, None, None, None, '2603107')] time used for this insertion : 0.013420343399047852 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07854819297790527 time spend to save output : 0.013886213302612305 total time spend for step 2 : 0.09243440628051758 step3:velours_tree Fri Feb 21 06:13:00 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 : {20711349: [{'Teint_Dans_La_Masse': 20711378, 'kraft': 20711379, 'autre_refus': 20711380, 'environnement': 20711381, 'flou': 20711382, 'Carton_brun': 20711383, 'cartonnette': 20711384, 'mal_croppe': 20711385, 'metal': 20711386, 'papier': 20711387, 'Carton_gris': 20711388, 'plastique': 20711389}]} input_args_next_step : {20711349: ()} output_args : {20711349: [{'Teint_Dans_La_Masse': 20711378, 'kraft': 20711379, 'autre_refus': 20711380, 'environnement': 20711381, 'flou': 20711382, 'Carton_brun': 20711383, 'cartonnette': 20711384, 'mal_croppe': 20711385, 'metal': 20711386, 'papier': 20711387, 'Carton_gris': 20711388, 'plastique': 20711389}]} args : 20711349 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 : ({'Teint_Dans_La_Masse': 20711378, 'kraft': 20711379, 'autre_refus': 20711380, 'environnement': 20711381, 'flou': 20711382, 'Carton_brun': 20711383, 'cartonnette': 20711384, 'mal_croppe': 20711385, 'metal': 20711386, 'papier': 20711387, 'Carton_gris': 20711388, 'plastique': 20711389},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20711349) 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([20711349]) 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.3181571960449219 time spend to save output : 5.2928924560546875e-05 total time spend for step 3 : 0.3182101249694824 step4:send_mail_cod Fri Feb 21 06:13:00 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 : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ('0.046098212021837406',), 1338760611: ('0.046098212021837406',)} input_args_next_step : {1338760703: ()} output_args : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ('0.046098212021837406',), 1338760611: ('0.046098212021837406',)} args : 1338760703 depend.output_id : 0 input_args_next_step : {1338760703: ('0.046098212021837406',), 1338760694: ()} output_args : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ('0.046098212021837406',), 1338760611: ('0.046098212021837406',)} args : 1338760694 depend.output_id : 0 input_args_next_step : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ()} output_args : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ('0.046098212021837406',), 1338760611: ('0.046098212021837406',)} args : 1338760683 depend.output_id : 0 input_args_next_step : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ()} output_args : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ('0.046098212021837406',), 1338760611: ('0.046098212021837406',)} args : 1338760681 depend.output_id : 0 input_args_next_step : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ()} output_args : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ('0.046098212021837406',), 1338760611: ('0.046098212021837406',)} args : 1338760651 depend.output_id : 0 input_args_next_step : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ()} output_args : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ('0.046098212021837406',), 1338760611: ('0.046098212021837406',)} args : 1338760615 depend.output_id : 0 input_args_next_step : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ()} output_args : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ('0.046098212021837406',), 1338760611: ('0.046098212021837406',)} args : 1338760613 depend.output_id : 0 input_args_next_step : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ('0.046098212021837406',), 1338760611: ()} output_args : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ('0.046098212021837406',), 1338760611: ('0.046098212021837406',)} args : 1338760611 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 : {20711349: [{'Teint_Dans_La_Masse': 20711378, 'kraft': 20711379, 'autre_refus': 20711380, 'environnement': 20711381, 'flou': 20711382, 'Carton_brun': 20711383, 'cartonnette': 20711384, 'mal_croppe': 20711385, 'metal': 20711386, 'papier': 20711387, 'Carton_gris': 20711388, 'plastique': 20711389}]} input_args_next_step : {1338760703: ('0.046098212021837406',), 1338760694: ('0.046098212021837406',), 1338760683: ('0.046098212021837406',), 1338760681: ('0.046098212021837406',), 1338760651: ('0.046098212021837406',), 1338760615: ('0.046098212021837406',), 1338760613: ('0.046098212021837406',), 1338760611: ('0.046098212021837406',), 20711349: ()} output_args : {20711349: [{'Teint_Dans_La_Masse': 20711378, 'kraft': 20711379, 'autre_refus': 20711380, 'environnement': 20711381, 'flou': 20711382, 'Carton_brun': 20711383, 'cartonnette': 20711384, 'mal_croppe': 20711385, 'metal': 20711386, 'papier': 20711387, 'Carton_gris': 20711388, 'plastique': 20711389}]} args : 20711349 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :9, first value : ('0.046098212021837406',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20711349) 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 (1338760703,1338760694,1338760683,1338760681,1338760651,1338760615,1338760613,1338760611) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338760611 begin to download photo : 1338760615 begin to download photo : 1338760681 begin to download photo : 1338760694 download finish for photo 1338760694 begin to download photo : 1338760703 download finish for photo 1338760681 begin to download photo : 1338760683 download finish for photo 1338760615 begin to download photo : 1338760651 download finish for photo 1338760611 begin to download photo : 1338760613 download finish for photo 1338760683 download finish for photo 1338760651 download finish for photo 1338760703 download finish for photo 1338760613 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P20711349_21-02-2025_06_13_01.pdf 20711379 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=20711379 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338759836: '1740114331_3732462_1338759194_6290d3212f7f719e7f4a71f554519f36_rle_crop_3681622655_0.png', 1338760675: '1740114532_3740074_1338759194_6290d3212f7f719e7f4a71f554519f36_rle_crop_3681622655_0.png', 1338760699: '1740114553_3740937_1338759309_e8a33d8d46bb775ed780fa58b4d77c45_rle_crop_3681624838_0.png', 1338760719: '1740114593_3741860_1338759344_4ae502c3b022b54d8e9c19994baa9965_rle_crop_3681625258_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d18c3a3f5f908cecd00de4ebee646e5e_59917714.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d18c3a3f5f908cecd00de4ebee646e5e_38605878.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e1960a61839aa154d1af462033fd8bcd_83051380.png change filename to text .imagette207113791740114781/ imagette207113791740114781/1740114553_3740937_1338759309_e8a33d8d46bb775ed780fa58b4d77c45_rle_crop_3681624838_0.png.png imagette207113791740114781/1740114532_3740074_1338759194_6290d3212f7f719e7f4a71f554519f36_rle_crop_3681622655_0.png.png imagette207113791740114781/1740114331_3732462_1338759194_6290d3212f7f719e7f4a71f554519f36_rle_crop_3681622655_0.png.png imagette207113791740114781/1740114593_3741860_1338759344_4ae502c3b022b54d8e9c19994baa9965_rle_crop_3681625258_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/cb97e3b849fc77a99299aad9978b168e_74873785.png imagette207113791740114781 20711380 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=20711380 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338760604: '1740114514_3739812_1338759264_b268ff5121e43c8d50943092749f0fd8_rle_crop_3681624094_0.png', 1338760665: '1740114532_3740074_1338759226_568337b35adf1b869e9072f36d14801f_rle_crop_3681624489_0.png', 1338760678: '1740114573_3741391_1338759279_2850983b7a690dacf76165609523ffff_rle_crop_3681625072_0.png', 1338760687: '1740114553_3740937_1338759264_b268ff5121e43c8d50943092749f0fd8_rle_crop_3681624094_0.png', 1338760708: '1740114593_3741860_1338759344_4ae502c3b022b54d8e9c19994baa9965_rle_crop_3681625261_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/fd1cb43e893a55d12e6349df0cf0551e_21275807.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/26f92a7672e221479d95a9ae3c29dbeb_77928571.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4b759360e6c872a3288791f3904c65d5_41843053.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/fd1cb43e893a55d12e6349df0cf0551e_98399390.png change filename to text .imagette207113801740114781/ imagette207113801740114781/1740114514_3739812_1338759264_b268ff5121e43c8d50943092749f0fd8_rle_crop_3681624094_0.png.png imagette207113801740114781/1740114532_3740074_1338759226_568337b35adf1b869e9072f36d14801f_rle_crop_3681624489_0.png.png imagette207113801740114781/1740114593_3741860_1338759344_4ae502c3b022b54d8e9c19994baa9965_rle_crop_3681625261_0.png.png imagette207113801740114781/1740114553_3740937_1338759264_b268ff5121e43c8d50943092749f0fd8_rle_crop_3681624094_0.png.png imagette207113801740114781/1740114573_3741391_1338759279_2850983b7a690dacf76165609523ffff_rle_crop_3681625072_0.png.png imagette207113821740114781/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b86befa36dcceee1a5701c505622ef43_73079728.png imagette207113801740114781 20711382 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=20711382 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207113821740114781 20711384 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=20711384 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338759719: '1740114331_3732462_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622128_0.png', 1338759721: '1740114331_3732462_1338759198_02dd5347f51bd5780f0f71dca09b3b9d_rle_crop_3681622404_0.png', 1338760585: '1740114497_3738919_1338759220_6942ed9d083345ea9c9ed3199a931afb_rle_crop_3681624075_0.png', 1338760608: '1740114514_3739812_1338759256_bec15b04d6d66ed7d9711195a28c876a_rle_crop_3681624146_0.png', 1338760670: '1740114532_3740074_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622128_0.png', 1338760671: '1740114532_3740074_1338759198_02dd5347f51bd5780f0f71dca09b3b9d_rle_crop_3681622404_0.png', 1338760691: '1740114553_3740937_1338759256_bec15b04d6d66ed7d9711195a28c876a_rle_crop_3681624146_0.png', 1338760701: '1740114612_3742314_1338759220_6942ed9d083345ea9c9ed3199a931afb_rle_crop_3681624075_0.png', 1338760712: '1740114593_3741860_1338759486_c53768dd3e93c1fca98649c1a94a8c1c_rle_crop_3681625215_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/cc4a935f947c3d3cc66e8db546c36746_72650199.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4407ca002273c129ab675366cc1099f9_7405178.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c8f545d42924e073efcd3aa24c51b98c_99937322.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c92ae6533d8395b74a46646c58e0b1e9_72931444.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/cc4a935f947c3d3cc66e8db546c36746_14108237.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4407ca002273c129ab675366cc1099f9_84545032.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/74913254ad432b0474ffa85c0e2b27bb_47235968.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c8f545d42924e073efcd3aa24c51b98c_99384417.png change filename to text .imagette207113841740114781/ imagette207113841740114781/1740114553_3740937_1338759256_bec15b04d6d66ed7d9711195a28c876a_rle_crop_3681624146_0.png.png imagette207113841740114781/1740114331_3732462_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622128_0.png.png imagette207113841740114781/1740114331_3732462_1338759198_02dd5347f51bd5780f0f71dca09b3b9d_rle_crop_3681622404_0.png.png imagette207113841740114781/1740114612_3742314_1338759220_6942ed9d083345ea9c9ed3199a931afb_rle_crop_3681624075_0.png.png imagette207113841740114781/1740114532_3740074_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622128_0.png.png imagette207113841740114781/1740114593_3741860_1338759486_c53768dd3e93c1fca98649c1a94a8c1c_rle_crop_3681625215_0.png.png imagette207113841740114781/1740114497_3738919_1338759220_6942ed9d083345ea9c9ed3199a931afb_rle_crop_3681624075_0.png.png imagette207113841740114781/1740114514_3739812_1338759256_bec15b04d6d66ed7d9711195a28c876a_rle_crop_3681624146_0.png.png imagette207113841740114781/1740114532_3740074_1338759198_02dd5347f51bd5780f0f71dca09b3b9d_rle_crop_3681622404_0.png.png imagette207113851740114782/ imagette207113861740114782/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/a147c6afc4de108a213a31c1c16dcdb7_625166.png imagette207113841740114781 20711385 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=20711385 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207113851740114782 20711386 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=20711386 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207113861740114782 20711389 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=20711389 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338759797: '1740114331_3732462_1338759196_b124d72e26486a8d178a60af4c008463_rle_crop_3681622617_0.png', 1338759799: '1740114331_3732462_1338759194_6290d3212f7f719e7f4a71f554519f36_rle_crop_3681622659_0.png', 1338760019: '1740114352_3732864_1338759159_b134a2b710be7c22672605a4305c3d45_rle_crop_3681622636_0.png', 1338760586: '1740114497_3738919_1338759220_6942ed9d083345ea9c9ed3199a931afb_rle_crop_3681624077_0.png', 1338760673: '1740114532_3740074_1338759196_b124d72e26486a8d178a60af4c008463_rle_crop_3681622617_0.png', 1338760674: '1740114532_3740074_1338759194_6290d3212f7f719e7f4a71f554519f36_rle_crop_3681622659_0.png', 1338760704: '1740114612_3742314_1338759220_6942ed9d083345ea9c9ed3199a931afb_rle_crop_3681624077_0.png', 1338760716: '1740114593_3741860_1338759632_45f46152dec0d746dede5a24e653adce_rle_crop_3681625180_0.png', 1338760717: '1740114593_3741860_1338759632_45f46152dec0d746dede5a24e653adce_rle_crop_3681625185_0.png', 1338760718: '1740114593_3741860_1338759342_aa97679df9cf5dad2cdc8326dfca9147_rle_crop_3681625282_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/258daf3b0cf80f4b7efc21dbf476cc47_42202272.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/93234cdd03dac48bf48a6d20157272a3_57206980.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c489730078f3632566ad41233dfd6179_96793752.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/166c4a0258c18c8221521fd907e4c28d_92686876.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/258daf3b0cf80f4b7efc21dbf476cc47_1215269.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/93234cdd03dac48bf48a6d20157272a3_77041065.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/166c4a0258c18c8221521fd907e4c28d_93682396.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3f9fca0814f7f6b6bfbdc7a181ee1cde_99058157.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/f2fa1af9b509f4e2c624e55cf675a872_34761807.png change filename to text .imagette207113891740114782/ imagette207113891740114782/1740114532_3740074_1338759196_b124d72e26486a8d178a60af4c008463_rle_crop_3681622617_0.png.png imagette207113891740114782/1740114593_3741860_1338759342_aa97679df9cf5dad2cdc8326dfca9147_rle_crop_3681625282_0.png.png imagette207113891740114782/1740114331_3732462_1338759196_b124d72e26486a8d178a60af4c008463_rle_crop_3681622617_0.png.png imagette207113891740114782/1740114331_3732462_1338759194_6290d3212f7f719e7f4a71f554519f36_rle_crop_3681622659_0.png.png imagette207113891740114782/1740114532_3740074_1338759194_6290d3212f7f719e7f4a71f554519f36_rle_crop_3681622659_0.png.png imagette207113891740114782/1740114593_3741860_1338759632_45f46152dec0d746dede5a24e653adce_rle_crop_3681625185_0.png.png imagette207113891740114782/1740114497_3738919_1338759220_6942ed9d083345ea9c9ed3199a931afb_rle_crop_3681624077_0.png.png imagette207113891740114782/1740114352_3732864_1338759159_b134a2b710be7c22672605a4305c3d45_rle_crop_3681622636_0.png.png imagette207113891740114782/1740114593_3741860_1338759632_45f46152dec0d746dede5a24e653adce_rle_crop_3681625180_0.png.png imagette207113891740114782/1740114612_3742314_1338759220_6942ed9d083345ea9c9ed3199a931afb_rle_crop_3681624077_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/65fe7ab1317de5aa12194f106c8da1b5_42242022.png imagette207113891740114782 20711378 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=20711378 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338760661: '1740114532_3740074_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622135_0.png', 1338760707: '1740114593_3741860_1338759632_45f46152dec0d746dede5a24e653adce_rle_crop_3681625192_0.png', 1338760706: '1740114593_3741860_1338759725_34bfb49aa5c23ed2159f8cc8b6e242d0_rle_crop_3681625130_0.png', 1338760698: '1740114612_3742314_1338759267_35920137f7f1f385aea264695e14e6a8_rle_crop_3681623819_0.png', 1338760697: '1740114612_3742314_1338759267_35920137f7f1f385aea264695e14e6a8_rle_crop_3681623809_0.png', 1338760686: '1740114553_3740937_1338759264_b268ff5121e43c8d50943092749f0fd8_rle_crop_3681624106_0.png', 1338760685: '1740114553_3740937_1338759309_e8a33d8d46bb775ed780fa58b4d77c45_rle_crop_3681624842_0.png', 1338760664: '1740114532_3740074_1338759196_b124d72e26486a8d178a60af4c008463_rle_crop_3681622616_0.png', 1338760663: '1740114532_3740074_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622134_0.png', 1338760662: '1740114532_3740074_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622131_0.png', 1338759597: '1740114331_3732462_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622135_0.png', 1338760660: '1740114532_3740074_1338759226_568337b35adf1b869e9072f36d14801f_rle_crop_3681624490_0.png', 1338760598: '1740114514_3739812_1338759264_b268ff5121e43c8d50943092749f0fd8_rle_crop_3681624106_0.png', 1338760541: '1740114497_3738919_1338759267_35920137f7f1f385aea264695e14e6a8_rle_crop_3681623819_0.png', 1338760539: '1740114497_3738919_1338759267_35920137f7f1f385aea264695e14e6a8_rle_crop_3681623809_0.png', 1338759850: '1740114352_3732864_1338759159_b134a2b710be7c22672605a4305c3d45_rle_crop_3681622626_0.png', 1338759603: '1740114331_3732462_1338759196_b124d72e26486a8d178a60af4c008463_rle_crop_3681622616_0.png', 1338759601: '1740114331_3732462_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622134_0.png', 1338759599: '1740114331_3732462_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622131_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4b723fe24e5077eb08ba218e457db00b_29154747.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e20ac883a3378d7b665661e4367865d7_42312973.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/0075ccd567916383f9f9c998f6625f03_39800721.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/fe651bb39971469ca5dc469032683e63_22387474.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2a5c17648f3e25b8b83afd212f2cfc43_911777.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/6d1d91d90b6694f6a2671b4db9c99a75_80444457.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/0babeb3beca78464e37dfe643d7eb464_26829639.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/6e9bb015481aad9284082db98e93454e_35302045.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/dad99356f68617247cbceadc4b6d0d77_75098397.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ec6cb72cc28c3858ddfa943be9aa8680_6356164.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4b723fe24e5077eb08ba218e457db00b_62568066.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/0690b59816092b0dac0a682e73c07279_58889154.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/6d1d91d90b6694f6a2671b4db9c99a75_96264840.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/fe651bb39971469ca5dc469032683e63_55190474.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2a5c17648f3e25b8b83afd212f2cfc43_22114233.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e6f90953f2b5a8e575ef2e876ead9326_46771243.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/6e9bb015481aad9284082db98e93454e_62998407.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/e5b4d1a50458251a981f956f7c066c72_16866445.png change filename to text .imagette207113781740114783/ imagette207113781740114783/1740114532_3740074_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622135_0.png.png imagette207113781740114783/1740114553_3740937_1338759309_e8a33d8d46bb775ed780fa58b4d77c45_rle_crop_3681624842_0.png.png imagette207113781740114783/1740114497_3738919_1338759267_35920137f7f1f385aea264695e14e6a8_rle_crop_3681623809_0.png.png imagette207113781740114783/1740114497_3738919_1338759267_35920137f7f1f385aea264695e14e6a8_rle_crop_3681623819_0.png.png imagette207113781740114783/1740114612_3742314_1338759267_35920137f7f1f385aea264695e14e6a8_rle_crop_3681623809_0.png.png imagette207113781740114783/1740114331_3732462_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622135_0.png.png imagette207113781740114783/1740114553_3740937_1338759264_b268ff5121e43c8d50943092749f0fd8_rle_crop_3681624106_0.png.png imagette207113781740114783/1740114331_3732462_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622131_0.png.png imagette207113781740114783/1740114593_3741860_1338759632_45f46152dec0d746dede5a24e653adce_rle_crop_3681625192_0.png.png imagette207113781740114783/1740114532_3740074_1338759196_b124d72e26486a8d178a60af4c008463_rle_crop_3681622616_0.png.png imagette207113781740114783/1740114331_3732462_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622134_0.png.png imagette207113781740114783/1740114352_3732864_1338759159_b134a2b710be7c22672605a4305c3d45_rle_crop_3681622626_0.png.png imagette207113781740114783/1740114331_3732462_1338759196_b124d72e26486a8d178a60af4c008463_rle_crop_3681622616_0.png.png imagette207113781740114783/1740114532_3740074_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622131_0.png.png imagette207113781740114783/1740114532_3740074_1338759226_568337b35adf1b869e9072f36d14801f_rle_crop_3681624490_0.png.png imagette207113781740114783/1740114532_3740074_1338759201_a91c61a0e055fa579420a726110a363a_rle_crop_3681622134_0.png.png imagette207113781740114783/1740114612_3742314_1338759267_35920137f7f1f385aea264695e14e6a8_rle_crop_3681623819_0.png.png imagette207113781740114783/1740114514_3739812_1338759264_b268ff5121e43c8d50943092749f0fd8_rle_crop_3681624106_0.png.png imagette207113781740114783/1740114593_3741860_1338759725_34bfb49aa5c23ed2159f8cc8b6e242d0_rle_crop_3681625130_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ec6cb72cc28c3858ddfa943be9aa8680_8098525.png imagette207113781740114783 20711383 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=20711383 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338759736: '1740114331_3732462_1338759196_b124d72e26486a8d178a60af4c008463_rle_crop_3681622615_0.png', 1338759977: '1740114352_3732864_1338759159_b134a2b710be7c22672605a4305c3d45_rle_crop_3681622650_0.png', 1338759979: '1740114352_3732864_1338759159_b134a2b710be7c22672605a4305c3d45_rle_crop_3681622644_0.png', 1338759981: '1740114352_3732864_1338759159_b134a2b710be7c22672605a4305c3d45_rle_crop_3681622645_0.png', 1338759983: '1740114352_3732864_1338759159_b134a2b710be7c22672605a4305c3d45_rle_crop_3681622633_0.png', 1338760609: '1740114514_3739812_1338759256_bec15b04d6d66ed7d9711195a28c876a_rle_crop_3681624149_0.png', 1338760610: '1740114514_3739812_1338759251_f024287fc574cfbbb05b6daaf428bdec_rle_crop_3681624353_0.png', 1338760672: '1740114532_3740074_1338759196_b124d72e26486a8d178a60af4c008463_rle_crop_3681622615_0.png', 1338760695: '1740114553_3740937_1338759256_bec15b04d6d66ed7d9711195a28c876a_rle_crop_3681624149_0.png', 1338760696: '1740114553_3740937_1338759251_f024287fc574cfbbb05b6daaf428bdec_rle_crop_3681624353_0.png', 1338760713: '1740114593_3741860_1338759344_4ae502c3b022b54d8e9c19994baa9965_rle_crop_3681625259_0.png', 1338760714: '1740114593_3741860_1338759342_aa97679df9cf5dad2cdc8326dfca9147_rle_crop_3681625286_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3b696d63e550318452aec44780b2d910_25183322.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d85435002920dd43334c565a1c85e9bb_43329667.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/476c094baf323e6f5c6da3ff2d34e503_72796976.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/8d1d5f9cb72b7ba98d8eeaf02e953d11_52246099.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/11ced742220533474204d58adfc5400e_17106650.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1f3a99cbe8d8374851ee1a88e68b14fb_43903812.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/28605c933d5ab8ef29f80658b598987b_6698222.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3b696d63e550318452aec44780b2d910_31015988.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1f3a99cbe8d8374851ee1a88e68b14fb_62719052.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/28605c933d5ab8ef29f80658b598987b_79869798.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/766188e81e3072603caca23dcd452829_2522330.png change filename to text .imagette207113831740114784/ imagette207113831740114784/1740114593_3741860_1338759344_4ae502c3b022b54d8e9c19994baa9965_rle_crop_3681625259_0.png.png imagette207113831740114784/1740114514_3739812_1338759256_bec15b04d6d66ed7d9711195a28c876a_rle_crop_3681624149_0.png.png imagette207113831740114784/1740114593_3741860_1338759342_aa97679df9cf5dad2cdc8326dfca9147_rle_crop_3681625286_0.png.png imagette207113831740114784/1740114532_3740074_1338759196_b124d72e26486a8d178a60af4c008463_rle_crop_3681622615_0.png.png imagette207113831740114784/1740114553_3740937_1338759256_bec15b04d6d66ed7d9711195a28c876a_rle_crop_3681624149_0.png.png imagette207113831740114784/1740114352_3732864_1338759159_b134a2b710be7c22672605a4305c3d45_rle_crop_3681622633_0.png.png imagette207113831740114784/1740114553_3740937_1338759251_f024287fc574cfbbb05b6daaf428bdec_rle_crop_3681624353_0.png.png imagette207113831740114784/1740114331_3732462_1338759196_b124d72e26486a8d178a60af4c008463_rle_crop_3681622615_0.png.png imagette207113831740114784/1740114352_3732864_1338759159_b134a2b710be7c22672605a4305c3d45_rle_crop_3681622644_0.png.png imagette207113831740114784/1740114514_3739812_1338759251_f024287fc574cfbbb05b6daaf428bdec_rle_crop_3681624353_0.png.png imagette207113831740114784/1740114352_3732864_1338759159_b134a2b710be7c22672605a4305c3d45_rle_crop_3681622650_0.png.png imagette207113831740114784/1740114352_3732864_1338759159_b134a2b710be7c22672605a4305c3d45_rle_crop_3681622645_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b117b9e38346aa109dcf62c23465b6db_4025339.png imagette207113831740114784 20711388 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=20711388 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338760666: '1740114532_3740074_1338759204_f39f2807d28fe81bddf0241a3edfd3e5_rle_crop_3681622078_0.png', 1338760711: '1740114593_3741860_1338759632_45f46152dec0d746dede5a24e653adce_rle_crop_3681625190_0.png', 1338760710: '1740114593_3741860_1338759632_45f46152dec0d746dede5a24e653adce_rle_crop_3681625184_0.png', 1338760700: '1740114612_3742314_1338759267_35920137f7f1f385aea264695e14e6a8_rle_crop_3681623815_0.png', 1338760690: '1740114553_3740937_1338759251_f024287fc574cfbbb05b6daaf428bdec_rle_crop_3681624345_0.png', 1338760689: '1740114553_3740937_1338759262_5caf630e1848940f673fa720d7c08224_rle_crop_3681624113_0.png', 1338760688: '1740114553_3740937_1338759264_b268ff5121e43c8d50943092749f0fd8_rle_crop_3681624095_0.png', 1338760679: '1740114573_3741391_1338759279_2850983b7a690dacf76165609523ffff_rle_crop_3681625074_0.png', 1338760669: '1740114532_3740074_1338759194_6290d3212f7f719e7f4a71f554519f36_rle_crop_3681622657_0.png', 1338760668: '1740114532_3740074_1338759198_02dd5347f51bd5780f0f71dca09b3b9d_rle_crop_3681622406_0.png', 1338760667: '1740114532_3740074_1338759198_02dd5347f51bd5780f0f71dca09b3b9d_rle_crop_3681622405_0.png', 1338759654: '1740114331_3732462_1338759204_f39f2807d28fe81bddf0241a3edfd3e5_rle_crop_3681622078_0.png', 1338760607: '1740114514_3739812_1338759251_f024287fc574cfbbb05b6daaf428bdec_rle_crop_3681624345_0.png', 1338760606: '1740114514_3739812_1338759262_5caf630e1848940f673fa720d7c08224_rle_crop_3681624113_0.png', 1338760605: '1740114514_3739812_1338759264_b268ff5121e43c8d50943092749f0fd8_rle_crop_3681624095_0.png', 1338760548: '1740114497_3738919_1338759267_35920137f7f1f385aea264695e14e6a8_rle_crop_3681623815_0.png', 1338759910: '1740114352_3732864_1338759206_9ff115c223d089064c07d0f4bd95127a_rle_crop_3681622163_0.png', 1338759908: '1740114352_3732864_1338759206_9ff115c223d089064c07d0f4bd95127a_rle_crop_3681622169_0.png', 1338759906: '1740114352_3732864_1338759206_9ff115c223d089064c07d0f4bd95127a_rle_crop_3681622164_0.png', 1338759660: '1740114331_3732462_1338759194_6290d3212f7f719e7f4a71f554519f36_rle_crop_3681622657_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/062c11b57d7e596eeac6bf414861e115_27264880.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1204f49c87927826cddf82db0d86d58b_79276736.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3b5aaec7047f3c970b517a87524cc15d_34739825.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4633c16b10f8d6db0e1ca13ac8aeb46d_88132639.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c03169ec73774fe77026ec7f47a4163a_42171614.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/cb451b88d243e7cd225a55f4fbc2f12b_38777446.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/9b9de5cc8a2d084ed52a2060809abf4d_3432055.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b23c6906412a2ea5fcdb8bec26ed5147_38736868.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/58884b51b4efa648f3c4a85c40d1a6eb_1122408.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/095290a2e809cc50d15f8c22c087a1ea_46173877.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3ef22d40658a02e5f9f8793e7c41c7f4_36700627.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/062c11b57d7e596eeac6bf414861e115_23585336.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c03169ec73774fe77026ec7f47a4163a_14233734.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/cb451b88d243e7cd225a55f4fbc2f12b_83370334.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/9b9de5cc8a2d084ed52a2060809abf4d_51333020.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4633c16b10f8d6db0e1ca13ac8aeb46d_72289718.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/2ab1ed343c1285cd54875821d8a59ac5_27357382.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/24021e70547ca40f8c4af1bdcefd6850_91133390.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/301455376e14acb88892d2fc531ecdc6_3560552.png change filename to text .imagette207113881740114784/ imagette207113881740114784/1740114573_3741391_1338759279_2850983b7a690dacf76165609523ffff_rle_crop_3681625074_0.png.png imagette207113881740114784/1740114352_3732864_1338759206_9ff115c223d089064c07d0f4bd95127a_rle_crop_3681622169_0.png.png imagette207113881740114784/1740114532_3740074_1338759194_6290d3212f7f719e7f4a71f554519f36_rle_crop_3681622657_0.png.png imagette207113881740114784/1740114514_3739812_1338759264_b268ff5121e43c8d50943092749f0fd8_rle_crop_3681624095_0.png.png imagette207113881740114784/1740114553_3740937_1338759262_5caf630e1848940f673fa720d7c08224_rle_crop_3681624113_0.png.png imagette207113881740114784/1740114352_3732864_1338759206_9ff115c223d089064c07d0f4bd95127a_rle_crop_3681622164_0.png.png imagette207113881740114784/1740114532_3740074_1338759198_02dd5347f51bd5780f0f71dca09b3b9d_rle_crop_3681622406_0.png.png imagette207113881740114784/1740114532_3740074_1338759204_f39f2807d28fe81bddf0241a3edfd3e5_rle_crop_3681622078_0.png.png imagette207113881740114784/1740114514_3739812_1338759262_5caf630e1848940f673fa720d7c08224_rle_crop_3681624113_0.png.png imagette207113881740114784/1740114553_3740937_1338759264_b268ff5121e43c8d50943092749f0fd8_rle_crop_3681624095_0.png.png imagette207113881740114784/1740114331_3732462_1338759194_6290d3212f7f719e7f4a71f554519f36_rle_crop_3681622657_0.png.png imagette207113881740114784/1740114352_3732864_1338759206_9ff115c223d089064c07d0f4bd95127a_rle_crop_3681622163_0.png.png imagette207113881740114784/1740114497_3738919_1338759267_35920137f7f1f385aea264695e14e6a8_rle_crop_3681623815_0.png.png imagette207113881740114784/1740114612_3742314_1338759267_35920137f7f1f385aea264695e14e6a8_rle_crop_3681623815_0.png.png imagette207113881740114784/1740114593_3741860_1338759632_45f46152dec0d746dede5a24e653adce_rle_crop_3681625190_0.png.png imagette207113881740114784/1740114593_3741860_1338759632_45f46152dec0d746dede5a24e653adce_rle_crop_3681625184_0.png.png imagette207113881740114784/1740114532_3740074_1338759198_02dd5347f51bd5780f0f71dca09b3b9d_rle_crop_3681622405_0.png.png imagette207113881740114784/1740114331_3732462_1338759204_f39f2807d28fe81bddf0241a3edfd3e5_rle_crop_3681622078_0.png.png imagette207113881740114784/1740114514_3739812_1338759251_f024287fc574cfbbb05b6daaf428bdec_rle_crop_3681624345_0.png.png imagette207113881740114784/1740114553_3740937_1338759251_f024287fc574cfbbb05b6daaf428bdec_rle_crop_3681624345_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/58884b51b4efa648f3c4a85c40d1a6eb_19885506.png imagette207113881740114784 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20711349 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20711390,20711391,20711392,20711393,20711394,20711395,20711396,20711397,20711398,20711399,20711400,20711401?tags=Teint_Dans_La_Masse,kraft,autre_refus,environnement,flou,Carton_brun,cartonnette,mal_croppe,metal,papier,Carton_gris,plastique your option no_mail is active, we will not send the real mail to your client args[1338760703] : ('0.046098212021837406',) no score found for photo 1338760703 We are sending mail with results at report@fotonower.com args[1338760694] : ('0.046098212021837406',) no score found for photo 1338760694 We are sending mail with results at report@fotonower.com args[1338760683] : ('0.046098212021837406',) no score found for photo 1338760683 We are sending mail with results at report@fotonower.com args[1338760681] : ('0.046098212021837406',) no score found for photo 1338760681 We are sending mail with results at report@fotonower.com args[1338760651] : ('0.046098212021837406',) no score found for photo 1338760651 We are sending mail with results at report@fotonower.com args[1338760615] : ('0.046098212021837406',) no score found for photo 1338760615 We are sending mail with results at report@fotonower.com args[1338760613] : ('0.046098212021837406',) no score found for photo 1338760613 We are sending mail with results at report@fotonower.com args[1338760611] : ('0.046098212021837406',) no score found for photo 1338760611 We are sending mail with results at report@fotonower.com refus_total : 0.046098212021837406 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=20711349 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_P20711349_21-02-2025_06_13_01.pdf results_Auto_P20711349_21-02-2025_06_13_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20711349_21-02-2025_06_13_01.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','20711349','results_Auto_P20711349_21-02-2025_06_13_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20711349_21-02-2025_06_13_01.pdf','pdf','','0.24','0.046098212021837406') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20711349]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338760703, 1338760694, 1338760683, 1338760681, 1338760651, 1338760615, 1338760613, 1338760611] map_info['map_portfolio_photo'] : {20711349: [1338760703, 1338760694, 1338760683, 1338760681, 1338760651, 1338760615, 1338760613, 1338760611, 1338760534, 1338760531, 1338760490, 1338760488, 1338760253, 1338760245, 1338760236, 1338760233, 1338760231, 1338759852, 1338759725, 1338759632, 1338759486, 1338759344, 1338759342, 1338759309, 1338759301, 1338759293, 1338759279, 1338759267, 1338759264, 1338759262, 1338759256, 1338759251, 1338759249, 1338759226, 1338759224, 1338759222, 1338759220, 1338759206, 1338759204, 1338759201, 1338759198, 1338759196, 1338759194, 1338759161, 1338759159, 1338759157, 1338759155, 1338759153, 1338759133, 1338759131, 1338759128, 1338759125, 1338759118]} final : False mtd_id 4302 list_pids : [1338760703, 1338760694, 1338760683, 1338760681, 1338760651, 1338760615, 1338760613, 1338760611] 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, '2603107') ('4302', '20711349', '1338760703', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760694', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760683', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760681', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760651', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760615', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760613', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760611', None, None, None, None, None, '2603107') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20711349', '1338760703', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760694', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760683', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760681', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760651', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760615', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760613', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760611', None, None, None, None, None, '2603107')] time used for this insertion : 0.09180808067321777 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.659352779388428 time spend to save output : 0.09214401245117188 total time spend for step 4 : 6.7514967918396 step5:split_time_score Fri Feb 21 06:13:07 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 : ['20711349'] 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 : [('20711349',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20711349) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338760681: {'path': 'temp/1740114780_1275479_1338760681_c40d5e3825936bba730aea5457c15687.jpg', 'extension': 'jpg'}, 1338760683: {'path': 'temp/1740114780_1275479_1338760683_3035ee924de25a63eb0552de06687e42.jpg', 'extension': 'jpg'}, 1338760615: {'path': 'temp/1740114780_1275479_1338760615_b5f2d535f37244aa470be06b7f61f24b.jpg', 'extension': 'jpg'}, 1338760651: {'path': 'temp/1740114780_1275479_1338760651_f20c37f9502e86641fb4d788ac4fc2e1.jpg', 'extension': 'jpg'}, 1338760694: {'path': 'temp/1740114780_1275479_1338760694_f441c53f2c0269b55eec3954dc9cffc6.jpg', 'extension': 'jpg'}, 1338760703: {'path': 'temp/1740114780_1275479_1338760703_0c53e0fc258430ed9364efe43011270f.jpg', 'extension': 'jpg'}, 1338760611: {'path': 'temp/1740114780_1275479_1338760611_a2963fb6c9c4ee63ae285c64bef080f4.jpg', 'extension': 'jpg'}, 1338760613: {'path': 'temp/1740114780_1275479_1338760613_7fc2388d8a5415c8fd1de48c337b4cff.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 = 20711349; (('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 = 20711349 group by h (('06', 53),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20711349 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 (20711349) 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 (20711349) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21022025 20711349 Nombre de photos uploadées : 53 / 23040 (0%) 21022025 20711349 Nombre de photos taguées (types de déchets): 0 / 53 (0%) 21022025 20711349 Nombre de photos taguées (volume) : 0 / 53 (0%) [{'photo_id': 1338759133, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ff3f808baa8b6b76385f99dac7aaec6d.jpg', 'username': None, 'uploaded_at': 1740114083, 'text': 'image_21022025_06_00_04_10132.jpg'}, {'photo_id': 1338759131, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/5af7579b316d50449d799bbff6dd6b97.jpg', 'username': None, 'uploaded_at': 1740114083, 'text': 'image_21022025_06_00_14_10135.jpg'}, {'photo_id': 1338759128, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/61a0fc013e082d9944db3f63e728f267.jpg', 'username': None, 'uploaded_at': 1740114083, 'text': 'image_21022025_06_00_24_10138.jpg'}, {'photo_id': 1338759125, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/3c26d30591a97c276f59447b552a7e5a.jpg', 'username': None, 'uploaded_at': 1740114083, 'text': 'image_21022025_06_00_34_9169.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0021860599517822266 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20711349, '2025-02-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1615145,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021727561950683594 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= 1615145 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1615145, 'dashboard_run_id': 1623421, 'mtr_portfolio_id': 20709857, 'dashboard_result_id': 8997291, '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_P20709857_21-02-2025_05_59_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20709860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20709861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20709862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20709863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20709864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20709865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20709866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20709867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20709868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20709869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20709870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20709871, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1623421, 'mtr_portfolio_id': 20710337, 'dashboard_result_id': 8997292, '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_P20710337_21-02-2025_05_49_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20710339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710350, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1623421, 'mtr_portfolio_id': 20710851, 'dashboard_result_id': 8997293, '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_P20710851_21-02-2025_06_03_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20710860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710864, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1623421, 'mtr_portfolio_id': 20711349, 'dashboard_result_id': 8997294, '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_P20711349_21-02-2025_06_11_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20711378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20711379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20711380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20711381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20711382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20711383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20711384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20711385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20711386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20711387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20711388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20711389, '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 = 20709857 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': 2603001, 'mtr_portfolio_id': 20709857, 'created_at': datetime.datetime(2025, 2, 21, 5, 59, 29), 'result': '0.04771296609820369', 'result_long': None, 'result_double': None}] Qualite : 0.04771296609820369 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20709857 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20709857_21-02-2025_05_59_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20709857 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_P20709857_21-02-2025_05_59_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20709860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20709861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20709862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20709863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20709864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20709865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20709866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20709867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20709868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20709869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20709870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20709871, 'pht': 3726}}" where mtr_portfolio_id = 20709857 and dashboard_run_id = 1623421 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`=20709857 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8997291, 0.04771296609820369, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20709857_21-02-2025_05_59_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20709860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20709861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20709862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20709863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20709864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20709865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20709866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20709867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20709868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20709869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20709870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20709871, '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 = 20710337 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': 2603028, 'mtr_portfolio_id': 20710337, 'created_at': datetime.datetime(2025, 2, 21, 5, 49, 27), 'result': '0.039246491791450545', 'result_long': None, 'result_double': None}] Qualite : 0.039246491791450545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20710337 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20710337_21-02-2025_05_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20710337 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_P20710337_21-02-2025_05_49_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20710339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710350, 'pht': 3726}}" where mtr_portfolio_id = 20710337 and dashboard_run_id = 1623421 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`=20710337 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8997292, 0.039246491791450545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20710337_21-02-2025_05_49_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20710339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710350, '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 = 20710851 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': 2603058, 'mtr_portfolio_id': 20710851, 'created_at': datetime.datetime(2025, 2, 21, 6, 3, 1), 'result': '0.04291334710113117', 'result_long': None, 'result_double': None}] Qualite : 0.04291334710113117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20710851 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20710851_21-02-2025_06_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20710851 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_P20710851_21-02-2025_06_03_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20710860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710864, 'pht': 3726}}" where mtr_portfolio_id = 20710851 and dashboard_run_id = 1623421 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`=20710851 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8997293, 0.04291334710113117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20710851_21-02-2025_06_03_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20710860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710864, '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 = 20711349 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': 2603107, 'mtr_portfolio_id': 20711349, 'created_at': datetime.datetime(2025, 2, 21, 6, 13), 'result': '0.046098212021837406', 'result_long': None, 'result_double': None}] Qualite : 0.046098212021837406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20711349 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20711349_21-02-2025_06_13_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20711349 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_P20711349_21-02-2025_06_13_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20711378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20711379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20711380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20711381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20711382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20711383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20711384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20711385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20711386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20711387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20711388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20711389, 'pht': 3726}}" where mtr_portfolio_id = 20711349 and dashboard_run_id = 1623421 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`=20711349 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8997294, 0.046098212021837406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20711349_21-02-2025_06_13_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20711378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20711379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20711380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20711381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20711382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20711383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20711384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20711385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20711386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20711387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20711388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20711389, '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 (20709857,20710337,20710851,20711349) result : ((1338754316,), (1338754322,), (1338754325,), (1338754337,), (1338754339,), (1338754341,), (1338754344,), (1338754364,), (1338754366,), (1338754368,), (1338754374,), (1338754377,), (1338754389,), (1338754390,), (1338754392,), (1338754395,), (1338754398,), (1338754560,), (1338754566,), (1338754570,), (1338754575,), (1338754606,), (1338754630,), (1338754653,), (1338754667,), (1338754674,), (1338754682,), (1338754704,), (1338754710,), (1338754713,), (1338754716,), (1338754724,), (1338754726,), (1338754732,), (1338754739,), (1338754742,), (1338754744,), (1338755025,), (1338755088,), (1338755092,), (1338755096,), (1338755109,), (1338755149,), (1338755150,), (1338755180,), (1338755208,), (1338755221,), (1338755411,), (1338755413,), (1338755417,), (1338755420,), (1338755424,), (1338755427,), (1338755431,), (1338755434,), (1338755439,), (1338755443,), (1338755445,), (1338755454,), (1338755455,), (1338755457,), (1338755460,), (1338755462,), (1338755479,), (1338755488,), (1338755492,), (1338755494,), (1338755496,), (1338755499,), (1338755547,), (1338755551,), (1338755553,), (1338755557,), (1338755584,), (1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,), (1338756447,), (1338756436,), (1338756438,), (1338756441,), (1338756445,), (1338756548,), (1338756627,), (1338756630,), (1338756655,), (1338756734,), (1338757004,), (1338757009,), (1338757011,), (1338757033,), (1338757036,), (1338757058,), (1338757060,), (1338757063,), (1338757064,), (1338757066,), (1338757076,), (1338757085,), (1338757088,), (1338757094,), (1338757099,), (1338757102,), (1338757111,), (1338757114,), (1338757116,), (1338757118,), (1338757120,), (1338757122,), (1338757411,), (1338757429,), (1338757434,), (1338757461,), (1338757513,), (1338757936,), (1338758005,), (1338758083,), (1338758219,), (1338758309,), (1338758583,), (1338758598,), (1338758609,), (1338758618,), (1338758623,), (1338758629,), (1338758644,), (1338758650,), (1338758659,), (1338758661,), (1338758773,), (1338758776,), (1338758781,), (1338758782,), (1338758784,), (1338758787,), (1338758798,), (1338758802,), (1338758806,), (1338758810,), (1338758813,), (1338758844,), (1338758850,), (1338758854,), (1338758856,), (1338758995,), (1338758998,), (1338759001,), (1338759004,), (1338759005,), (1338759006,), (1338759100,), (1338759110,), (1338759112,), (1338759114,), (1338759136,), (1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21022025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20711349]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338760703, 1338760694, 1338760683, 1338760681, 1338760651, 1338760615, 1338760613, 1338760611] map_info['map_portfolio_photo'] : {20711349: [1338760703, 1338760694, 1338760683, 1338760681, 1338760651, 1338760615, 1338760613, 1338760611, 1338760534, 1338760531, 1338760490, 1338760488, 1338760253, 1338760245, 1338760236, 1338760233, 1338760231, 1338759852, 1338759725, 1338759632, 1338759486, 1338759344, 1338759342, 1338759309, 1338759301, 1338759293, 1338759279, 1338759267, 1338759264, 1338759262, 1338759256, 1338759251, 1338759249, 1338759226, 1338759224, 1338759222, 1338759220, 1338759206, 1338759204, 1338759201, 1338759198, 1338759196, 1338759194, 1338759161, 1338759159, 1338759157, 1338759155, 1338759153, 1338759133, 1338759131, 1338759128, 1338759125, 1338759118]} final : True mtd_id 4302 list_pids : [1338760703, 1338760694, 1338760683, 1338760681, 1338760651, 1338760615, 1338760613, 1338760611] Looping around the photos to save general results len do output : 1 /20711349Didn'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, '2603107') ('4302', '20711349', '1338760703', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760694', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760683', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760681', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760651', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760615', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760613', None, None, None, None, None, '2603107') ('4302', None, None, None, None, None, None, None, '2603107') ('4302', '20711349', '1338760611', None, None, None, None, None, '2603107') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20711349', 'None', None, None, None, None, '2603107'), ('4302', '20711349', '1338760703', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760694', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760683', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760681', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760651', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760615', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760613', None, None, None, None, None, '2603107'), ('4302', '20711349', '1338760611', None, None, None, None, None, '2603107')] time used for this insertion : 0.013236284255981445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3531832695007324 time spend to save output : 0.013449668884277344 total time spend for step 5 : 0.36663293838500977 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 (2603107) 2.16user 2.56system 0:12.49elapsed 37%CPU (0avgtext+0avgdata 160348maxresident)k 768inputs+15080outputs (14major+71894minor)pagefaults 0swaps