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 : 3877061 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 (2564441) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2564441) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20334954 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2564441'] with mtr_portfolio_ids : ['20334954'] and first list_photo_ids : [] new path : /proc/3877061/ Name: python3 Umask: 0002 State: R (running) Tgid: 3877061 Ngid: 0 Pid: 3877061 PPid: 3877060 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3877061 NSpid: 3877061 NSpgid: 3845376 NSsid: 3845376 VmPeak: 1106580 kB VmSize: 1106556 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98436 kB VmRSS: 98436 kB RssAnon: 59744 kB RssFile: 38692 kB RssShmem: 0 kB VmData: 865308 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 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: 41 nonvoluntary_ctxt_switches: 103 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3877061', 'Ngid': '0', 'Pid': '3877061', 'PPid': '3877060', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3877061', 'NSpid': '3877061', 'NSpgid': '3845376', 'NSsid': '3845376', 'VmPeak': '1106580 kB', 'VmSize': '1106556 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98436 kB', 'VmRSS': '98436 kB', 'RssAnon': '59744 kB', 'RssFile': '38692 kB', 'RssShmem': '0 kB', 'VmData': '865308 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '41', 'nonvoluntary_ctxt_switches': '103'} ('datou_batch_current', '3877061', '1106580', '0', '1106556', '865308', '98436', b'', 'marlene', '2564441') 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 (20334954) 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 (2564441 ) ) 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 (20334954) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1335520387, 'portfolio_id': 20334954}, {'photo_id': 1335520382, 'portfolio_id': 20334954}, {'photo_id': 1335520358, 'portfolio_id': 20334954}, {'photo_id': 1335520350, 'portfolio_id': 20334954}, {'photo_id': 1335520120, 'portfolio_id': 20334954}, {'photo_id': 1335520101, 'portfolio_id': 20334954}, {'photo_id': 1335520096, 'portfolio_id': 20334954}, {'photo_id': 1335520066, 'portfolio_id': 20334954}, {'photo_id': 1335519926, 'portfolio_id': 20334954}, {'photo_id': 1335519919, 'portfolio_id': 20334954}, {'photo_id': 1335519890, 'portfolio_id': 20334954}, {'photo_id': 1335519882, 'portfolio_id': 20334954}, {'photo_id': 1335519862, 'portfolio_id': 20334954}, {'photo_id': 1335519857, 'portfolio_id': 20334954}, {'photo_id': 1335519746, 'portfolio_id': 20334954}, {'photo_id': 1335519744, 'portfolio_id': 20334954}, {'photo_id': 1335519741, 'portfolio_id': 20334954}, {'photo_id': 1335519738, 'portfolio_id': 20334954}, {'photo_id': 1335519736, 'portfolio_id': 20334954}, {'photo_id': 1335519708, 'portfolio_id': 20334954}, {'photo_id': 1335519697, 'portfolio_id': 20334954}, {'photo_id': 1335519694, 'portfolio_id': 20334954}, {'photo_id': 1335519692, 'portfolio_id': 20334954}, {'photo_id': 1335519656, 'portfolio_id': 20334954}, {'photo_id': 1335519653, 'portfolio_id': 20334954}, {'photo_id': 1335519650, 'portfolio_id': 20334954}, {'photo_id': 1335519644, 'portfolio_id': 20334954}, {'photo_id': 1335519605, 'portfolio_id': 20334954}, {'photo_id': 1335519596, 'portfolio_id': 20334954}, {'photo_id': 1335519592, 'portfolio_id': 20334954}, {'photo_id': 1335519584, 'portfolio_id': 20334954}, {'photo_id': 1335519582, 'portfolio_id': 20334954}, {'photo_id': 1335519489, 'portfolio_id': 20334954}, {'photo_id': 1335519485, 'portfolio_id': 20334954}, {'photo_id': 1335519361, 'portfolio_id': 20334954}, {'photo_id': 1335519188, 'portfolio_id': 20334954}, {'photo_id': 1335519184, 'portfolio_id': 20334954}, {'photo_id': 1335519176, 'portfolio_id': 20334954}, {'photo_id': 1335518904, 'portfolio_id': 20334954}, {'photo_id': 1335518884, 'portfolio_id': 20334954}, {'photo_id': 1335518882, 'portfolio_id': 20334954}, {'photo_id': 1335518430, 'portfolio_id': 20334954}, {'photo_id': 1335518396, 'portfolio_id': 20334954}, {'photo_id': 1335518389, 'portfolio_id': 20334954}, {'photo_id': 1335518372, 'portfolio_id': 20334954}, {'photo_id': 1335518368, 'portfolio_id': 20334954}, {'photo_id': 1335518363, 'portfolio_id': 20334954}, {'photo_id': 1335518257, 'portfolio_id': 20334954}, {'photo_id': 1335518238, 'portfolio_id': 20334954}, {'photo_id': 1335518235, 'portfolio_id': 20334954}, {'photo_id': 1335518232, 'portfolio_id': 20334954}, {'photo_id': 1335518106, 'portfolio_id': 20334954}] map_portfolio_id_photo_id: {20334954: [1335520387, 1335520382, 1335520358, 1335520350, 1335520120, 1335520101, 1335520096, 1335520066, 1335519926, 1335519919, 1335519890, 1335519882, 1335519862, 1335519857, 1335519746, 1335519744, 1335519741, 1335519738, 1335519736, 1335519708, 1335519697, 1335519694, 1335519692, 1335519656, 1335519653, 1335519650, 1335519644, 1335519605, 1335519596, 1335519592, 1335519584, 1335519582, 1335519489, 1335519485, 1335519361, 1335519188, 1335519184, 1335519176, 1335518904, 1335518884, 1335518882, 1335518430, 1335518396, 1335518389, 1335518372, 1335518368, 1335518363, 1335518257, 1335518238, 1335518235, 1335518232, 1335518106]} ##### 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.01568913459777832 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Feb 7 14:00:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20334954) 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 : 20334954 get user id for portfolio 20334954 get sub ptf for main ptf 20334954, type 3726 and hashtags ['Carton_brun', 'cartonnette', 'Teint_Dans_La_Masse', 'kraft', 'metal', 'papier', 'mal_croppe', 'Carton_gris', 'plastique', 'flou', 'autre_refus', 'environnement'] 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`=20334954 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','Teint_Dans_La_Masse','kraft','metal','papier','mal_croppe','Carton_gris','plastique','flou','autre_refus','environnement')) 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`=20334954 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','Teint_Dans_La_Masse','kraft','metal','papier','mal_croppe','Carton_gris','plastique','flou','autre_refus','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20334954, 'sub_port_id': 20334981, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020963, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 50, 59)}, 'mal_croppe': {'main_port_id': 20334954, 'sub_port_id': 20334982, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020964, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 50, 59)}, 'papier': {'main_port_id': 20334954, 'sub_port_id': 20334983, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020965, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 50, 59)}, 'plastique': {'main_port_id': 20334954, 'sub_port_id': 20334984, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020966, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 50, 59)}, 'Carton_gris': {'main_port_id': 20334954, 'sub_port_id': 20334985, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020967, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 50, 59)}, 'flou': {'main_port_id': 20334954, 'sub_port_id': 20334986, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020968, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 50, 59)}, 'environnement': {'main_port_id': 20334954, 'sub_port_id': 20334987, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020969, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 50, 59)}, 'metal': {'main_port_id': 20334954, 'sub_port_id': 20334988, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020970, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 50, 59)}, 'Carton_brun': {'main_port_id': 20334954, 'sub_port_id': 20334989, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020971, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 50, 59)}, 'autre_refus': {'main_port_id': 20334954, 'sub_port_id': 20334990, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020972, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 50, 59)}, 'cartonnette': {'main_port_id': 20334954, 'sub_port_id': 20334991, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020973, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 50, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20334954, 'sub_port_id': 20334992, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020974, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 50, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20334981 , 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=20334954 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 (20334981) result : ((1335519602,), (1335519603,), (1335519643,), (1335519689,), (1335519690,), (1335519691,), (1335520410,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20334954) result : ((1335518106,), (1335518232,), (1335518235,), (1335518238,), (1335518257,), (1335518363,), (1335518368,), (1335518372,), (1335518389,), (1335518396,), (1335518430,), (1335518882,), (1335518884,), (1335518904,), (1335519176,), (1335519184,), (1335519188,), (1335519361,), (1335519485,), (1335519489,), (1335519582,), (1335519584,), (1335519592,), (1335519596,), (1335519605,), (1335519644,), (1335519650,), (1335519653,), (1335519656,), (1335519692,), (1335519694,), (1335519697,), (1335519708,), (1335519736,), (1335519738,), (1335519741,), (1335519744,), (1335519746,), (1335519857,), (1335519862,), (1335519882,), (1335519890,), (1335519919,), (1335519926,), (1335520066,), (1335520096,), (1335520101,), (1335520120,), (1335520350,), (1335520358,), (1335520382,), (1335520387,)) 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 20334982 , 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=20334954 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 (20334982) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20334954) result : ((1335518106,), (1335518232,), (1335518235,), (1335518238,), (1335518257,), (1335518363,), (1335518368,), (1335518372,), (1335518389,), (1335518396,), (1335518430,), (1335518882,), (1335518884,), (1335518904,), (1335519176,), (1335519184,), (1335519188,), (1335519361,), (1335519485,), (1335519489,), (1335519582,), (1335519584,), (1335519592,), (1335519596,), (1335519605,), (1335519644,), (1335519650,), (1335519653,), (1335519656,), (1335519692,), (1335519694,), (1335519697,), (1335519708,), (1335519736,), (1335519738,), (1335519741,), (1335519744,), (1335519746,), (1335519857,), (1335519862,), (1335519882,), (1335519890,), (1335519919,), (1335519926,), (1335520066,), (1335520096,), (1335520101,), (1335520120,), (1335520350,), (1335520358,), (1335520382,), (1335520387,)) 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 20334983 , 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=20334954 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 (20334983) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20334954) result : ((1335518106,), (1335518232,), (1335518235,), (1335518238,), (1335518257,), (1335518363,), (1335518368,), (1335518372,), (1335518389,), (1335518396,), (1335518430,), (1335518882,), (1335518884,), (1335518904,), (1335519176,), (1335519184,), (1335519188,), (1335519361,), (1335519485,), (1335519489,), (1335519582,), (1335519584,), (1335519592,), (1335519596,), (1335519605,), (1335519644,), (1335519650,), (1335519653,), (1335519656,), (1335519692,), (1335519694,), (1335519697,), (1335519708,), (1335519736,), (1335519738,), (1335519741,), (1335519744,), (1335519746,), (1335519857,), (1335519862,), (1335519882,), (1335519890,), (1335519919,), (1335519926,), (1335520066,), (1335520096,), (1335520101,), (1335520120,), (1335520350,), (1335520358,), (1335520382,), (1335520387,)) 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 20334984 , 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=20334954 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 (20334984) result : ((1335518881,), (1335519601,), (1335519688,), (1335520125,), (1335520247,), (1335520408,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20334954) result : ((1335518106,), (1335518232,), (1335518235,), (1335518238,), (1335518257,), (1335518363,), (1335518368,), (1335518372,), (1335518389,), (1335518396,), (1335518430,), (1335518882,), (1335518884,), (1335518904,), (1335519176,), (1335519184,), (1335519188,), (1335519361,), (1335519485,), (1335519489,), (1335519582,), (1335519584,), (1335519592,), (1335519596,), (1335519605,), (1335519644,), (1335519650,), (1335519653,), (1335519656,), (1335519692,), (1335519694,), (1335519697,), (1335519708,), (1335519736,), (1335519738,), (1335519741,), (1335519744,), (1335519746,), (1335519857,), (1335519862,), (1335519882,), (1335519890,), (1335519919,), (1335519926,), (1335520066,), (1335520096,), (1335520101,), (1335520120,), (1335520350,), (1335520358,), (1335520382,), (1335520387,)) 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 20334985 , 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=20334954 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 (20334985) result : ((1335519487,), (1335519597,), (1335519598,), (1335519635,), (1335519684,), (1335519685,), (1335520108,), (1335520245,), (1335520327,), (1335520339,), (1335520340,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20334954) result : ((1335518106,), (1335518232,), (1335518235,), (1335518238,), (1335518257,), (1335518363,), (1335518368,), (1335518372,), (1335518389,), (1335518396,), (1335518430,), (1335518882,), (1335518884,), (1335518904,), (1335519176,), (1335519184,), (1335519188,), (1335519361,), (1335519485,), (1335519489,), (1335519582,), (1335519584,), (1335519592,), (1335519596,), (1335519605,), (1335519644,), (1335519650,), (1335519653,), (1335519656,), (1335519692,), (1335519694,), (1335519697,), (1335519708,), (1335519736,), (1335519738,), (1335519741,), (1335519744,), (1335519746,), (1335519857,), (1335519862,), (1335519882,), (1335519890,), (1335519919,), (1335519926,), (1335520066,), (1335520096,), (1335520101,), (1335520120,), (1335520350,), (1335520358,), (1335520382,), (1335520387,)) 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 20334986 , 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=20334954 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 (20334986) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20334954) result : ((1335518106,), (1335518232,), (1335518235,), (1335518238,), (1335518257,), (1335518363,), (1335518368,), (1335518372,), (1335518389,), (1335518396,), (1335518430,), (1335518882,), (1335518884,), (1335518904,), (1335519176,), (1335519184,), (1335519188,), (1335519361,), (1335519485,), (1335519489,), (1335519582,), (1335519584,), (1335519592,), (1335519596,), (1335519605,), (1335519644,), (1335519650,), (1335519653,), (1335519656,), (1335519692,), (1335519694,), (1335519697,), (1335519708,), (1335519736,), (1335519738,), (1335519741,), (1335519744,), (1335519746,), (1335519857,), (1335519862,), (1335519882,), (1335519890,), (1335519919,), (1335519926,), (1335520066,), (1335520096,), (1335520101,), (1335520120,), (1335520350,), (1335520358,), (1335520382,), (1335520387,)) 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 20334987 , 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=20334954 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 (20334987) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20334954) result : ((1335518106,), (1335518232,), (1335518235,), (1335518238,), (1335518257,), (1335518363,), (1335518368,), (1335518372,), (1335518389,), (1335518396,), (1335518430,), (1335518882,), (1335518884,), (1335518904,), (1335519176,), (1335519184,), (1335519188,), (1335519361,), (1335519485,), (1335519489,), (1335519582,), (1335519584,), (1335519592,), (1335519596,), (1335519605,), (1335519644,), (1335519650,), (1335519653,), (1335519656,), (1335519692,), (1335519694,), (1335519697,), (1335519708,), (1335519736,), (1335519738,), (1335519741,), (1335519744,), (1335519746,), (1335519857,), (1335519862,), (1335519882,), (1335519890,), (1335519919,), (1335519926,), (1335520066,), (1335520096,), (1335520101,), (1335520120,), (1335520350,), (1335520358,), (1335520382,), (1335520387,)) 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 20334988 , 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=20334954 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 (20334988) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20334954) result : ((1335518106,), (1335518232,), (1335518235,), (1335518238,), (1335518257,), (1335518363,), (1335518368,), (1335518372,), (1335518389,), (1335518396,), (1335518430,), (1335518882,), (1335518884,), (1335518904,), (1335519176,), (1335519184,), (1335519188,), (1335519361,), (1335519485,), (1335519489,), (1335519582,), (1335519584,), (1335519592,), (1335519596,), (1335519605,), (1335519644,), (1335519650,), (1335519653,), (1335519656,), (1335519692,), (1335519694,), (1335519697,), (1335519708,), (1335519736,), (1335519738,), (1335519741,), (1335519744,), (1335519746,), (1335519857,), (1335519862,), (1335519882,), (1335519890,), (1335519919,), (1335519926,), (1335520066,), (1335520096,), (1335520101,), (1335520120,), (1335520350,), (1335520358,), (1335520382,), (1335520387,)) 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 20334989 , 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=20334954 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 (20334989) result : ((1335519599,), (1335519686,), (1335520119,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20334954) result : ((1335518106,), (1335518232,), (1335518235,), (1335518238,), (1335518257,), (1335518363,), (1335518368,), (1335518372,), (1335518389,), (1335518396,), (1335518430,), (1335518882,), (1335518884,), (1335518904,), (1335519176,), (1335519184,), (1335519188,), (1335519361,), (1335519485,), (1335519489,), (1335519582,), (1335519584,), (1335519592,), (1335519596,), (1335519605,), (1335519644,), (1335519650,), (1335519653,), (1335519656,), (1335519692,), (1335519694,), (1335519697,), (1335519708,), (1335519736,), (1335519738,), (1335519741,), (1335519744,), (1335519746,), (1335519857,), (1335519862,), (1335519882,), (1335519890,), (1335519919,), (1335519926,), (1335520066,), (1335520096,), (1335520101,), (1335520120,), (1335520350,), (1335520358,), (1335520382,), (1335520387,)) 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 20334990 , 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=20334954 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 (20334990) result : ((1335519595,), (1335519683,), (1335520338,), (1335520400,), (1335520402,), (1335520403,), (1335520404,), (1335520405,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20334954) result : ((1335518106,), (1335518232,), (1335518235,), (1335518238,), (1335518257,), (1335518363,), (1335518368,), (1335518372,), (1335518389,), (1335518396,), (1335518430,), (1335518882,), (1335518884,), (1335518904,), (1335519176,), (1335519184,), (1335519188,), (1335519361,), (1335519485,), (1335519489,), (1335519582,), (1335519584,), (1335519592,), (1335519596,), (1335519605,), (1335519644,), (1335519650,), (1335519653,), (1335519656,), (1335519692,), (1335519694,), (1335519697,), (1335519708,), (1335519736,), (1335519738,), (1335519741,), (1335519744,), (1335519746,), (1335519857,), (1335519862,), (1335519882,), (1335519890,), (1335519919,), (1335519926,), (1335520066,), (1335520096,), (1335520101,), (1335520120,), (1335520350,), (1335520358,), (1335520382,), (1335520387,)) 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 20334991 , 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=20334954 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 (20334991) result : ((1335519636,), (1335520117,), (1335520246,), (1335520328,), (1335520329,), (1335520330,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20334954) result : ((1335518106,), (1335518232,), (1335518235,), (1335518238,), (1335518257,), (1335518363,), (1335518368,), (1335518372,), (1335518389,), (1335518396,), (1335518430,), (1335518882,), (1335518884,), (1335518904,), (1335519176,), (1335519184,), (1335519188,), (1335519361,), (1335519485,), (1335519489,), (1335519582,), (1335519584,), (1335519592,), (1335519596,), (1335519605,), (1335519644,), (1335519650,), (1335519653,), (1335519656,), (1335519692,), (1335519694,), (1335519697,), (1335519708,), (1335519736,), (1335519738,), (1335519741,), (1335519744,), (1335519746,), (1335519857,), (1335519862,), (1335519882,), (1335519890,), (1335519919,), (1335519926,), (1335520066,), (1335520096,), (1335520101,), (1335520120,), (1335520350,), (1335520358,), (1335520382,), (1335520387,)) 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 20334992 , 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=20334954 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 (20334992) result : ((1335519587,), (1335519588,), (1335519589,), (1335519590,), (1335519591,), (1335519631,), (1335519632,), (1335519633,), (1335519634,), (1335519678,), (1335519679,), (1335519680,), (1335519681,), (1335519682,), (1335520100,), (1335520242,), (1335520243,), (1335520244,), (1335520325,), (1335520326,), (1335520334,), (1335520335,), (1335520337,), (1335520395,), (1335520396,), (1335520397,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20334954) result : ((1335518106,), (1335518232,), (1335518235,), (1335518238,), (1335518257,), (1335518363,), (1335518368,), (1335518372,), (1335518389,), (1335518396,), (1335518430,), (1335518882,), (1335518884,), (1335518904,), (1335519176,), (1335519184,), (1335519188,), (1335519361,), (1335519485,), (1335519489,), (1335519582,), (1335519584,), (1335519592,), (1335519596,), (1335519605,), (1335519644,), (1335519650,), (1335519653,), (1335519656,), (1335519692,), (1335519694,), (1335519697,), (1335519708,), (1335519736,), (1335519738,), (1335519741,), (1335519744,), (1335519746,), (1335519857,), (1335519862,), (1335519882,), (1335519890,), (1335519919,), (1335519926,), (1335520066,), (1335520096,), (1335520101,), (1335520120,), (1335520350,), (1335520358,), (1335520382,), (1335520387,)) 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`=20334954 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','Teint_Dans_La_Masse','kraft','metal','papier','mal_croppe','Carton_gris','plastique','flou','autre_refus','environnement')) 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`=20334954 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','Teint_Dans_La_Masse','kraft','metal','papier','mal_croppe','Carton_gris','plastique','flou','autre_refus','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20334954, 'sub_port_id': 20334993, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020975, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 51)}, 'mal_croppe': {'main_port_id': 20334954, 'sub_port_id': 20334994, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020976, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 51)}, 'papier': {'main_port_id': 20334954, 'sub_port_id': 20334995, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020977, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 51)}, 'plastique': {'main_port_id': 20334954, 'sub_port_id': 20334996, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020978, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 51)}, 'Carton_gris': {'main_port_id': 20334954, 'sub_port_id': 20334997, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020979, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 51)}, 'flou': {'main_port_id': 20334954, 'sub_port_id': 20334998, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020980, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 51)}, 'environnement': {'main_port_id': 20334954, 'sub_port_id': 20334999, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020981, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 51)}, 'metal': {'main_port_id': 20334954, 'sub_port_id': 20335000, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020982, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 51)}, 'Carton_brun': {'main_port_id': 20334954, 'sub_port_id': 20335001, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020983, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 51)}, 'autre_refus': {'main_port_id': 20334954, 'sub_port_id': 20335002, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020984, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 51)}, 'cartonnette': {'main_port_id': 20334954, 'sub_port_id': 20335003, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020985, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 51)}, 'Teint_Dans_La_Masse': {'main_port_id': 20334954, 'sub_port_id': 20335004, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13020986, 'last_updated_at': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 13, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 13, 51)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20334993,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20334981 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20334994,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20334982 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20334995,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20334983 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20334996,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20334984 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20334997,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20334985 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20334998,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20334986 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20334999,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20334987 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20335000,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20334988 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20335001,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20334989 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20335002,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20334990 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20335003,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20334991 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20335004,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20334992 lien utilise dans velours : https://www.fotonower.com/velours/20334993,20334994,20334995,20334996,20334997,20334998,20334999,20335000,20335001,20335002,20335003,20335004?tags=kraft,mal_croppe,papier,plastique,Carton_gris,flou,environnement,metal,Carton_brun,autre_refus,cartonnette,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20334954]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1335520387, 1335520382, 1335520358, 1335520350] map_info['map_portfolio_photo'] : {20334954: [1335520387, 1335520382, 1335520358, 1335520350, 1335520120, 1335520101, 1335520096, 1335520066, 1335519926, 1335519919, 1335519890, 1335519882, 1335519862, 1335519857, 1335519746, 1335519744, 1335519741, 1335519738, 1335519736, 1335519708, 1335519697, 1335519694, 1335519692, 1335519656, 1335519653, 1335519650, 1335519644, 1335519605, 1335519596, 1335519592, 1335519584, 1335519582, 1335519489, 1335519485, 1335519361, 1335519188, 1335519184, 1335519176, 1335518904, 1335518884, 1335518882, 1335518430, 1335518396, 1335518389, 1335518372, 1335518368, 1335518363, 1335518257, 1335518238, 1335518235, 1335518232, 1335518106]} final : False mtd_id 4302 list_pids : [1335520387, 1335520382, 1335520358, 1335520350] Looping around the photos to save general results len do output : 1 /20334954. 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, '2564441') ('4302', '20334954', '1335520387', None, None, None, None, None, '2564441') ('4302', None, None, None, None, None, None, None, '2564441') ('4302', '20334954', '1335520382', None, None, None, None, None, '2564441') ('4302', None, None, None, None, None, None, None, '2564441') ('4302', '20334954', '1335520358', None, None, None, None, None, '2564441') ('4302', None, None, None, None, None, None, None, '2564441') ('4302', '20334954', '1335520350', None, None, None, None, None, '2564441') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '20334954', "{'kraft': 20334981, 'mal_croppe': 20334982, 'papier': 20334983, 'plastique': 20334984, 'Carton_gris': 20334985, 'flou': 20334986, 'environnement': 20334987, 'metal': 20334988, 'Carton_brun': 20334989, 'autre_refus': 20334990, 'cartonnette': 20334991, 'Teint_Dans_La_Masse': 20334992}", None, None, None, None, '2564441'), ('4302', '20334954', '1335520387', None, None, None, None, None, '2564441'), ('4302', '20334954', '1335520382', None, None, None, None, None, '2564441'), ('4302', '20334954', '1335520358', None, None, None, None, None, '2564441'), ('4302', '20334954', '1335520350', None, None, None, None, None, '2564441')] time used for this insertion : 0.013916492462158203 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4979298114776611 time spend to save output : 0.014303922653198242 total time spend for step 1 : 1.5122337341308594 step2:final Fri Feb 7 14:00: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 (20334954) 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 20334954 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1335518106,1335518257,1335518238,1335518235,1335518232,1335518396,1335518389,1335518372,1335518368,1335518363,1335518430,1335518904,1335518884,1335518882,1335519361,1335519188,1335519184,1335519176,1335519489,1335519485,1335519605,1335519596,1335519592,1335519584,1335519582,1335519656,1335519653,1335519650,1335519644,1335519708,1335519697,1335519694,1335519692,1335519746,1335519744,1335519741,1335519738,1335519736,1335519926,1335519919,1335519890,1335519882,1335519862,1335519857,1335520120,1335520101,1335520096,1335520066,1335520387,1335520382,1335520358,1335520350); 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([20334954]) Inside saveOutput : final : False verbose : True original output for save of step final : {1335520387: ('0.04939393600495253',), 1335520382: ('0.04939393600495253',), 1335520358: ('0.04939393600495253',), 1335520350: ('0.04939393600495253',)} new output for save of step final : {1335520387: ('0.04939393600495253',), 1335520382: ('0.04939393600495253',), 1335520358: ('0.04939393600495253',), 1335520350: ('0.04939393600495253',)} [1335520387, 1335520382, 1335520358, 1335520350] map_info['map_portfolio_photo'] : {20334954: [1335520387, 1335520382, 1335520358, 1335520350, 1335520120, 1335520101, 1335520096, 1335520066, 1335519926, 1335519919, 1335519890, 1335519882, 1335519862, 1335519857, 1335519746, 1335519744, 1335519741, 1335519738, 1335519736, 1335519708, 1335519697, 1335519694, 1335519692, 1335519656, 1335519653, 1335519650, 1335519644, 1335519605, 1335519596, 1335519592, 1335519584, 1335519582, 1335519489, 1335519485, 1335519361, 1335519188, 1335519184, 1335519176, 1335518904, 1335518884, 1335518882, 1335518430, 1335518396, 1335518389, 1335518372, 1335518368, 1335518363, 1335518257, 1335518238, 1335518235, 1335518232, 1335518106]} final : False mtd_id 4302 list_pids : [1335520387, 1335520382, 1335520358, 1335520350] Looping around the photos to save general results len do output : 4 /1335520387.Didn't retrieve data . /1335520382.Didn't retrieve data . /1335520358.Didn't retrieve data . /1335520350.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, '2564441') ('4302', '20334954', '1335520387', None, None, None, None, None, '2564441') ('4302', None, None, None, None, None, None, None, '2564441') ('4302', '20334954', '1335520382', None, None, None, None, None, '2564441') ('4302', None, None, None, None, None, None, None, '2564441') ('4302', '20334954', '1335520358', None, None, None, None, None, '2564441') ('4302', None, None, None, None, None, None, None, '2564441') ('4302', '20334954', '1335520350', None, None, None, None, None, '2564441') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20334954', '1335520387', '0.04939393600495253', None, None, None, None, '2564441'), ('4302', '20334954', '1335520382', '0.04939393600495253', None, None, None, None, '2564441'), ('4302', '20334954', '1335520358', '0.04939393600495253', None, None, None, None, '2564441'), ('4302', '20334954', '1335520350', '0.04939393600495253', None, None, None, None, '2564441')] time used for this insertion : 0.016116619110107422 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07086372375488281 time spend to save output : 0.01647353172302246 total time spend for step 2 : 0.08733725547790527 step3:velours_tree Fri Feb 7 14:00: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 : {20334954: [{'kraft': 20334981, 'mal_croppe': 20334982, 'papier': 20334983, 'plastique': 20334984, 'Carton_gris': 20334985, 'flou': 20334986, 'environnement': 20334987, 'metal': 20334988, 'Carton_brun': 20334989, 'autre_refus': 20334990, 'cartonnette': 20334991, 'Teint_Dans_La_Masse': 20334992}]} input_args_next_step : {20334954: ()} output_args : {20334954: [{'kraft': 20334981, 'mal_croppe': 20334982, 'papier': 20334983, 'plastique': 20334984, 'Carton_gris': 20334985, 'flou': 20334986, 'environnement': 20334987, 'metal': 20334988, 'Carton_brun': 20334989, 'autre_refus': 20334990, 'cartonnette': 20334991, 'Teint_Dans_La_Masse': 20334992}]} args : 20334954 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 : ({'kraft': 20334981, 'mal_croppe': 20334982, 'papier': 20334983, 'plastique': 20334984, 'Carton_gris': 20334985, 'flou': 20334986, 'environnement': 20334987, 'metal': 20334988, 'Carton_brun': 20334989, 'autre_refus': 20334990, 'cartonnette': 20334991, 'Teint_Dans_La_Masse': 20334992},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20334954) 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([20334954]) 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.3638617992401123 time spend to save output : 5.435943603515625e-05 total time spend for step 3 : 0.36391615867614746 step4:send_mail_cod Fri Feb 7 14:00: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 : {1335520387: ('0.04939393600495253',), 1335520382: ('0.04939393600495253',), 1335520358: ('0.04939393600495253',), 1335520350: ('0.04939393600495253',)} input_args_next_step : {1335520387: ()} output_args : {1335520387: ('0.04939393600495253',), 1335520382: ('0.04939393600495253',), 1335520358: ('0.04939393600495253',), 1335520350: ('0.04939393600495253',)} args : 1335520387 depend.output_id : 0 input_args_next_step : {1335520387: ('0.04939393600495253',), 1335520382: ()} output_args : {1335520387: ('0.04939393600495253',), 1335520382: ('0.04939393600495253',), 1335520358: ('0.04939393600495253',), 1335520350: ('0.04939393600495253',)} args : 1335520382 depend.output_id : 0 input_args_next_step : {1335520387: ('0.04939393600495253',), 1335520382: ('0.04939393600495253',), 1335520358: ()} output_args : {1335520387: ('0.04939393600495253',), 1335520382: ('0.04939393600495253',), 1335520358: ('0.04939393600495253',), 1335520350: ('0.04939393600495253',)} args : 1335520358 depend.output_id : 0 input_args_next_step : {1335520387: ('0.04939393600495253',), 1335520382: ('0.04939393600495253',), 1335520358: ('0.04939393600495253',), 1335520350: ()} output_args : {1335520387: ('0.04939393600495253',), 1335520382: ('0.04939393600495253',), 1335520358: ('0.04939393600495253',), 1335520350: ('0.04939393600495253',)} args : 1335520350 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {20334954: [{'kraft': 20334981, 'mal_croppe': 20334982, 'papier': 20334983, 'plastique': 20334984, 'Carton_gris': 20334985, 'flou': 20334986, 'environnement': 20334987, 'metal': 20334988, 'Carton_brun': 20334989, 'autre_refus': 20334990, 'cartonnette': 20334991, 'Teint_Dans_La_Masse': 20334992}]} input_args_next_step : {1335520387: ('0.04939393600495253',), 1335520382: ('0.04939393600495253',), 1335520358: ('0.04939393600495253',), 1335520350: ('0.04939393600495253',), 20334954: ()} output_args : {20334954: [{'kraft': 20334981, 'mal_croppe': 20334982, 'papier': 20334983, 'plastique': 20334984, 'Carton_gris': 20334985, 'flou': 20334986, 'environnement': 20334987, 'metal': 20334988, 'Carton_brun': 20334989, 'autre_refus': 20334990, 'cartonnette': 20334991, 'Teint_Dans_La_Masse': 20334992}]} args : 20334954 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 :5, first value : ('0.04939393600495253',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20334954) 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 (1335520387,1335520382,1335520358,1335520350) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1335520350 begin to download photo : 1335520358 begin to download photo : 1335520382 begin to download photo : 1335520387 download finish for photo 1335520382 download finish for photo 1335520350 download finish for photo 1335520358 download finish for photo 1335520387 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P20334954_07-02-2025_14_00_59.pdf 20334981 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=20334981 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335519602: '1738932711_2482261_1335518389_9d4d2f5c9ace04398a75ce014027a39c_rle_crop_3659838391_0.png', 1335519603: '1738932711_2482261_1335518368_23f903a6b58b613afe61ce90deffe32b_rle_crop_3659838442_0.png', 1335519643: '1738932772_2482906_1335519176_6010577dc26ec67c6195b6d93f304a48_rle_crop_3659839472_0.png', 1335519689: '1738932793_2483104_1335518389_9d4d2f5c9ace04398a75ce014027a39c_bib_crop_3659838391_0.jpg', 1335519690: '1738932793_2483104_1335518389_9d4d2f5c9ace04398a75ce014027a39c_rle_crop_3659839529_0.png', 1335519691: '1738932793_2483104_1335518368_23f903a6b58b613afe61ce90deffe32b_rle_crop_3659838442_0.png', 1335520410: '1738933116_2493505_1335519592_27c4adfcdff2e581f60b9633b574d69f_rle_crop_3659844667_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/54cb1c0e876f345b2a06ec04f781a0f5_20710793.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/bdfb056f084c044d1d913193841a4eab_77367162.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/7e748e82a629af89f1dc1fd8d14cfe4e_46160016.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/52233a1a7ba6eb26af355ad5c0108277_87280277.jpg change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/92aac97e6c3214d30a5f1b2351a6e132_1391782.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/bdfb056f084c044d1d913193841a4eab_58984681.png change filename to text .imagette203349811738933259/ imagette203349811738933259/1738932772_2482906_1335519176_6010577dc26ec67c6195b6d93f304a48_rle_crop_3659839472_0.png.png imagette203349811738933259/1738932793_2483104_1335518389_9d4d2f5c9ace04398a75ce014027a39c_bib_crop_3659838391_0.jpg.jpg imagette203349811738933259/1738932711_2482261_1335518389_9d4d2f5c9ace04398a75ce014027a39c_rle_crop_3659838391_0.png.png imagette203349811738933259/1738933116_2493505_1335519592_27c4adfcdff2e581f60b9633b574d69f_rle_crop_3659844667_0.png.png imagette203349811738933259/1738932793_2483104_1335518389_9d4d2f5c9ace04398a75ce014027a39c_rle_crop_3659839529_0.png.png imagette203349811738933259/1738932711_2482261_1335518368_23f903a6b58b613afe61ce90deffe32b_rle_crop_3659838442_0.png.png imagette203349811738933259/1738932793_2483104_1335518368_23f903a6b58b613afe61ce90deffe32b_rle_crop_3659838442_0.png.png imagette203349821738933260/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/113ea1894a42f2f274bd762948030f00_3385901.png imagette203349811738933259 20334982 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=20334982 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203349821738933260 20334984 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=20334984 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335518881: '1738932533_2475841_1335518257_0a130f1dd027b8d317abac81d7dc6587_rle_crop_3659836937_0.png', 1335519601: '1738932711_2482261_1335518363_764d1980cebd9a3a6ab33a2a5edb160a_rle_crop_3659838484_0.png', 1335519688: '1738932793_2483104_1335518363_764d1980cebd9a3a6ab33a2a5edb160a_rle_crop_3659838484_0.png', 1335520125: '1738933032_2491713_1335519650_becfb57f90f33766ab057bc9354e2217_rle_crop_3659843593_0.png', 1335520247: '1738933053_2491904_1335519694_ddfe9b62340d67923603e744a41e10c1_rle_crop_3659843752_0.png', 1335520408: '1738933116_2493505_1335519656_54eb676e65283de0f1a01111d5f48878_rle_crop_3659844620_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/c862dc42a567b380f2863cd8abd03ab5_76418923.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/a90a2e22ffe5c600a6f7b8d2b245d900_37093277.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/a90a2e22ffe5c600a6f7b8d2b245d900_96497208.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/e2bd483827cb04b131698b408c0687e4_94633537.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/cebcc49dfb4f65a92ebd1f2dcff2fd63_15242108.png change filename to text .imagette203349841738933260/ imagette203349841738933260/1738933116_2493505_1335519656_54eb676e65283de0f1a01111d5f48878_rle_crop_3659844620_0.png.png imagette203349841738933260/1738932711_2482261_1335518363_764d1980cebd9a3a6ab33a2a5edb160a_rle_crop_3659838484_0.png.png imagette203349841738933260/1738932793_2483104_1335518363_764d1980cebd9a3a6ab33a2a5edb160a_rle_crop_3659838484_0.png.png imagette203349841738933260/1738933032_2491713_1335519650_becfb57f90f33766ab057bc9354e2217_rle_crop_3659843593_0.png.png imagette203349841738933260/1738933053_2491904_1335519694_ddfe9b62340d67923603e744a41e10c1_rle_crop_3659843752_0.png.png imagette203349841738933260/1738932533_2475841_1335518257_0a130f1dd027b8d317abac81d7dc6587_rle_crop_3659836937_0.png.png imagette203349861738933260/ imagette203349881738933260/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/1fc4a2e2dfde33286839687d14fe7629_45814041.png imagette203349841738933260 20334986 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=20334986 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203349861738933260 20334988 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=20334988 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203349881738933260 20334990 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=20334990 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335519595: '1738932711_2482261_1335518430_72f45e793a9ac39b53e351639e6a28e0_rle_crop_3659838208_0.png', 1335519683: '1738932793_2483104_1335518430_72f45e793a9ac39b53e351639e6a28e0_rle_crop_3659838208_0.png', 1335520338: '1738933134_2493694_1335519605_6cf5c9424c539fac73bad1951813f23f_rle_crop_3659844559_0.png', 1335520400: '1738933116_2493505_1335519596_20a3b2c59bdc46b73562f6d58e7b62d0_rle_crop_3659844650_0.png', 1335520402: '1738933116_2493505_1335519596_20a3b2c59bdc46b73562f6d58e7b62d0_rle_crop_3659844647_0.png', 1335520403: '1738933116_2493505_1335519584_ded4241d8692a6700c35feb4e7f925bd_rle_crop_3659844695_0.png', 1335520404: '1738933116_2493505_1335519584_ded4241d8692a6700c35feb4e7f925bd_rle_crop_3659844694_0.png', 1335520405: '1738933116_2493505_1335519582_f45b55ea83644488fa5ed463ea4c9fbc_rle_crop_3659844716_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/bdbd79cd301acc90d904fc0a73386e3e_7734604.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/bdbd79cd301acc90d904fc0a73386e3e_42230526.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/492006b92c9ff8308153329660095b0c_55694608.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/e6cb56fe511350009ae0c20a1c964728_83812926.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/70f38e1ea2d9e51ee5162e0a642a5ab2_87969.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/d91918991b99f48432836f13c23a7c93_1234470.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/a2bde2fc4594b84df8986bd867764a9b_16653180.png change filename to text .imagette203349901738933260/ imagette203349901738933260/1738933116_2493505_1335519584_ded4241d8692a6700c35feb4e7f925bd_rle_crop_3659844695_0.png.png imagette203349901738933260/1738933116_2493505_1335519596_20a3b2c59bdc46b73562f6d58e7b62d0_rle_crop_3659844647_0.png.png imagette203349901738933260/1738933116_2493505_1335519584_ded4241d8692a6700c35feb4e7f925bd_rle_crop_3659844694_0.png.png imagette203349901738933260/1738933116_2493505_1335519582_f45b55ea83644488fa5ed463ea4c9fbc_rle_crop_3659844716_0.png.png imagette203349901738933260/1738932711_2482261_1335518430_72f45e793a9ac39b53e351639e6a28e0_rle_crop_3659838208_0.png.png imagette203349901738933260/1738933134_2493694_1335519605_6cf5c9424c539fac73bad1951813f23f_rle_crop_3659844559_0.png.png imagette203349901738933260/1738933116_2493505_1335519596_20a3b2c59bdc46b73562f6d58e7b62d0_rle_crop_3659844650_0.png.png imagette203349901738933260/1738932793_2483104_1335518430_72f45e793a9ac39b53e351639e6a28e0_rle_crop_3659838208_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/dbb1140f5c8f6f2c54f45b05c88af564_92119256.png imagette203349901738933260 20334991 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=20334991 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335519636: '1738932772_2482906_1335519489_9cda6b204441ed59a77e2a212f57e49f_rle_crop_3659839406_0.png', 1335520117: '1738933032_2491713_1335519653_bc351c755a068c4b3b5b21b172a925bd_rle_crop_3659843559_0.png', 1335520246: '1738933053_2491904_1335519694_ddfe9b62340d67923603e744a41e10c1_rle_crop_3659843753_0.png', 1335520328: '1738933092_2493267_1335519738_67b09ee9c96edadaab7ce48879a09054_rle_crop_3659844390_0.png', 1335520329: '1738933092_2493267_1335519738_67b09ee9c96edadaab7ce48879a09054_rle_crop_3659844393_0.png', 1335520330: '1738933092_2493267_1335519736_bb2550e5f783bfc697d1a86b082f392f_rle_crop_3659844416_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/f2523566ebe5e6df675f5281cf848757_7097009.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/274a9ace547056a79a84aa78503f3547_20387612.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/0f61407d7cced14e00665df5a7ea2272_28266883.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/acd8e957da202fd0db82977fb4bb29af_40907583.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/f48f6467f14aa06944989f27dba14d7a_2528779.png change filename to text .imagette203349911738933261/ imagette203349911738933261/1738933092_2493267_1335519738_67b09ee9c96edadaab7ce48879a09054_rle_crop_3659844390_0.png.png imagette203349911738933261/1738933053_2491904_1335519694_ddfe9b62340d67923603e744a41e10c1_rle_crop_3659843753_0.png.png imagette203349911738933261/1738933092_2493267_1335519736_bb2550e5f783bfc697d1a86b082f392f_rle_crop_3659844416_0.png.png imagette203349911738933261/1738933032_2491713_1335519653_bc351c755a068c4b3b5b21b172a925bd_rle_crop_3659843559_0.png.png imagette203349911738933261/1738933092_2493267_1335519738_67b09ee9c96edadaab7ce48879a09054_rle_crop_3659844393_0.png.png imagette203349911738933261/1738932772_2482906_1335519489_9cda6b204441ed59a77e2a212f57e49f_rle_crop_3659839406_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/628fd9917cead476c017da85951e2b2b_31427106.png imagette203349911738933261 20334985 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=20334985 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335519487: '1738932692_2482124_1335518884_8a36ef97c5b9647551eb1632ff78d29e_rle_crop_3659837854_0.png', 1335519597: '1738932711_2482261_1335518372_b5e4b58f22cb4a18c31b0d3dd7c39c7b_rle_crop_3659838425_0.png', 1335519598: '1738932711_2482261_1335518368_23f903a6b58b613afe61ce90deffe32b_rle_crop_3659838444_0.png', 1335519635: '1738932772_2482906_1335519184_94361a115b45ea3fb3995cbff2cd3f93_rle_crop_3659839452_0.png', 1335519684: '1738932793_2483104_1335518372_b5e4b58f22cb4a18c31b0d3dd7c39c7b_rle_crop_3659838425_0.png', 1335519685: '1738932793_2483104_1335518368_23f903a6b58b613afe61ce90deffe32b_rle_crop_3659838444_0.png', 1335520108: '1738933032_2491713_1335519653_bc351c755a068c4b3b5b21b172a925bd_rle_crop_3659843560_0.png', 1335520245: '1738933053_2491904_1335519697_85ad1560c01805ad3e35027ae5d243f2_rle_crop_3659843733_0.png', 1335520327: '1738933092_2493267_1335519741_ef2680417f510fc2ff4848be5dcaa45f_rle_crop_3659844305_0.png', 1335520339: '1738933134_2493694_1335519605_6cf5c9424c539fac73bad1951813f23f_rle_crop_3659844563_0.png', 1335520340: '1738933134_2493694_1335519485_83efd69e879cbe32c4ef6efae81e030b_rle_crop_3659844632_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/a0f0b6c391a11ff39ea030740c4cbf62_3961255.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/85c257b23e4fe7564b3ee0245a6e2475_41097075.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/1579d7d6bc3d800a3d14e118098d3e76_32151935.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/37006b2a02773b1c72c81c4ebbc40b92_35851369.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/85c257b23e4fe7564b3ee0245a6e2475_70344281.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/1579d7d6bc3d800a3d14e118098d3e76_40382537.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/bf485fb3f20ef20063075265c5240322_94800071.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/c1c5700c25b8fc36b90ec5310f315f4a_91055088.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/43ede40966efdda1918f3da88948d3d0_63113311.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/876ff0d9bc797c3461dbf710063cb4db_1422338.png change filename to text .imagette203349851738933261/ imagette203349851738933261/1738932692_2482124_1335518884_8a36ef97c5b9647551eb1632ff78d29e_rle_crop_3659837854_0.png.png imagette203349851738933261/1738932793_2483104_1335518368_23f903a6b58b613afe61ce90deffe32b_rle_crop_3659838444_0.png.png imagette203349851738933261/1738932711_2482261_1335518368_23f903a6b58b613afe61ce90deffe32b_rle_crop_3659838444_0.png.png imagette203349851738933261/1738933053_2491904_1335519697_85ad1560c01805ad3e35027ae5d243f2_rle_crop_3659843733_0.png.png imagette203349851738933261/1738933092_2493267_1335519741_ef2680417f510fc2ff4848be5dcaa45f_rle_crop_3659844305_0.png.png imagette203349851738933261/1738932711_2482261_1335518372_b5e4b58f22cb4a18c31b0d3dd7c39c7b_rle_crop_3659838425_0.png.png imagette203349851738933261/1738932793_2483104_1335518372_b5e4b58f22cb4a18c31b0d3dd7c39c7b_rle_crop_3659838425_0.png.png imagette203349851738933261/1738932772_2482906_1335519184_94361a115b45ea3fb3995cbff2cd3f93_rle_crop_3659839452_0.png.png imagette203349851738933261/1738933134_2493694_1335519605_6cf5c9424c539fac73bad1951813f23f_rle_crop_3659844563_0.png.png imagette203349851738933261/1738933134_2493694_1335519485_83efd69e879cbe32c4ef6efae81e030b_rle_crop_3659844632_0.png.png imagette203349851738933261/1738933032_2491713_1335519653_bc351c755a068c4b3b5b21b172a925bd_rle_crop_3659843560_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/87a83c304d4671798deb7c745bdf2c0c_30466001.png imagette203349851738933261 20334989 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=20334989 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335519599: '1738932711_2482261_1335518368_23f903a6b58b613afe61ce90deffe32b_rle_crop_3659838443_0.png', 1335519686: '1738932793_2483104_1335518368_23f903a6b58b613afe61ce90deffe32b_rle_crop_3659838443_0.png', 1335520119: '1738933032_2491713_1335519650_becfb57f90f33766ab057bc9354e2217_rle_crop_3659843598_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/78ee6c30fb0feadf3a212ee6ca25ee6f_68697928.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/78ee6c30fb0feadf3a212ee6ca25ee6f_67575791.png change filename to text .imagette203349891738933262/ imagette203349891738933262/1738932793_2483104_1335518368_23f903a6b58b613afe61ce90deffe32b_rle_crop_3659838443_0.png.png imagette203349891738933262/1738933032_2491713_1335519650_becfb57f90f33766ab057bc9354e2217_rle_crop_3659843598_0.png.png imagette203349891738933262/1738932711_2482261_1335518368_23f903a6b58b613afe61ce90deffe32b_rle_crop_3659838443_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/01cf663a74b6f2d59307ba121d99bbf4_45722445.png imagette203349891738933262 20334992 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=20334992 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335519682: '1738932793_2483104_1335518363_764d1980cebd9a3a6ab33a2a5edb160a_rle_crop_3659838493_0.png', 1335520397: '1738933116_2493505_1335519582_f45b55ea83644488fa5ed463ea4c9fbc_rle_crop_3659844720_0.png', 1335520396: '1738933116_2493505_1335519596_20a3b2c59bdc46b73562f6d58e7b62d0_rle_crop_3659844657_0.png', 1335520395: '1738933116_2493505_1335519656_54eb676e65283de0f1a01111d5f48878_rle_crop_3659844623_0.png', 1335520337: '1738933134_2493694_1335519485_83efd69e879cbe32c4ef6efae81e030b_rle_crop_3659844639_0.png', 1335520335: '1738933134_2493694_1335519605_6cf5c9424c539fac73bad1951813f23f_rle_crop_3659844569_0.png', 1335520334: '1738933134_2493694_1335519605_6cf5c9424c539fac73bad1951813f23f_rle_crop_3659844568_0.png', 1335520326: '1738933092_2493267_1335519736_bb2550e5f783bfc697d1a86b082f392f_rle_crop_3659844420_0.png', 1335520325: '1738933092_2493267_1335519736_bb2550e5f783bfc697d1a86b082f392f_rle_crop_3659844424_0.png', 1335520244: '1738933053_2491904_1335519692_eb2ea3c89064c76faf46b15b2a0d7f5f_rle_crop_3659843773_0.png', 1335520243: '1738933053_2491904_1335519694_ddfe9b62340d67923603e744a41e10c1_rle_crop_3659843759_0.png', 1335520242: '1738933053_2491904_1335519697_85ad1560c01805ad3e35027ae5d243f2_rle_crop_3659843738_0.png', 1335520100: '1738933032_2491713_1335519650_becfb57f90f33766ab057bc9354e2217_rle_crop_3659843597_0.png', 1335519587: '1738932711_2482261_1335518389_9d4d2f5c9ace04398a75ce014027a39c_rle_crop_3659838390_0.png', 1335519681: '1738932793_2483104_1335518363_764d1980cebd9a3a6ab33a2a5edb160a_rle_crop_3659838490_0.png', 1335519680: '1738932793_2483104_1335518372_b5e4b58f22cb4a18c31b0d3dd7c39c7b_rle_crop_3659838428_0.png', 1335519679: '1738932793_2483104_1335518389_9d4d2f5c9ace04398a75ce014027a39c_rle_crop_3659838387_0.png', 1335519678: '1738932793_2483104_1335518389_9d4d2f5c9ace04398a75ce014027a39c_rle_crop_3659838390_0.png', 1335519634: '1738932772_2482906_1335519184_94361a115b45ea3fb3995cbff2cd3f93_rle_crop_3659839454_0.png', 1335519633: '1738932772_2482906_1335519184_94361a115b45ea3fb3995cbff2cd3f93_rle_crop_3659839455_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/7c6f5262c72c628ee93083f64ceb0ac5_81235282.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/877e33256c94ba138d0615b300f6ceb6_21819886.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/f57ad1d675451e69ab6e3ad21ae071d0_1639616.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/b872ed778e2c4b455b050682baefa27c_49241981.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/b010476ff1ff7b7240bd19f3758b322d_146767.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/b6c9595edc53e0e0853a33d6806f6552_30382421.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/eafd842194cf4432b36a226f9ea98ab9_68039252.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/99168ea9da40f5d8ef0eb00a144862e2_40474491.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/2eaea46ee02d6e20e41f93a99d1ef2fc_73282179.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/6f307adc01a06f7d1809a45f04c70455_63633191.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/bce6df9145af6a5865f9b533523b2ad9_11030035.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/f4918de652de95e6721648571f960ab7_26409376.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/a98d42ccb9cf3bd4f135231e3c609955_34112863.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/ac6c4b947cae014ff2fde50e0ddceb9b_36505678.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/6d515e36bd9db9fbf05d95aa8447a123_30348306.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/dc46d5770458dbf0970ba6a75fbcf837_93766055.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/30ec8b61b174f74fb6b79cd73c4c706b_90512893.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/ac6c4b947cae014ff2fde50e0ddceb9b_15874348.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/fc29fdbbf9e5e3aa06008cc333c2007c_69565370.png change filename to text .imagette203349921738933262/ imagette203349921738933262/1738933032_2491713_1335519650_becfb57f90f33766ab057bc9354e2217_rle_crop_3659843597_0.png.png imagette203349921738933262/1738933053_2491904_1335519697_85ad1560c01805ad3e35027ae5d243f2_rle_crop_3659843738_0.png.png imagette203349921738933262/1738933134_2493694_1335519485_83efd69e879cbe32c4ef6efae81e030b_rle_crop_3659844639_0.png.png imagette203349921738933262/1738932793_2483104_1335518372_b5e4b58f22cb4a18c31b0d3dd7c39c7b_rle_crop_3659838428_0.png.png imagette203349921738933262/1738932793_2483104_1335518363_764d1980cebd9a3a6ab33a2a5edb160a_rle_crop_3659838490_0.png.png imagette203349921738933262/1738933134_2493694_1335519605_6cf5c9424c539fac73bad1951813f23f_rle_crop_3659844568_0.png.png imagette203349921738933262/1738933116_2493505_1335519582_f45b55ea83644488fa5ed463ea4c9fbc_rle_crop_3659844720_0.png.png imagette203349921738933262/1738932793_2483104_1335518389_9d4d2f5c9ace04398a75ce014027a39c_rle_crop_3659838390_0.png.png imagette203349921738933262/1738932772_2482906_1335519184_94361a115b45ea3fb3995cbff2cd3f93_rle_crop_3659839455_0.png.png imagette203349921738933262/1738933053_2491904_1335519694_ddfe9b62340d67923603e744a41e10c1_rle_crop_3659843759_0.png.png imagette203349921738933262/1738933053_2491904_1335519692_eb2ea3c89064c76faf46b15b2a0d7f5f_rle_crop_3659843773_0.png.png imagette203349921738933262/1738933092_2493267_1335519736_bb2550e5f783bfc697d1a86b082f392f_rle_crop_3659844420_0.png.png imagette203349921738933262/1738932772_2482906_1335519184_94361a115b45ea3fb3995cbff2cd3f93_rle_crop_3659839454_0.png.png imagette203349921738933262/1738933116_2493505_1335519656_54eb676e65283de0f1a01111d5f48878_rle_crop_3659844623_0.png.png imagette203349921738933262/1738932793_2483104_1335518389_9d4d2f5c9ace04398a75ce014027a39c_rle_crop_3659838387_0.png.png imagette203349921738933262/1738932711_2482261_1335518389_9d4d2f5c9ace04398a75ce014027a39c_rle_crop_3659838390_0.png.png imagette203349921738933262/1738933092_2493267_1335519736_bb2550e5f783bfc697d1a86b082f392f_rle_crop_3659844424_0.png.png imagette203349921738933262/1738933116_2493505_1335519596_20a3b2c59bdc46b73562f6d58e7b62d0_rle_crop_3659844657_0.png.png imagette203349921738933262/1738933134_2493694_1335519605_6cf5c9424c539fac73bad1951813f23f_rle_crop_3659844569_0.png.png imagette203349921738933262/1738932793_2483104_1335518363_764d1980cebd9a3a6ab33a2a5edb160a_rle_crop_3659838493_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/444f31e1c7fe5ab888c14ef4cf7a3b05_65457483.png imagette203349921738933262 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20334954 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20334993,20334994,20334995,20334996,20334997,20334998,20334999,20335000,20335001,20335002,20335003,20335004?tags=kraft,mal_croppe,papier,plastique,Carton_gris,flou,environnement,metal,Carton_brun,autre_refus,cartonnette,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1335520387] : ('0.04939393600495253',) no score found for photo 1335520387 apple ('0.04939393600495253',) We are sending mail with results at report@fotonower.com args[1335520382] : ('0.04939393600495253',) no score found for photo 1335520382 apple ('0.04939393600495253',) We are sending mail with results at report@fotonower.com args[1335520358] : ('0.04939393600495253',) no score found for photo 1335520358 apple ('0.04939393600495253',) We are sending mail with results at report@fotonower.com args[1335520350] : ('0.04939393600495253',) no score found for photo 1335520350 apple ('0.04939393600495253',) We are sending mail with results at report@fotonower.com refus_total : 0.04939393600495253 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=20334954 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_P20334954_07-02-2025_14_00_59.pdf results_Auto_P20334954_07-02-2025_14_00_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20334954_07-02-2025_14_00_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20334954','results_Auto_P20334954_07-02-2025_14_00_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20334954_07-02-2025_14_00_59.pdf','pdf','','0.24','0.04939393600495253') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20334954]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1335520387, 1335520382, 1335520358, 1335520350] map_info['map_portfolio_photo'] : {20334954: [1335520387, 1335520382, 1335520358, 1335520350, 1335520120, 1335520101, 1335520096, 1335520066, 1335519926, 1335519919, 1335519890, 1335519882, 1335519862, 1335519857, 1335519746, 1335519744, 1335519741, 1335519738, 1335519736, 1335519708, 1335519697, 1335519694, 1335519692, 1335519656, 1335519653, 1335519650, 1335519644, 1335519605, 1335519596, 1335519592, 1335519584, 1335519582, 1335519489, 1335519485, 1335519361, 1335519188, 1335519184, 1335519176, 1335518904, 1335518884, 1335518882, 1335518430, 1335518396, 1335518389, 1335518372, 1335518368, 1335518363, 1335518257, 1335518238, 1335518235, 1335518232, 1335518106]} final : False mtd_id 4302 list_pids : [1335520387, 1335520382, 1335520358, 1335520350] 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, '2564441') ('4302', '20334954', '1335520387', None, None, None, None, None, '2564441') ('4302', None, None, None, None, None, None, None, '2564441') ('4302', '20334954', '1335520382', None, None, None, None, None, '2564441') ('4302', None, None, None, None, None, None, None, '2564441') ('4302', '20334954', '1335520358', None, None, None, None, None, '2564441') ('4302', None, None, None, None, None, None, None, '2564441') ('4302', '20334954', '1335520350', None, None, None, None, None, '2564441') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '20334954', '1335520387', None, None, None, None, None, '2564441'), ('4302', '20334954', '1335520382', None, None, None, None, None, '2564441'), ('4302', '20334954', '1335520358', None, None, None, None, None, '2564441'), ('4302', '20334954', '1335520350', None, None, None, None, None, '2564441')] time used for this insertion : 0.012782096862792969 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.540561199188232 time spend to save output : 0.01306009292602539 total time spend for step 4 : 4.553621292114258 step5:split_time_score Fri Feb 7 14:01:04 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 : ['20334954'] 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 : [('20334954',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20334954) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1335520382: {'path': 'temp/1738933259_3877061_1335520382_16296b6759c3735f3c6df3f3dd8389c0.jpg', 'extension': 'jpg'}, 1335520350: {'path': 'temp/1738933259_3877061_1335520350_c4f8374cf2e55894cd05f5d881e359ee.jpg', 'extension': 'jpg'}, 1335520358: {'path': 'temp/1738933259_3877061_1335520358_520c19d7780ef7352e93619a365c8aff.jpg', 'extension': 'jpg'}, 1335520387: {'path': 'temp/1738933259_3877061_1335520387_6c864b63d913c7b5b0e08535507e784e.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 = 20334954; (('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 = 20334954 group by h (('13', 52),) 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=20334954 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 (20334954) 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 (20334954) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07022025 20334954 Nombre de photos uploadées : 52 / 23040 (0%) 07022025 20334954 Nombre de photos taguées (types de déchets): 0 / 52 (0%) 07022025 20334954 Nombre de photos taguées (volume) : 0 / 52 (0%) [{'photo_id': 1335518106, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/ec1d7100a0828d3f03c294efb1373110.jpg', 'username': None, 'uploaded_at': 1738932367, 'text': 'image_07022025_13_45_14_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1335518257, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/0a130f1dd027b8d317abac81d7dc6587.jpg', 'username': None, 'uploaded_at': 1738932427, 'text': 'image_07022025_13_45_24_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1335518238, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/6ce27fe61fa9b04c693e0d9abb11880a.jpg', 'username': None, 'uploaded_at': 1738932427, 'text': 'image_07022025_13_46_04_10160.jpg'}, {'photo_id': 1335518235, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/c01e6a19b03ae1aebb81a82e097c9da4.jpg', 'username': None, 'uploaded_at': 1738932427, 'text': 'image_07022025_13_46_14_10140.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ???????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019974708557128906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20334954, '2025-02-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1584783,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02283000946044922 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= 1584783 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1584783, 'dashboard_run_id': 1593851, 'mtr_portfolio_id': 20334720, 'dashboard_result_id': 8760966, '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_P20334720_07-02-2025_13_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20334721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20334722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20334723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20334724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20334725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20334726, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20334727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20334728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20334729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20334730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20334731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20334732, 'pht': 3726}}"}, {'dashboat_entry_day': 1584783, 'dashboard_run_id': 1593851, 'mtr_portfolio_id': 20334954, 'dashboard_result_id': 8760967, '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_P20334954_07-02-2025_13_59_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20334981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20334982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20334983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20334984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20334985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20334986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20334987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20334988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20334989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20334990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20334991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20334992, '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 = 20334720 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': 2564415, 'mtr_portfolio_id': 20334720, 'created_at': datetime.datetime(2025, 2, 7, 13, 46, 58), 'result': '0.04448295430109324', 'result_long': None, 'result_double': None}] Qualite : 0.04448295430109324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20334720 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20334720_07-02-2025_13_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20334720 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_P20334720_07-02-2025_13_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20334721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20334722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20334723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20334724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20334725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20334726, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20334727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20334728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20334729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20334730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20334731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20334732, 'pht': 3726}}" where mtr_portfolio_id = 20334720 and dashboard_run_id = 1593851 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`=20334720 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8760966, 0.04448295430109324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20334720_07-02-2025_13_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20334721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20334722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20334723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20334724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20334725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20334726, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20334727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20334728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20334729, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20334730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20334731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20334732, '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 = 20334954 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': 2564441, 'mtr_portfolio_id': 20334954, 'created_at': datetime.datetime(2025, 2, 7, 14, 0, 59), 'result': '0.04939393600495253', 'result_long': None, 'result_double': None}] Qualite : 0.04939393600495253 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20334954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20334954_07-02-2025_14_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20334954 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_P20334954_07-02-2025_14_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20334981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20334982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20334983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20334984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20334985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20334986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20334987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20334988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20334989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20334990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20334991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20334992, 'pht': 3726}}" where mtr_portfolio_id = 20334954 and dashboard_run_id = 1593851 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`=20334954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8760967, 0.04939393600495253, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20334954_07-02-2025_14_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20334981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20334982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20334983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20334984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20334985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20334986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20334987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20334988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20334989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20334990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20334991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20334992, '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 (20334720,20334954) result : ((1335516367,), (1335516954,), (1335517498,), (1335517500,), (1335517503,), (1335517533,), (1335517538,), (1335517541,), (1335517544,), (1335517546,), (1335517585,), (1335517611,), (1335517614,), (1335517618,), (1335517654,), (1335517656,), (1335517810,), (1335517820,), (1335517823,), (1335517826,), (1335517934,), (1335517943,), (1335517953,), (1335518025,), (1335518035,), (1335518052,), (1335518068,), (1335518075,), (1335518110,), (1335518106,), (1335518232,), (1335518235,), (1335518238,), (1335518257,), (1335518363,), (1335518368,), (1335518372,), (1335518389,), (1335518396,), (1335518430,), (1335518882,), (1335518884,), (1335518904,), (1335519176,), (1335519184,), (1335519188,), (1335519361,), (1335519485,), (1335519489,), (1335519582,), (1335519584,), (1335519592,), (1335519596,), (1335519605,), (1335519644,), (1335519650,), (1335519653,), (1335519656,), (1335519692,), (1335519694,), (1335519697,), (1335519708,), (1335519736,), (1335519738,), (1335519741,), (1335519744,), (1335519746,), (1335519857,), (1335519862,), (1335519882,), (1335519890,), (1335519919,), (1335519926,), (1335520066,), (1335520096,), (1335520101,), (1335520120,), (1335520350,), (1335520358,), (1335520382,), (1335520387,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07022025': {'nb_upload': 52, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20334954]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1335520387, 1335520382, 1335520358, 1335520350] map_info['map_portfolio_photo'] : {20334954: [1335520387, 1335520382, 1335520358, 1335520350, 1335520120, 1335520101, 1335520096, 1335520066, 1335519926, 1335519919, 1335519890, 1335519882, 1335519862, 1335519857, 1335519746, 1335519744, 1335519741, 1335519738, 1335519736, 1335519708, 1335519697, 1335519694, 1335519692, 1335519656, 1335519653, 1335519650, 1335519644, 1335519605, 1335519596, 1335519592, 1335519584, 1335519582, 1335519489, 1335519485, 1335519361, 1335519188, 1335519184, 1335519176, 1335518904, 1335518884, 1335518882, 1335518430, 1335518396, 1335518389, 1335518372, 1335518368, 1335518363, 1335518257, 1335518238, 1335518235, 1335518232, 1335518106]} final : True mtd_id 4302 list_pids : [1335520387, 1335520382, 1335520358, 1335520350] Looping around the photos to save general results len do output : 1 /20334954Didn'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, '2564441') ('4302', '20334954', '1335520387', None, None, None, None, None, '2564441') ('4302', None, None, None, None, None, None, None, '2564441') ('4302', '20334954', '1335520382', None, None, None, None, None, '2564441') ('4302', None, None, None, None, None, None, None, '2564441') ('4302', '20334954', '1335520358', None, None, None, None, None, '2564441') ('4302', None, None, None, None, None, None, None, '2564441') ('4302', '20334954', '1335520350', None, None, None, None, None, '2564441') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '20334954', 'None', None, None, None, None, '2564441'), ('4302', '20334954', '1335520387', None, None, None, None, None, '2564441'), ('4302', '20334954', '1335520382', None, None, None, None, None, '2564441'), ('4302', '20334954', '1335520358', None, None, None, None, None, '2564441'), ('4302', '20334954', '1335520350', None, None, None, None, None, '2564441')] time used for this insertion : 0.014671802520751953 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.24110770225524902 time spend to save output : 0.01501011848449707 total time spend for step 5 : 0.2561178207397461 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 (2564441) 2.36user 2.25system 0:10.01elapsed 46%CPU (0avgtext+0avgdata 158712maxresident)k 1512inputs+12536outputs (22major+74566minor)pagefaults 0swaps