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 : 999555 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 (2620602) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2620602) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20890554 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2620602'] with mtr_portfolio_ids : ['20890554'] and first list_photo_ids : [] new path : /proc/999555/ Name: python3 Umask: 0002 State: R (running) Tgid: 999555 Ngid: 0 Pid: 999555 PPid: 999554 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 999555 NSpid: 999555 NSpgid: 995652 NSsid: 995652 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99184 kB VmRSS: 99184 kB RssAnon: 59760 kB RssFile: 39424 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '999555', 'Ngid': '0', 'Pid': '999555', 'PPid': '999554', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '999555', 'NSpid': '999555', 'NSpgid': '995652', 'NSsid': '995652', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99184 kB', 'VmRSS': '99184 kB', 'RssAnon': '59760 kB', 'RssFile': '39424 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '999555', '1106844', '0', '1106844', '865592', '99184', b'', 'marlene', '2620602') 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 (20890554) 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 (2620602 ) ) 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 (20890554) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339969330, 'portfolio_id': 20890554}, {'photo_id': 1339969289, 'portfolio_id': 20890554}, {'photo_id': 1339969286, 'portfolio_id': 20890554}, {'photo_id': 1339969281, 'portfolio_id': 20890554}, {'photo_id': 1339969276, 'portfolio_id': 20890554}, {'photo_id': 1339969269, 'portfolio_id': 20890554}, {'photo_id': 1339969102, 'portfolio_id': 20890554}, {'photo_id': 1339969094, 'portfolio_id': 20890554}, {'photo_id': 1339969090, 'portfolio_id': 20890554}, {'photo_id': 1339968992, 'portfolio_id': 20890554}, {'photo_id': 1339968986, 'portfolio_id': 20890554}, {'photo_id': 1339968957, 'portfolio_id': 20890554}, {'photo_id': 1339968925, 'portfolio_id': 20890554}, {'photo_id': 1339968922, 'portfolio_id': 20890554}, {'photo_id': 1339968919, 'portfolio_id': 20890554}, {'photo_id': 1339968917, 'portfolio_id': 20890554}, {'photo_id': 1339968915, 'portfolio_id': 20890554}, {'photo_id': 1339968914, 'portfolio_id': 20890554}, {'photo_id': 1339968892, 'portfolio_id': 20890554}, {'photo_id': 1339968887, 'portfolio_id': 20890554}, {'photo_id': 1339968884, 'portfolio_id': 20890554}, {'photo_id': 1339968881, 'portfolio_id': 20890554}, {'photo_id': 1339968878, 'portfolio_id': 20890554}, {'photo_id': 1339968875, 'portfolio_id': 20890554}, {'photo_id': 1339968526, 'portfolio_id': 20890554}, {'photo_id': 1339968525, 'portfolio_id': 20890554}, {'photo_id': 1339968482, 'portfolio_id': 20890554}, {'photo_id': 1339968479, 'portfolio_id': 20890554}, {'photo_id': 1339968434, 'portfolio_id': 20890554}, {'photo_id': 1339968431, 'portfolio_id': 20890554}, {'photo_id': 1339968428, 'portfolio_id': 20890554}, {'photo_id': 1339968085, 'portfolio_id': 20890554}, {'photo_id': 1339968075, 'portfolio_id': 20890554}, {'photo_id': 1339968071, 'portfolio_id': 20890554}, {'photo_id': 1339967322, 'portfolio_id': 20890554}, {'photo_id': 1339967319, 'portfolio_id': 20890554}, {'photo_id': 1339967317, 'portfolio_id': 20890554}, {'photo_id': 1339967314, 'portfolio_id': 20890554}, {'photo_id': 1339967267, 'portfolio_id': 20890554}, {'photo_id': 1339967253, 'portfolio_id': 20890554}, {'photo_id': 1339967250, 'portfolio_id': 20890554}, {'photo_id': 1339967212, 'portfolio_id': 20890554}, {'photo_id': 1339967204, 'portfolio_id': 20890554}, {'photo_id': 1339967203, 'portfolio_id': 20890554}, {'photo_id': 1339967151, 'portfolio_id': 20890554}, {'photo_id': 1339966975, 'portfolio_id': 20890554}, {'photo_id': 1339966907, 'portfolio_id': 20890554}, {'photo_id': 1339966903, 'portfolio_id': 20890554}, {'photo_id': 1339966899, 'portfolio_id': 20890554}, {'photo_id': 1339966895, 'portfolio_id': 20890554}, {'photo_id': 1339966696, 'portfolio_id': 20890554}, {'photo_id': 1339966695, 'portfolio_id': 20890554}, {'photo_id': 1339966686, 'portfolio_id': 20890554}, {'photo_id': 1339966683, 'portfolio_id': 20890554}, {'photo_id': 1339966652, 'portfolio_id': 20890554}, {'photo_id': 1339966647, 'portfolio_id': 20890554}, {'photo_id': 1339966641, 'portfolio_id': 20890554}, {'photo_id': 1339966636, 'portfolio_id': 20890554}, {'photo_id': 1339966621, 'portfolio_id': 20890554}, {'photo_id': 1339966615, 'portfolio_id': 20890554}, {'photo_id': 1339966573, 'portfolio_id': 20890554}, {'photo_id': 1339966558, 'portfolio_id': 20890554}, {'photo_id': 1339966555, 'portfolio_id': 20890554}, {'photo_id': 1339966553, 'portfolio_id': 20890554}, {'photo_id': 1339966530, 'portfolio_id': 20890554}, {'photo_id': 1339966474, 'portfolio_id': 20890554}, {'photo_id': 1339966456, 'portfolio_id': 20890554}, {'photo_id': 1339966452, 'portfolio_id': 20890554}, {'photo_id': 1339966439, 'portfolio_id': 20890554}, {'photo_id': 1339966436, 'portfolio_id': 20890554}] map_portfolio_id_photo_id: {20890554: [1339969330, 1339969289, 1339969286, 1339969281, 1339969276, 1339969269, 1339969102, 1339969094, 1339969090, 1339968992, 1339968986, 1339968957, 1339968925, 1339968922, 1339968919, 1339968917, 1339968915, 1339968914, 1339968892, 1339968887, 1339968884, 1339968881, 1339968878, 1339968875, 1339968526, 1339968525, 1339968482, 1339968479, 1339968434, 1339968431, 1339968428, 1339968085, 1339968075, 1339968071, 1339967322, 1339967319, 1339967317, 1339967314, 1339967267, 1339967253, 1339967250, 1339967212, 1339967204, 1339967203, 1339967151, 1339966975, 1339966907, 1339966903, 1339966899, 1339966895, 1339966696, 1339966695, 1339966686, 1339966683, 1339966652, 1339966647, 1339966641, 1339966636, 1339966621, 1339966615, 1339966573, 1339966558, 1339966555, 1339966553, 1339966530, 1339966474, 1339966456, 1339966452, 1339966439, 1339966436]} ##### 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.016526460647583008 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Feb 27 20:02: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 (20890554) 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 : 20890554 get user id for portfolio 20890554 get sub ptf for main ptf 20890554, type 3726 and hashtags ['mal_croppe', 'environnement', 'cartonnette', 'plastique', 'Carton_gris', 'kraft', 'papier', 'flou', 'metal', 'Teint_Dans_La_Masse', 'Carton_brun', 'autre_refus'] 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`=20890554 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','cartonnette','plastique','Carton_gris','kraft','papier','flou','metal','Teint_Dans_La_Masse','Carton_brun','autre_refus')) 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`=20890554 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','cartonnette','plastique','Carton_gris','kraft','papier','flou','metal','Teint_Dans_La_Masse','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20890554, 'sub_port_id': 20890595, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520026, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 49, 59)}, 'cartonnette': {'main_port_id': 20890554, 'sub_port_id': 20890602, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520027, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 49, 59)}, 'Carton_brun': {'main_port_id': 20890554, 'sub_port_id': 20890608, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520028, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 49, 59)}, 'plastique': {'main_port_id': 20890554, 'sub_port_id': 20890610, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520029, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 49, 59)}, 'environnement': {'main_port_id': 20890554, 'sub_port_id': 20890611, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520030, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 49, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20890554, 'sub_port_id': 20890612, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520031, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 49, 59)}, 'Carton_gris': {'main_port_id': 20890554, 'sub_port_id': 20890613, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520032, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 49, 59)}, 'metal': {'main_port_id': 20890554, 'sub_port_id': 20890614, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520033, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 49, 59)}, 'kraft': {'main_port_id': 20890554, 'sub_port_id': 20890615, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520034, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 49, 59)}, 'papier': {'main_port_id': 20890554, 'sub_port_id': 20890616, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520035, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 49, 59)}, 'autre_refus': {'main_port_id': 20890554, 'sub_port_id': 20890617, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520036, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 49, 59)}, 'mal_croppe': {'main_port_id': 20890554, 'sub_port_id': 20890618, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520037, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 49, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20890595 , 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=20890554 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 (20890595) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20890554) result : ((1339966436,), (1339966439,), (1339966452,), (1339966456,), (1339966474,), (1339966530,), (1339966553,), (1339966555,), (1339966558,), (1339966573,), (1339966615,), (1339966621,), (1339966636,), (1339966641,), (1339966647,), (1339966652,), (1339966683,), (1339966686,), (1339966695,), (1339966696,), (1339966895,), (1339966899,), (1339966903,), (1339966907,), (1339966975,), (1339967151,), (1339967203,), (1339967204,), (1339967212,), (1339967250,), (1339967253,), (1339967267,), (1339967314,), (1339967317,), (1339967319,), (1339967322,), (1339968071,), (1339968075,), (1339968085,), (1339968428,), (1339968431,), (1339968434,), (1339968479,), (1339968482,), (1339968525,), (1339968526,), (1339968875,), (1339968878,), (1339968881,), (1339968884,), (1339968887,), (1339968892,), (1339968914,), (1339968915,), (1339968917,), (1339968919,), (1339968922,), (1339968925,), (1339968957,), (1339968986,), (1339968992,), (1339969090,), (1339969094,), (1339969102,), (1339969269,), (1339969276,), (1339969281,), (1339969286,), (1339969289,), (1339969330,)) 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 20890602 , 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=20890554 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 (20890602) result : ((1339967193,), (1339967304,), (1339968520,), (1339968836,), (1339968944,), (1339968945,), (1339969045,), (1339969046,), (1339969122,), (1339969123,), (1339969335,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20890554) result : ((1339966436,), (1339966439,), (1339966452,), (1339966456,), (1339966474,), (1339966530,), (1339966553,), (1339966555,), (1339966558,), (1339966573,), (1339966615,), (1339966621,), (1339966636,), (1339966641,), (1339966647,), (1339966652,), (1339966683,), (1339966686,), (1339966695,), (1339966696,), (1339966895,), (1339966899,), (1339966903,), (1339966907,), (1339966975,), (1339967151,), (1339967203,), (1339967204,), (1339967212,), (1339967250,), (1339967253,), (1339967267,), (1339967314,), (1339967317,), (1339967319,), (1339967322,), (1339968071,), (1339968075,), (1339968085,), (1339968428,), (1339968431,), (1339968434,), (1339968479,), (1339968482,), (1339968525,), (1339968526,), (1339968875,), (1339968878,), (1339968881,), (1339968884,), (1339968887,), (1339968892,), (1339968914,), (1339968915,), (1339968917,), (1339968919,), (1339968922,), (1339968925,), (1339968957,), (1339968986,), (1339968992,), (1339969090,), (1339969094,), (1339969102,), (1339969269,), (1339969276,), (1339969281,), (1339969286,), (1339969289,), (1339969330,)) 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 20890608 , 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=20890554 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 (20890608) result : ((1339967194,), (1339967195,), (1339967196,), (1339967294,), (1339967295,), (1339967307,), (1339967308,), (1339967309,), (1339967341,), (1339968496,), (1339968497,), (1339968522,), (1339968523,), (1339968524,), (1339968848,), (1339968849,), (1339968946,), (1339969124,), (1339969125,), (1339969317,), (1339969318,), (1339969319,), (1339969320,), (1339969321,), (1339969338,), (1339969339,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20890554) result : ((1339966436,), (1339966439,), (1339966452,), (1339966456,), (1339966474,), (1339966530,), (1339966553,), (1339966555,), (1339966558,), (1339966573,), (1339966615,), (1339966621,), (1339966636,), (1339966641,), (1339966647,), (1339966652,), (1339966683,), (1339966686,), (1339966695,), (1339966696,), (1339966895,), (1339966899,), (1339966903,), (1339966907,), (1339966975,), (1339967151,), (1339967203,), (1339967204,), (1339967212,), (1339967250,), (1339967253,), (1339967267,), (1339967314,), (1339967317,), (1339967319,), (1339967322,), (1339968071,), (1339968075,), (1339968085,), (1339968428,), (1339968431,), (1339968434,), (1339968479,), (1339968482,), (1339968525,), (1339968526,), (1339968875,), (1339968878,), (1339968881,), (1339968884,), (1339968887,), (1339968892,), (1339968914,), (1339968915,), (1339968917,), (1339968919,), (1339968922,), (1339968925,), (1339968957,), (1339968986,), (1339968992,), (1339969090,), (1339969094,), (1339969102,), (1339969269,), (1339969276,), (1339969281,), (1339969286,), (1339969289,), (1339969330,)) 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 20890610 , 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=20890554 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 (20890610) result : ((1339967199,), (1339967310,), (1339967343,), (1339968498,), (1339969047,), (1339969131,), (1339969327,), (1339969329,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20890554) result : ((1339966436,), (1339966439,), (1339966452,), (1339966456,), (1339966474,), (1339966530,), (1339966553,), (1339966555,), (1339966558,), (1339966573,), (1339966615,), (1339966621,), (1339966636,), (1339966641,), (1339966647,), (1339966652,), (1339966683,), (1339966686,), (1339966695,), (1339966696,), (1339966895,), (1339966899,), (1339966903,), (1339966907,), (1339966975,), (1339967151,), (1339967203,), (1339967204,), (1339967212,), (1339967250,), (1339967253,), (1339967267,), (1339967314,), (1339967317,), (1339967319,), (1339967322,), (1339968071,), (1339968075,), (1339968085,), (1339968428,), (1339968431,), (1339968434,), (1339968479,), (1339968482,), (1339968525,), (1339968526,), (1339968875,), (1339968878,), (1339968881,), (1339968884,), (1339968887,), (1339968892,), (1339968914,), (1339968915,), (1339968917,), (1339968919,), (1339968922,), (1339968925,), (1339968957,), (1339968986,), (1339968992,), (1339969090,), (1339969094,), (1339969102,), (1339969269,), (1339969276,), (1339969281,), (1339969286,), (1339969289,), (1339969330,)) 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 20890611 , 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=20890554 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 (20890611) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20890554) result : ((1339966436,), (1339966439,), (1339966452,), (1339966456,), (1339966474,), (1339966530,), (1339966553,), (1339966555,), (1339966558,), (1339966573,), (1339966615,), (1339966621,), (1339966636,), (1339966641,), (1339966647,), (1339966652,), (1339966683,), (1339966686,), (1339966695,), (1339966696,), (1339966895,), (1339966899,), (1339966903,), (1339966907,), (1339966975,), (1339967151,), (1339967203,), (1339967204,), (1339967212,), (1339967250,), (1339967253,), (1339967267,), (1339967314,), (1339967317,), (1339967319,), (1339967322,), (1339968071,), (1339968075,), (1339968085,), (1339968428,), (1339968431,), (1339968434,), (1339968479,), (1339968482,), (1339968525,), (1339968526,), (1339968875,), (1339968878,), (1339968881,), (1339968884,), (1339968887,), (1339968892,), (1339968914,), (1339968915,), (1339968917,), (1339968919,), (1339968922,), (1339968925,), (1339968957,), (1339968986,), (1339968992,), (1339969090,), (1339969094,), (1339969102,), (1339969269,), (1339969276,), (1339969281,), (1339969286,), (1339969289,), (1339969330,)) 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 20890612 , 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=20890554 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 (20890612) result : ((1339967187,), (1339967188,), (1339967189,), (1339967190,), (1339967297,), (1339967298,), (1339968485,), (1339968486,), (1339968487,), (1339968488,), (1339968505,), (1339968511,), (1339968512,), (1339968513,), (1339968514,), (1339968831,), (1339968832,), (1339968846,), (1339968938,), (1339969108,), (1339969109,), (1339969110,), (1339969111,), (1339969112,), (1339969113,), (1339969305,), (1339969306,), (1339969307,), (1339969308,), (1339969324,), (1339969325,), (1339969326,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20890554) result : ((1339966436,), (1339966439,), (1339966452,), (1339966456,), (1339966474,), (1339966530,), (1339966553,), (1339966555,), (1339966558,), (1339966573,), (1339966615,), (1339966621,), (1339966636,), (1339966641,), (1339966647,), (1339966652,), (1339966683,), (1339966686,), (1339966695,), (1339966696,), (1339966895,), (1339966899,), (1339966903,), (1339966907,), (1339966975,), (1339967151,), (1339967203,), (1339967204,), (1339967212,), (1339967250,), (1339967253,), (1339967267,), (1339967314,), (1339967317,), (1339967319,), (1339967322,), (1339968071,), (1339968075,), (1339968085,), (1339968428,), (1339968431,), (1339968434,), (1339968479,), (1339968482,), (1339968525,), (1339968526,), (1339968875,), (1339968878,), (1339968881,), (1339968884,), (1339968887,), (1339968892,), (1339968914,), (1339968915,), (1339968917,), (1339968919,), (1339968922,), (1339968925,), (1339968957,), (1339968986,), (1339968992,), (1339969090,), (1339969094,), (1339969102,), (1339969269,), (1339969276,), (1339969281,), (1339969286,), (1339969289,), (1339969330,)) 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 20890613 , 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=20890554 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 (20890613) result : ((1339967191,), (1339967290,), (1339967291,), (1339967292,), (1339967293,), (1339967301,), (1339967302,), (1339967303,), (1339967338,), (1339967339,), (1339967340,), (1339968130,), (1339968131,), (1339968132,), (1339968493,), (1339968507,), (1339968518,), (1339968519,), (1339968834,), (1339968940,), (1339968941,), (1339968942,), (1339969116,), (1339969117,), (1339969118,), (1339969311,), (1339969312,), (1339969313,), (1339969333,), (1339969334,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20890554) result : ((1339966436,), (1339966439,), (1339966452,), (1339966456,), (1339966474,), (1339966530,), (1339966553,), (1339966555,), (1339966558,), (1339966573,), (1339966615,), (1339966621,), (1339966636,), (1339966641,), (1339966647,), (1339966652,), (1339966683,), (1339966686,), (1339966695,), (1339966696,), (1339966895,), (1339966899,), (1339966903,), (1339966907,), (1339966975,), (1339967151,), (1339967203,), (1339967204,), (1339967212,), (1339967250,), (1339967253,), (1339967267,), (1339967314,), (1339967317,), (1339967319,), (1339967322,), (1339968071,), (1339968075,), (1339968085,), (1339968428,), (1339968431,), (1339968434,), (1339968479,), (1339968482,), (1339968525,), (1339968526,), (1339968875,), (1339968878,), (1339968881,), (1339968884,), (1339968887,), (1339968892,), (1339968914,), (1339968915,), (1339968917,), (1339968919,), (1339968922,), (1339968925,), (1339968957,), (1339968986,), (1339968992,), (1339969090,), (1339969094,), (1339969102,), (1339969269,), (1339969276,), (1339969281,), (1339969286,), (1339969289,), (1339969330,)) 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 20890614 , 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=20890554 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 (20890614) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20890554) result : ((1339966436,), (1339966439,), (1339966452,), (1339966456,), (1339966474,), (1339966530,), (1339966553,), (1339966555,), (1339966558,), (1339966573,), (1339966615,), (1339966621,), (1339966636,), (1339966641,), (1339966647,), (1339966652,), (1339966683,), (1339966686,), (1339966695,), (1339966696,), (1339966895,), (1339966899,), (1339966903,), (1339966907,), (1339966975,), (1339967151,), (1339967203,), (1339967204,), (1339967212,), (1339967250,), (1339967253,), (1339967267,), (1339967314,), (1339967317,), (1339967319,), (1339967322,), (1339968071,), (1339968075,), (1339968085,), (1339968428,), (1339968431,), (1339968434,), (1339968479,), (1339968482,), (1339968525,), (1339968526,), (1339968875,), (1339968878,), (1339968881,), (1339968884,), (1339968887,), (1339968892,), (1339968914,), (1339968915,), (1339968917,), (1339968919,), (1339968922,), (1339968925,), (1339968957,), (1339968986,), (1339968992,), (1339969090,), (1339969094,), (1339969102,), (1339969269,), (1339969276,), (1339969281,), (1339969286,), (1339969289,), (1339969330,)) 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 20890615 , 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=20890554 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 (20890615) result : ((1339968840,), (1339969195,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20890554) result : ((1339966436,), (1339966439,), (1339966452,), (1339966456,), (1339966474,), (1339966530,), (1339966553,), (1339966555,), (1339966558,), (1339966573,), (1339966615,), (1339966621,), (1339966636,), (1339966641,), (1339966647,), (1339966652,), (1339966683,), (1339966686,), (1339966695,), (1339966696,), (1339966895,), (1339966899,), (1339966903,), (1339966907,), (1339966975,), (1339967151,), (1339967203,), (1339967204,), (1339967212,), (1339967250,), (1339967253,), (1339967267,), (1339967314,), (1339967317,), (1339967319,), (1339967322,), (1339968071,), (1339968075,), (1339968085,), (1339968428,), (1339968431,), (1339968434,), (1339968479,), (1339968482,), (1339968525,), (1339968526,), (1339968875,), (1339968878,), (1339968881,), (1339968884,), (1339968887,), (1339968892,), (1339968914,), (1339968915,), (1339968917,), (1339968919,), (1339968922,), (1339968925,), (1339968957,), (1339968986,), (1339968992,), (1339969090,), (1339969094,), (1339969102,), (1339969269,), (1339969276,), (1339969281,), (1339969286,), (1339969289,), (1339969330,)) 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 20890616 , 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=20890554 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 (20890616) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20890554) result : ((1339966436,), (1339966439,), (1339966452,), (1339966456,), (1339966474,), (1339966530,), (1339966553,), (1339966555,), (1339966558,), (1339966573,), (1339966615,), (1339966621,), (1339966636,), (1339966641,), (1339966647,), (1339966652,), (1339966683,), (1339966686,), (1339966695,), (1339966696,), (1339966895,), (1339966899,), (1339966903,), (1339966907,), (1339966975,), (1339967151,), (1339967203,), (1339967204,), (1339967212,), (1339967250,), (1339967253,), (1339967267,), (1339967314,), (1339967317,), (1339967319,), (1339967322,), (1339968071,), (1339968075,), (1339968085,), (1339968428,), (1339968431,), (1339968434,), (1339968479,), (1339968482,), (1339968525,), (1339968526,), (1339968875,), (1339968878,), (1339968881,), (1339968884,), (1339968887,), (1339968892,), (1339968914,), (1339968915,), (1339968917,), (1339968919,), (1339968922,), (1339968925,), (1339968957,), (1339968986,), (1339968992,), (1339969090,), (1339969094,), (1339969102,), (1339969269,), (1339969276,), (1339969281,), (1339969286,), (1339969289,), (1339969330,)) 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 20890617 , 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=20890554 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 (20890617) result : ((1339967300,), (1339967331,), (1339967332,), (1339967333,), (1339967334,), (1339967335,), (1339968489,), (1339968490,), (1339968516,), (1339968833,), (1339968847,), (1339969328,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20890554) result : ((1339966436,), (1339966439,), (1339966452,), (1339966456,), (1339966474,), (1339966530,), (1339966553,), (1339966555,), (1339966558,), (1339966573,), (1339966615,), (1339966621,), (1339966636,), (1339966641,), (1339966647,), (1339966652,), (1339966683,), (1339966686,), (1339966695,), (1339966696,), (1339966895,), (1339966899,), (1339966903,), (1339966907,), (1339966975,), (1339967151,), (1339967203,), (1339967204,), (1339967212,), (1339967250,), (1339967253,), (1339967267,), (1339967314,), (1339967317,), (1339967319,), (1339967322,), (1339968071,), (1339968075,), (1339968085,), (1339968428,), (1339968431,), (1339968434,), (1339968479,), (1339968482,), (1339968525,), (1339968526,), (1339968875,), (1339968878,), (1339968881,), (1339968884,), (1339968887,), (1339968892,), (1339968914,), (1339968915,), (1339968917,), (1339968919,), (1339968922,), (1339968925,), (1339968957,), (1339968986,), (1339968992,), (1339969090,), (1339969094,), (1339969102,), (1339969269,), (1339969276,), (1339969281,), (1339969286,), (1339969289,), (1339969330,)) 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 20890618 , 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=20890554 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 (20890618) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20890554) result : ((1339966436,), (1339966439,), (1339966452,), (1339966456,), (1339966474,), (1339966530,), (1339966553,), (1339966555,), (1339966558,), (1339966573,), (1339966615,), (1339966621,), (1339966636,), (1339966641,), (1339966647,), (1339966652,), (1339966683,), (1339966686,), (1339966695,), (1339966696,), (1339966895,), (1339966899,), (1339966903,), (1339966907,), (1339966975,), (1339967151,), (1339967203,), (1339967204,), (1339967212,), (1339967250,), (1339967253,), (1339967267,), (1339967314,), (1339967317,), (1339967319,), (1339967322,), (1339968071,), (1339968075,), (1339968085,), (1339968428,), (1339968431,), (1339968434,), (1339968479,), (1339968482,), (1339968525,), (1339968526,), (1339968875,), (1339968878,), (1339968881,), (1339968884,), (1339968887,), (1339968892,), (1339968914,), (1339968915,), (1339968917,), (1339968919,), (1339968922,), (1339968925,), (1339968957,), (1339968986,), (1339968992,), (1339969090,), (1339969094,), (1339969102,), (1339969269,), (1339969276,), (1339969281,), (1339969286,), (1339969289,), (1339969330,)) 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`=20890554 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','cartonnette','plastique','Carton_gris','kraft','papier','flou','metal','Teint_Dans_La_Masse','Carton_brun','autre_refus')) 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`=20890554 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','cartonnette','plastique','Carton_gris','kraft','papier','flou','metal','Teint_Dans_La_Masse','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20890554, 'sub_port_id': 20890619, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520038, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 50, 1)}, 'cartonnette': {'main_port_id': 20890554, 'sub_port_id': 20890620, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520039, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 50, 1)}, 'Carton_brun': {'main_port_id': 20890554, 'sub_port_id': 20890621, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520040, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 50, 1)}, 'plastique': {'main_port_id': 20890554, 'sub_port_id': 20890622, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520041, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 50, 1)}, 'environnement': {'main_port_id': 20890554, 'sub_port_id': 20890623, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520042, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 50, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 20890554, 'sub_port_id': 20890624, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520043, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 50, 1)}, 'Carton_gris': {'main_port_id': 20890554, 'sub_port_id': 20890625, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520044, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 50, 1)}, 'metal': {'main_port_id': 20890554, 'sub_port_id': 20890626, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520045, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 50, 1)}, 'kraft': {'main_port_id': 20890554, 'sub_port_id': 20890627, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520046, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 50, 1)}, 'papier': {'main_port_id': 20890554, 'sub_port_id': 20890628, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520047, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 50, 1)}, 'autre_refus': {'main_port_id': 20890554, 'sub_port_id': 20890629, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520048, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 50, 1)}, 'mal_croppe': {'main_port_id': 20890554, 'sub_port_id': 20890630, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13520049, 'last_updated_at': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 19, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 19, 50, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20890619,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20890595 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20890620,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20890602 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20890621,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20890608 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20890622,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20890610 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20890623,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20890611 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20890624,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20890612 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20890625,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20890613 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20890626,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20890614 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20890627,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20890615 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20890628,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20890616 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20890629,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20890617 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20890630,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20890618 lien utilise dans velours : https://www.fotonower.com/velours/20890619,20890620,20890621,20890622,20890623,20890624,20890625,20890626,20890627,20890628,20890629,20890630?tags=flou,cartonnette,Carton_brun,plastique,environnement,Teint_Dans_La_Masse,Carton_gris,metal,kraft,papier,autre_refus,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20890554]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339969330, 1339969289, 1339969286, 1339969281, 1339969276, 1339969269, 1339969102, 1339969094, 1339969090] map_info['map_portfolio_photo'] : {20890554: [1339969330, 1339969289, 1339969286, 1339969281, 1339969276, 1339969269, 1339969102, 1339969094, 1339969090, 1339968992, 1339968986, 1339968957, 1339968925, 1339968922, 1339968919, 1339968917, 1339968915, 1339968914, 1339968892, 1339968887, 1339968884, 1339968881, 1339968878, 1339968875, 1339968526, 1339968525, 1339968482, 1339968479, 1339968434, 1339968431, 1339968428, 1339968085, 1339968075, 1339968071, 1339967322, 1339967319, 1339967317, 1339967314, 1339967267, 1339967253, 1339967250, 1339967212, 1339967204, 1339967203, 1339967151, 1339966975, 1339966907, 1339966903, 1339966899, 1339966895, 1339966696, 1339966695, 1339966686, 1339966683, 1339966652, 1339966647, 1339966641, 1339966636, 1339966621, 1339966615, 1339966573, 1339966558, 1339966555, 1339966553, 1339966530, 1339966474, 1339966456, 1339966452, 1339966439, 1339966436]} final : False mtd_id 4302 list_pids : [1339969330, 1339969289, 1339969286, 1339969281, 1339969276, 1339969269, 1339969102, 1339969094, 1339969090] Looping around the photos to save general results len do output : 1 /20890554. 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, '2620602') ('4302', '20890554', '1339969330', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969289', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969286', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969281', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969276', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969269', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969102', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969094', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969090', None, None, None, None, None, '2620602') 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, '20890554', "{'flou': 20890595, 'cartonnette': 20890602, 'Carton_brun': 20890608, 'plastique': 20890610, 'environnement': 20890611, 'Teint_Dans_La_Masse': 20890612, 'Carton_gris': 20890613, 'metal': 20890614, 'kraft': 20890615, 'papier': 20890616, 'autre_refus': 20890617, 'mal_croppe': 20890618}", None, None, None, None, '2620602'), ('4302', '20890554', '1339969330', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969289', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969286', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969281', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969276', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969269', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969102', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969094', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969090', None, None, None, None, None, '2620602')] time used for this insertion : 0.013823509216308594 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.492938756942749 time spend to save output : 0.014121770858764648 total time spend for step 1 : 1.5070605278015137 step2:final Thu Feb 27 20:02: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 (20890554) 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 20890554 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339966474,1339966456,1339966452,1339966439,1339966436,1339966573,1339966558,1339966555,1339966553,1339966530,1339966652,1339966647,1339966641,1339966636,1339966621,1339966615,1339966696,1339966695,1339966686,1339966683,1339967151,1339966975,1339966907,1339966903,1339966899,1339966895,1339967267,1339967253,1339967250,1339967212,1339967204,1339967203,1339967322,1339967319,1339967317,1339967314,1339968085,1339968075,1339968071,1339968482,1339968479,1339968434,1339968431,1339968428,1339968526,1339968525,1339968892,1339968887,1339968884,1339968881,1339968878,1339968875,1339968925,1339968922,1339968919,1339968917,1339968915,1339968914,1339968992,1339968986,1339968957,1339969102,1339969094,1339969090,1339969289,1339969286,1339969281,1339969276,1339969269,1339969330); 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([20890554]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ('0.10616702999369874',)} new output for save of step final : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ('0.10616702999369874',)} [1339969330, 1339969289, 1339969286, 1339969281, 1339969276, 1339969269, 1339969102, 1339969094, 1339969090] map_info['map_portfolio_photo'] : {20890554: [1339969330, 1339969289, 1339969286, 1339969281, 1339969276, 1339969269, 1339969102, 1339969094, 1339969090, 1339968992, 1339968986, 1339968957, 1339968925, 1339968922, 1339968919, 1339968917, 1339968915, 1339968914, 1339968892, 1339968887, 1339968884, 1339968881, 1339968878, 1339968875, 1339968526, 1339968525, 1339968482, 1339968479, 1339968434, 1339968431, 1339968428, 1339968085, 1339968075, 1339968071, 1339967322, 1339967319, 1339967317, 1339967314, 1339967267, 1339967253, 1339967250, 1339967212, 1339967204, 1339967203, 1339967151, 1339966975, 1339966907, 1339966903, 1339966899, 1339966895, 1339966696, 1339966695, 1339966686, 1339966683, 1339966652, 1339966647, 1339966641, 1339966636, 1339966621, 1339966615, 1339966573, 1339966558, 1339966555, 1339966553, 1339966530, 1339966474, 1339966456, 1339966452, 1339966439, 1339966436]} final : False mtd_id 4302 list_pids : [1339969330, 1339969289, 1339969286, 1339969281, 1339969276, 1339969269, 1339969102, 1339969094, 1339969090] Looping around the photos to save general results len do output : 9 /1339969330.Didn't retrieve data . /1339969289.Didn't retrieve data . /1339969286.Didn't retrieve data . /1339969281.Didn't retrieve data . /1339969276.Didn't retrieve data . /1339969269.Didn't retrieve data . /1339969102.Didn't retrieve data . /1339969094.Didn't retrieve data . /1339969090.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, '2620602') ('4302', '20890554', '1339969330', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969289', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969286', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969281', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969276', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969269', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969102', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969094', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969090', None, None, None, None, None, '2620602') 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', '20890554', '1339969330', '0.10616702999369874', None, None, None, None, '2620602'), ('4302', '20890554', '1339969289', '0.10616702999369874', None, None, None, None, '2620602'), ('4302', '20890554', '1339969286', '0.10616702999369874', None, None, None, None, '2620602'), ('4302', '20890554', '1339969281', '0.10616702999369874', None, None, None, None, '2620602'), ('4302', '20890554', '1339969276', '0.10616702999369874', None, None, None, None, '2620602'), ('4302', '20890554', '1339969269', '0.10616702999369874', None, None, None, None, '2620602'), ('4302', '20890554', '1339969102', '0.10616702999369874', None, None, None, None, '2620602'), ('4302', '20890554', '1339969094', '0.10616702999369874', None, None, None, None, '2620602'), ('4302', '20890554', '1339969090', '0.10616702999369874', None, None, None, None, '2620602')] time used for this insertion : 0.013268709182739258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07217550277709961 time spend to save output : 0.013775110244750977 total time spend for step 2 : 0.08595061302185059 step3:velours_tree Thu Feb 27 20:02: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 : {20890554: [{'flou': 20890595, 'cartonnette': 20890602, 'Carton_brun': 20890608, 'plastique': 20890610, 'environnement': 20890611, 'Teint_Dans_La_Masse': 20890612, 'Carton_gris': 20890613, 'metal': 20890614, 'kraft': 20890615, 'papier': 20890616, 'autre_refus': 20890617, 'mal_croppe': 20890618}]} input_args_next_step : {20890554: ()} output_args : {20890554: [{'flou': 20890595, 'cartonnette': 20890602, 'Carton_brun': 20890608, 'plastique': 20890610, 'environnement': 20890611, 'Teint_Dans_La_Masse': 20890612, 'Carton_gris': 20890613, 'metal': 20890614, 'kraft': 20890615, 'papier': 20890616, 'autre_refus': 20890617, 'mal_croppe': 20890618}]} args : 20890554 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 : ({'flou': 20890595, 'cartonnette': 20890602, 'Carton_brun': 20890608, 'plastique': 20890610, 'environnement': 20890611, 'Teint_Dans_La_Masse': 20890612, 'Carton_gris': 20890613, 'metal': 20890614, 'kraft': 20890615, 'papier': 20890616, 'autre_refus': 20890617, 'mal_croppe': 20890618},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20890554) 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([20890554]) 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.489255428314209 time spend to save output : 5.6743621826171875e-05 total time spend for step 3 : 0.48931217193603516 step4:send_mail_cod Thu Feb 27 20:02: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 : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ('0.10616702999369874',)} input_args_next_step : {1339969330: ()} output_args : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ('0.10616702999369874',)} args : 1339969330 depend.output_id : 0 input_args_next_step : {1339969330: ('0.10616702999369874',), 1339969289: ()} output_args : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ('0.10616702999369874',)} args : 1339969289 depend.output_id : 0 input_args_next_step : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ()} output_args : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ('0.10616702999369874',)} args : 1339969286 depend.output_id : 0 input_args_next_step : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ()} output_args : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ('0.10616702999369874',)} args : 1339969281 depend.output_id : 0 input_args_next_step : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ()} output_args : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ('0.10616702999369874',)} args : 1339969276 depend.output_id : 0 input_args_next_step : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ()} output_args : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ('0.10616702999369874',)} args : 1339969269 depend.output_id : 0 input_args_next_step : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ()} output_args : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ('0.10616702999369874',)} args : 1339969102 depend.output_id : 0 input_args_next_step : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ()} output_args : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ('0.10616702999369874',)} args : 1339969094 depend.output_id : 0 input_args_next_step : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ()} output_args : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ('0.10616702999369874',)} args : 1339969090 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 : {20890554: [{'flou': 20890595, 'cartonnette': 20890602, 'Carton_brun': 20890608, 'plastique': 20890610, 'environnement': 20890611, 'Teint_Dans_La_Masse': 20890612, 'Carton_gris': 20890613, 'metal': 20890614, 'kraft': 20890615, 'papier': 20890616, 'autre_refus': 20890617, 'mal_croppe': 20890618}]} input_args_next_step : {1339969330: ('0.10616702999369874',), 1339969289: ('0.10616702999369874',), 1339969286: ('0.10616702999369874',), 1339969281: ('0.10616702999369874',), 1339969276: ('0.10616702999369874',), 1339969269: ('0.10616702999369874',), 1339969102: ('0.10616702999369874',), 1339969094: ('0.10616702999369874',), 1339969090: ('0.10616702999369874',), 20890554: ()} output_args : {20890554: [{'flou': 20890595, 'cartonnette': 20890602, 'Carton_brun': 20890608, 'plastique': 20890610, 'environnement': 20890611, 'Teint_Dans_La_Masse': 20890612, 'Carton_gris': 20890613, 'metal': 20890614, 'kraft': 20890615, 'papier': 20890616, 'autre_refus': 20890617, 'mal_croppe': 20890618}]} args : 20890554 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.10616702999369874',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20890554) 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 (1339969330,1339969289,1339969286,1339969281,1339969276,1339969269,1339969102,1339969094,1339969090) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339969090 begin to download photo : 1339969102 begin to download photo : 1339969276 begin to download photo : 1339969286 begin to download photo : 1339969330 download finish for photo 1339969330 download finish for photo 1339969286 begin to download photo : 1339969289 download finish for photo 1339969102 begin to download photo : 1339969269 download finish for photo 1339969276 begin to download photo : 1339969281 download finish for photo 1339969090 begin to download photo : 1339969094 download finish for photo 1339969269 download finish for photo 1339969281 download finish for photo 1339969289 download finish for photo 1339969094 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette208905951740682979/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P20890554_27-02-2025_20_02_59.pdf 20890595 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=20890595 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208905951740682979 20890602 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=20890602 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339967193: '1740682214_1581129_1339966695_dc3b63f0af3f1114aeceef5169008561_rle_crop_3688967179_0.png', 1339967304: '1740682232_1581424_1339966647_4e903b37b34bddcbd5e81709bf26dcab_rle_crop_3688967891_0.png', 1339968520: '1740682430_1583914_1339966895_2e8cad76d60c0c533fe5450ee58d045e_rle_crop_3688969861_0.png', 1339968836: '1740682513_1585173_1339968071_7a840dcd6d44f746e2afa4deb20a22ab_rle_crop_3688970386_0.png', 1339968944: '1740682622_1586603_1339968428_ef76460c81ecd129aafbf975f674f5fe_rle_crop_3688971462_0.png', 1339968945: '1740682622_1586603_1339968428_ef76460c81ecd129aafbf975f674f5fe_rle_crop_3688971466_0.png', 1339969045: '1740682752_1587679_1339968986_912f525a271c09d941204bdee97ed0f2_rle_crop_3688971746_0.png', 1339969046: '1740682752_1587679_1339968957_672d2bf06d95d08377ff08e7110c711f_rle_crop_3688971757_0.png', 1339969122: '1740682771_1587881_1339968922_c56c9cb75504e6f2bb6403c8c60ba46f_rle_crop_3688971902_0.png', 1339969123: '1740682771_1587881_1339968922_c56c9cb75504e6f2bb6403c8c60ba46f_rle_crop_3688971906_0.png', 1339969335: '1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972347_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/5677c587be82f638159d15e416a1b17e_3968421.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ee3cb9dd5061f6b087aa6b214b81dbaa_98647038.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/95696c1c2b35ffd9c59aefdd0d9c677a_84181564.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/679f6f309bc307a1376f93c02de179bc_82696724.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/1c91a8ff33f7d82603c1e9e1c4fcd86b_15810697.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/efc6d445d2ddd37440b6693b53fe9d1f_16891104.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/68d5f7121b02b9ee0d9184122c526d03_42834173.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/6819cc41634eaba28fbf50471f4202a3_45212043.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/e9ab2839c48004cc70ae4f8b67ad46c9_39182810.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/2da0fe5228037df546404da25f4c0004_6589845.png change filename to text .imagette208906021740682979/ imagette208906021740682979/1740682771_1587881_1339968922_c56c9cb75504e6f2bb6403c8c60ba46f_rle_crop_3688971902_0.png.png imagette208906021740682979/1740682752_1587679_1339968986_912f525a271c09d941204bdee97ed0f2_rle_crop_3688971746_0.png.png imagette208906021740682979/1740682622_1586603_1339968428_ef76460c81ecd129aafbf975f674f5fe_rle_crop_3688971466_0.png.png imagette208906021740682979/1740682771_1587881_1339968922_c56c9cb75504e6f2bb6403c8c60ba46f_rle_crop_3688971906_0.png.png imagette208906021740682979/1740682752_1587679_1339968957_672d2bf06d95d08377ff08e7110c711f_rle_crop_3688971757_0.png.png imagette208906021740682979/1740682232_1581424_1339966647_4e903b37b34bddcbd5e81709bf26dcab_rle_crop_3688967891_0.png.png imagette208906021740682979/1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972347_0.png.png imagette208906021740682979/1740682513_1585173_1339968071_7a840dcd6d44f746e2afa4deb20a22ab_rle_crop_3688970386_0.png.png imagette208906021740682979/1740682430_1583914_1339966895_2e8cad76d60c0c533fe5450ee58d045e_rle_crop_3688969861_0.png.png imagette208906021740682979/1740682214_1581129_1339966695_dc3b63f0af3f1114aeceef5169008561_rle_crop_3688967179_0.png.png imagette208906021740682979/1740682622_1586603_1339968428_ef76460c81ecd129aafbf975f674f5fe_rle_crop_3688971462_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/cb766fe6f374fcc7320af9ace4694314_20988552.png imagette208906021740682979 20890610 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=20890610 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339967199: '1740682214_1581129_1339966686_01e9f312fecc6579297fa848207dc4af_rle_crop_3688967198_0.png', 1339967310: '1740682232_1581424_1339966636_e4edcc350cfaa974f04ef48bcb67fa6c_rle_crop_3688967956_0.png', 1339967343: '1740682292_1582244_1339966439_e881e136f9f8263fb46d2a548ac6ea59_rle_crop_3688968320_0.png', 1339968498: '1740682411_1583610_1339967204_55b851ac0eb050047ff065f286065c67_rle_crop_3688969632_0.png', 1339969047: '1740682752_1587679_1339968957_672d2bf06d95d08377ff08e7110c711f_rle_crop_3688971761_0.png', 1339969131: '1740682771_1587881_1339968914_f4aee31f509c878ddb114bdfc223bae8_rle_crop_3688972166_0.png', 1339969327: '1740682791_1588163_1339968925_25d1b60635a24959244cf488d6b045fb_rle_crop_3688972244_0.png', 1339969329: '1740682791_1588163_1339968884_d446fdf151adc43e106adcc6ae9fce6d_rle_crop_3688972287_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fe2454398dceefd70db706df206f595d_20086841.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ec0cb2aa576520c451b5ab584d991839_27331842.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fd8d3e48a6ad73aa5823ef9f50aca422_66027483.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/790708fe500287c6bf4363958de781db_52933422.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ecc826953bd96fb93ad8a16174ae4b68_59141214.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/cf84018730280e15d755127f96f18bce_61417798.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/a43ac49cc32e22e33ae47fbdcf709043_21233050.png change filename to text .imagette208906101740682980/ imagette208906101740682980/1740682232_1581424_1339966636_e4edcc350cfaa974f04ef48bcb67fa6c_rle_crop_3688967956_0.png.png imagette208906101740682980/1740682752_1587679_1339968957_672d2bf06d95d08377ff08e7110c711f_rle_crop_3688971761_0.png.png imagette208906101740682980/1740682771_1587881_1339968914_f4aee31f509c878ddb114bdfc223bae8_rle_crop_3688972166_0.png.png imagette208906101740682980/1740682411_1583610_1339967204_55b851ac0eb050047ff065f286065c67_rle_crop_3688969632_0.png.png imagette208906101740682980/1740682791_1588163_1339968925_25d1b60635a24959244cf488d6b045fb_rle_crop_3688972244_0.png.png imagette208906101740682980/1740682791_1588163_1339968884_d446fdf151adc43e106adcc6ae9fce6d_rle_crop_3688972287_0.png.png imagette208906101740682980/1740682292_1582244_1339966439_e881e136f9f8263fb46d2a548ac6ea59_rle_crop_3688968320_0.png.png imagette208906101740682980/1740682214_1581129_1339966686_01e9f312fecc6579297fa848207dc4af_rle_crop_3688967198_0.png.png imagette208906141740682980/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/eabd29d4a79d13647ad301aaf49c4445_92434404.png imagette208906101740682980 20890614 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=20890614 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208906141740682980 20890615 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=20890615 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339968840: '1740682513_1585173_1339968075_d1a72eb5772561ca9b72b0ffdbdd720a_rle_crop_3688970377_0.png', 1339969195: '1740682771_1587881_1339968919_fdd1e2f851eaa9aa741e3f454fe8cef1_rle_crop_3688971918_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/38ddec90cea79496cca4cf806c221b30_58398786.png change filename to text .imagette208906151740682980/ imagette208906151740682980/1740682513_1585173_1339968075_d1a72eb5772561ca9b72b0ffdbdd720a_rle_crop_3688970377_0.png.png imagette208906151740682980/1740682771_1587881_1339968919_fdd1e2f851eaa9aa741e3f454fe8cef1_rle_crop_3688971918_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/955792f6f343800cb070a4b9d1365760_84896370.png imagette208906151740682980 20890617 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=20890617 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339967300: '1740682232_1581424_1339966696_fae4b509be12ea20518048caea4eafeb_rle_crop_3688967864_0.png', 1339967331: '1740682292_1582244_1339966573_a1464d79add752861c391a3274b832d5_rle_crop_3688968262_0.png', 1339967332: '1740682292_1582244_1339966474_361f26a61e0fec0d8f0cdb9e466527f0_rle_crop_3688968277_0.png', 1339967333: '1740682292_1582244_1339966439_e881e136f9f8263fb46d2a548ac6ea59_rle_crop_3688968333_0.png', 1339967334: '1740682292_1582244_1339966439_e881e136f9f8263fb46d2a548ac6ea59_rle_crop_3688968322_0.png', 1339967335: '1740682292_1582244_1339966436_86454f33ee208a4c4943dbb5d677abf2_rle_crop_3688968342_0.png', 1339968489: '1740682411_1583610_1339967250_b57ca6296265d710695028cede79a7c0_rle_crop_3688969599_0.png', 1339968490: '1740682411_1583610_1339967204_55b851ac0eb050047ff065f286065c67_rle_crop_3688969637_0.png', 1339968516: '1740682430_1583914_1339966903_b285251e07cd331c6940605047fdcf98_rle_crop_3688969748_0.png', 1339968833: '1740682513_1585173_1339968075_d1a72eb5772561ca9b72b0ffdbdd720a_rle_crop_3688970371_0.png', 1339968847: '1740682532_1585503_1339968085_23d2d9ce795cc1d6a7eac180bd8f40c4_rle_crop_3688970722_0.png', 1339969328: '1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972343_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/308f84e0d947ee559d898f8d9361ec4f_65900742.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/3cc9acd0a8b4256398946fbf052f70a2_41284259.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/488ccf3fbd6f9a2e1c71276fe34ba3d4_75244425.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/2f3e952f316eeda731343e11419c60b4_37216366.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/3f1cacafe0930a25a0945561f5709a7b_47964937.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/b0826059fe1c502b4fa1ba0361ed3c57_90541667.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/7b78ac24675a6b56d5108ad5d3cb3c4a_25203169.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/5f0e03972513e432bb685d9abcd1cd9b_20337525.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/d788385fd9149db06c02041915883458_76240015.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/c2fa559ef4043a5e65401e60e406d790_53763375.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/782a4a71bc4ccdca8f283efb2619eb14_71559136.png change filename to text .imagette208906171740682980/ imagette208906171740682980/1740682292_1582244_1339966573_a1464d79add752861c391a3274b832d5_rle_crop_3688968262_0.png.png imagette208906171740682980/1740682513_1585173_1339968075_d1a72eb5772561ca9b72b0ffdbdd720a_rle_crop_3688970371_0.png.png imagette208906171740682980/1740682532_1585503_1339968085_23d2d9ce795cc1d6a7eac180bd8f40c4_rle_crop_3688970722_0.png.png imagette208906171740682980/1740682292_1582244_1339966474_361f26a61e0fec0d8f0cdb9e466527f0_rle_crop_3688968277_0.png.png imagette208906171740682980/1740682232_1581424_1339966696_fae4b509be12ea20518048caea4eafeb_rle_crop_3688967864_0.png.png imagette208906171740682980/1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972343_0.png.png imagette208906171740682980/1740682292_1582244_1339966436_86454f33ee208a4c4943dbb5d677abf2_rle_crop_3688968342_0.png.png imagette208906171740682980/1740682430_1583914_1339966903_b285251e07cd331c6940605047fdcf98_rle_crop_3688969748_0.png.png imagette208906171740682980/1740682411_1583610_1339967250_b57ca6296265d710695028cede79a7c0_rle_crop_3688969599_0.png.png imagette208906171740682980/1740682411_1583610_1339967204_55b851ac0eb050047ff065f286065c67_rle_crop_3688969637_0.png.png imagette208906171740682980/1740682292_1582244_1339966439_e881e136f9f8263fb46d2a548ac6ea59_rle_crop_3688968333_0.png.png imagette208906171740682980/1740682292_1582244_1339966439_e881e136f9f8263fb46d2a548ac6ea59_rle_crop_3688968322_0.png.png imagette208906181740682981/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/6b02f540ece36e69a6141a1e3b8b71e3_87955263.png imagette208906171740682980 20890618 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=20890618 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208906181740682981 20890608 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=20890608 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339968524: '1740682430_1583914_1339966895_2e8cad76d60c0c533fe5450ee58d045e_rle_crop_3688969866_0.png', 1339969339: '1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972348_0.png', 1339969338: '1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972351_0.png', 1339969321: '1740682791_1588163_1339968881_9fc1af46b36556282d8181454e0fedc2_rle_crop_3688972301_0.png', 1339969320: '1740682791_1588163_1339968881_9fc1af46b36556282d8181454e0fedc2_rle_crop_3688972297_0.png', 1339969319: '1740682791_1588163_1339968881_9fc1af46b36556282d8181454e0fedc2_rle_crop_3688972303_0.png', 1339969318: '1740682791_1588163_1339968884_d446fdf151adc43e106adcc6ae9fce6d_rle_crop_3688972279_0.png', 1339969317: '1740682791_1588163_1339968887_c7fbe081a78fca26fba226d664441d17_rle_crop_3688972259_0.png', 1339969125: '1740682771_1587881_1339968915_dd3f061b74ba61fe5ee4d800e62f6988_rle_crop_3688971944_0.png', 1339969124: '1740682771_1587881_1339968922_c56c9cb75504e6f2bb6403c8c60ba46f_rle_crop_3688971905_0.png', 1339968946: '1740682622_1586603_1339968428_ef76460c81ecd129aafbf975f674f5fe_rle_crop_3688971467_0.png', 1339968849: '1740682532_1585503_1339968085_23d2d9ce795cc1d6a7eac180bd8f40c4_rle_crop_3688970723_0.png', 1339968848: '1740682532_1585503_1339968085_23d2d9ce795cc1d6a7eac180bd8f40c4_rle_crop_3688970724_0.png', 1339967194: '1740682214_1581129_1339966695_dc3b63f0af3f1114aeceef5169008561_rle_crop_3688967184_0.png', 1339968523: '1740682430_1583914_1339966899_8203582facf84c56b6ae0f76c807f60c_rle_crop_3688969774_0.png', 1339968522: '1740682430_1583914_1339967267_50971af8878ef058dd1b6c69e5cbcaa2_rle_crop_3688969712_0.png', 1339968497: '1740682411_1583610_1339967204_55b851ac0eb050047ff065f286065c67_rle_crop_3688969633_0.png', 1339968496: '1740682411_1583610_1339967253_9c14d12f6d9e9e9c24aaa624f1f82c1b_rle_crop_3688969590_0.png', 1339967341: '1740682292_1582244_1339966456_296d1c931946f22e4d7bf681ca41cdeb_rle_crop_3688968294_0.png', 1339967309: '1740682232_1581424_1339966636_e4edcc350cfaa974f04ef48bcb67fa6c_rle_crop_3688967960_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/c93c67eb07f466c55f1c775e3f620bb2_85969844.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/8cc9423db3d6bf9a8bbd6de1a2f7d967_76595670.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/48ab5c53dc95d4f250c97e1975d80a0a_7276232.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/6a63f64834cc5e640574056a692a1a77_73167548.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/07fd2e110fbabfa5fe8430ed7f24e4bf_41597897.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/f226b674a2441421878becec63ecb8f4_90446191.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/b86f9b1e4f0c9a67242b2c68ac1fa534_62917525.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ef27f8c13dadc52b1e8659f21633641e_97746438.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/7f79fbd883bd809da6a2bed9229ae0ad_68862937.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/aad365842f78dd5c751d7632c8c099d5_68082296.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fad4eabf2935dd6c68e2479dc8a22aa0_82611661.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/b609f0b13d4830291dc663a4d3d35f7d_86720125.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/725c07b3dbbdeeee6bdd86fd57c71a70_53758020.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/d2df2b29bf8376e7c84ebd6ae844835b_82196990.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/d02aded6f35bb04305759623b6c64209_94999179.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/49a1e245608fcf4111fa3920f704cd26_9089097.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/e7289c107860ea4ae2cec6391b8fbbb3_87531524.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/8dc35477b372e0f482ffbf122159e596_17657317.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/5638a2663607eb60e37afcc1cfb9868a_22822208.png change filename to text .imagette208906081740682981/ imagette208906081740682981/1740682791_1588163_1339968887_c7fbe081a78fca26fba226d664441d17_rle_crop_3688972259_0.png.png imagette208906081740682981/1740682411_1583610_1339967253_9c14d12f6d9e9e9c24aaa624f1f82c1b_rle_crop_3688969590_0.png.png imagette208906081740682981/1740682532_1585503_1339968085_23d2d9ce795cc1d6a7eac180bd8f40c4_rle_crop_3688970723_0.png.png imagette208906081740682981/1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972351_0.png.png imagette208906081740682981/1740682430_1583914_1339966899_8203582facf84c56b6ae0f76c807f60c_rle_crop_3688969774_0.png.png imagette208906081740682981/1740682232_1581424_1339966636_e4edcc350cfaa974f04ef48bcb67fa6c_rle_crop_3688967960_0.png.png imagette208906081740682981/1740682771_1587881_1339968915_dd3f061b74ba61fe5ee4d800e62f6988_rle_crop_3688971944_0.png.png imagette208906081740682981/1740682791_1588163_1339968881_9fc1af46b36556282d8181454e0fedc2_rle_crop_3688972297_0.png.png imagette208906081740682981/1740682791_1588163_1339968881_9fc1af46b36556282d8181454e0fedc2_rle_crop_3688972301_0.png.png imagette208906081740682981/1740682292_1582244_1339966456_296d1c931946f22e4d7bf681ca41cdeb_rle_crop_3688968294_0.png.png imagette208906081740682981/1740682771_1587881_1339968922_c56c9cb75504e6f2bb6403c8c60ba46f_rle_crop_3688971905_0.png.png imagette208906081740682981/1740682430_1583914_1339967267_50971af8878ef058dd1b6c69e5cbcaa2_rle_crop_3688969712_0.png.png imagette208906081740682981/1740682411_1583610_1339967204_55b851ac0eb050047ff065f286065c67_rle_crop_3688969633_0.png.png imagette208906081740682981/1740682532_1585503_1339968085_23d2d9ce795cc1d6a7eac180bd8f40c4_rle_crop_3688970724_0.png.png imagette208906081740682981/1740682791_1588163_1339968881_9fc1af46b36556282d8181454e0fedc2_rle_crop_3688972303_0.png.png imagette208906081740682981/1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972348_0.png.png imagette208906081740682981/1740682622_1586603_1339968428_ef76460c81ecd129aafbf975f674f5fe_rle_crop_3688971467_0.png.png imagette208906081740682981/1740682430_1583914_1339966895_2e8cad76d60c0c533fe5450ee58d045e_rle_crop_3688969866_0.png.png imagette208906081740682981/1740682214_1581129_1339966695_dc3b63f0af3f1114aeceef5169008561_rle_crop_3688967184_0.png.png imagette208906081740682981/1740682791_1588163_1339968884_d446fdf151adc43e106adcc6ae9fce6d_rle_crop_3688972279_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/bb049386a5b8fdd19e22a5d4d5af1468_65381459.png imagette208906081740682981 20890612 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=20890612 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339968832: '1740682513_1585173_1339968071_7a840dcd6d44f746e2afa4deb20a22ab_rle_crop_3688970389_0.png', 1339969326: '1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972352_0.png', 1339969325: '1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972349_0.png', 1339969324: '1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972357_0.png', 1339969308: '1740682791_1588163_1339968884_d446fdf151adc43e106adcc6ae9fce6d_rle_crop_3688972280_0.png', 1339969307: '1740682791_1588163_1339968884_d446fdf151adc43e106adcc6ae9fce6d_rle_crop_3688972281_0.png', 1339969306: '1740682791_1588163_1339968887_c7fbe081a78fca26fba226d664441d17_rle_crop_3688972260_0.png', 1339969305: '1740682791_1588163_1339968925_25d1b60635a24959244cf488d6b045fb_rle_crop_3688972248_0.png', 1339969113: '1740682771_1587881_1339968914_f4aee31f509c878ddb114bdfc223bae8_rle_crop_3688972162_0.png', 1339969112: '1740682771_1587881_1339968914_f4aee31f509c878ddb114bdfc223bae8_rle_crop_3688972163_0.png', 1339969111: '1740682771_1587881_1339968917_6a4ea96690d1639dce77084df0c41789_rle_crop_3688971933_0.png', 1339969110: '1740682771_1587881_1339968917_6a4ea96690d1639dce77084df0c41789_rle_crop_3688971934_0.png', 1339969109: '1740682771_1587881_1339968919_fdd1e2f851eaa9aa741e3f454fe8cef1_rle_crop_3688971922_0.png', 1339969108: '1740682771_1587881_1339968922_c56c9cb75504e6f2bb6403c8c60ba46f_rle_crop_3688971910_0.png', 1339968938: '1740682622_1586603_1339968431_f9987c4870183d1dc9878cf4aa7e9aca_rle_crop_3688971442_0.png', 1339968846: '1740682532_1585503_1339968085_23d2d9ce795cc1d6a7eac180bd8f40c4_rle_crop_3688970721_0.png', 1339967187: '1740682214_1581129_1339966695_dc3b63f0af3f1114aeceef5169008561_rle_crop_3688967181_0.png', 1339968831: '1740682513_1585173_1339968071_7a840dcd6d44f746e2afa4deb20a22ab_rle_crop_3688970391_0.png', 1339968514: '1740682430_1583914_1339966899_8203582facf84c56b6ae0f76c807f60c_rle_crop_3688969772_0.png', 1339968513: '1740682430_1583914_1339966903_b285251e07cd331c6940605047fdcf98_rle_crop_3688969754_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/6159ef93ba5ae5e6ca2633ab8618517d_52779873.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/71c18d87a1f98539fbfb14b73ea95d33_28756474.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/d8a139dcaa8668b2b35947a1a20cd6a4_20230103.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/b66bc30b01a155c459936b6db3406db0_88011697.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/24a5ea3a6c31dd229bd7bbc14d95a95a_48352174.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/d846fa5d8e642de2f3a4c95decdc3d8d_79964512.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/0e17897b913d9435a36c86912e448a16_12563515.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/68455a7b62f15c4de0a8a3a26c20d0f1_3313448.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/13487afd3aae3cc3e41bba05b26e42b4_75536516.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/8df04a2c71b920a5eaa19fe42813d0e7_16122878.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/51944f8b8d5cf2ee665fc0b11afc23a9_62303707.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/da2cf1c52fb463b8bba80e2815445b1e_84291696.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/dbc5f48c6ea989433e879fb43756c375_2439435.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ac3bab4ee95446d2c23ec16a94c1f0b7_8945332.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/9d2ba433a6885a6040b9ed30c69765a3_63491169.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fe17b80100c956d9451ec085c3763328_30198725.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/88e2bf345b10816ac1303d3b306d68ac_35978857.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/c9415f8b26402e50ead07f62b6a6c256_53807467.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/51d58d2665dd2a292068821f3e0c2fb5_49663928.png change filename to text .imagette208906121740682982/ imagette208906121740682982/1740682430_1583914_1339966903_b285251e07cd331c6940605047fdcf98_rle_crop_3688969754_0.png.png imagette208906121740682982/1740682771_1587881_1339968917_6a4ea96690d1639dce77084df0c41789_rle_crop_3688971934_0.png.png imagette208906121740682982/1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972357_0.png.png imagette208906121740682982/1740682532_1585503_1339968085_23d2d9ce795cc1d6a7eac180bd8f40c4_rle_crop_3688970721_0.png.png imagette208906121740682982/1740682430_1583914_1339966899_8203582facf84c56b6ae0f76c807f60c_rle_crop_3688969772_0.png.png imagette208906121740682982/1740682791_1588163_1339968887_c7fbe081a78fca26fba226d664441d17_rle_crop_3688972260_0.png.png imagette208906121740682982/1740682771_1587881_1339968917_6a4ea96690d1639dce77084df0c41789_rle_crop_3688971933_0.png.png imagette208906121740682982/1740682622_1586603_1339968431_f9987c4870183d1dc9878cf4aa7e9aca_rle_crop_3688971442_0.png.png imagette208906121740682982/1740682771_1587881_1339968914_f4aee31f509c878ddb114bdfc223bae8_rle_crop_3688972162_0.png.png imagette208906121740682982/1740682513_1585173_1339968071_7a840dcd6d44f746e2afa4deb20a22ab_rle_crop_3688970389_0.png.png imagette208906121740682982/1740682771_1587881_1339968919_fdd1e2f851eaa9aa741e3f454fe8cef1_rle_crop_3688971922_0.png.png imagette208906121740682982/1740682771_1587881_1339968914_f4aee31f509c878ddb114bdfc223bae8_rle_crop_3688972163_0.png.png imagette208906121740682982/1740682791_1588163_1339968884_d446fdf151adc43e106adcc6ae9fce6d_rle_crop_3688972281_0.png.png imagette208906121740682982/1740682214_1581129_1339966695_dc3b63f0af3f1114aeceef5169008561_rle_crop_3688967181_0.png.png imagette208906121740682982/1740682771_1587881_1339968922_c56c9cb75504e6f2bb6403c8c60ba46f_rle_crop_3688971910_0.png.png imagette208906121740682982/1740682791_1588163_1339968925_25d1b60635a24959244cf488d6b045fb_rle_crop_3688972248_0.png.png imagette208906121740682982/1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972352_0.png.png imagette208906121740682982/1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972349_0.png.png imagette208906121740682982/1740682513_1585173_1339968071_7a840dcd6d44f746e2afa4deb20a22ab_rle_crop_3688970391_0.png.png imagette208906121740682982/1740682791_1588163_1339968884_d446fdf151adc43e106adcc6ae9fce6d_rle_crop_3688972280_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/aaba0ef8215919ffd830899d6c56938d_2340545.png imagette208906121740682982 20890613 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=20890613 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339968507: '1740682454_1584230_1339967151_55ea788f4c4144f27ef92d576ee1c66b_rle_crop_3688969736_0.png', 1339969334: '1740682814_1592052_1339968525_8d5c5ece9b10c84dd2572928c0fd80c0_rle_crop_3688972454_0.png', 1339969333: '1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972338_0.png', 1339969313: '1740682791_1588163_1339968881_9fc1af46b36556282d8181454e0fedc2_rle_crop_3688972300_0.png', 1339969312: '1740682791_1588163_1339968884_d446fdf151adc43e106adcc6ae9fce6d_rle_crop_3688972278_0.png', 1339969311: '1740682791_1588163_1339968887_c7fbe081a78fca26fba226d664441d17_rle_crop_3688972263_0.png', 1339969118: '1740682771_1587881_1339968919_fdd1e2f851eaa9aa741e3f454fe8cef1_rle_crop_3688971916_0.png', 1339969117: '1740682771_1587881_1339968922_c56c9cb75504e6f2bb6403c8c60ba46f_rle_crop_3688971904_0.png', 1339969116: '1740682771_1587881_1339968992_efbaf17a017645da30d3a386e05d9417_rle_crop_3688971899_0.png', 1339968942: '1740682622_1586603_1339968431_f9987c4870183d1dc9878cf4aa7e9aca_rle_crop_3688971439_0.png', 1339968941: '1740682622_1586603_1339968479_387e7c878041fbd4ff4c530157029c9e_rle_crop_3688971417_0.png', 1339968940: '1740682622_1586603_1339968526_be2dcf25b5cf594527775f199a320352_rle_crop_3688971403_0.png', 1339968834: '1740682513_1585173_1339968071_7a840dcd6d44f746e2afa4deb20a22ab_rle_crop_3688970392_0.png', 1339968519: '1740682430_1583914_1339966899_8203582facf84c56b6ae0f76c807f60c_rle_crop_3688969771_0.png', 1339968518: '1740682430_1583914_1339966903_b285251e07cd331c6940605047fdcf98_rle_crop_3688969746_0.png', 1339967191: '1740682214_1581129_1339966683_b32ff373bc7e321ca331ecbea6650b45_rle_crop_3688967210_0.png', 1339968493: '1740682411_1583610_1339967253_9c14d12f6d9e9e9c24aaa624f1f82c1b_rle_crop_3688969579_0.png', 1339968132: '1740682390_1583378_1339967314_413c8ba4d07b045b64d2b7940faa7415_rle_crop_3688969062_0.png', 1339968131: '1740682390_1583378_1339967317_e88280975f4ddb5c1cd1f04f3f50ff74_rle_crop_3688969056_0.png', 1339968130: '1740682390_1583378_1339967319_fdad0846a976399b04e4ac997a65b3e5_rle_crop_3688969050_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/6a8a7411268c9300f0f976aff56ba528_50450187.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/3e137e21dac571e0ab183e7a71bf0c3a_75042666.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/dde3108a23ac7085bf8aa8d82dbf3083_8400417.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ac9a440059902be38d9429cbb62c3f0e_21588935.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/32b9ccce4310d8b6e7162f529aea923a_99506332.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/6615c5b96c7da77600e49ebf2ad5be4a_22800277.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/28f5f5605efeae46c905012c3ffb7a1d_70075985.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/b42bc999373b663c959824d3e62de868_86659595.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/6bba4b7eb1271790ce3b9e93cb06be7a_33994655.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/93e02695e1e8767e91e0950c9054dc73_13042622.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/1a5aa16a924d65e8e27721bcb0b2c82f_69228247.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/38883680446e9625b6cf1cf23c3bd92c_66553165.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/328e2e0cef5e14e8098ffa35dc4f7c37_46353887.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/55bd49a94a199587be81abace4c56f49_77955848.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fb49d0e9b64577df25f6527dc4e9545b_79597735.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/02fb2b9684625364cdf603f3816ac643_19403733.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/506e820f0bc97f7af7af59837118c1d3_44730667.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/5e57d9f416ba2c3dababd4a824687aab_27256507.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/bab3d0170eb8b3aa66f85a918185a9bf_35173696.png change filename to text .imagette208906131740682983/ imagette208906131740682983/1740682390_1583378_1339967314_413c8ba4d07b045b64d2b7940faa7415_rle_crop_3688969062_0.png.png imagette208906131740682983/1740682622_1586603_1339968526_be2dcf25b5cf594527775f199a320352_rle_crop_3688971403_0.png.png imagette208906131740682983/1740682622_1586603_1339968431_f9987c4870183d1dc9878cf4aa7e9aca_rle_crop_3688971439_0.png.png imagette208906131740682983/1740682791_1588163_1339968884_d446fdf151adc43e106adcc6ae9fce6d_rle_crop_3688972278_0.png.png imagette208906131740682983/1740682454_1584230_1339967151_55ea788f4c4144f27ef92d576ee1c66b_rle_crop_3688969736_0.png.png imagette208906131740682983/1740682791_1588163_1339968881_9fc1af46b36556282d8181454e0fedc2_rle_crop_3688972300_0.png.png imagette208906131740682983/1740682411_1583610_1339967253_9c14d12f6d9e9e9c24aaa624f1f82c1b_rle_crop_3688969579_0.png.png imagette208906131740682983/1740682791_1588163_1339968887_c7fbe081a78fca26fba226d664441d17_rle_crop_3688972263_0.png.png imagette208906131740682983/1740682513_1585173_1339968071_7a840dcd6d44f746e2afa4deb20a22ab_rle_crop_3688970392_0.png.png imagette208906131740682983/1740682771_1587881_1339968919_fdd1e2f851eaa9aa741e3f454fe8cef1_rle_crop_3688971916_0.png.png imagette208906131740682983/1740682430_1583914_1339966903_b285251e07cd331c6940605047fdcf98_rle_crop_3688969746_0.png.png imagette208906131740682983/1740682430_1583914_1339966899_8203582facf84c56b6ae0f76c807f60c_rle_crop_3688969771_0.png.png imagette208906131740682983/1740682390_1583378_1339967319_fdad0846a976399b04e4ac997a65b3e5_rle_crop_3688969050_0.png.png imagette208906131740682983/1740682771_1587881_1339968922_c56c9cb75504e6f2bb6403c8c60ba46f_rle_crop_3688971904_0.png.png imagette208906131740682983/1740682814_1592052_1339968525_8d5c5ece9b10c84dd2572928c0fd80c0_rle_crop_3688972454_0.png.png imagette208906131740682983/1740682214_1581129_1339966683_b32ff373bc7e321ca331ecbea6650b45_rle_crop_3688967210_0.png.png imagette208906131740682983/1740682814_1592052_1339968892_6967bd7a5fe459152ac6d2bb22e3bbf4_rle_crop_3688972338_0.png.png imagette208906131740682983/1740682771_1587881_1339968992_efbaf17a017645da30d3a386e05d9417_rle_crop_3688971899_0.png.png imagette208906131740682983/1740682390_1583378_1339967317_e88280975f4ddb5c1cd1f04f3f50ff74_rle_crop_3688969056_0.png.png imagette208906131740682983/1740682622_1586603_1339968479_387e7c878041fbd4ff4c530157029c9e_rle_crop_3688971417_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/8d8a01f14e377a42d546ebc9de142b30_5445718.png imagette208906131740682983 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20890554 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20890619,20890620,20890621,20890622,20890623,20890624,20890625,20890626,20890627,20890628,20890629,20890630?tags=flou,cartonnette,Carton_brun,plastique,environnement,Teint_Dans_La_Masse,Carton_gris,metal,kraft,papier,autre_refus,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1339969330] : ('0.10616702999369874',) no score found for photo 1339969330 We are sending mail with results at report@fotonower.com args[1339969289] : ('0.10616702999369874',) no score found for photo 1339969289 We are sending mail with results at report@fotonower.com args[1339969286] : ('0.10616702999369874',) no score found for photo 1339969286 We are sending mail with results at report@fotonower.com args[1339969281] : ('0.10616702999369874',) no score found for photo 1339969281 We are sending mail with results at report@fotonower.com args[1339969276] : ('0.10616702999369874',) no score found for photo 1339969276 We are sending mail with results at report@fotonower.com args[1339969269] : ('0.10616702999369874',) no score found for photo 1339969269 We are sending mail with results at report@fotonower.com args[1339969102] : ('0.10616702999369874',) no score found for photo 1339969102 We are sending mail with results at report@fotonower.com args[1339969094] : ('0.10616702999369874',) no score found for photo 1339969094 We are sending mail with results at report@fotonower.com args[1339969090] : ('0.10616702999369874',) no score found for photo 1339969090 We are sending mail with results at report@fotonower.com refus_total : 0.10616702999369874 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=20890554 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_P20890554_27-02-2025_20_02_59.pdf results_Auto_P20890554_27-02-2025_20_02_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20890554_27-02-2025_20_02_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','20890554','results_Auto_P20890554_27-02-2025_20_02_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20890554_27-02-2025_20_02_59.pdf','pdf','','0.42','0.10616702999369874') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20890554]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339969330, 1339969289, 1339969286, 1339969281, 1339969276, 1339969269, 1339969102, 1339969094, 1339969090] map_info['map_portfolio_photo'] : {20890554: [1339969330, 1339969289, 1339969286, 1339969281, 1339969276, 1339969269, 1339969102, 1339969094, 1339969090, 1339968992, 1339968986, 1339968957, 1339968925, 1339968922, 1339968919, 1339968917, 1339968915, 1339968914, 1339968892, 1339968887, 1339968884, 1339968881, 1339968878, 1339968875, 1339968526, 1339968525, 1339968482, 1339968479, 1339968434, 1339968431, 1339968428, 1339968085, 1339968075, 1339968071, 1339967322, 1339967319, 1339967317, 1339967314, 1339967267, 1339967253, 1339967250, 1339967212, 1339967204, 1339967203, 1339967151, 1339966975, 1339966907, 1339966903, 1339966899, 1339966895, 1339966696, 1339966695, 1339966686, 1339966683, 1339966652, 1339966647, 1339966641, 1339966636, 1339966621, 1339966615, 1339966573, 1339966558, 1339966555, 1339966553, 1339966530, 1339966474, 1339966456, 1339966452, 1339966439, 1339966436]} final : False mtd_id 4302 list_pids : [1339969330, 1339969289, 1339969286, 1339969281, 1339969276, 1339969269, 1339969102, 1339969094, 1339969090] 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, '2620602') ('4302', '20890554', '1339969330', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969289', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969286', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969281', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969276', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969269', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969102', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969094', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969090', None, None, None, None, None, '2620602') 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', '20890554', '1339969330', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969289', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969286', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969281', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969276', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969269', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969102', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969094', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969090', None, None, None, None, None, '2620602')] time used for this insertion : 0.013109207153320312 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.8991148471832275 time spend to save output : 0.013286590576171875 total time spend for step 4 : 6.912401437759399 step5:split_time_score Thu Feb 27 20:03:06 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 : ['20890554'] 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 : [('20890554',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20890554) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339969330: {'path': 'temp/1740682979_999555_1339969330_c567714d26d136ba38a7cdce3e62f1de.jpg', 'extension': 'jpg'}, 1339969102: {'path': 'temp/1740682979_999555_1339969102_9e4bade257b0d139c8c21cb6e418b5d7.jpg', 'extension': 'jpg'}, 1339969269: {'path': 'temp/1740682979_999555_1339969269_a8b6aa05db22ee5da066be4cf8f709c5.jpg', 'extension': 'jpg'}, 1339969276: {'path': 'temp/1740682979_999555_1339969276_8f740504a6abb391c638ced34113dbf4.jpg', 'extension': 'jpg'}, 1339969281: {'path': 'temp/1740682979_999555_1339969281_d1a471c588192a3c6d4e668614d87ced.jpg', 'extension': 'jpg'}, 1339969286: {'path': 'temp/1740682979_999555_1339969286_797e9aa91ec0882de821fc5dbb52ad1a.jpg', 'extension': 'jpg'}, 1339969289: {'path': 'temp/1740682979_999555_1339969289_44f52d376f7cbc9caed8d94c85b383f3.jpg', 'extension': 'jpg'}, 1339969090: {'path': 'temp/1740682979_999555_1339969090_1ec7e7066b2967dea661cabd7b5e1092.jpg', 'extension': 'jpg'}, 1339969094: {'path': 'temp/1740682979_999555_1339969094_e991768cede1a080ebc73ed2c8b3d036.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 = 20890554; (('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 = 20890554 group by h (('19', 70),) 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=20890554 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 (20890554) 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 (20890554) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27022025 20890554 Nombre de photos uploadées : 70 / 23040 (0%) 27022025 20890554 Nombre de photos taguées (types de déchets): 0 / 70 (0%) 27022025 20890554 Nombre de photos taguées (volume) : 0 / 70 (0%) [{'photo_id': 1339966474, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/361f26a61e0fec0d8f0cdb9e466527f0.jpg', 'username': None, 'uploaded_at': 1740681971, 'text': 'image_27022025_19_45_03_009139m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1339966456, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/296d1c931946f22e4d7bf681ca41cdeb.jpg', 'username': None, 'uploaded_at': 1740681971, 'text': 'image_27022025_19_45_13_010140m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1339966452, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/7c155fc68f85af40165122378e99a0ed.jpg', 'username': None, 'uploaded_at': 1740681971, 'text': 'image_27022025_19_45_23_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339966439, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/e881e136f9f8263fb46d2a548ac6ea59.jpg', 'username': None, 'uploaded_at': 1740681971, 'text': 'image_27022025_19_45_33_010138m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 9.775161743164062e-06 ?????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004297733306884766 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20890554, '2025-02-27' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1627066,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02166461944580078 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= 1627066 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1627066, 'dashboard_run_id': 1636411, 'mtr_portfolio_id': 20889286, 'dashboard_result_id': 9108076, '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_P20889286_27-02-2025_19_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20889290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20889291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20889292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20889293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20889294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20889295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20889296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20889297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20889298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20889299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20889300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20889301, 'pht': 3726}}"}, {'dashboat_entry_day': 1627066, 'dashboard_run_id': 1636411, 'mtr_portfolio_id': 20890003, 'dashboard_result_id': 9108077, '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_P20890003_27-02-2025_19_49_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20890007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20890008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20890009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20890010, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20890011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20890012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20890013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20890014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20890015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20890016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20890017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20890018, 'pht': 3726}}"}, {'dashboat_entry_day': 1627066, 'dashboard_run_id': 1636411, 'mtr_portfolio_id': 20890554, 'dashboard_result_id': 9108078, '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_P20890554_27-02-2025_19_59_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20890595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20890602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20890608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20890610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20890611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20890612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20890613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20890614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20890615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20890616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20890617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20890618, '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 = 20889286 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': 2620511, 'mtr_portfolio_id': 20889286, 'created_at': datetime.datetime(2025, 2, 27, 19, 33), 'result': '0.11280400264963816', 'result_long': None, 'result_double': None}] Qualite : 0.11280400264963816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20889286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20889286_27-02-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20889286 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_P20889286_27-02-2025_19_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20889290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20889291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20889292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20889293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20889294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20889295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20889296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20889297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20889298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20889299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20889300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20889301, 'pht': 3726}}" where mtr_portfolio_id = 20889286 and dashboard_run_id = 1636411 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`=20889286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9108076, 0.11280400264963816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20889286_27-02-2025_19_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20889290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20889291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20889292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20889293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20889294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20889295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20889296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20889297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20889298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20889299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20889300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20889301, '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 = 20890003 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': 2620568, 'mtr_portfolio_id': 20890003, 'created_at': datetime.datetime(2025, 2, 27, 19, 49, 31), 'result': '0.10022451860408225', 'result_long': None, 'result_double': None}] Qualite : 0.10022451860408225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20890003 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20890003_27-02-2025_19_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20890003 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_P20890003_27-02-2025_19_49_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20890007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20890008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20890009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20890010, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20890011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20890012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20890013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20890014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20890015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20890016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20890017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20890018, 'pht': 3726}}" where mtr_portfolio_id = 20890003 and dashboard_run_id = 1636411 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`=20890003 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9108077, 0.10022451860408225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20890003_27-02-2025_19_49_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20890007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20890008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20890009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20890010, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20890011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20890012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20890013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20890014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20890015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20890016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20890017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20890018, '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 = 20890554 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': 2620602, 'mtr_portfolio_id': 20890554, 'created_at': datetime.datetime(2025, 2, 27, 20, 2, 58), 'result': '0.10616702999369874', 'result_long': None, 'result_double': None}] Qualite : 0.10616702999369874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20890554 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20890554_27-02-2025_20_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20890554 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_P20890554_27-02-2025_20_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20890595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20890602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20890608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20890610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20890611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20890612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20890613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20890614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20890615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20890616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20890617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20890618, 'pht': 3726}}" where mtr_portfolio_id = 20890554 and dashboard_run_id = 1636411 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`=20890554 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9108078, 0.10616702999369874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20890554_27-02-2025_20_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20890595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20890602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20890608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20890610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20890611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20890612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20890613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20890614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20890615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20890616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20890617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20890618, '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 (20889286,20890003,20890554) result : ((1339962980,), (1339962984,), (1339962988,), (1339963162,), (1339963186,), (1339963189,), (1339963205,), (1339963212,), (1339963243,), (1339963246,), (1339963259,), (1339963261,), (1339963346,), (1339963348,), (1339963350,), (1339963351,), (1339963353,), (1339963355,), (1339963428,), (1339963431,), (1339963434,), (1339963439,), (1339963441,), (1339963482,), (1339963545,), (1339963548,), (1339963551,), (1339963557,), (1339963568,), (1339963789,), (1339963794,), (1339963798,), (1339963804,), (1339963809,), (1339963826,), (1339964068,), (1339964070,), (1339964073,), (1339964178,), (1339964180,), (1339964182,), (1339964186,), (1339964188,), (1339964194,), (1339964258,), (1339964260,), (1339964267,), (1339964302,), (1339964360,), (1339964362,), (1339964364,), (1339964366,), (1339964369,), (1339964371,), (1339964411,), (1339964470,), (1339964557,), (1339964558,), (1339964590,), (1339964592,), (1339964597,), (1339964610,), (1339964758,), (1339964760,), (1339964762,), (1339964765,), (1339964822,), (1339964828,), (1339964834,), (1339964837,), (1339964957,), (1339964939,), (1339964950,), (1339964954,), (1339965136,), (1339965258,), (1339965260,), (1339965266,), (1339965315,), (1339965330,), (1339965445,), (1339965450,), (1339965501,), (1339965505,), (1339965510,), (1339965516,), (1339965558,), (1339965566,), (1339965570,), (1339965591,), (1339965627,), (1339965629,), (1339965632,), (1339965635,), (1339965644,), (1339965650,), (1339965687,), (1339965690,), (1339965693,), (1339965695,), (1339965699,), (1339965726,), (1339965729,), (1339965737,), (1339965747,), (1339965752,), (1339965755,), (1339965915,), (1339965917,), (1339965920,), (1339965969,), (1339965971,), (1339965973,), (1339965976,), (1339965979,), (1339965985,), (1339966009,), (1339966011,), (1339966013,), (1339966018,), (1339966023,), (1339966028,), (1339966071,), (1339966074,), (1339966076,), (1339966079,), (1339966197,), (1339966205,), (1339966208,), (1339966212,), (1339966216,), (1339966251,), (1339966253,), (1339966254,), (1339966256,), (1339966302,), (1339966304,), (1339966308,), (1339966315,), (1339966320,), (1339966379,), (1339966380,), (1339966381,), (1339966400,), (1339966481,), (1339966436,), (1339966439,), (1339966452,), (1339966456,), (1339966474,), (1339966530,), (1339966553,), (1339966555,), (1339966558,), (1339966573,), (1339966615,), (1339966621,), (1339966636,), (1339966641,), (1339966647,), (1339966652,), (1339966683,), (1339966686,), (1339966695,), (1339966696,), (1339966895,), (1339966899,), (1339966903,), (1339966907,), (1339966975,), (1339967151,), (1339967203,), (1339967204,), (1339967212,), (1339967250,), (1339967253,), (1339967267,), (1339967314,), (1339967317,), (1339967319,), (1339967322,), (1339968071,), (1339968075,), (1339968085,), (1339968428,), (1339968431,), (1339968434,), (1339968479,), (1339968482,), (1339968525,), (1339968526,), (1339968875,), (1339968878,), (1339968881,), (1339968884,), (1339968887,), (1339968892,), (1339968914,), (1339968915,), (1339968917,), (1339968919,), (1339968922,), (1339968925,), (1339968957,), (1339968986,), (1339968992,), (1339969090,), (1339969094,), (1339969102,), (1339969269,), (1339969276,), (1339969281,), (1339969286,), (1339969289,), (1339969330,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27022025': {'nb_upload': 70, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20890554]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339969330, 1339969289, 1339969286, 1339969281, 1339969276, 1339969269, 1339969102, 1339969094, 1339969090] map_info['map_portfolio_photo'] : {20890554: [1339969330, 1339969289, 1339969286, 1339969281, 1339969276, 1339969269, 1339969102, 1339969094, 1339969090, 1339968992, 1339968986, 1339968957, 1339968925, 1339968922, 1339968919, 1339968917, 1339968915, 1339968914, 1339968892, 1339968887, 1339968884, 1339968881, 1339968878, 1339968875, 1339968526, 1339968525, 1339968482, 1339968479, 1339968434, 1339968431, 1339968428, 1339968085, 1339968075, 1339968071, 1339967322, 1339967319, 1339967317, 1339967314, 1339967267, 1339967253, 1339967250, 1339967212, 1339967204, 1339967203, 1339967151, 1339966975, 1339966907, 1339966903, 1339966899, 1339966895, 1339966696, 1339966695, 1339966686, 1339966683, 1339966652, 1339966647, 1339966641, 1339966636, 1339966621, 1339966615, 1339966573, 1339966558, 1339966555, 1339966553, 1339966530, 1339966474, 1339966456, 1339966452, 1339966439, 1339966436]} final : True mtd_id 4302 list_pids : [1339969330, 1339969289, 1339969286, 1339969281, 1339969276, 1339969269, 1339969102, 1339969094, 1339969090] Looping around the photos to save general results len do output : 1 /20890554Didn'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, '2620602') ('4302', '20890554', '1339969330', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969289', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969286', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969281', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969276', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969269', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969102', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969094', None, None, None, None, None, '2620602') ('4302', None, None, None, None, None, None, None, '2620602') ('4302', '20890554', '1339969090', None, None, None, None, None, '2620602') 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, '20890554', 'None', None, None, None, None, '2620602'), ('4302', '20890554', '1339969330', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969289', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969286', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969281', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969276', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969269', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969102', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969094', None, None, None, None, None, '2620602'), ('4302', '20890554', '1339969090', None, None, None, None, None, '2620602')] time used for this insertion : 0.013037681579589844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.26958656311035156 time spend to save output : 0.013297080993652344 total time spend for step 5 : 0.2828836441040039 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 (2620602) 2.33user 2.53system 0:10.64elapsed 45%CPU (0avgtext+0avgdata 161908maxresident)k 57800inputs+22664outputs (236major+76869minor)pagefaults 0swaps