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 : 26442 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 (2722381) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2722381) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22037809 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2722381'] with mtr_portfolio_ids : ['22037809'] and first list_photo_ids : [] new path : /proc/26442/ Name: python3 Umask: 0002 State: R (running) Tgid: 26442 Ngid: 0 Pid: 26442 PPid: 26441 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 26442 NSpid: 26442 NSpgid: 21010 NSsid: 21010 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99120 kB VmRSS: 99120 kB RssAnon: 59800 kB RssFile: 39320 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 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: 57 nonvoluntary_ctxt_switches: 169 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '26442', 'Ngid': '0', 'Pid': '26442', 'PPid': '26441', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '26442', 'NSpid': '26442', 'NSpgid': '21010', 'NSsid': '21010', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99120 kB', 'VmRSS': '99120 kB', 'RssAnon': '59800 kB', 'RssFile': '39320 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '57', 'nonvoluntary_ctxt_switches': '169'} ('datou_batch_current', '26442', '1106828', '0', '1106828', '865576', '99120', b'', 'marlene', '2722381') 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 (22037809) 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 (2722381 ) ) 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 (22037809) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349927385, 'portfolio_id': 22037809}, {'photo_id': 1349927374, 'portfolio_id': 22037809}, {'photo_id': 1349927359, 'portfolio_id': 22037809}, {'photo_id': 1349927329, 'portfolio_id': 22037809}, {'photo_id': 1349927302, 'portfolio_id': 22037809}, {'photo_id': 1349926883, 'portfolio_id': 22037809}, {'photo_id': 1349926866, 'portfolio_id': 22037809}, {'photo_id': 1349926854, 'portfolio_id': 22037809}, {'photo_id': 1349926844, 'portfolio_id': 22037809}, {'photo_id': 1349926765, 'portfolio_id': 22037809}, {'photo_id': 1349926761, 'portfolio_id': 22037809}, {'photo_id': 1349926758, 'portfolio_id': 22037809}, {'photo_id': 1349926753, 'portfolio_id': 22037809}, {'photo_id': 1349926733, 'portfolio_id': 22037809}, {'photo_id': 1349926673, 'portfolio_id': 22037809}, {'photo_id': 1349926670, 'portfolio_id': 22037809}, {'photo_id': 1349926667, 'portfolio_id': 22037809}, {'photo_id': 1349926653, 'portfolio_id': 22037809}, {'photo_id': 1349926642, 'portfolio_id': 22037809}, {'photo_id': 1349926636, 'portfolio_id': 22037809}, {'photo_id': 1349926630, 'portfolio_id': 22037809}, {'photo_id': 1349926620, 'portfolio_id': 22037809}, {'photo_id': 1349926614, 'portfolio_id': 22037809}, {'photo_id': 1349926608, 'portfolio_id': 22037809}, {'photo_id': 1349926554, 'portfolio_id': 22037809}, {'photo_id': 1349926547, 'portfolio_id': 22037809}, {'photo_id': 1349926541, 'portfolio_id': 22037809}, {'photo_id': 1349926441, 'portfolio_id': 22037809}, {'photo_id': 1349926357, 'portfolio_id': 22037809}, {'photo_id': 1349926352, 'portfolio_id': 22037809}, {'photo_id': 1349926348, 'portfolio_id': 22037809}, {'photo_id': 1349926344, 'portfolio_id': 22037809}, {'photo_id': 1349926212, 'portfolio_id': 22037809}, {'photo_id': 1349926206, 'portfolio_id': 22037809}, {'photo_id': 1349926202, 'portfolio_id': 22037809}, {'photo_id': 1349926199, 'portfolio_id': 22037809}, {'photo_id': 1349926138, 'portfolio_id': 22037809}, {'photo_id': 1349926136, 'portfolio_id': 22037809}, {'photo_id': 1349926133, 'portfolio_id': 22037809}, {'photo_id': 1349926130, 'portfolio_id': 22037809}, {'photo_id': 1349926111, 'portfolio_id': 22037809}, {'photo_id': 1349925986, 'portfolio_id': 22037809}, {'photo_id': 1349925973, 'portfolio_id': 22037809}, {'photo_id': 1349925965, 'portfolio_id': 22037809}, {'photo_id': 1349925911, 'portfolio_id': 22037809}, {'photo_id': 1349925908, 'portfolio_id': 22037809}, {'photo_id': 1349925905, 'portfolio_id': 22037809}, {'photo_id': 1349925902, 'portfolio_id': 22037809}, {'photo_id': 1349925899, 'portfolio_id': 22037809}, {'photo_id': 1349925896, 'portfolio_id': 22037809}, {'photo_id': 1349925838, 'portfolio_id': 22037809}, {'photo_id': 1349925836, 'portfolio_id': 22037809}, {'photo_id': 1349925833, 'portfolio_id': 22037809}, {'photo_id': 1349925830, 'portfolio_id': 22037809}, {'photo_id': 1349925810, 'portfolio_id': 22037809}, {'photo_id': 1349925804, 'portfolio_id': 22037809}, {'photo_id': 1349925799, 'portfolio_id': 22037809}, {'photo_id': 1349925796, 'portfolio_id': 22037809}] map_portfolio_id_photo_id: {22037809: [1349927385, 1349927374, 1349927359, 1349927329, 1349927302, 1349926883, 1349926866, 1349926854, 1349926844, 1349926765, 1349926761, 1349926758, 1349926753, 1349926733, 1349926673, 1349926670, 1349926667, 1349926653, 1349926642, 1349926636, 1349926630, 1349926620, 1349926614, 1349926608, 1349926554, 1349926547, 1349926541, 1349926441, 1349926357, 1349926352, 1349926348, 1349926344, 1349926212, 1349926206, 1349926202, 1349926199, 1349926138, 1349926136, 1349926133, 1349926130, 1349926111, 1349925986, 1349925973, 1349925965, 1349925911, 1349925908, 1349925905, 1349925902, 1349925899, 1349925896, 1349925838, 1349925836, 1349925833, 1349925830, 1349925810, 1349925804, 1349925799, 1349925796]} ##### 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.014908075332641602 #### 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 Tue Apr 15 17: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 (22037809) 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 : 22037809 get user id for portfolio 22037809 get sub ptf for main ptf 22037809, type 3726 and hashtags ['cartonnette', 'metal', 'kraft', 'Teint_Dans_La_Masse', 'autre_refus', 'Carton_brun', 'plastique', 'environnement', 'flou', 'papier', 'mal_croppe', 'Carton_gris'] 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`=22037809 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','kraft','Teint_Dans_La_Masse','autre_refus','Carton_brun','plastique','environnement','flou','papier','mal_croppe','Carton_gris')) 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`=22037809 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','kraft','Teint_Dans_La_Masse','autre_refus','Carton_brun','plastique','environnement','flou','papier','mal_croppe','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22037809, 'sub_port_id': 22037817, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529921, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22037809, 'sub_port_id': 22037818, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529922, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'papier': {'main_port_id': 22037809, 'sub_port_id': 22037819, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529923, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'plastique': {'main_port_id': 22037809, 'sub_port_id': 22037820, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529924, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'metal': {'main_port_id': 22037809, 'sub_port_id': 22037821, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529925, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'autre_refus': {'main_port_id': 22037809, 'sub_port_id': 22037822, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529926, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'flou': {'main_port_id': 22037809, 'sub_port_id': 22037823, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529927, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'Carton_brun': {'main_port_id': 22037809, 'sub_port_id': 22037824, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529928, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'cartonnette': {'main_port_id': 22037809, 'sub_port_id': 22037825, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529929, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'kraft': {'main_port_id': 22037809, 'sub_port_id': 22037826, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529930, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'Carton_gris': {'main_port_id': 22037809, 'sub_port_id': 22037827, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529931, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'mal_croppe': {'main_port_id': 22037809, 'sub_port_id': 22037828, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529932, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22037817 , 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=22037809 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 (22037817) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22037809) result : ((1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,)) 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 22037818 , 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=22037809 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 (22037818) result : ((1349926100,), (1349926102,), (1349926366,), (1349926382,), (1349926565,), (1349926566,), (1349926699,), (1349926700,), (1349926701,), (1349926841,), (1349926842,), (1349927212,), (1349927214,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22037809) result : ((1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,)) 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 22037819 , 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=22037809 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 (22037819) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22037809) result : ((1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,)) 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 22037820 , 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=22037809 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 (22037820) result : ((1349926396,), (1349926397,), (1349926578,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22037809) result : ((1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,)) 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 22037821 , 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=22037809 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 (22037821) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22037809) result : ((1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,)) 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 22037822 , 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=22037809 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 (22037822) result : ((1349926104,), (1349926173,), (1349926381,), (1349926385,), (1349926567,), (1349926568,), (1349926910,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22037809) result : ((1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,)) 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 22037823 , 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=22037809 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 (22037823) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22037809) result : ((1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,)) 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 22037824 , 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=22037809 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 (22037824) result : ((1349926177,), (1349926393,), (1349926575,), (1349926576,), (1349926577,), (1349926852,), (1349926853,), (1349926912,), (1349926913,), (1349927227,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22037809) result : ((1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,)) 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 22037825 , 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=22037809 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 (22037825) result : ((1349926106,), (1349926107,), (1349926266,), (1349926386,), (1349926571,), (1349926703,), (1349926704,), (1349926850,), (1349927223,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22037809) result : ((1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,)) 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 22037826 , 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=22037809 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 (22037826) result : ((1349926398,), (1349926579,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22037809) result : ((1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,)) 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 22037827 , 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=22037809 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 (22037827) result : ((1349926105,), (1349926174,), (1349926383,), (1349926384,), (1349926388,), (1349926389,), (1349926569,), (1349926784,), (1349926846,), (1349926847,), (1349927218,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22037809) result : ((1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,)) 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 22037828 , 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=22037809 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 (22037828) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22037809) result : ((1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,)) 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`=22037809 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','kraft','Teint_Dans_La_Masse','autre_refus','Carton_brun','plastique','environnement','flou','papier','mal_croppe','Carton_gris')) 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`=22037809 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','kraft','Teint_Dans_La_Masse','autre_refus','Carton_brun','plastique','environnement','flou','papier','mal_croppe','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22037809, 'sub_port_id': 22037829, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529933, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22037809, 'sub_port_id': 22037830, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529934, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'papier': {'main_port_id': 22037809, 'sub_port_id': 22037831, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529935, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'plastique': {'main_port_id': 22037809, 'sub_port_id': 22037832, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529936, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'metal': {'main_port_id': 22037809, 'sub_port_id': 22037833, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529937, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'autre_refus': {'main_port_id': 22037809, 'sub_port_id': 22037834, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529938, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'flou': {'main_port_id': 22037809, 'sub_port_id': 22037835, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529939, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'Carton_brun': {'main_port_id': 22037809, 'sub_port_id': 22037836, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529940, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'cartonnette': {'main_port_id': 22037809, 'sub_port_id': 22037837, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529941, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'kraft': {'main_port_id': 22037809, 'sub_port_id': 22037838, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529942, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'Carton_gris': {'main_port_id': 22037809, 'sub_port_id': 22037839, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529943, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}, 'mal_croppe': {'main_port_id': 22037809, 'sub_port_id': 22037840, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14529944, 'last_updated_at': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 16, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 16, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22037829,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22037817 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22037830,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22037818 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22037831,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22037819 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22037832,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22037820 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22037833,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22037821 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22037834,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22037822 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22037835,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22037823 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22037836,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22037824 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22037837,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22037825 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22037838,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22037826 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22037839,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22037827 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22037840,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22037828 lien utilise dans velours : https://www.fotonower.com/velours/22037829,22037830,22037831,22037832,22037833,22037834,22037835,22037836,22037837,22037838,22037839,22037840?tags=environnement,Teint_Dans_La_Masse,papier,plastique,metal,autre_refus,flou,Carton_brun,cartonnette,kraft,Carton_gris,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22037809]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349927385, 1349927374, 1349927359, 1349927329, 1349927302, 1349926883, 1349926866, 1349926854, 1349926844] map_info['map_portfolio_photo'] : {22037809: [1349927385, 1349927374, 1349927359, 1349927329, 1349927302, 1349926883, 1349926866, 1349926854, 1349926844, 1349926765, 1349926761, 1349926758, 1349926753, 1349926733, 1349926673, 1349926670, 1349926667, 1349926653, 1349926642, 1349926636, 1349926630, 1349926620, 1349926614, 1349926608, 1349926554, 1349926547, 1349926541, 1349926441, 1349926357, 1349926352, 1349926348, 1349926344, 1349926212, 1349926206, 1349926202, 1349926199, 1349926138, 1349926136, 1349926133, 1349926130, 1349926111, 1349925986, 1349925973, 1349925965, 1349925911, 1349925908, 1349925905, 1349925902, 1349925899, 1349925896, 1349925838, 1349925836, 1349925833, 1349925830, 1349925810, 1349925804, 1349925799, 1349925796]} final : False mtd_id 4302 list_pids : [1349927385, 1349927374, 1349927359, 1349927329, 1349927302, 1349926883, 1349926866, 1349926854, 1349926844] Looping around the photos to save general results len do output : 1 /22037809. 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, '2722381') ('4302', '22037809', '1349927385', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927374', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927359', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927329', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927302', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926883', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926866', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926854', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926844', None, None, None, None, None, '2722381') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22037809', "{'environnement': 22037817, 'Teint_Dans_La_Masse': 22037818, 'papier': 22037819, 'plastique': 22037820, 'metal': 22037821, 'autre_refus': 22037822, 'flou': 22037823, 'Carton_brun': 22037824, 'cartonnette': 22037825, 'kraft': 22037826, 'Carton_gris': 22037827, 'mal_croppe': 22037828}", None, None, None, None, '2722381'), ('4302', '22037809', '1349927385', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349927374', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349927359', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349927329', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349927302', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349926883', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349926866', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349926854', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349926844', None, None, None, None, None, '2722381')] time used for this insertion : 0.016469955444335938 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.367701530456543 time spend to save output : 0.016838550567626953 total time spend for step 1 : 1.38454008102417 step2:final Tue Apr 15 17:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22037809) 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 22037809 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349925810,1349925804,1349925799,1349925796,1349925838,1349925836,1349925833,1349925830,1349925911,1349925908,1349925905,1349925902,1349925899,1349925896,1349925986,1349925973,1349925965,1349926138,1349926136,1349926133,1349926130,1349926111,1349926212,1349926206,1349926202,1349926199,1349926357,1349926352,1349926348,1349926344,1349926554,1349926547,1349926541,1349926441,1349926642,1349926636,1349926630,1349926620,1349926614,1349926608,1349926673,1349926670,1349926667,1349926653,1349926765,1349926761,1349926758,1349926753,1349926733,1349926883,1349926866,1349926854,1349926844,1349927385,1349927374,1349927359,1349927329,1349927302); 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([22037809]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ('0.03731048268538595',)} new output for save of step final : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ('0.03731048268538595',)} [1349927385, 1349927374, 1349927359, 1349927329, 1349927302, 1349926883, 1349926866, 1349926854, 1349926844] map_info['map_portfolio_photo'] : {22037809: [1349927385, 1349927374, 1349927359, 1349927329, 1349927302, 1349926883, 1349926866, 1349926854, 1349926844, 1349926765, 1349926761, 1349926758, 1349926753, 1349926733, 1349926673, 1349926670, 1349926667, 1349926653, 1349926642, 1349926636, 1349926630, 1349926620, 1349926614, 1349926608, 1349926554, 1349926547, 1349926541, 1349926441, 1349926357, 1349926352, 1349926348, 1349926344, 1349926212, 1349926206, 1349926202, 1349926199, 1349926138, 1349926136, 1349926133, 1349926130, 1349926111, 1349925986, 1349925973, 1349925965, 1349925911, 1349925908, 1349925905, 1349925902, 1349925899, 1349925896, 1349925838, 1349925836, 1349925833, 1349925830, 1349925810, 1349925804, 1349925799, 1349925796]} final : False mtd_id 4302 list_pids : [1349927385, 1349927374, 1349927359, 1349927329, 1349927302, 1349926883, 1349926866, 1349926854, 1349926844] Looping around the photos to save general results len do output : 9 /1349927385.Didn't retrieve data . /1349927374.Didn't retrieve data . /1349927359.Didn't retrieve data . /1349927329.Didn't retrieve data . /1349927302.Didn't retrieve data . /1349926883.Didn't retrieve data . /1349926866.Didn't retrieve data . /1349926854.Didn't retrieve data . /1349926844.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, '2722381') ('4302', '22037809', '1349927385', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927374', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927359', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927329', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927302', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926883', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926866', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926854', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926844', None, None, None, None, None, '2722381') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22037809', '1349927385', '0.03731048268538595', None, None, None, None, '2722381'), ('4302', '22037809', '1349927374', '0.03731048268538595', None, None, None, None, '2722381'), ('4302', '22037809', '1349927359', '0.03731048268538595', None, None, None, None, '2722381'), ('4302', '22037809', '1349927329', '0.03731048268538595', None, None, None, None, '2722381'), ('4302', '22037809', '1349927302', '0.03731048268538595', None, None, None, None, '2722381'), ('4302', '22037809', '1349926883', '0.03731048268538595', None, None, None, None, '2722381'), ('4302', '22037809', '1349926866', '0.03731048268538595', None, None, None, None, '2722381'), ('4302', '22037809', '1349926854', '0.03731048268538595', None, None, None, None, '2722381'), ('4302', '22037809', '1349926844', '0.03731048268538595', None, None, None, None, '2722381')] time used for this insertion : 0.015585184097290039 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0720820426940918 time spend to save output : 0.01604485511779785 total time spend for step 2 : 0.08812689781188965 step3:velours_tree Tue Apr 15 17:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22037809: [{'environnement': 22037817, 'Teint_Dans_La_Masse': 22037818, 'papier': 22037819, 'plastique': 22037820, 'metal': 22037821, 'autre_refus': 22037822, 'flou': 22037823, 'Carton_brun': 22037824, 'cartonnette': 22037825, 'kraft': 22037826, 'Carton_gris': 22037827, 'mal_croppe': 22037828}]} input_args_next_step : {22037809: ()} output_args : {22037809: [{'environnement': 22037817, 'Teint_Dans_La_Masse': 22037818, 'papier': 22037819, 'plastique': 22037820, 'metal': 22037821, 'autre_refus': 22037822, 'flou': 22037823, 'Carton_brun': 22037824, 'cartonnette': 22037825, 'kraft': 22037826, 'Carton_gris': 22037827, 'mal_croppe': 22037828}]} args : 22037809 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 : ({'environnement': 22037817, 'Teint_Dans_La_Masse': 22037818, 'papier': 22037819, 'plastique': 22037820, 'metal': 22037821, 'autre_refus': 22037822, 'flou': 22037823, 'Carton_brun': 22037824, 'cartonnette': 22037825, 'kraft': 22037826, 'Carton_gris': 22037827, 'mal_croppe': 22037828},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22037809) 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([22037809]) 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.42439746856689453 time spend to save output : 5.602836608886719e-05 total time spend for step 3 : 0.4244534969329834 step4:send_mail_cod Tue Apr 15 17: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 : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ('0.03731048268538595',)} input_args_next_step : {1349927385: ()} output_args : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ('0.03731048268538595',)} args : 1349927385 depend.output_id : 0 input_args_next_step : {1349927385: ('0.03731048268538595',), 1349927374: ()} output_args : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ('0.03731048268538595',)} args : 1349927374 depend.output_id : 0 input_args_next_step : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ()} output_args : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ('0.03731048268538595',)} args : 1349927359 depend.output_id : 0 input_args_next_step : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ()} output_args : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ('0.03731048268538595',)} args : 1349927329 depend.output_id : 0 input_args_next_step : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ()} output_args : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ('0.03731048268538595',)} args : 1349927302 depend.output_id : 0 input_args_next_step : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ()} output_args : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ('0.03731048268538595',)} args : 1349926883 depend.output_id : 0 input_args_next_step : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ()} output_args : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ('0.03731048268538595',)} args : 1349926866 depend.output_id : 0 input_args_next_step : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ()} output_args : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ('0.03731048268538595',)} args : 1349926854 depend.output_id : 0 input_args_next_step : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ()} output_args : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ('0.03731048268538595',)} args : 1349926844 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 : {22037809: [{'environnement': 22037817, 'Teint_Dans_La_Masse': 22037818, 'papier': 22037819, 'plastique': 22037820, 'metal': 22037821, 'autre_refus': 22037822, 'flou': 22037823, 'Carton_brun': 22037824, 'cartonnette': 22037825, 'kraft': 22037826, 'Carton_gris': 22037827, 'mal_croppe': 22037828}]} input_args_next_step : {1349927385: ('0.03731048268538595',), 1349927374: ('0.03731048268538595',), 1349927359: ('0.03731048268538595',), 1349927329: ('0.03731048268538595',), 1349927302: ('0.03731048268538595',), 1349926883: ('0.03731048268538595',), 1349926866: ('0.03731048268538595',), 1349926854: ('0.03731048268538595',), 1349926844: ('0.03731048268538595',), 22037809: ()} output_args : {22037809: [{'environnement': 22037817, 'Teint_Dans_La_Masse': 22037818, 'papier': 22037819, 'plastique': 22037820, 'metal': 22037821, 'autre_refus': 22037822, 'flou': 22037823, 'Carton_brun': 22037824, 'cartonnette': 22037825, 'kraft': 22037826, 'Carton_gris': 22037827, 'mal_croppe': 22037828}]} args : 22037809 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.03731048268538595',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22037809) 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 (1349927385,1349927374,1349927359,1349927329,1349927302,1349926883,1349926866,1349926854,1349926844) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349926844 begin to download photo : 1349926866 begin to download photo : 1349927302 begin to download photo : 1349927359 begin to download photo : 1349927385 download finish for photo 1349926866 begin to download photo : 1349926883 download finish for photo 1349927359 begin to download photo : 1349927374 download finish for photo 1349927385 download finish for photo 1349926844 begin to download photo : 1349926854 download finish for photo 1349927302 begin to download photo : 1349927329 download finish for photo 1349926883 download finish for photo 1349926854 download finish for photo 1349927374 download finish for photo 1349927329 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22037809_15-04-2025_17_00_59.pdf 22037820 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=22037820 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349926396: '1744728821_1076425_1349926206_56a78ae9509d6e8b1c225adde1f5e4ab_rle_crop_3746841469_0.png', 1349926397: '1744728821_1076425_1349926199_79cde395a7c53f22655d3d2023066afd_rle_crop_3746841493_0.png', 1349926578: '1744728853_881803_1349926212_c7234ac4ff98e0f9595b63392370893f_rle_crop_3746841683_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f4c1ff9b0db97fba7a1c1883a592b722_1433222.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/42b1b81481643088d17559df1ea6f5bb_86230844.png change filename to text .imagette220378201744729259/ imagette220378201744729259/1744728853_881803_1349926212_c7234ac4ff98e0f9595b63392370893f_rle_crop_3746841683_0.png.png imagette220378201744729259/1744728821_1076425_1349926199_79cde395a7c53f22655d3d2023066afd_rle_crop_3746841493_0.png.png imagette220378201744729259/1744728821_1076425_1349926206_56a78ae9509d6e8b1c225adde1f5e4ab_rle_crop_3746841469_0.png.png imagette220378211744729259/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/268e8bceb0dc0f70ae29b7e075ad4fe9_62902545.png imagette220378201744729259 22037821 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=22037821 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220378211744729259 22037822 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=22037822 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349926104: '1744728584_1070127_1349925836_07f0a1651d5dfaf097c5e5e1fc693792_rle_crop_3746839885_0.png', 1349926173: '1744728613_879451_1349925796_5c0e7fbceebdee38d0ea38b73bf7f5bf_rle_crop_3746840318_0.png', 1349926381: '1744728792_881235_1349925908_8f93884489b861e90200060c5d3c8c8d_rle_crop_3746841108_0.png', 1349926385: '1744728821_1076425_1349926202_aee4489e27f1a3cad34477314bce3f40_rle_crop_3746841476_0.png', 1349926567: '1744728853_881803_1349926212_c7234ac4ff98e0f9595b63392370893f_rle_crop_3746841670_0.png', 1349926568: '1744728853_881803_1349926130_7f44cbe4f804a726f0644332d8ee0c9a_rle_crop_3746841709_0.png', 1349926910: '1744729093_884412_1349926653_bc1cd5674ccaf2fdf36c958e99583c51_rle_crop_3746871893_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/783c834f3506ad3d4945199b8b89aa5f_57789968.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/4132dfab09a2cc472dca0dff79aafc78_88601443.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/56d01be8d78927822623169977b03658_51075753.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/0da8f2ca632cf8bbe5655224c7393fcf_40527535.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/ba461351a39a4190925af67d5e79f803_66755658.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c6d6dabda443e678ae41caf875db4138_27683341.png change filename to text .imagette220378221744729259/ imagette220378221744729259/1744728792_881235_1349925908_8f93884489b861e90200060c5d3c8c8d_rle_crop_3746841108_0.png.png imagette220378221744729259/1744728613_879451_1349925796_5c0e7fbceebdee38d0ea38b73bf7f5bf_rle_crop_3746840318_0.png.png imagette220378221744729259/1744728821_1076425_1349926202_aee4489e27f1a3cad34477314bce3f40_rle_crop_3746841476_0.png.png imagette220378221744729259/1744728853_881803_1349926212_c7234ac4ff98e0f9595b63392370893f_rle_crop_3746841670_0.png.png imagette220378221744729259/1744728853_881803_1349926130_7f44cbe4f804a726f0644332d8ee0c9a_rle_crop_3746841709_0.png.png imagette220378221744729259/1744728584_1070127_1349925836_07f0a1651d5dfaf097c5e5e1fc693792_rle_crop_3746839885_0.png.png imagette220378221744729259/1744729093_884412_1349926653_bc1cd5674ccaf2fdf36c958e99583c51_rle_crop_3746871893_0.png.png imagette220378231744729260/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/19a7ab5bd9c72c2733da0526705a6c1d_70082080.png imagette220378221744729259 22037823 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=22037823 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220378231744729260 22037825 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=22037825 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349926106: '1744728584_1070127_1349925836_07f0a1651d5dfaf097c5e5e1fc693792_rle_crop_3746839891_0.png', 1349926107: '1744728584_1070127_1349925836_07f0a1651d5dfaf097c5e5e1fc693792_rle_crop_3746839893_0.png', 1349926266: '1744728707_1072924_1349925973_66c025a3f329a079b913dc04b1c1c16a_rle_crop_3746840659_0.png', 1349926386: '1744728792_881235_1349925899_a243ff7ec53f08239eaba5c61938add2_rle_crop_3746841147_0.png', 1349926571: '1744728853_881803_1349926111_c21a6482fb7aafb05cbc9206cb547d07_rle_crop_3746841724_0.png', 1349926703: '1744728971_883054_1349926352_2c9d8ed77d5dcf9f8e59d125af761259_rle_crop_3746842310_0.png', 1349926704: '1744728971_883054_1349926348_254fb2745ff0534e72cbcc8d9aeba3b9_rle_crop_3746842323_0.png', 1349926850: '1744729064_1081823_1349926620_bcec90ef24e35a659b3372c343e05419_rle_crop_3746871466_0.png', 1349927223: '1744729152_884954_1349926761_db30007b53b6dfb014bfab24bfb901c9_rle_crop_3746872043_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/8445ead6e7b66442299102acfe647bb9_67893304.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/74fbd078d6fb19ed656da5af65a97e4a_1436467.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c42e78ff46e09c84b2a2607531dbcb6f_33888792.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a38718e0477cf3f84427a820940a8a92_10549381.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/cceb3d33bdde3fe374c01c657fdb1e11_56945145.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/02268821067b8b3991e5d40ad4c82ace_97260152.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/bc7a53cfe02eaf8a2ae7c8739e58feac_91582338.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/b20a555073855ed9391f6448907c6000_36754320.png change filename to text .imagette220378251744729260/ imagette220378251744729260/1744728971_883054_1349926348_254fb2745ff0534e72cbcc8d9aeba3b9_rle_crop_3746842323_0.png.png imagette220378251744729260/1744729152_884954_1349926761_db30007b53b6dfb014bfab24bfb901c9_rle_crop_3746872043_0.png.png imagette220378251744729260/1744728853_881803_1349926111_c21a6482fb7aafb05cbc9206cb547d07_rle_crop_3746841724_0.png.png imagette220378251744729260/1744728584_1070127_1349925836_07f0a1651d5dfaf097c5e5e1fc693792_rle_crop_3746839891_0.png.png imagette220378251744729260/1744728792_881235_1349925899_a243ff7ec53f08239eaba5c61938add2_rle_crop_3746841147_0.png.png imagette220378251744729260/1744728707_1072924_1349925973_66c025a3f329a079b913dc04b1c1c16a_rle_crop_3746840659_0.png.png imagette220378251744729260/1744729064_1081823_1349926620_bcec90ef24e35a659b3372c343e05419_rle_crop_3746871466_0.png.png imagette220378251744729260/1744728584_1070127_1349925836_07f0a1651d5dfaf097c5e5e1fc693792_rle_crop_3746839893_0.png.png imagette220378251744729260/1744728971_883054_1349926352_2c9d8ed77d5dcf9f8e59d125af761259_rle_crop_3746842310_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/3cbd222a5e9ca0f18d0f8ee6f8ce1125_47482620.png imagette220378251744729260 22037826 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=22037826 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349926398: '1744728821_1076425_1349926206_56a78ae9509d6e8b1c225adde1f5e4ab_rle_crop_3746841465_0.png', 1349926579: '1744728853_881803_1349926212_c7234ac4ff98e0f9595b63392370893f_rle_crop_3746841669_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/ed92630dcf910a4af6fef5eea504667f_30453390.png change filename to text .imagette220378261744729260/ imagette220378261744729260/1744728853_881803_1349926212_c7234ac4ff98e0f9595b63392370893f_rle_crop_3746841669_0.png.png imagette220378261744729260/1744728821_1076425_1349926206_56a78ae9509d6e8b1c225adde1f5e4ab_rle_crop_3746841465_0.png.png imagette220378281744729260/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/2502f12a45e104fe67ad36d1195d4150_58807060.png imagette220378261744729260 22037828 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=22037828 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220378281744729260 22037818 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=22037818 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349926100: '1744728584_1070127_1349925833_3185703b38e8505f4baba02026beea41_rle_crop_3746839899_0.png', 1349926102: '1744728584_1070127_1349925830_20f0407f4888f543048ed3e5fea3a4ee_rle_crop_3746839913_0.png', 1349926366: '1744728792_881235_1349925899_a243ff7ec53f08239eaba5c61938add2_rle_crop_3746841146_0.png', 1349926382: '1744728821_1076425_1349926199_79cde395a7c53f22655d3d2023066afd_rle_crop_3746841489_0.png', 1349926565: '1744728853_881803_1349926133_ea3097a2408dae4eda4fa0b6f0974360_rle_crop_3746841698_0.png', 1349926566: '1744728853_881803_1349926130_7f44cbe4f804a726f0644332d8ee0c9a_rle_crop_3746841714_0.png', 1349926699: '1744728971_883054_1349926348_254fb2745ff0534e72cbcc8d9aeba3b9_rle_crop_3746842328_0.png', 1349926700: '1744728971_883054_1349926344_4dd4f2d41916e2389ddb093e48f8584b_rle_crop_3746842338_0.png', 1349926701: '1744728971_883054_1349926344_4dd4f2d41916e2389ddb093e48f8584b_rle_crop_3746842340_0.png', 1349926841: '1744729064_1081823_1349926673_47a70c47a84545e3726d440192c60444_rle_crop_3746871438_0.png', 1349926842: '1744729064_1081823_1349926608_21839215a7f3e98871762bf6adb4b5d6_rle_crop_3746871491_0.png', 1349927212: '1744729152_884954_1349926761_db30007b53b6dfb014bfab24bfb901c9_rle_crop_3746872049_0.png', 1349927214: '1744729152_884954_1349926753_39ae11f88e455f27dc7b55f79da888b9_rle_crop_3746872072_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/11866ba5315368b1d3b0e73b53f63080_2957999.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/54428e2a842b52c1422400d97af83588_59984754.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f5dead2e3fcfd1b8d64af5466345df17_37445076.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/01fd7a25af8c41705e61725422b59eaa_8585890.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/cfb247ff09b97d5a044f223db4b65bf1_93766134.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/10fea3de7fce77048deb0ee388b68ecb_34819389.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f7ec9ac88e45cb77b5b99a3854f13d70_13699790.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/ef421e605993682145fe30f843d490da_13751594.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/6f8162b67ab99cb230c50d942a65e095_11296393.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/1026a2b1690d6716e88807666abbcec5_81675744.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/2e21b89b8b9ef1343e5f379618f4515c_12230230.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f41574e9a3c478a076a9194e4012b5a0_3957689.png change filename to text .imagette220378181744729260/ imagette220378181744729260/1744729152_884954_1349926753_39ae11f88e455f27dc7b55f79da888b9_rle_crop_3746872072_0.png.png imagette220378181744729260/1744729064_1081823_1349926608_21839215a7f3e98871762bf6adb4b5d6_rle_crop_3746871491_0.png.png imagette220378181744729260/1744728792_881235_1349925899_a243ff7ec53f08239eaba5c61938add2_rle_crop_3746841146_0.png.png imagette220378181744729260/1744728853_881803_1349926133_ea3097a2408dae4eda4fa0b6f0974360_rle_crop_3746841698_0.png.png imagette220378181744729260/1744728821_1076425_1349926199_79cde395a7c53f22655d3d2023066afd_rle_crop_3746841489_0.png.png imagette220378181744729260/1744728853_881803_1349926130_7f44cbe4f804a726f0644332d8ee0c9a_rle_crop_3746841714_0.png.png imagette220378181744729260/1744728971_883054_1349926348_254fb2745ff0534e72cbcc8d9aeba3b9_rle_crop_3746842328_0.png.png imagette220378181744729260/1744728584_1070127_1349925830_20f0407f4888f543048ed3e5fea3a4ee_rle_crop_3746839913_0.png.png imagette220378181744729260/1744729064_1081823_1349926673_47a70c47a84545e3726d440192c60444_rle_crop_3746871438_0.png.png imagette220378181744729260/1744728971_883054_1349926344_4dd4f2d41916e2389ddb093e48f8584b_rle_crop_3746842338_0.png.png imagette220378181744729260/1744729152_884954_1349926761_db30007b53b6dfb014bfab24bfb901c9_rle_crop_3746872049_0.png.png imagette220378181744729260/1744728971_883054_1349926344_4dd4f2d41916e2389ddb093e48f8584b_rle_crop_3746842340_0.png.png imagette220378181744729260/1744728584_1070127_1349925833_3185703b38e8505f4baba02026beea41_rle_crop_3746839899_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/889561596b2880c84e05667d3c7a4eb4_79630319.png imagette220378181744729260 22037824 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=22037824 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349926177: '1744728613_879451_1349925799_a568397c42a8a3a37a20aafeadfc2a1a_rle_crop_3746840308_0.png', 1349926393: '1744728821_1076425_1349926199_79cde395a7c53f22655d3d2023066afd_rle_crop_3746841487_0.png', 1349926575: '1744728853_881803_1349926212_c7234ac4ff98e0f9595b63392370893f_rle_crop_3746841671_0.png', 1349926576: '1744728853_881803_1349926136_6ff958cfcab910b29ee896c926ca420a_rle_crop_3746841688_0.png', 1349926577: '1744728853_881803_1349926111_c21a6482fb7aafb05cbc9206cb547d07_rle_crop_3746841728_0.png', 1349926852: '1744729064_1081823_1349926673_47a70c47a84545e3726d440192c60444_rle_crop_3746871439_0.png', 1349926853: '1744729064_1081823_1349926673_47a70c47a84545e3726d440192c60444_rle_crop_3746871435_0.png', 1349926912: '1744729093_884412_1349926670_6426080568225c6eb671a9c61b404043_rle_crop_3746871861_0.png', 1349926913: '1744729093_884412_1349926667_cd9da2fb43d8a1c68eb7e88694cc58b0_rle_crop_3746871877_0.png', 1349927227: '1744729152_884954_1349926761_db30007b53b6dfb014bfab24bfb901c9_rle_crop_3746872050_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/4ab5f378fd77539e5bbf3bc2de05c582_98009262.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c6fe0e23371286a98e7d3f17b7c86a70_49362445.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/3547adc39baa219d9fc7b9b580b257e7_11957500.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f00fb33a467b4f6f3b81679bbf230970_6968560.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/8b54c63fb3be503cf3a750751ded3551_22899534.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/2899184e4441487a8e00a2bc426b8cd2_29636144.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/cf38b483670f76a7524143c8ba610322_49651678.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/b1c16f2ed1ed87aa16b530b4474c0afe_27029795.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/75171a0d5eecaeef04889313631e09c7_13317686.png change filename to text .imagette220378241744729261/ imagette220378241744729261/1744729064_1081823_1349926673_47a70c47a84545e3726d440192c60444_rle_crop_3746871435_0.png.png imagette220378241744729261/1744728853_881803_1349926136_6ff958cfcab910b29ee896c926ca420a_rle_crop_3746841688_0.png.png imagette220378241744729261/1744728821_1076425_1349926199_79cde395a7c53f22655d3d2023066afd_rle_crop_3746841487_0.png.png imagette220378241744729261/1744728853_881803_1349926212_c7234ac4ff98e0f9595b63392370893f_rle_crop_3746841671_0.png.png imagette220378241744729261/1744729064_1081823_1349926673_47a70c47a84545e3726d440192c60444_rle_crop_3746871439_0.png.png imagette220378241744729261/1744728613_879451_1349925799_a568397c42a8a3a37a20aafeadfc2a1a_rle_crop_3746840308_0.png.png imagette220378241744729261/1744729093_884412_1349926667_cd9da2fb43d8a1c68eb7e88694cc58b0_rle_crop_3746871877_0.png.png imagette220378241744729261/1744728853_881803_1349926111_c21a6482fb7aafb05cbc9206cb547d07_rle_crop_3746841728_0.png.png imagette220378241744729261/1744729152_884954_1349926761_db30007b53b6dfb014bfab24bfb901c9_rle_crop_3746872050_0.png.png imagette220378241744729261/1744729093_884412_1349926670_6426080568225c6eb671a9c61b404043_rle_crop_3746871861_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/31b37e90456a742bf824f2a162b1e109_79273124.png imagette220378241744729261 22037827 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=22037827 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349926105: '1744728584_1070127_1349925836_07f0a1651d5dfaf097c5e5e1fc693792_rle_crop_3746839889_0.png', 1349926174: '1744728613_879451_1349925796_5c0e7fbceebdee38d0ea38b73bf7f5bf_rle_crop_3746840319_0.png', 1349926383: '1744728792_881235_1349925905_989904e707fa32951e4d480ec7c42f9f_rle_crop_3746841122_0.png', 1349926384: '1744728792_881235_1349925896_9700cadf6183aa35915e9712deb45eb1_rle_crop_3746841159_0.png', 1349926388: '1744728821_1076425_1349926206_56a78ae9509d6e8b1c225adde1f5e4ab_rle_crop_3746841463_0.png', 1349926389: '1744728821_1076425_1349926202_aee4489e27f1a3cad34477314bce3f40_rle_crop_3746841479_0.png', 1349926569: '1744728853_881803_1349926130_7f44cbe4f804a726f0644332d8ee0c9a_rle_crop_3746841711_0.png', 1349926784: '1744729034_883800_1349926642_73ecd257159adac7e12fb0bd972d2000_rle_crop_3746871204_0.png', 1349926846: '1744729064_1081823_1349926673_47a70c47a84545e3726d440192c60444_rle_crop_3746871433_0.png', 1349926847: '1744729064_1081823_1349926636_07697f047e7dcb855bea92f556f211b3_rle_crop_3746871447_0.png', 1349927218: '1744729152_884954_1349926758_bf7119690174bb9be3f9a97812db7315_rle_crop_3746872060_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a95885e05fe1c31f2f78790513030a1d_5061002.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/ff3102856ed91b176ebb60b0357b334c_34955116.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f9e8f07360b033cac2e0177d949349b3_88344447.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a3fb8b1413d71624742440d4eb9f72d0_59044692.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/23cad2e0bef2cd7bec3c27ccb9b496bd_95523501.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a4ae1a2947cad1419ee31f148d1ec493_51222442.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/fa627edb11f3f4da766924f4953555fd_40963294.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/6b75b39730c569be88bfd36c0b316cfd_9242003.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/227fa8f80711fe59d5d72df1891cd9b3_97760404.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/aeaf27edfcbf5421782678394971e5f5_81718810.png change filename to text .imagette220378271744729262/ imagette220378271744729262/1744729064_1081823_1349926673_47a70c47a84545e3726d440192c60444_rle_crop_3746871433_0.png.png imagette220378271744729262/1744728853_881803_1349926130_7f44cbe4f804a726f0644332d8ee0c9a_rle_crop_3746841711_0.png.png imagette220378271744729262/1744728821_1076425_1349926206_56a78ae9509d6e8b1c225adde1f5e4ab_rle_crop_3746841463_0.png.png imagette220378271744729262/1744728821_1076425_1349926202_aee4489e27f1a3cad34477314bce3f40_rle_crop_3746841479_0.png.png imagette220378271744729262/1744728613_879451_1349925796_5c0e7fbceebdee38d0ea38b73bf7f5bf_rle_crop_3746840319_0.png.png imagette220378271744729262/1744728792_881235_1349925905_989904e707fa32951e4d480ec7c42f9f_rle_crop_3746841122_0.png.png imagette220378271744729262/1744729152_884954_1349926758_bf7119690174bb9be3f9a97812db7315_rle_crop_3746872060_0.png.png imagette220378271744729262/1744729064_1081823_1349926636_07697f047e7dcb855bea92f556f211b3_rle_crop_3746871447_0.png.png imagette220378271744729262/1744728792_881235_1349925896_9700cadf6183aa35915e9712deb45eb1_rle_crop_3746841159_0.png.png imagette220378271744729262/1744729034_883800_1349926642_73ecd257159adac7e12fb0bd972d2000_rle_crop_3746871204_0.png.png imagette220378271744729262/1744728584_1070127_1349925836_07f0a1651d5dfaf097c5e5e1fc693792_rle_crop_3746839889_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/0e1e25baa459b7ba053f59cb071e573d_34915009.png imagette220378271744729262 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22037809 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22037829,22037830,22037831,22037832,22037833,22037834,22037835,22037836,22037837,22037838,22037839,22037840?tags=environnement,Teint_Dans_La_Masse,papier,plastique,metal,autre_refus,flou,Carton_brun,cartonnette,kraft,Carton_gris,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1349927385] : ('0.03731048268538595',) no score found for photo 1349927385 We are sending mail with results at report@fotonower.com args[1349927374] : ('0.03731048268538595',) no score found for photo 1349927374 We are sending mail with results at report@fotonower.com args[1349927359] : ('0.03731048268538595',) no score found for photo 1349927359 We are sending mail with results at report@fotonower.com args[1349927329] : ('0.03731048268538595',) no score found for photo 1349927329 We are sending mail with results at report@fotonower.com args[1349927302] : ('0.03731048268538595',) no score found for photo 1349927302 We are sending mail with results at report@fotonower.com args[1349926883] : ('0.03731048268538595',) no score found for photo 1349926883 We are sending mail with results at report@fotonower.com args[1349926866] : ('0.03731048268538595',) no score found for photo 1349926866 We are sending mail with results at report@fotonower.com args[1349926854] : ('0.03731048268538595',) no score found for photo 1349926854 We are sending mail with results at report@fotonower.com args[1349926844] : ('0.03731048268538595',) no score found for photo 1349926844 We are sending mail with results at report@fotonower.com refus_total : 0.03731048268538595 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=22037809 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_P22037809_15-04-2025_17_00_59.pdf results_Auto_P22037809_15-04-2025_17_00_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037809_15-04-2025_17_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','22037809','results_Auto_P22037809_15-04-2025_17_00_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037809_15-04-2025_17_00_59.pdf','pdf','','0.23','0.03731048268538595') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22037809]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349927385, 1349927374, 1349927359, 1349927329, 1349927302, 1349926883, 1349926866, 1349926854, 1349926844] map_info['map_portfolio_photo'] : {22037809: [1349927385, 1349927374, 1349927359, 1349927329, 1349927302, 1349926883, 1349926866, 1349926854, 1349926844, 1349926765, 1349926761, 1349926758, 1349926753, 1349926733, 1349926673, 1349926670, 1349926667, 1349926653, 1349926642, 1349926636, 1349926630, 1349926620, 1349926614, 1349926608, 1349926554, 1349926547, 1349926541, 1349926441, 1349926357, 1349926352, 1349926348, 1349926344, 1349926212, 1349926206, 1349926202, 1349926199, 1349926138, 1349926136, 1349926133, 1349926130, 1349926111, 1349925986, 1349925973, 1349925965, 1349925911, 1349925908, 1349925905, 1349925902, 1349925899, 1349925896, 1349925838, 1349925836, 1349925833, 1349925830, 1349925810, 1349925804, 1349925799, 1349925796]} final : False mtd_id 4302 list_pids : [1349927385, 1349927374, 1349927359, 1349927329, 1349927302, 1349926883, 1349926866, 1349926854, 1349926844] 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, '2722381') ('4302', '22037809', '1349927385', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927374', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927359', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927329', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927302', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926883', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926866', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926854', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926844', None, None, None, None, None, '2722381') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22037809', '1349927385', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349927374', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349927359', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349927329', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349927302', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349926883', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349926866', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349926854', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349926844', None, None, None, None, None, '2722381')] time used for this insertion : 0.01472330093383789 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.478114128112793 time spend to save output : 0.01500248908996582 total time spend for step 4 : 4.493116617202759 step5:split_time_score Tue Apr 15 17:01:03 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 : ['22037809'] 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 : [('22037809',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22037809) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349927385: {'path': 'temp/1744729259_26442_1349927385_a7769945608f37e4735e83209feddb28.jpg', 'extension': 'jpg'}, 1349926866: {'path': 'temp/1744729259_26442_1349926866_e741f819bb1d90358a7c624ebe3eaf99.jpg', 'extension': 'jpg'}, 1349926883: {'path': 'temp/1744729259_26442_1349926883_e36825b22ebeef39b531dd937430af6d.jpg', 'extension': 'jpg'}, 1349926844: {'path': 'temp/1744729259_26442_1349926844_a4cba9a7f86ccad547fa1f0a88c242cf.jpg', 'extension': 'jpg'}, 1349926854: {'path': 'temp/1744729259_26442_1349926854_243deba5ebe7ea7ccbfce4b3f4200a70.jpg', 'extension': 'jpg'}, 1349927359: {'path': 'temp/1744729259_26442_1349927359_b18fd8568dff796ab0943f8df646d57c.jpg', 'extension': 'jpg'}, 1349927374: {'path': 'temp/1744729259_26442_1349927374_f1c4f354b5dbad2f138d4d8aca1021ae.jpg', 'extension': 'jpg'}, 1349927302: {'path': 'temp/1744729259_26442_1349927302_5b8fde3d1baab87083e6dd2fc0df92fd.jpg', 'extension': 'jpg'}, 1349927329: {'path': 'temp/1744729259_26442_1349927329_e7acf8633c351a6fbf55dd1df212025c.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 = 22037809; (('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 = 22037809 group by h (('16', 58),) 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=22037809 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 (22037809) 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 (22037809) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15042025 22037809 Nombre de photos uploadées : 58 / 23040 (0%) 15042025 22037809 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 15042025 22037809 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1349925810, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5bce610babe22836dadd5efef0d06bfa.jpg', 'username': None, 'uploaded_at': 1744728397, 'text': 'image_15042025_16_45_14_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349925804, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/273a3c509c92f7467b45113ab01a2964.jpg', 'username': None, 'uploaded_at': 1744728397, 'text': 'image_15042025_16_45_24_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349925799, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a568397c42a8a3a37a20aafeadfc2a1a.jpg', 'username': None, 'uploaded_at': 1744728397, 'text': 'image_15042025_16_45_33_009128m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349925796, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5c0e7fbceebdee38d0ea38b73bf7f5bf.jpg', 'username': None, 'uploaded_at': 1744728397, 'text': 'image_15042025_16_45_44_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0028395652770996094 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22037809, '2025-04-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1714503,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027289152145385742 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= 1714503 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723385, 'mtr_portfolio_id': 22036374, 'dashboard_result_id': 9856150, '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_P22036374_15-04-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036390, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723385, 'mtr_portfolio_id': 22037077, 'dashboard_result_id': 9856151, '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_P22037077_15-04-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037090, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723385, 'mtr_portfolio_id': 22037809, 'dashboard_result_id': 9856152, '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_P22037809_15-04-2025_16_58_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037817, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037828, '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 = 22036374 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': 2722261, 'mtr_portfolio_id': 22036374, 'created_at': datetime.datetime(2025, 4, 15, 16, 32, 59), 'result': '0.050489303939343734', 'result_long': None, 'result_double': None}] Qualite : 0.050489303939343734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22036374 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22036374_15-04-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22036374 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_P22036374_15-04-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036390, 'pht': 3726}}" where mtr_portfolio_id = 22036374 and dashboard_run_id = 1723385 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`=22036374 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856150, 0.050489303939343734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22036374_15-04-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036390, '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 = 22037077 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': 2722323, 'mtr_portfolio_id': 22037077, 'created_at': datetime.datetime(2025, 4, 15, 16, 49), 'result': '0.047122326309306566', 'result_long': None, 'result_double': None}] Qualite : 0.047122326309306566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22037077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037077_15-04-2025_16_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22037077 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_P22037077_15-04-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037090, 'pht': 3726}}" where mtr_portfolio_id = 22037077 and dashboard_run_id = 1723385 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`=22037077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856151, 0.047122326309306566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037077_15-04-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037090, '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 = 22037809 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': 2722381, 'mtr_portfolio_id': 22037809, 'created_at': datetime.datetime(2025, 4, 15, 17, 0, 58), 'result': '0.03731048268538595', 'result_long': None, 'result_double': None}] Qualite : 0.03731048268538595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22037809 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037809_15-04-2025_17_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22037809 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_P22037809_15-04-2025_17_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037817, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037828, 'pht': 3726}}" where mtr_portfolio_id = 22037809 and dashboard_run_id = 1723385 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`=22037809 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856152, 0.03731048268538595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037809_15-04-2025_17_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037817, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037828, '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 (22036374,22037077,22037809) result : ((1349920892,), (1349920896,), (1349920902,), (1349921401,), (1349921425,), (1349921591,), (1349921596,), (1349921623,), (1349921649,), (1349921680,), (1349921932,), (1349921934,), (1349921940,), (1349921967,), (1349921995,), (1349922069,), (1349922072,), (1349922092,), (1349922116,), (1349922469,), (1349922488,), (1349922503,), (1349922557,), (1349922558,), (1349922560,), (1349922567,), (1349922636,), (1349922639,), (1349922642,), (1349922645,), (1349922662,), (1349922667,), (1349922717,), (1349922720,), (1349922724,), (1349922768,), (1349922770,), (1349922773,), (1349922776,), (1349922782,), (1349922789,), (1349922877,), (1349922880,), (1349922899,), (1349922918,), (1349922985,), (1349922987,), (1349922990,), (1349922994,), (1349923000,), (1349923012,), (1349923065,), (1349923071,), (1349923078,), (1349923084,), (1349923090,), (1349923097,), (1349923099,), (1349923102,), (1349923105,), (1349923177,), (1349923181,), (1349923191,), (1349923203,), (1349923215,), (1349923294,), (1349923275,), (1349923278,), (1349923281,), (1349923285,), (1349923487,), (1349923499,), (1349923516,), (1349923521,), (1349923546,), (1349923725,), (1349923751,), (1349923782,), (1349923804,), (1349924170,), (1349924174,), (1349924185,), (1349924187,), (1349924195,), (1349924200,), (1349924243,), (1349924248,), (1349924269,), (1349924271,), (1349924276,), (1349924277,), (1349924288,), (1349924290,), (1349924293,), (1349924295,), (1349924512,), (1349924531,), (1349924534,), (1349924541,), (1349924567,), (1349924783,), (1349924802,), (1349924804,), (1349924816,), (1349924826,), (1349924927,), (1349924952,), (1349924975,), (1349925013,), (1349925045,), (1349925073,), (1349925100,), (1349925123,), (1349925140,), (1349925240,), (1349925245,), (1349925253,), (1349925262,), (1349925270,), (1349925276,), (1349925309,), (1349925313,), (1349925315,), (1349925340,), (1349925344,), (1349925347,), (1349925421,), (1349925423,), (1349925427,), (1349925434,), (1349925441,), (1349925520,), (1349925524,), (1349925529,), (1349925535,), (1349925541,), (1349925619,), (1349925621,), (1349925623,), (1349925625,), (1349925627,), (1349925629,), (1349925634,), (1349925636,), (1349925639,), (1349925643,), (1349925646,), (1349925648,), (1349925669,), (1349925673,), (1349925675,), (1349925816,), (1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15042025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22037809]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349927385, 1349927374, 1349927359, 1349927329, 1349927302, 1349926883, 1349926866, 1349926854, 1349926844] map_info['map_portfolio_photo'] : {22037809: [1349927385, 1349927374, 1349927359, 1349927329, 1349927302, 1349926883, 1349926866, 1349926854, 1349926844, 1349926765, 1349926761, 1349926758, 1349926753, 1349926733, 1349926673, 1349926670, 1349926667, 1349926653, 1349926642, 1349926636, 1349926630, 1349926620, 1349926614, 1349926608, 1349926554, 1349926547, 1349926541, 1349926441, 1349926357, 1349926352, 1349926348, 1349926344, 1349926212, 1349926206, 1349926202, 1349926199, 1349926138, 1349926136, 1349926133, 1349926130, 1349926111, 1349925986, 1349925973, 1349925965, 1349925911, 1349925908, 1349925905, 1349925902, 1349925899, 1349925896, 1349925838, 1349925836, 1349925833, 1349925830, 1349925810, 1349925804, 1349925799, 1349925796]} final : True mtd_id 4302 list_pids : [1349927385, 1349927374, 1349927359, 1349927329, 1349927302, 1349926883, 1349926866, 1349926854, 1349926844] Looping around the photos to save general results len do output : 1 /22037809Didn'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, '2722381') ('4302', '22037809', '1349927385', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927374', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927359', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927329', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349927302', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926883', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926866', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926854', None, None, None, None, None, '2722381') ('4302', None, None, None, None, None, None, None, '2722381') ('4302', '22037809', '1349926844', None, None, None, None, None, '2722381') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22037809', 'None', None, None, None, None, '2722381'), ('4302', '22037809', '1349927385', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349927374', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349927359', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349927329', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349927302', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349926883', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349926866', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349926854', None, None, None, None, None, '2722381'), ('4302', '22037809', '1349926844', None, None, None, None, None, '2722381')] time used for this insertion : 0.01601099967956543 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3022730350494385 time spend to save output : 0.016340970993041992 total time spend for step 5 : 0.31861400604248047 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 (2722381) 2.43user 2.09system 0:08.44elapsed 53%CPU (0avgtext+0avgdata 159980maxresident)k 1096inputs+11528outputs (28major+74819minor)pagefaults 0swaps