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 : 2568511 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 (2581629) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2581629) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20499230 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2581629'] with mtr_portfolio_ids : ['20499230'] and first list_photo_ids : [] new path : /proc/2568511/ Name: python3 Umask: 0002 State: R (running) Tgid: 2568511 Ngid: 0 Pid: 2568511 PPid: 2568510 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2568511 NSpid: 2568511 NSpgid: 2566097 NSsid: 2566097 VmPeak: 1106824 kB VmSize: 1106824 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100560 kB VmRSS: 100560 kB RssAnon: 59748 kB RssFile: 40812 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 54 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2568511', 'Ngid': '0', 'Pid': '2568511', 'PPid': '2568510', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2568511', 'NSpid': '2568511', 'NSpgid': '2566097', 'NSsid': '2566097', 'VmPeak': '1106824 kB', 'VmSize': '1106824 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100560 kB', 'VmRSS': '100560 kB', 'RssAnon': '59748 kB', 'RssFile': '40812 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '54', 'nonvoluntary_ctxt_switches': '96'} ('datou_batch_current', '2568511', '1106824', '0', '1106824', '865576', '100560', b'', 'marlene', '2581629') 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 (20499230) 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 (2581629 ) ) 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 (20499230) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1337284292, 'portfolio_id': 20499230}, {'photo_id': 1337283782, 'portfolio_id': 20499230}, {'photo_id': 1337283773, 'portfolio_id': 20499230}, {'photo_id': 1337283460, 'portfolio_id': 20499230}, {'photo_id': 1337283459, 'portfolio_id': 20499230}, {'photo_id': 1337283458, 'portfolio_id': 20499230}, {'photo_id': 1337283457, 'portfolio_id': 20499230}, {'photo_id': 1337283102, 'portfolio_id': 20499230}, {'photo_id': 1337283037, 'portfolio_id': 20499230}, {'photo_id': 1337283007, 'portfolio_id': 20499230}, {'photo_id': 1337282951, 'portfolio_id': 20499230}, {'photo_id': 1337282944, 'portfolio_id': 20499230}, {'photo_id': 1337282933, 'portfolio_id': 20499230}, {'photo_id': 1337282931, 'portfolio_id': 20499230}, {'photo_id': 1337282928, 'portfolio_id': 20499230}, {'photo_id': 1337282921, 'portfolio_id': 20499230}, {'photo_id': 1337282915, 'portfolio_id': 20499230}, {'photo_id': 1337282913, 'portfolio_id': 20499230}, {'photo_id': 1337282897, 'portfolio_id': 20499230}, {'photo_id': 1337282863, 'portfolio_id': 20499230}, {'photo_id': 1337282803, 'portfolio_id': 20499230}, {'photo_id': 1337282748, 'portfolio_id': 20499230}, {'photo_id': 1337282745, 'portfolio_id': 20499230}, {'photo_id': 1337282733, 'portfolio_id': 20499230}, {'photo_id': 1337282731, 'portfolio_id': 20499230}, {'photo_id': 1337282729, 'portfolio_id': 20499230}, {'photo_id': 1337282716, 'portfolio_id': 20499230}, {'photo_id': 1337282713, 'portfolio_id': 20499230}, {'photo_id': 1337282710, 'portfolio_id': 20499230}, {'photo_id': 1337282706, 'portfolio_id': 20499230}, {'photo_id': 1337282704, 'portfolio_id': 20499230}, {'photo_id': 1337282699, 'portfolio_id': 20499230}, {'photo_id': 1337282686, 'portfolio_id': 20499230}, {'photo_id': 1337282684, 'portfolio_id': 20499230}, {'photo_id': 1337282682, 'portfolio_id': 20499230}, {'photo_id': 1337282680, 'portfolio_id': 20499230}, {'photo_id': 1337282663, 'portfolio_id': 20499230}, {'photo_id': 1337282661, 'portfolio_id': 20499230}, {'photo_id': 1337282659, 'portfolio_id': 20499230}, {'photo_id': 1337282657, 'portfolio_id': 20499230}, {'photo_id': 1337282644, 'portfolio_id': 20499230}, {'photo_id': 1337282638, 'portfolio_id': 20499230}, {'photo_id': 1337282628, 'portfolio_id': 20499230}, {'photo_id': 1337282625, 'portfolio_id': 20499230}, {'photo_id': 1337282622, 'portfolio_id': 20499230}, {'photo_id': 1337282620, 'portfolio_id': 20499230}, {'photo_id': 1337282603, 'portfolio_id': 20499230}, {'photo_id': 1337282602, 'portfolio_id': 20499230}] map_portfolio_id_photo_id: {20499230: [1337284292, 1337283782, 1337283773, 1337283460, 1337283459, 1337283458, 1337283457, 1337283102, 1337283037, 1337283007, 1337282951, 1337282944, 1337282933, 1337282931, 1337282928, 1337282921, 1337282915, 1337282913, 1337282897, 1337282863, 1337282803, 1337282748, 1337282745, 1337282733, 1337282731, 1337282729, 1337282716, 1337282713, 1337282710, 1337282706, 1337282704, 1337282699, 1337282686, 1337282684, 1337282682, 1337282680, 1337282663, 1337282661, 1337282659, 1337282657, 1337282644, 1337282638, 1337282628, 1337282625, 1337282622, 1337282620, 1337282603, 1337282602]} ##### 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.014946937561035156 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Feb 13 06:46:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20499230) 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 : 20499230 get user id for portfolio 20499230 get sub ptf for main ptf 20499230, type 3726 and hashtags ['autre_refus', 'Carton_brun', 'Carton_gris', 'cartonnette', 'mal_croppe', 'kraft', 'flou', 'metal', 'plastique', 'environnement', 'papier', 'Teint_Dans_La_Masse'] 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`=20499230 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','Carton_gris','cartonnette','mal_croppe','kraft','flou','metal','plastique','environnement','papier','Teint_Dans_La_Masse')) 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`=20499230 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','Carton_gris','cartonnette','mal_croppe','kraft','flou','metal','plastique','environnement','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20499230, 'sub_port_id': 20499234, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168401, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 36, 59)}, 'environnement': {'main_port_id': 20499230, 'sub_port_id': 20499235, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168402, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 36, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20499230, 'sub_port_id': 20499236, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168403, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 36, 59)}, 'metal': {'main_port_id': 20499230, 'sub_port_id': 20499237, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168404, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 36, 59)}, 'plastique': {'main_port_id': 20499230, 'sub_port_id': 20499238, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168405, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 36, 59)}, 'mal_croppe': {'main_port_id': 20499230, 'sub_port_id': 20499239, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168406, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 36, 59)}, 'kraft': {'main_port_id': 20499230, 'sub_port_id': 20499240, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168407, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 36, 59)}, 'Carton_gris': {'main_port_id': 20499230, 'sub_port_id': 20499241, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168408, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 36, 59)}, 'flou': {'main_port_id': 20499230, 'sub_port_id': 20499242, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168409, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 36, 59)}, 'autre_refus': {'main_port_id': 20499230, 'sub_port_id': 20499243, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168410, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 36, 59)}, 'cartonnette': {'main_port_id': 20499230, 'sub_port_id': 20499244, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168411, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 36, 59)}, 'Carton_brun': {'main_port_id': 20499230, 'sub_port_id': 20499245, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168412, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 36, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20499234 , 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=20499230 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 (20499234) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20499230) result : ((1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,)) 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 20499235 , 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=20499230 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 (20499235) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20499230) result : ((1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,)) 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 20499236 , 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=20499230 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 (20499236) result : ((1337282720,), (1337282727,), (1337282728,), (1337282758,), (1337282759,), (1337282760,), (1337282761,), (1337282916,), (1337282917,), (1337283358,), (1337283360,), (1337283361,), (1337283892,), (1337283893,), (1337283894,), (1337283926,), (1337283928,), (1337283929,), (1337283931,), (1337283932,), (1337283934,), (1337284852,), (1337284853,), (1337284854,), (1337284855,), (1337284856,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20499230) result : ((1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,)) 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 20499237 , 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=20499230 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 (20499237) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20499230) result : ((1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,)) 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 20499238 , 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=20499230 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 (20499238) result : ((1337282774,), (1337282775,), (1337283452,), (1337283453,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20499230) result : ((1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,)) 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 20499239 , 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=20499230 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 (20499239) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20499230) result : ((1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,)) 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 20499240 , 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=20499230 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 (20499240) result : ((1337282670,), (1337282723,), (1337282776,), (1337283428,), (1337283895,), (1337283896,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20499230) result : ((1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,)) 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 20499241 , 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=20499230 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 (20499241) result : ((1337282763,), (1337282764,), (1337282765,), (1337282766,), (1337282767,), (1337283376,), (1337283404,), (1337283405,), (1337283980,), (1337283982,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20499230) result : ((1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,)) 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 20499242 , 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=20499230 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 (20499242) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20499230) result : ((1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,)) 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 20499243 , 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=20499230 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 (20499243) result : ((1337282919,), (1337283958,), (1337283960,), (1337283961,), (1337284858,), (1337284859,), (1337284860,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20499230) result : ((1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,)) 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 20499244 , 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=20499230 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 (20499244) result : ((1337282768,), (1337282920,), (1337283389,), (1337283422,), (1337284001,), (1337284002,), (1337284861,), (1337284862,), (1337284863,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20499230) result : ((1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,)) 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 20499245 , 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=20499230 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 (20499245) result : ((1337282721,), (1337282722,), (1337282771,), (1337282772,), (1337282773,), (1337282922,), (1337282923,), (1337282924,), (1337282925,), (1337282926,), (1337283410,), (1337283411,), (1337283438,), (1337284066,), (1337284068,), (1337284069,), (1337284864,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20499230) result : ((1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,)) 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`=20499230 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','Carton_gris','cartonnette','mal_croppe','kraft','flou','metal','plastique','environnement','papier','Teint_Dans_La_Masse')) 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`=20499230 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','Carton_gris','cartonnette','mal_croppe','kraft','flou','metal','plastique','environnement','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20499230, 'sub_port_id': 20499246, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168413, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 37)}, 'environnement': {'main_port_id': 20499230, 'sub_port_id': 20499247, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168414, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 37)}, 'Teint_Dans_La_Masse': {'main_port_id': 20499230, 'sub_port_id': 20499248, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168415, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 37)}, 'metal': {'main_port_id': 20499230, 'sub_port_id': 20499249, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168416, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 37)}, 'plastique': {'main_port_id': 20499230, 'sub_port_id': 20499250, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168417, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 37)}, 'mal_croppe': {'main_port_id': 20499230, 'sub_port_id': 20499251, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168418, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 37)}, 'kraft': {'main_port_id': 20499230, 'sub_port_id': 20499252, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168419, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 37)}, 'Carton_gris': {'main_port_id': 20499230, 'sub_port_id': 20499253, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168420, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 37)}, 'flou': {'main_port_id': 20499230, 'sub_port_id': 20499254, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168421, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 37)}, 'autre_refus': {'main_port_id': 20499230, 'sub_port_id': 20499255, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168422, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 37)}, 'cartonnette': {'main_port_id': 20499230, 'sub_port_id': 20499256, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168423, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 37), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 37)}, 'Carton_brun': {'main_port_id': 20499230, 'sub_port_id': 20499257, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13168424, 'last_updated_at': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 6, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 6, 37)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20499246,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20499234 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20499247,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20499235 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20499248,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20499236 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20499249,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20499237 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20499250,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20499238 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20499251,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20499239 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20499252,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20499240 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20499253,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20499241 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20499254,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20499242 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20499255,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20499243 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20499256,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20499244 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20499257,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20499245 lien utilise dans velours : https://www.fotonower.com/velours/20499246,20499247,20499248,20499249,20499250,20499251,20499252,20499253,20499254,20499255,20499256,20499257?tags=papier,environnement,Teint_Dans_La_Masse,metal,plastique,mal_croppe,kraft,Carton_gris,flou,autre_refus,cartonnette,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20499230]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1337284292] map_info['map_portfolio_photo'] : {20499230: [1337284292, 1337283782, 1337283773, 1337283460, 1337283459, 1337283458, 1337283457, 1337283102, 1337283037, 1337283007, 1337282951, 1337282944, 1337282933, 1337282931, 1337282928, 1337282921, 1337282915, 1337282913, 1337282897, 1337282863, 1337282803, 1337282748, 1337282745, 1337282733, 1337282731, 1337282729, 1337282716, 1337282713, 1337282710, 1337282706, 1337282704, 1337282699, 1337282686, 1337282684, 1337282682, 1337282680, 1337282663, 1337282661, 1337282659, 1337282657, 1337282644, 1337282638, 1337282628, 1337282625, 1337282622, 1337282620, 1337282603, 1337282602]} final : False mtd_id 4302 list_pids : [1337284292] Looping around the photos to save general results len do output : 1 /20499230. 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, '2581629') ('4302', '20499230', '1337284292', None, None, None, None, None, '2581629') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '20499230', "{'papier': 20499234, 'environnement': 20499235, 'Teint_Dans_La_Masse': 20499236, 'metal': 20499237, 'plastique': 20499238, 'mal_croppe': 20499239, 'kraft': 20499240, 'Carton_gris': 20499241, 'flou': 20499242, 'autre_refus': 20499243, 'cartonnette': 20499244, 'Carton_brun': 20499245}", None, None, None, None, '2581629'), ('4302', '20499230', '1337284292', None, None, None, None, None, '2581629')] time used for this insertion : 0.012388229370117188 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.475172519683838 time spend to save output : 0.012631654739379883 total time spend for step 1 : 1.4878041744232178 step2:final Thu Feb 13 06:46:59 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 (20499230) 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 20499230 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1337282603,1337282602,1337282644,1337282638,1337282628,1337282625,1337282622,1337282620,1337282663,1337282661,1337282659,1337282657,1337282686,1337282684,1337282682,1337282680,1337282716,1337282713,1337282710,1337282706,1337282704,1337282699,1337282748,1337282745,1337282733,1337282731,1337282729,1337282897,1337282863,1337282803,1337282933,1337282931,1337282928,1337282921,1337282915,1337282913,1337283102,1337283037,1337283007,1337282951,1337282944,1337283460,1337283459,1337283458,1337283457,1337283782,1337283773,1337284292); 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([20499230]) Inside saveOutput : final : False verbose : True original output for save of step final : {1337284292: ('0.041700157332529',)} new output for save of step final : {1337284292: ('0.041700157332529',)} [1337284292] map_info['map_portfolio_photo'] : {20499230: [1337284292, 1337283782, 1337283773, 1337283460, 1337283459, 1337283458, 1337283457, 1337283102, 1337283037, 1337283007, 1337282951, 1337282944, 1337282933, 1337282931, 1337282928, 1337282921, 1337282915, 1337282913, 1337282897, 1337282863, 1337282803, 1337282748, 1337282745, 1337282733, 1337282731, 1337282729, 1337282716, 1337282713, 1337282710, 1337282706, 1337282704, 1337282699, 1337282686, 1337282684, 1337282682, 1337282680, 1337282663, 1337282661, 1337282659, 1337282657, 1337282644, 1337282638, 1337282628, 1337282625, 1337282622, 1337282620, 1337282603, 1337282602]} final : False mtd_id 4302 list_pids : [1337284292] Looping around the photos to save general results len do output : 1 /1337284292.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, '2581629') ('4302', '20499230', '1337284292', None, None, None, None, None, '2581629') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '20499230', '1337284292', '0.041700157332529', None, None, None, None, '2581629')] time used for this insertion : 0.014611482620239258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07717704772949219 time spend to save output : 0.014864683151245117 total time spend for step 2 : 0.0920417308807373 step3:velours_tree Thu Feb 13 06:46:59 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 : {20499230: [{'papier': 20499234, 'environnement': 20499235, 'Teint_Dans_La_Masse': 20499236, 'metal': 20499237, 'plastique': 20499238, 'mal_croppe': 20499239, 'kraft': 20499240, 'Carton_gris': 20499241, 'flou': 20499242, 'autre_refus': 20499243, 'cartonnette': 20499244, 'Carton_brun': 20499245}]} input_args_next_step : {20499230: ()} output_args : {20499230: [{'papier': 20499234, 'environnement': 20499235, 'Teint_Dans_La_Masse': 20499236, 'metal': 20499237, 'plastique': 20499238, 'mal_croppe': 20499239, 'kraft': 20499240, 'Carton_gris': 20499241, 'flou': 20499242, 'autre_refus': 20499243, 'cartonnette': 20499244, 'Carton_brun': 20499245}]} args : 20499230 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 : ({'papier': 20499234, 'environnement': 20499235, 'Teint_Dans_La_Masse': 20499236, 'metal': 20499237, 'plastique': 20499238, 'mal_croppe': 20499239, 'kraft': 20499240, 'Carton_gris': 20499241, 'flou': 20499242, 'autre_refus': 20499243, 'cartonnette': 20499244, 'Carton_brun': 20499245},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20499230) 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([20499230]) 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.35381269454956055 time spend to save output : 4.410743713378906e-05 total time spend for step 3 : 0.35385680198669434 step4:send_mail_cod Thu Feb 13 06:46:59 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 : {1337284292: ('0.041700157332529',)} input_args_next_step : {1337284292: ()} output_args : {1337284292: ('0.041700157332529',)} args : 1337284292 depend.output_id : 0 complete output_args for input 3 : {20499230: [{'papier': 20499234, 'environnement': 20499235, 'Teint_Dans_La_Masse': 20499236, 'metal': 20499237, 'plastique': 20499238, 'mal_croppe': 20499239, 'kraft': 20499240, 'Carton_gris': 20499241, 'flou': 20499242, 'autre_refus': 20499243, 'cartonnette': 20499244, 'Carton_brun': 20499245}]} input_args_next_step : {1337284292: ('0.041700157332529',), 20499230: ()} output_args : {20499230: [{'papier': 20499234, 'environnement': 20499235, 'Teint_Dans_La_Masse': 20499236, 'metal': 20499237, 'plastique': 20499238, 'mal_croppe': 20499239, 'kraft': 20499240, 'Carton_gris': 20499241, 'flou': 20499242, 'autre_refus': 20499243, 'cartonnette': 20499244, 'Carton_brun': 20499245}]} args : 20499230 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 :2, first value : ('0.041700157332529',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20499230) 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 (1337284292) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1337284292 download finish for photo 1337284292 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette204992371739425620/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P20499230_13-02-2025_06_47_00.pdf 20499237 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=20499237 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204992371739425620 20499238 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=20499238 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337282774: '1739425070_601429_1337282628_e684c0814fb30c15b740c88bf602cb65_rle_crop_3672872048_0.png', 1337282775: '1739425070_601429_1337282620_f1250cbb53a2426a6c3908b9e3572b8f_rle_crop_3672872315_0.png', 1337283452: '1739425262_603089_1337282745_9877d7c262aeb898e8ac5f13e7791b65_rle_crop_3672876833_0.png', 1337283453: '1739425262_603089_1337282731_a2912428f6cb7173f762855d69af957b_rle_crop_3672876890_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/db5fd609659b223c70ea40213ca06882_32531607.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d879fd400180ed1fdc9966ae751f27d8_67247709.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d3d50dc66114d08127a0138bd28a6a5d_94200545.png change filename to text .imagette204992381739425620/ imagette204992381739425620/1739425070_601429_1337282628_e684c0814fb30c15b740c88bf602cb65_rle_crop_3672872048_0.png.png imagette204992381739425620/1739425262_603089_1337282731_a2912428f6cb7173f762855d69af957b_rle_crop_3672876890_0.png.png imagette204992381739425620/1739425070_601429_1337282620_f1250cbb53a2426a6c3908b9e3572b8f_rle_crop_3672872315_0.png.png imagette204992381739425620/1739425262_603089_1337282745_9877d7c262aeb898e8ac5f13e7791b65_rle_crop_3672876833_0.png.png imagette204992391739425620/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/9d7ea05f22c3cbd6e63315e7f677d199_31728662.png imagette204992381739425620 20499239 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=20499239 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204992391739425620 20499240 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=20499240 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337282670: '1739424911_600409_1337282603_da6465a631bfbc2e62233458dbe0b1ed_rle_crop_3672866611_0.png', 1337282723: '1739425031_601109_1337282680_67a22798cd6af9fc11324299567b1548_rle_crop_3672870752_0.png', 1337282776: '1739425070_601429_1337282620_f1250cbb53a2426a6c3908b9e3572b8f_rle_crop_3672872312_0.png', 1337283428: '1739425272_603191_1337282803_da106ac58664e7073c2b5e402931953d_rle_crop_3672876855_0.png', 1337283895: '1739425393_604043_1337283459_ded1f46ef570468cec657d1e508306da_rle_crop_3672879466_0.png', 1337283896: '1739425393_604043_1337283458_fa5ddccbbab6d94c92d71d6ac1a85433_rle_crop_3672879477_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/b5036c07b76f395e19e3f2d34c3b839d_86091173.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0cf4313d5ae090a7e03bbb6a196ffae6_2081138.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/f59ef3d8e07770226e26bbe9355a29f1_52423942.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/56584d78c97af6ef5f2cbaed338fee68_34556116.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d3058159ea02f3ea75a7eed92707ad71_78466609.png change filename to text .imagette204992401739425620/ imagette204992401739425620/1739425031_601109_1337282680_67a22798cd6af9fc11324299567b1548_rle_crop_3672870752_0.png.png imagette204992401739425620/1739425272_603191_1337282803_da106ac58664e7073c2b5e402931953d_rle_crop_3672876855_0.png.png imagette204992401739425620/1739425393_604043_1337283458_fa5ddccbbab6d94c92d71d6ac1a85433_rle_crop_3672879477_0.png.png imagette204992401739425620/1739424911_600409_1337282603_da6465a631bfbc2e62233458dbe0b1ed_rle_crop_3672866611_0.png.png imagette204992401739425620/1739425070_601429_1337282620_f1250cbb53a2426a6c3908b9e3572b8f_rle_crop_3672872312_0.png.png imagette204992401739425620/1739425393_604043_1337283459_ded1f46ef570468cec657d1e508306da_rle_crop_3672879466_0.png.png imagette204992421739425620/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/488e1deb5986ce57ac7e231e71c40336_16986708.png imagette204992401739425620 20499242 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=20499242 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204992421739425620 20499243 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=20499243 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337282919: '1739425170_602442_1337282710_2da2c1b52e2bcf43b63e7bb29358d560_rle_crop_3672873563_0.png', 1337283958: '1739425431_604376_1337283102_03088214bddde610f33949decce5557e_rle_crop_3672879858_0.png', 1337283960: '1739425431_604376_1337283102_03088214bddde610f33949decce5557e_rle_crop_3672879867_0.png', 1337283961: '1739425431_604376_1337282913_5594fbac34e98c72f01677271280d676_rle_crop_3672879934_0.png', 1337284858: '1739425532_605484_1337283007_6d36d8c790068f4aa8809c792fa79d4c_rle_crop_3672879980_0.png', 1337284859: '1739425532_605484_1337282944_afbb9baf431671c55100a76c406de94a_bib_crop_3672880015_0.jpg', 1337284860: '1739425532_605484_1337282944_afbb9baf431671c55100a76c406de94a_rle_crop_3672885546_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/b4e939e9360f7dd4c6d23f168c48c371_1961290.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0b1e2ff83b73dae0b3979f64c1c3a03f_51218479.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/fdc05ea64ba819c42adc25e14c0d3574_73511245.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/57eb442283ad485214fcfe77e49021ee_88988862.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/faaf591897e7a934ae710772f9a65e92_95876031.png change filename to text .wget -O 6.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/f109214e45f5ca73fe9733aac4622960_13572223.jpg change filename to text .imagette204992431739425620/ imagette204992431739425620/1739425532_605484_1337282944_afbb9baf431671c55100a76c406de94a_bib_crop_3672880015_0.jpg.jpg imagette204992431739425620/1739425431_604376_1337283102_03088214bddde610f33949decce5557e_rle_crop_3672879867_0.png.png imagette204992431739425620/1739425170_602442_1337282710_2da2c1b52e2bcf43b63e7bb29358d560_rle_crop_3672873563_0.png.png imagette204992431739425620/1739425532_605484_1337282944_afbb9baf431671c55100a76c406de94a_rle_crop_3672885546_0.png.png imagette204992431739425620/1739425532_605484_1337283007_6d36d8c790068f4aa8809c792fa79d4c_rle_crop_3672879980_0.png.png imagette204992431739425620/1739425431_604376_1337282913_5594fbac34e98c72f01677271280d676_rle_crop_3672879934_0.png.png imagette204992431739425620/1739425431_604376_1337283102_03088214bddde610f33949decce5557e_rle_crop_3672879858_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/7208947ad7d49323315af25a069b928e_71973049.png imagette204992431739425620 20499244 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=20499244 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337282768: '1739425070_601429_1337282620_f1250cbb53a2426a6c3908b9e3572b8f_rle_crop_3672872314_0.png', 1337282920: '1739425170_602442_1337282699_69d6b4866d4403b911265aa8a2668c9d_rle_crop_3672873604_0.png', 1337283389: '1739425272_603191_1337282803_da106ac58664e7073c2b5e402931953d_rle_crop_3672876849_0.png', 1337283422: '1739425262_603089_1337282731_a2912428f6cb7173f762855d69af957b_rle_crop_3672876892_0.png', 1337284001: '1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879908_0.png', 1337284002: '1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879909_0.png', 1337284861: '1739425532_605484_1337282951_202f683d398271a84fe8152b657732b1_rle_crop_3672879990_0.png', 1337284862: '1739425532_605484_1337282944_afbb9baf431671c55100a76c406de94a_rle_crop_3672880018_0.png', 1337284863: '1739425532_605484_1337282944_afbb9baf431671c55100a76c406de94a_rle_crop_3672880022_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/928bf7692fbaa19b549713319c45a191_33110383.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/dde7d28044a88295dcac290a36559962_44569924.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/c031f89f12560bc648e6491920a5bbf7_19627253.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/3922731dc95f99c8e3eea09243098bce_88986186.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/3e23f6234557133f5a037539e8c53f01_80015860.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0121911c84e7217734be9ee299f93c14_34116517.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/61f9d80be1996d43cad885d471e6ad39_56411542.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/3f9294f8a3afc759c1e11a692592c788_83382478.png change filename to text .imagette204992441739425621/ imagette204992441739425621/1739425532_605484_1337282944_afbb9baf431671c55100a76c406de94a_rle_crop_3672880018_0.png.png imagette204992441739425621/1739425272_603191_1337282803_da106ac58664e7073c2b5e402931953d_rle_crop_3672876849_0.png.png imagette204992441739425621/1739425532_605484_1337282951_202f683d398271a84fe8152b657732b1_rle_crop_3672879990_0.png.png imagette204992441739425621/1739425070_601429_1337282620_f1250cbb53a2426a6c3908b9e3572b8f_rle_crop_3672872314_0.png.png imagette204992441739425621/1739425532_605484_1337282944_afbb9baf431671c55100a76c406de94a_rle_crop_3672880022_0.png.png imagette204992441739425621/1739425170_602442_1337282699_69d6b4866d4403b911265aa8a2668c9d_rle_crop_3672873604_0.png.png imagette204992441739425621/1739425262_603089_1337282731_a2912428f6cb7173f762855d69af957b_rle_crop_3672876892_0.png.png imagette204992441739425621/1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879908_0.png.png imagette204992441739425621/1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879909_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/115df09aeb18a3a98327e9ca47948c1b_47700940.png imagette204992441739425621 20499236 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=20499236 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337283893: '1739425393_604043_1337283458_fa5ddccbbab6d94c92d71d6ac1a85433_rle_crop_3672879480_0.png', 1337284856: '1739425532_605484_1337282944_afbb9baf431671c55100a76c406de94a_rle_crop_3672880023_0.png', 1337284855: '1739425532_605484_1337282951_202f683d398271a84fe8152b657732b1_rle_crop_3672879997_0.png', 1337284854: '1739425532_605484_1337283007_6d36d8c790068f4aa8809c792fa79d4c_rle_crop_3672879985_0.png', 1337284853: '1739425532_605484_1337283007_6d36d8c790068f4aa8809c792fa79d4c_rle_crop_3672879983_0.png', 1337284852: '1739425532_605484_1337283007_6d36d8c790068f4aa8809c792fa79d4c_rle_crop_3672879977_0.png', 1337283934: '1739425431_604376_1337282913_5594fbac34e98c72f01677271280d676_rle_crop_3672879942_0.png', 1337283932: '1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879920_0.png', 1337283931: '1739425431_604376_1337282921_074dc0d11e0c280d1b7e8895d3e6637a_rle_crop_3672879892_0.png', 1337283929: '1739425431_604376_1337282921_074dc0d11e0c280d1b7e8895d3e6637a_rle_crop_3672879901_0.png', 1337283928: '1739425431_604376_1337282928_d6db2a5cd1298c2212e3c05c7205a286_rle_crop_3672879885_0.png', 1337283926: '1739425431_604376_1337283102_03088214bddde610f33949decce5557e_rle_crop_3672879869_0.png', 1337283894: '1739425393_604043_1337283458_fa5ddccbbab6d94c92d71d6ac1a85433_rle_crop_3672879490_0.png', 1337282720: '1739425031_601109_1337282680_67a22798cd6af9fc11324299567b1548_rle_crop_3672870755_0.png', 1337283892: '1739425393_604043_1337283459_ded1f46ef570468cec657d1e508306da_rle_crop_3672879470_0.png', 1337283361: '1739425272_603191_1337282863_bc3c80df5ebe827506e14dcffe17a85f_rle_crop_3672876826_0.png', 1337283360: '1739425272_603191_1337282863_bc3c80df5ebe827506e14dcffe17a85f_rle_crop_3672876824_0.png', 1337283358: '1739425272_603191_1337282863_bc3c80df5ebe827506e14dcffe17a85f_rle_crop_3672876822_0.png', 1337282917: '1739425170_602442_1337282699_69d6b4866d4403b911265aa8a2668c9d_rle_crop_3672873601_0.png', 1337282916: '1739425170_602442_1337282704_e6a78367806cb96ec857d3bf2ba795f6_rle_crop_3672873590_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/3f3dc1128a906bede49c813b88282776_48176269.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/e73aa99dc9968271103d9b43e80aa7c7_28557690.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/4bcf21567e5effecdb9f898dc66ed4aa_61432758.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/40aeb5156b08e70c7ad7f520ca7ecc05_38042872.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0b08e5089dc4508e4a381ddf4ca21a6f_30816853.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/204549f514813388660f37a5d7e31824_98480029.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0c3b97d6500b790dc652197eada6c36a_22286131.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/45802047aef554b1b39ee1e75ce50082_7441824.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/289fa39f37e6cb139129b1b7c946524d_79400061.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/9cd3f4d74acf08045bc2b162eb1d2ab9_5489800.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/a4688faa43c2168dd5648ab68722c170_52434312.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/c06b2fefd29a28357c63713845d186a5_62886322.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/c53af3448fe5d73c910812e119570e78_4913679.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/a5f3770dd2160e4f26117276aae86dc1_26722024.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/defc4ffc4006ab32f6a95d8efe0dc410_10535090.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/34a5be5a76a451b9262ac8a2fe55545d_81828386.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/55c6442e4ecedb48441a47689f1d4997_42427347.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/7375fecd3730bf4efb17e0390c6c9e3f_79797645.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/f43c80bfe4f7eb6c88b595b20719eb93_32508403.png change filename to text .imagette204992361739425621/ imagette204992361739425621/1739425431_604376_1337282928_d6db2a5cd1298c2212e3c05c7205a286_rle_crop_3672879885_0.png.png imagette204992361739425621/1739425532_605484_1337282944_afbb9baf431671c55100a76c406de94a_rle_crop_3672880023_0.png.png imagette204992361739425621/1739425272_603191_1337282863_bc3c80df5ebe827506e14dcffe17a85f_rle_crop_3672876826_0.png.png imagette204992361739425621/1739425532_605484_1337283007_6d36d8c790068f4aa8809c792fa79d4c_rle_crop_3672879977_0.png.png imagette204992361739425621/1739425031_601109_1337282680_67a22798cd6af9fc11324299567b1548_rle_crop_3672870755_0.png.png imagette204992361739425621/1739425272_603191_1337282863_bc3c80df5ebe827506e14dcffe17a85f_rle_crop_3672876822_0.png.png imagette204992361739425621/1739425431_604376_1337282913_5594fbac34e98c72f01677271280d676_rle_crop_3672879942_0.png.png imagette204992361739425621/1739425431_604376_1337282921_074dc0d11e0c280d1b7e8895d3e6637a_rle_crop_3672879892_0.png.png imagette204992361739425621/1739425532_605484_1337283007_6d36d8c790068f4aa8809c792fa79d4c_rle_crop_3672879985_0.png.png imagette204992361739425621/1739425393_604043_1337283458_fa5ddccbbab6d94c92d71d6ac1a85433_rle_crop_3672879490_0.png.png imagette204992361739425621/1739425431_604376_1337282921_074dc0d11e0c280d1b7e8895d3e6637a_rle_crop_3672879901_0.png.png imagette204992361739425621/1739425170_602442_1337282704_e6a78367806cb96ec857d3bf2ba795f6_rle_crop_3672873590_0.png.png imagette204992361739425621/1739425393_604043_1337283459_ded1f46ef570468cec657d1e508306da_rle_crop_3672879470_0.png.png imagette204992361739425621/1739425532_605484_1337283007_6d36d8c790068f4aa8809c792fa79d4c_rle_crop_3672879983_0.png.png imagette204992361739425621/1739425170_602442_1337282699_69d6b4866d4403b911265aa8a2668c9d_rle_crop_3672873601_0.png.png imagette204992361739425621/1739425532_605484_1337282951_202f683d398271a84fe8152b657732b1_rle_crop_3672879997_0.png.png imagette204992361739425621/1739425393_604043_1337283458_fa5ddccbbab6d94c92d71d6ac1a85433_rle_crop_3672879480_0.png.png imagette204992361739425621/1739425272_603191_1337282863_bc3c80df5ebe827506e14dcffe17a85f_rle_crop_3672876824_0.png.png imagette204992361739425621/1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879920_0.png.png imagette204992361739425621/1739425431_604376_1337283102_03088214bddde610f33949decce5557e_rle_crop_3672879869_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/a1dac614cbfc8c1daac498a7660fdc54_42778214.png imagette204992361739425621 20499241 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=20499241 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337282763: '1739425070_601429_1337282625_1c0eac3767d6572f08cd2bd684d18f86_rle_crop_3672872063_0.png', 1337282764: '1739425070_601429_1337282625_1c0eac3767d6572f08cd2bd684d18f86_rle_crop_3672872060_0.png', 1337282765: '1739425070_601429_1337282625_1c0eac3767d6572f08cd2bd684d18f86_rle_crop_3672872067_0.png', 1337282766: '1739425070_601429_1337282622_27ed49cc6ab7bfe3abf7c2d74acb1fde_rle_crop_3672872299_0.png', 1337282767: '1739425070_601429_1337282620_f1250cbb53a2426a6c3908b9e3572b8f_rle_crop_3672872316_0.png', 1337283376: '1739425272_603191_1337282803_da106ac58664e7073c2b5e402931953d_rle_crop_3672876851_0.png', 1337283404: '1739425262_603089_1337282731_a2912428f6cb7173f762855d69af957b_rle_crop_3672876889_0.png', 1337283405: '1739425262_603089_1337282731_a2912428f6cb7173f762855d69af957b_rle_crop_3672876896_0.png', 1337283980: '1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879918_0.png', 1337283982: '1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879911_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/835aa92c75bea6e477a53a158ffaaea9_93351105.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/8853a0d57dded21f26a0d65ab4345677_44925750.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d446165cc986796a9194e7f07a4d72f4_84470982.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/60ee74086050a7949f484527a433eabe_53513323.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/2b8269b7a6af1f639b5813b5c95e291c_12745527.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0fafd8586f24e281e2e9ebe7ac84d1b4_69470661.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/58126167d185bb4ecf8b62fefa10ba72_99454856.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/fbe8be5a04bd66d5ba8a4738645e1a4a_21326634.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/b94d43f1aa519ba7a1959a319d0279a1_67166924.png change filename to text .imagette204992411739425622/ imagette204992411739425622/1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879918_0.png.png imagette204992411739425622/1739425070_601429_1337282625_1c0eac3767d6572f08cd2bd684d18f86_rle_crop_3672872060_0.png.png imagette204992411739425622/1739425070_601429_1337282620_f1250cbb53a2426a6c3908b9e3572b8f_rle_crop_3672872316_0.png.png imagette204992411739425622/1739425262_603089_1337282731_a2912428f6cb7173f762855d69af957b_rle_crop_3672876889_0.png.png imagette204992411739425622/1739425070_601429_1337282625_1c0eac3767d6572f08cd2bd684d18f86_rle_crop_3672872067_0.png.png imagette204992411739425622/1739425070_601429_1337282622_27ed49cc6ab7bfe3abf7c2d74acb1fde_rle_crop_3672872299_0.png.png imagette204992411739425622/1739425272_603191_1337282803_da106ac58664e7073c2b5e402931953d_rle_crop_3672876851_0.png.png imagette204992411739425622/1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879911_0.png.png imagette204992411739425622/1739425262_603089_1337282731_a2912428f6cb7173f762855d69af957b_rle_crop_3672876896_0.png.png imagette204992411739425622/1739425070_601429_1337282625_1c0eac3767d6572f08cd2bd684d18f86_rle_crop_3672872063_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/b6bb1c5e9d65237350407763977536c1_44049031.png imagette204992411739425622 20499245 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=20499245 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337282925: '1739425170_602442_1337282704_e6a78367806cb96ec857d3bf2ba795f6_rle_crop_3672873591_0.png', 1337284864: '1739425532_605484_1337283460_afbd47117fcece3b74d1d4da9ea4722d_rle_crop_3672879946_0.png', 1337284069: '1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879917_0.png', 1337284068: '1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879919_0.png', 1337284066: '1739425431_604376_1337282921_074dc0d11e0c280d1b7e8895d3e6637a_rle_crop_3672879894_0.png', 1337283438: '1739425262_603089_1337282733_516eecd04243bb8853e84c321c2dfb1d_rle_crop_3672876876_0.png', 1337283411: '1739425272_603191_1337282803_da106ac58664e7073c2b5e402931953d_rle_crop_3672876860_0.png', 1337283410: '1739425272_603191_1337282803_da106ac58664e7073c2b5e402931953d_rle_crop_3672876852_0.png', 1337282926: '1739425170_602442_1337282704_e6a78367806cb96ec857d3bf2ba795f6_rle_crop_3672873593_0.png', 1337282721: '1739425031_601109_1337282684_c5cb18a5234b5b9bed094133d237cd9e_rle_crop_3672870714_0.png', 1337282924: '1739425170_602442_1337282706_3df998b283aaff16f76213f570a768f9_rle_crop_3672873578_0.png', 1337282923: '1739425170_602442_1337282706_3df998b283aaff16f76213f570a768f9_rle_crop_3672873576_0.png', 1337282922: '1739425170_602442_1337282710_2da2c1b52e2bcf43b63e7bb29358d560_rle_crop_3672873568_0.png', 1337282773: '1739425070_601429_1337282625_1c0eac3767d6572f08cd2bd684d18f86_rle_crop_3672872064_0.png', 1337282772: '1739425070_601429_1337282625_1c0eac3767d6572f08cd2bd684d18f86_rle_crop_3672872065_0.png', 1337282771: '1739425070_601429_1337282628_e684c0814fb30c15b740c88bf602cb65_rle_crop_3672872046_0.png', 1337282722: '1739425031_601109_1337282682_4a0fab2a4bb073386edb7448d7ac5549_rle_crop_3672870733_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/adea658f969aaddb0aef98543792a9bc_38088795.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/f7ca052b40932b59092a9973b4403c45_18965347.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/c93b4ae2e5f7258d9691cf626afa5e51_75507285.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/38dde60bf86086dfe9ede27472560c6d_10975208.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/22a0ba83c8f634dce065bcc3b82e84f5_85417498.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/b59d83d9c84a4f7c34c42992cc671012_88784175.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/76c1eea82f973a6fba1408e1d3f288fd_27917432.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/5666e6060c72713ac5dc71f26b978a94_85091460.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0836dd9cd8739d026909d518e2099777_86155119.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/e9d09f7228208cc48b8965b233e583f9_50911848.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/3ebcbd2dfbf4e681a012b665ce4231a9_14808660.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/2d431a404daec456c3aa63b8c002716d_1616392.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/8248e24c8703215093388dc9b38c463d_82424868.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/e1d04e20b776fce1b40da9a1b3dd6571_90939259.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/73b342cfd069a2a2b32cd6209514fcf9_62448506.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/6e6223f0c316941cf1bbe250fb85f2cf_21883706.png change filename to text .imagette204992451739425623/ imagette204992451739425623/1739425070_601429_1337282625_1c0eac3767d6572f08cd2bd684d18f86_rle_crop_3672872064_0.png.png imagette204992451739425623/1739425532_605484_1337283460_afbd47117fcece3b74d1d4da9ea4722d_rle_crop_3672879946_0.png.png imagette204992451739425623/1739425170_602442_1337282706_3df998b283aaff16f76213f570a768f9_rle_crop_3672873578_0.png.png imagette204992451739425623/1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879917_0.png.png imagette204992451739425623/1739425262_603089_1337282733_516eecd04243bb8853e84c321c2dfb1d_rle_crop_3672876876_0.png.png imagette204992451739425623/1739425170_602442_1337282704_e6a78367806cb96ec857d3bf2ba795f6_rle_crop_3672873593_0.png.png imagette204992451739425623/1739425170_602442_1337282704_e6a78367806cb96ec857d3bf2ba795f6_rle_crop_3672873591_0.png.png imagette204992451739425623/1739425170_602442_1337282710_2da2c1b52e2bcf43b63e7bb29358d560_rle_crop_3672873568_0.png.png imagette204992451739425623/1739425272_603191_1337282803_da106ac58664e7073c2b5e402931953d_rle_crop_3672876860_0.png.png imagette204992451739425623/1739425070_601429_1337282628_e684c0814fb30c15b740c88bf602cb65_rle_crop_3672872046_0.png.png imagette204992451739425623/1739425031_601109_1337282684_c5cb18a5234b5b9bed094133d237cd9e_rle_crop_3672870714_0.png.png imagette204992451739425623/1739425170_602442_1337282706_3df998b283aaff16f76213f570a768f9_rle_crop_3672873576_0.png.png imagette204992451739425623/1739425272_603191_1337282803_da106ac58664e7073c2b5e402931953d_rle_crop_3672876852_0.png.png imagette204992451739425623/1739425431_604376_1337282921_074dc0d11e0c280d1b7e8895d3e6637a_rle_crop_3672879894_0.png.png imagette204992451739425623/1739425031_601109_1337282682_4a0fab2a4bb073386edb7448d7ac5549_rle_crop_3672870733_0.png.png imagette204992451739425623/1739425431_604376_1337282915_17dee799d1884103a4c902702a43b538_rle_crop_3672879919_0.png.png imagette204992451739425623/1739425070_601429_1337282625_1c0eac3767d6572f08cd2bd684d18f86_rle_crop_3672872065_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/245036e3b0d449bb5eac9ffeeeae9f3f_11695187.png imagette204992451739425623 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20499230 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20499246,20499247,20499248,20499249,20499250,20499251,20499252,20499253,20499254,20499255,20499256,20499257?tags=papier,environnement,Teint_Dans_La_Masse,metal,plastique,mal_croppe,kraft,Carton_gris,flou,autre_refus,cartonnette,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1337284292] : ('0.041700157332529',) no score found for photo 1337284292 apple ('0.041700157332529',) We are sending mail with results at report@fotonower.com refus_total : 0.041700157332529 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=20499230 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_P20499230_13-02-2025_06_47_00.pdf results_Auto_P20499230_13-02-2025_06_47_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20499230_13-02-2025_06_47_00.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','20499230','results_Auto_P20499230_13-02-2025_06_47_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20499230_13-02-2025_06_47_00.pdf','pdf','','0.24','0.041700157332529') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20499230]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1337284292] map_info['map_portfolio_photo'] : {20499230: [1337284292, 1337283782, 1337283773, 1337283460, 1337283459, 1337283458, 1337283457, 1337283102, 1337283037, 1337283007, 1337282951, 1337282944, 1337282933, 1337282931, 1337282928, 1337282921, 1337282915, 1337282913, 1337282897, 1337282863, 1337282803, 1337282748, 1337282745, 1337282733, 1337282731, 1337282729, 1337282716, 1337282713, 1337282710, 1337282706, 1337282704, 1337282699, 1337282686, 1337282684, 1337282682, 1337282680, 1337282663, 1337282661, 1337282659, 1337282657, 1337282644, 1337282638, 1337282628, 1337282625, 1337282622, 1337282620, 1337282603, 1337282602]} final : False mtd_id 4302 list_pids : [1337284292] 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, '2581629') ('4302', '20499230', '1337284292', None, None, None, None, None, '2581629') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '20499230', '1337284292', None, None, None, None, None, '2581629')] time used for this insertion : 0.014907360076904297 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.298064231872559 time spend to save output : 0.015070915222167969 total time spend for step 4 : 5.313135147094727 step5:split_time_score Thu Feb 13 06:47:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20499230'] 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 : [('20499230',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20499230) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1337284292: {'path': 'temp/1739425619_2568511_1337284292_1d62157bec6980860814e7b7f1003bd0.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 = 20499230; (('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 = 20499230 group by h (('06', 48),) 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=20499230 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 (20499230) 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 (20499230) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13022025 20499230 Nombre de photos uploadées : 48 / 23040 (0%) 13022025 20499230 Nombre de photos taguées (types de déchets): 0 / 48 (0%) 13022025 20499230 Nombre de photos taguées (volume) : 0 / 48 (0%) [{'photo_id': 1337282603, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/da6465a631bfbc2e62233458dbe0b1ed.jpg', 'username': None, 'uploaded_at': 1739424788, 'text': 'image_13022025_06_32_24_010143m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1337282602, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0f390ac2a86915f60e3c6002ed0b6640.jpg', 'username': None, 'uploaded_at': 1739424788, 'text': 'image_13022025_06_32_35_010150m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1337282644, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/9100b3569cba6c633ade00294a87d600.jpg', 'username': None, 'uploaded_at': 1739424847, 'text': 'image_13022025_06_32_54_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1337282638, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/f279778861970f5ec6b9af4042b205d8.jpg', 'username': None, 'uploaded_at': 1739424847, 'text': 'image_13022025_06_33_04_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.867813110351562e-06 ???????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023674964904785156 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20499230, '2025-02-13' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1599443,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027425289154052734 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= 1599443 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1599443, 'dashboard_run_id': 1607578, 'mtr_portfolio_id': 20498225, 'dashboard_result_id': 8855241, '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_P20498225_13-02-2025_06_16_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20498252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20498253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20498254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20498255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20498256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20498257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20498258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20498259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20498260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20498261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20498262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20498263, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1607578, 'mtr_portfolio_id': 20498729, 'dashboard_result_id': 8855242, '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_P20498729_13-02-2025_06_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20498780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20498781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20498782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20498783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20498784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20498785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20498786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20498787, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20498788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20498789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20498790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20498791, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1607578, 'mtr_portfolio_id': 20499230, 'dashboard_result_id': 8855243, '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_P20499230_13-02-2025_06_44_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20499234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20499235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20499236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20499237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20499238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20499239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20499240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20499241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20499242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20499243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20499244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20499245, '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 = 20498225 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': 2581565, 'mtr_portfolio_id': 20498225, 'created_at': datetime.datetime(2025, 2, 13, 6, 16, 31), 'result': '0.04458997300930855', 'result_long': None, 'result_double': None}] Qualite : 0.04458997300930855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20498225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20498225_13-02-2025_06_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20498225 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_P20498225_13-02-2025_06_16_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20498252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20498253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20498254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20498255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20498256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20498257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20498258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20498259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20498260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20498261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20498262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20498263, 'pht': 3726}}" where mtr_portfolio_id = 20498225 and dashboard_run_id = 1607578 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`=20498225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8855241, 0.04458997300930855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20498225_13-02-2025_06_16_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20498252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20498253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20498254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20498255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20498256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20498257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20498258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20498259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20498260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20498261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20498262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20498263, '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 = 20498729 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': 2581595, 'mtr_portfolio_id': 20498729, 'created_at': datetime.datetime(2025, 2, 13, 6, 35, 1), 'result': '0.04961918393745524', 'result_long': None, 'result_double': None}] Qualite : 0.04961918393745524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20498729 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20498729_13-02-2025_06_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20498729 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_P20498729_13-02-2025_06_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20498780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20498781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20498782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20498783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20498784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20498785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20498786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20498787, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20498788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20498789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20498790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20498791, 'pht': 3726}}" where mtr_portfolio_id = 20498729 and dashboard_run_id = 1607578 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`=20498729 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8855242, 0.04961918393745524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20498729_13-02-2025_06_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20498780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20498781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20498782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20498783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20498784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20498785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20498786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20498787, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20498788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20498789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20498790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20498791, '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 = 20499230 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': 2581629, 'mtr_portfolio_id': 20499230, 'created_at': datetime.datetime(2025, 2, 13, 6, 46, 59), 'result': '0.041700157332529', 'result_long': None, 'result_double': None}] Qualite : 0.041700157332529 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20499230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20499230_13-02-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20499230 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_P20499230_13-02-2025_06_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20499234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20499235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20499236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20499237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20499238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20499239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20499240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20499241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20499242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20499243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20499244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20499245, 'pht': 3726}}" where mtr_portfolio_id = 20499230 and dashboard_run_id = 1607578 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`=20499230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8855243, 0.041700157332529, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20499230_13-02-2025_06_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20499234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20499235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20499236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20499237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20499238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20499239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20499240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20499241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20499242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20499243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20499244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20499245, '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 (20498225,20498729,20499230) result : ((1337279175,), (1337279177,), (1337279180,), (1337279182,), (1337279234,), (1337279237,), (1337279239,), (1337279246,), (1337279250,), (1337279253,), (1337279268,), (1337279271,), (1337279273,), (1337279288,), (1337279293,), (1337279295,), (1337279298,), (1337279301,), (1337279303,), (1337280085,), (1337280087,), (1337280090,), (1337280092,), (1337280370,), (1337280408,), (1337280415,), (1337280417,), (1337280420,), (1337280433,), (1337280435,), (1337280437,), (1337280439,), (1337280441,), (1337280444,), (1337280460,), (1337280463,), (1337280467,), (1337280469,), (1337280472,), (1337280497,), (1337280499,), (1337280501,), (1337280503,), (1337280506,), (1337280507,), (1337280533,), (1337280534,), (1337280535,), (1337280536,), (1337280538,), (1337280578,), (1337280579,), (1337280580,), (1337280581,), (1337280582,), (1337280602,), (1337280603,), (1337280607,), (1337280613,), (1337280614,), (1337280752,), (1337280822,), (1337280892,), (1337280896,), (1337280897,), (1337280924,), (1337280925,), (1337280926,), (1337280927,), (1337280928,), (1337280950,), (1337280952,), (1337280953,), (1337280954,), (1337280955,), (1337280998,), (1337280983,), (1337280996,), (1337280997,), (1337281321,), (1337281322,), (1337281323,), (1337281324,), (1337281325,), (1337281327,), (1337281345,), (1337281346,), (1337281347,), (1337281348,), (1337281384,), (1337281385,), (1337281386,), (1337281405,), (1337281406,), (1337281444,), (1337281446,), (1337281448,), (1337281450,), (1337281471,), (1337281472,), (1337281473,), (1337281474,), (1337281475,), (1337281477,), (1337281821,), (1337281828,), (1337281886,), (1337281890,), (1337281912,), (1337281952,), (1337281954,), (1337281956,), (1337281958,), (1337281961,), (1337281963,), (1337281975,), (1337281977,), (1337281979,), (1337281981,), (1337282006,), (1337282008,), (1337282009,), (1337282011,), (1337282020,), (1337282026,), (1337282038,), (1337282040,), (1337282042,), (1337282044,), (1337282047,), (1337282066,), (1337282078,), (1337282085,), (1337282088,), (1337282091,), (1337282094,), (1337282104,), (1337282106,), (1337282108,), (1337282126,), (1337282128,), (1337282132,), (1337282134,), (1337282140,), (1337282152,), (1337282606,), (1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13022025': {'nb_upload': 48, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20499230]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1337284292] map_info['map_portfolio_photo'] : {20499230: [1337284292, 1337283782, 1337283773, 1337283460, 1337283459, 1337283458, 1337283457, 1337283102, 1337283037, 1337283007, 1337282951, 1337282944, 1337282933, 1337282931, 1337282928, 1337282921, 1337282915, 1337282913, 1337282897, 1337282863, 1337282803, 1337282748, 1337282745, 1337282733, 1337282731, 1337282729, 1337282716, 1337282713, 1337282710, 1337282706, 1337282704, 1337282699, 1337282686, 1337282684, 1337282682, 1337282680, 1337282663, 1337282661, 1337282659, 1337282657, 1337282644, 1337282638, 1337282628, 1337282625, 1337282622, 1337282620, 1337282603, 1337282602]} final : True mtd_id 4302 list_pids : [1337284292] Looping around the photos to save general results len do output : 1 /20499230Didn'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, '2581629') ('4302', '20499230', '1337284292', None, None, None, None, None, '2581629') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '20499230', 'None', None, None, None, None, '2581629'), ('4302', '20499230', '1337284292', None, None, None, None, None, '2581629')] time used for this insertion : 0.012516260147094727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.29300713539123535 time spend to save output : 0.012725830078125 total time spend for step 5 : 0.30573296546936035 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 (2581629) 2.00user 2.69system 0:09.65elapsed 48%CPU (0avgtext+0avgdata 156608maxresident)k 19544inputs+10584outputs (104major+61892minor)pagefaults 0swaps