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 : 1132882 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 (2615179) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2615179) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20830367 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2615179'] with mtr_portfolio_ids : ['20830367'] and first list_photo_ids : [] new path : /proc/1132882/ Name: python3 Umask: 0002 State: R (running) Tgid: 1132882 Ngid: 0 Pid: 1132882 PPid: 1132881 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1132882 NSpid: 1132882 NSpgid: 1128501 NSsid: 1128501 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98904 kB VmRSS: 98904 kB RssAnon: 59752 kB RssFile: 39152 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 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: 76 nonvoluntary_ctxt_switches: 228 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1132882', 'Ngid': '0', 'Pid': '1132882', 'PPid': '1132881', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1132882', 'NSpid': '1132882', 'NSpgid': '1128501', 'NSsid': '1128501', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98904 kB', 'VmRSS': '98904 kB', 'RssAnon': '59752 kB', 'RssFile': '39152 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 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': '76', 'nonvoluntary_ctxt_switches': '228'} ('datou_batch_current', '1132882', '1106844', '0', '1106844', '865592', '98904', b'', 'marlene', '2615179') 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 (20830367) 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 (2615179 ) ) 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 (20830367) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339689486, 'portfolio_id': 20830367}, {'photo_id': 1339689482, 'portfolio_id': 20830367}, {'photo_id': 1339689478, 'portfolio_id': 20830367}, {'photo_id': 1339689474, 'portfolio_id': 20830367}, {'photo_id': 1339689471, 'portfolio_id': 20830367}, {'photo_id': 1339689434, 'portfolio_id': 20830367}, {'photo_id': 1339689431, 'portfolio_id': 20830367}, {'photo_id': 1339689428, 'portfolio_id': 20830367}, {'photo_id': 1339689424, 'portfolio_id': 20830367}, {'photo_id': 1339689421, 'portfolio_id': 20830367}, {'photo_id': 1339689417, 'portfolio_id': 20830367}, {'photo_id': 1339689389, 'portfolio_id': 20830367}, {'photo_id': 1339689385, 'portfolio_id': 20830367}, {'photo_id': 1339689381, 'portfolio_id': 20830367}, {'photo_id': 1339689306, 'portfolio_id': 20830367}, {'photo_id': 1339689303, 'portfolio_id': 20830367}, {'photo_id': 1339689299, 'portfolio_id': 20830367}, {'photo_id': 1339689290, 'portfolio_id': 20830367}, {'photo_id': 1339689282, 'portfolio_id': 20830367}, {'photo_id': 1339689154, 'portfolio_id': 20830367}, {'photo_id': 1339689147, 'portfolio_id': 20830367}, {'photo_id': 1339689097, 'portfolio_id': 20830367}, {'photo_id': 1339689092, 'portfolio_id': 20830367}, {'photo_id': 1339689089, 'portfolio_id': 20830367}, {'photo_id': 1339689084, 'portfolio_id': 20830367}, {'photo_id': 1339689076, 'portfolio_id': 20830367}, {'photo_id': 1339689032, 'portfolio_id': 20830367}, {'photo_id': 1339689024, 'portfolio_id': 20830367}, {'photo_id': 1339689019, 'portfolio_id': 20830367}, {'photo_id': 1339689009, 'portfolio_id': 20830367}, {'photo_id': 1339688988, 'portfolio_id': 20830367}, {'photo_id': 1339688985, 'portfolio_id': 20830367}, {'photo_id': 1339688981, 'portfolio_id': 20830367}, {'photo_id': 1339688977, 'portfolio_id': 20830367}, {'photo_id': 1339688974, 'portfolio_id': 20830367}, {'photo_id': 1339688940, 'portfolio_id': 20830367}, {'photo_id': 1339688936, 'portfolio_id': 20830367}, {'photo_id': 1339688933, 'portfolio_id': 20830367}, {'photo_id': 1339688929, 'portfolio_id': 20830367}, {'photo_id': 1339688926, 'portfolio_id': 20830367}, {'photo_id': 1339688897, 'portfolio_id': 20830367}, {'photo_id': 1339688890, 'portfolio_id': 20830367}, {'photo_id': 1339688886, 'portfolio_id': 20830367}, {'photo_id': 1339688884, 'portfolio_id': 20830367}, {'photo_id': 1339688881, 'portfolio_id': 20830367}, {'photo_id': 1339688844, 'portfolio_id': 20830367}, {'photo_id': 1339688842, 'portfolio_id': 20830367}, {'photo_id': 1339688838, 'portfolio_id': 20830367}, {'photo_id': 1339688832, 'portfolio_id': 20830367}, {'photo_id': 1339688823, 'portfolio_id': 20830367}, {'photo_id': 1339688771, 'portfolio_id': 20830367}, {'photo_id': 1339688769, 'portfolio_id': 20830367}, {'photo_id': 1339688766, 'portfolio_id': 20830367}, {'photo_id': 1339688763, 'portfolio_id': 20830367}, {'photo_id': 1339688715, 'portfolio_id': 20830367}, {'photo_id': 1339688712, 'portfolio_id': 20830367}, {'photo_id': 1339688709, 'portfolio_id': 20830367}, {'photo_id': 1339688701, 'portfolio_id': 20830367}, {'photo_id': 1339688689, 'portfolio_id': 20830367}, {'photo_id': 1339688684, 'portfolio_id': 20830367}, {'photo_id': 1339688642, 'portfolio_id': 20830367}, {'photo_id': 1339688639, 'portfolio_id': 20830367}, {'photo_id': 1339688636, 'portfolio_id': 20830367}, {'photo_id': 1339688634, 'portfolio_id': 20830367}, {'photo_id': 1339688631, 'portfolio_id': 20830367}, {'photo_id': 1339688568, 'portfolio_id': 20830367}, {'photo_id': 1339688565, 'portfolio_id': 20830367}, {'photo_id': 1339688561, 'portfolio_id': 20830367}] map_portfolio_id_photo_id: {20830367: [1339689486, 1339689482, 1339689478, 1339689474, 1339689471, 1339689434, 1339689431, 1339689428, 1339689424, 1339689421, 1339689417, 1339689389, 1339689385, 1339689381, 1339689306, 1339689303, 1339689299, 1339689290, 1339689282, 1339689154, 1339689147, 1339689097, 1339689092, 1339689089, 1339689084, 1339689076, 1339689032, 1339689024, 1339689019, 1339689009, 1339688988, 1339688985, 1339688981, 1339688977, 1339688974, 1339688940, 1339688936, 1339688933, 1339688929, 1339688926, 1339688897, 1339688890, 1339688886, 1339688884, 1339688881, 1339688844, 1339688842, 1339688838, 1339688832, 1339688823, 1339688771, 1339688769, 1339688766, 1339688763, 1339688715, 1339688712, 1339688709, 1339688701, 1339688689, 1339688684, 1339688642, 1339688639, 1339688636, 1339688634, 1339688631, 1339688568, 1339688565, 1339688561]} ##### 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.016560077667236328 #### 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 Wed Feb 26 08:46:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20830367) 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 : 20830367 get user id for portfolio 20830367 get sub ptf for main ptf 20830367, type 3726 and hashtags ['metal', 'papier', 'kraft', 'environnement', 'Carton_brun', 'mal_croppe', 'autre_refus', 'plastique', 'Teint_Dans_La_Masse', 'flou', 'Carton_gris', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20830367 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','kraft','environnement','Carton_brun','mal_croppe','autre_refus','plastique','Teint_Dans_La_Masse','flou','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20830367 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','kraft','environnement','Carton_brun','mal_croppe','autre_refus','plastique','Teint_Dans_La_Masse','flou','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20830367, 'sub_port_id': 20830416, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465959, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 34, 58)}, 'papier': {'main_port_id': 20830367, 'sub_port_id': 20830417, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465960, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 34, 58)}, 'mal_croppe': {'main_port_id': 20830367, 'sub_port_id': 20830418, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465961, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 34, 58)}, 'metal': {'main_port_id': 20830367, 'sub_port_id': 20830419, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465962, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 34, 58)}, 'environnement': {'main_port_id': 20830367, 'sub_port_id': 20830420, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465963, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20830367, 'sub_port_id': 20830421, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465964, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 34, 58)}, 'flou': {'main_port_id': 20830367, 'sub_port_id': 20830422, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465965, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 34, 58)}, 'plastique': {'main_port_id': 20830367, 'sub_port_id': 20830423, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465966, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 34, 58)}, 'Carton_brun': {'main_port_id': 20830367, 'sub_port_id': 20830424, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465967, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 34, 58)}, 'cartonnette': {'main_port_id': 20830367, 'sub_port_id': 20830425, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465968, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 34, 58)}, 'autre_refus': {'main_port_id': 20830367, 'sub_port_id': 20830426, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465969, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 34, 58)}, 'Carton_gris': {'main_port_id': 20830367, 'sub_port_id': 20830427, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465970, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20830416 , 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=20830367 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 (20830416) result : ((1339688960,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20830367) result : ((1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,)) 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 20830417 , 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=20830367 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 (20830417) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20830367) result : ((1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,)) 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 20830418 , 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=20830367 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 (20830418) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20830367) result : ((1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,)) 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 20830419 , 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=20830367 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 (20830419) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20830367) result : ((1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,)) 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 20830420 , 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=20830367 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 (20830420) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20830367) result : ((1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,)) 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 20830421 , 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=20830367 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 (20830421) result : ((1339688944,), (1339688945,), (1339689044,), (1339689049,), (1339689171,), (1339689172,), (1339689173,), (1339689270,), (1339689508,), (1339689526,), (1339689527,), (1339689528,), (1339689529,), (1339689530,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20830367) result : ((1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,)) 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 20830422 , 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=20830367 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 (20830422) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20830367) result : ((1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,)) 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 20830423 , 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=20830367 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 (20830423) result : ((1339688830,), (1339688831,), (1339688958,), (1339688959,), (1339689053,), (1339689062,), (1339689063,), (1339689180,), (1339689291,), (1339689292,), (1339689293,), (1339689294,), (1339689295,), (1339689463,), (1339689464,), (1339689513,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20830367) result : ((1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,)) 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 20830424 , 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=20830367 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 (20830424) result : ((1339688825,), (1339688826,), (1339688827,), (1339688956,), (1339688957,), (1339689050,), (1339689051,), (1339689052,), (1339689061,), (1339689284,), (1339689460,), (1339689461,), (1339689512,), (1339689539,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20830367) result : ((1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,)) 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 20830425 , 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=20830367 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 (20830425) result : ((1339688824,), (1339688952,), (1339689060,), (1339689283,), (1339689457,), (1339689458,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20830367) result : ((1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,)) 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 20830426 , 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=20830367 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 (20830426) result : ((1339688811,), (1339688812,), (1339688813,), (1339688814,), (1339688948,), (1339688949,), (1339689045,), (1339689046,), (1339689054,), (1339689055,), (1339689056,), (1339689057,), (1339689175,), (1339689176,), (1339689177,), (1339689275,), (1339689276,), (1339689277,), (1339689278,), (1339689455,), (1339689510,), (1339689531,), (1339689532,), (1339689533,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20830367) result : ((1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,)) 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 20830427 , 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=20830367 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 (20830427) result : ((1339688821,), (1339688950,), (1339688951,), (1339689047,), (1339689059,), (1339689178,), (1339689179,), (1339689281,), (1339689456,), (1339689536,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20830367) result : ((1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,)) 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`=20830367 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','kraft','environnement','Carton_brun','mal_croppe','autre_refus','plastique','Teint_Dans_La_Masse','flou','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20830367 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','kraft','environnement','Carton_brun','mal_croppe','autre_refus','plastique','Teint_Dans_La_Masse','flou','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20830367, 'sub_port_id': 20830428, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465971, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 35)}, 'papier': {'main_port_id': 20830367, 'sub_port_id': 20830429, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465972, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 35)}, 'mal_croppe': {'main_port_id': 20830367, 'sub_port_id': 20830430, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465973, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 35)}, 'metal': {'main_port_id': 20830367, 'sub_port_id': 20830431, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465974, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 35)}, 'environnement': {'main_port_id': 20830367, 'sub_port_id': 20830432, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465975, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 20830367, 'sub_port_id': 20830433, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465976, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 35)}, 'flou': {'main_port_id': 20830367, 'sub_port_id': 20830434, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465977, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 35)}, 'plastique': {'main_port_id': 20830367, 'sub_port_id': 20830435, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465978, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 35)}, 'Carton_brun': {'main_port_id': 20830367, 'sub_port_id': 20830436, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465979, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 35)}, 'cartonnette': {'main_port_id': 20830367, 'sub_port_id': 20830437, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465980, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 35)}, 'autre_refus': {'main_port_id': 20830367, 'sub_port_id': 20830438, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465981, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 35)}, 'Carton_gris': {'main_port_id': 20830367, 'sub_port_id': 20830439, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13465982, 'last_updated_at': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 8, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 8, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20830428,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20830416 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20830429,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20830417 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20830430,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20830418 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20830431,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20830419 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20830432,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20830420 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20830433,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20830421 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20830434,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20830422 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20830435,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20830423 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20830436,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20830424 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20830437,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20830425 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20830438,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20830426 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20830439,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20830427 lien utilise dans velours : https://www.fotonower.com/velours/20830428,20830429,20830430,20830431,20830432,20830433,20830434,20830435,20830436,20830437,20830438,20830439?tags=kraft,papier,mal_croppe,metal,environnement,Teint_Dans_La_Masse,flou,plastique,Carton_brun,cartonnette,autre_refus,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20830367]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339689486, 1339689482, 1339689478, 1339689474, 1339689471, 1339689434, 1339689431, 1339689428, 1339689424, 1339689421, 1339689417] map_info['map_portfolio_photo'] : {20830367: [1339689486, 1339689482, 1339689478, 1339689474, 1339689471, 1339689434, 1339689431, 1339689428, 1339689424, 1339689421, 1339689417, 1339689389, 1339689385, 1339689381, 1339689306, 1339689303, 1339689299, 1339689290, 1339689282, 1339689154, 1339689147, 1339689097, 1339689092, 1339689089, 1339689084, 1339689076, 1339689032, 1339689024, 1339689019, 1339689009, 1339688988, 1339688985, 1339688981, 1339688977, 1339688974, 1339688940, 1339688936, 1339688933, 1339688929, 1339688926, 1339688897, 1339688890, 1339688886, 1339688884, 1339688881, 1339688844, 1339688842, 1339688838, 1339688832, 1339688823, 1339688771, 1339688769, 1339688766, 1339688763, 1339688715, 1339688712, 1339688709, 1339688701, 1339688689, 1339688684, 1339688642, 1339688639, 1339688636, 1339688634, 1339688631, 1339688568, 1339688565, 1339688561]} final : False mtd_id 4302 list_pids : [1339689486, 1339689482, 1339689478, 1339689474, 1339689471, 1339689434, 1339689431, 1339689428, 1339689424, 1339689421, 1339689417] Looping around the photos to save general results len do output : 1 /20830367. 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, '2615179') ('4302', '20830367', '1339689486', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689482', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689478', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689474', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689471', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689434', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689431', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689428', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689424', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689421', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689417', None, None, None, None, None, '2615179') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20830367', "{'kraft': 20830416, 'papier': 20830417, 'mal_croppe': 20830418, 'metal': 20830419, 'environnement': 20830420, 'Teint_Dans_La_Masse': 20830421, 'flou': 20830422, 'plastique': 20830423, 'Carton_brun': 20830424, 'cartonnette': 20830425, 'autre_refus': 20830426, 'Carton_gris': 20830427}", None, None, None, None, '2615179'), ('4302', '20830367', '1339689486', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689482', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689478', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689474', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689471', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689434', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689431', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689428', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689424', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689421', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689417', None, None, None, None, None, '2615179')] time used for this insertion : 0.013717412948608398 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4409542083740234 time spend to save output : 0.014140844345092773 total time spend for step 1 : 1.4550950527191162 step2:final Wed Feb 26 08:47:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20830367) 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 20830367 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339688568,1339688565,1339688561,1339688642,1339688639,1339688636,1339688634,1339688631,1339688715,1339688712,1339688709,1339688701,1339688689,1339688684,1339688771,1339688769,1339688766,1339688763,1339688844,1339688842,1339688838,1339688832,1339688823,1339688897,1339688890,1339688886,1339688884,1339688881,1339688940,1339688936,1339688933,1339688929,1339688926,1339688988,1339688985,1339688981,1339688977,1339688974,1339689032,1339689024,1339689019,1339689009,1339689097,1339689092,1339689089,1339689084,1339689076,1339689154,1339689147,1339689306,1339689303,1339689299,1339689290,1339689282,1339689389,1339689385,1339689381,1339689434,1339689431,1339689428,1339689424,1339689421,1339689417,1339689486,1339689482,1339689478,1339689474,1339689471); 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([20830367]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} new output for save of step final : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} [1339689486, 1339689482, 1339689478, 1339689474, 1339689471, 1339689434, 1339689431, 1339689428, 1339689424, 1339689421, 1339689417] map_info['map_portfolio_photo'] : {20830367: [1339689486, 1339689482, 1339689478, 1339689474, 1339689471, 1339689434, 1339689431, 1339689428, 1339689424, 1339689421, 1339689417, 1339689389, 1339689385, 1339689381, 1339689306, 1339689303, 1339689299, 1339689290, 1339689282, 1339689154, 1339689147, 1339689097, 1339689092, 1339689089, 1339689084, 1339689076, 1339689032, 1339689024, 1339689019, 1339689009, 1339688988, 1339688985, 1339688981, 1339688977, 1339688974, 1339688940, 1339688936, 1339688933, 1339688929, 1339688926, 1339688897, 1339688890, 1339688886, 1339688884, 1339688881, 1339688844, 1339688842, 1339688838, 1339688832, 1339688823, 1339688771, 1339688769, 1339688766, 1339688763, 1339688715, 1339688712, 1339688709, 1339688701, 1339688689, 1339688684, 1339688642, 1339688639, 1339688636, 1339688634, 1339688631, 1339688568, 1339688565, 1339688561]} final : False mtd_id 4302 list_pids : [1339689486, 1339689482, 1339689478, 1339689474, 1339689471, 1339689434, 1339689431, 1339689428, 1339689424, 1339689421, 1339689417] Looping around the photos to save general results len do output : 11 /1339689486.Didn't retrieve data . /1339689482.Didn't retrieve data . /1339689478.Didn't retrieve data . /1339689474.Didn't retrieve data . /1339689471.Didn't retrieve data . /1339689434.Didn't retrieve data . /1339689431.Didn't retrieve data . /1339689428.Didn't retrieve data . /1339689424.Didn't retrieve data . /1339689421.Didn't retrieve data . /1339689417.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, '2615179') ('4302', '20830367', '1339689486', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689482', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689478', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689474', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689471', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689434', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689431', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689428', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689424', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689421', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689417', None, None, None, None, None, '2615179') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '20830367', '1339689486', '0.08030066560620876', None, None, None, None, '2615179'), ('4302', '20830367', '1339689482', '0.08030066560620876', None, None, None, None, '2615179'), ('4302', '20830367', '1339689478', '0.08030066560620876', None, None, None, None, '2615179'), ('4302', '20830367', '1339689474', '0.08030066560620876', None, None, None, None, '2615179'), ('4302', '20830367', '1339689471', '0.08030066560620876', None, None, None, None, '2615179'), ('4302', '20830367', '1339689434', '0.08030066560620876', None, None, None, None, '2615179'), ('4302', '20830367', '1339689431', '0.08030066560620876', None, None, None, None, '2615179'), ('4302', '20830367', '1339689428', '0.08030066560620876', None, None, None, None, '2615179'), ('4302', '20830367', '1339689424', '0.08030066560620876', None, None, None, None, '2615179'), ('4302', '20830367', '1339689421', '0.08030066560620876', None, None, None, None, '2615179'), ('4302', '20830367', '1339689417', '0.08030066560620876', None, None, None, None, '2615179')] time used for this insertion : 0.013670682907104492 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07090425491333008 time spend to save output : 0.014174222946166992 total time spend for step 2 : 0.08507847785949707 step3:velours_tree Wed Feb 26 08:47:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20830367: [{'kraft': 20830416, 'papier': 20830417, 'mal_croppe': 20830418, 'metal': 20830419, 'environnement': 20830420, 'Teint_Dans_La_Masse': 20830421, 'flou': 20830422, 'plastique': 20830423, 'Carton_brun': 20830424, 'cartonnette': 20830425, 'autre_refus': 20830426, 'Carton_gris': 20830427}]} input_args_next_step : {20830367: ()} output_args : {20830367: [{'kraft': 20830416, 'papier': 20830417, 'mal_croppe': 20830418, 'metal': 20830419, 'environnement': 20830420, 'Teint_Dans_La_Masse': 20830421, 'flou': 20830422, 'plastique': 20830423, 'Carton_brun': 20830424, 'cartonnette': 20830425, 'autre_refus': 20830426, 'Carton_gris': 20830427}]} args : 20830367 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 20830416, 'papier': 20830417, 'mal_croppe': 20830418, 'metal': 20830419, 'environnement': 20830420, 'Teint_Dans_La_Masse': 20830421, 'flou': 20830422, 'plastique': 20830423, 'Carton_brun': 20830424, 'cartonnette': 20830425, 'autre_refus': 20830426, 'Carton_gris': 20830427},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20830367) 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([20830367]) 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.6632599830627441 time spend to save output : 8.511543273925781e-05 total time spend for step 3 : 0.6633450984954834 step4:send_mail_cod Wed Feb 26 08:47:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} input_args_next_step : {1339689486: ()} output_args : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} args : 1339689486 depend.output_id : 0 input_args_next_step : {1339689486: ('0.08030066560620876',), 1339689482: ()} output_args : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} args : 1339689482 depend.output_id : 0 input_args_next_step : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ()} output_args : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} args : 1339689478 depend.output_id : 0 input_args_next_step : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ()} output_args : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} args : 1339689474 depend.output_id : 0 input_args_next_step : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ()} output_args : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} args : 1339689471 depend.output_id : 0 input_args_next_step : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ()} output_args : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} args : 1339689434 depend.output_id : 0 input_args_next_step : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ()} output_args : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} args : 1339689431 depend.output_id : 0 input_args_next_step : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ()} output_args : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} args : 1339689428 depend.output_id : 0 input_args_next_step : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ()} output_args : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} args : 1339689424 depend.output_id : 0 input_args_next_step : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ()} output_args : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} args : 1339689421 depend.output_id : 0 input_args_next_step : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ()} output_args : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',)} args : 1339689417 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 : {20830367: [{'kraft': 20830416, 'papier': 20830417, 'mal_croppe': 20830418, 'metal': 20830419, 'environnement': 20830420, 'Teint_Dans_La_Masse': 20830421, 'flou': 20830422, 'plastique': 20830423, 'Carton_brun': 20830424, 'cartonnette': 20830425, 'autre_refus': 20830426, 'Carton_gris': 20830427}]} input_args_next_step : {1339689486: ('0.08030066560620876',), 1339689482: ('0.08030066560620876',), 1339689478: ('0.08030066560620876',), 1339689474: ('0.08030066560620876',), 1339689471: ('0.08030066560620876',), 1339689434: ('0.08030066560620876',), 1339689431: ('0.08030066560620876',), 1339689428: ('0.08030066560620876',), 1339689424: ('0.08030066560620876',), 1339689421: ('0.08030066560620876',), 1339689417: ('0.08030066560620876',), 20830367: ()} output_args : {20830367: [{'kraft': 20830416, 'papier': 20830417, 'mal_croppe': 20830418, 'metal': 20830419, 'environnement': 20830420, 'Teint_Dans_La_Masse': 20830421, 'flou': 20830422, 'plastique': 20830423, 'Carton_brun': 20830424, 'cartonnette': 20830425, 'autre_refus': 20830426, 'Carton_gris': 20830427}]} args : 20830367 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 :12, first value : ('0.08030066560620876',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20830367) 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 (1339689486,1339689482,1339689478,1339689474,1339689471,1339689434,1339689431,1339689428,1339689424,1339689421,1339689417) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339689417 begin to download photo : 1339689428 begin to download photo : 1339689471 begin to download photo : 1339689482 download finish for photo 1339689471 begin to download photo : 1339689474 download finish for photo 1339689417 begin to download photo : 1339689421 download finish for photo 1339689482 begin to download photo : 1339689486 download finish for photo 1339689428 begin to download photo : 1339689431 download finish for photo 1339689431 begin to download photo : 1339689434 download finish for photo 1339689421 begin to download photo : 1339689424 download finish for photo 1339689486 download finish for photo 1339689474 begin to download photo : 1339689478 download finish for photo 1339689424 download finish for photo 1339689478 download finish for photo 1339689434 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P20830367_26-02-2025_08_47_01.pdf 20830416 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=20830416 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339688960: '1740555374_2546610_1339688709_ae85fe39afc49c3ade9bd914438aff67_rle_crop_3687249453_0.png'} change filename to text .imagette208304161740556021/ imagette208304161740556021/1740555374_2546610_1339688709_ae85fe39afc49c3ade9bd914438aff67_rle_crop_3687249453_0.png.png imagette208304181740556021/ imagette208304191740556021/ imagette208304221740556021/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/707735b3ae2e4096be8f53449246d62a_8627959.png imagette208304161740556021 20830418 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=20830418 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208304181740556021 20830419 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=20830419 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208304191740556021 20830422 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=20830422 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208304221740556021 20830423 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=20830423 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339688830: '1740555254_2544682_1339688642_da418e88b4969fb1c91a47055fb944ed_rle_crop_3687247993_0.png', 1339688831: '1740555254_2544682_1339688642_da418e88b4969fb1c91a47055fb944ed_rle_crop_3687247984_0.png', 1339688958: '1740555374_2546610_1339688709_ae85fe39afc49c3ade9bd914438aff67_rle_crop_3687249462_0.png', 1339688959: '1740555374_2546610_1339688701_684804d4e6099580284615b9a8448265_rle_crop_3687250042_0.png', 1339689053: '1740555533_2552188_1339688823_6bc2ea1135e3741e6b2576747e670027_rle_crop_3687251369_0.png', 1339689062: '1740555552_2552381_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251381_0.png', 1339689063: '1740555552_2552381_1339688881_5ee8fec6e37123c3b9896f5a33dc3ffb_rle_crop_3687251394_0.png', 1339689180: '1740555631_2553531_1339688926_ae417bf46bdb834db67eda67f8dccda9_rle_crop_3687252082_0.png', 1339689291: '1740555652_2553797_1339688940_85eeac90f5b0f94f8ffadf3d4cdd9481_rle_crop_3687252089_0.png', 1339689292: '1740555652_2553797_1339688940_85eeac90f5b0f94f8ffadf3d4cdd9481_rle_crop_3687252091_0.png', 1339689293: '1740555652_2553797_1339688940_85eeac90f5b0f94f8ffadf3d4cdd9481_rle_crop_3687252093_0.png', 1339689294: '1740555652_2553797_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251381_0.png', 1339689295: '1740555652_2553797_1339688881_5ee8fec6e37123c3b9896f5a33dc3ffb_rle_crop_3687251394_0.png', 1339689463: '1740555853_2562297_1339689282_eb15cebea5ef41b9363cd0bfa1ef52ad_rle_crop_3687254368_0.png', 1339689464: '1740555872_2562520_1339689306_97f26df12aa181244fe9760f79712223_rle_crop_3687254353_0.png', 1339689513: '1740555915_2563163_1339689024_48fb4ac4a225d039d8fbf6bd5e4144bb_rle_crop_3687254708_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/50ad908fb389b470f51a61a79df897b6_80879757.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/6ccc2a9f6a67cfb168ff637908a99a4d_80886740.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/14df6a0a7719a5eca6bb14ef79fe9e48_33604998.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/d578c37feea9b908402863da9c455e69_72160315.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ebaaa619a0ec95dcbcb08b7f502e9559_74824005.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/289d8e24a272b2fb9f560bf198d7e141_89230393.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/17aa54b5014f79ccb7f7bbb6476072f2_84253025.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/7cff2b1ae1c46dc8c1aff837c104626d_65158968.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b6ee5889352ea2c3b4e410fe29b13975_18323156.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/084c409adcc29942cba426ba72607b73_35180041.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/fb6d726ac86a2d0012a50ce087ef81a2_38342278.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/289d8e24a272b2fb9f560bf198d7e141_9274348.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/17aa54b5014f79ccb7f7bbb6476072f2_86329007.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/26befc90d2e63db7bda01e0739667f1a_22992316.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/dee1e0b957f40c2a484f427f23885ada_22573304.png change filename to text .imagette208304231740556021/ imagette208304231740556021/1740555652_2553797_1339688940_85eeac90f5b0f94f8ffadf3d4cdd9481_rle_crop_3687252089_0.png.png imagette208304231740556021/1740555652_2553797_1339688881_5ee8fec6e37123c3b9896f5a33dc3ffb_rle_crop_3687251394_0.png.png imagette208304231740556021/1740555652_2553797_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251381_0.png.png imagette208304231740556021/1740555254_2544682_1339688642_da418e88b4969fb1c91a47055fb944ed_rle_crop_3687247993_0.png.png imagette208304231740556021/1740555853_2562297_1339689282_eb15cebea5ef41b9363cd0bfa1ef52ad_rle_crop_3687254368_0.png.png imagette208304231740556021/1740555652_2553797_1339688940_85eeac90f5b0f94f8ffadf3d4cdd9481_rle_crop_3687252093_0.png.png imagette208304231740556021/1740555631_2553531_1339688926_ae417bf46bdb834db67eda67f8dccda9_rle_crop_3687252082_0.png.png imagette208304231740556021/1740555915_2563163_1339689024_48fb4ac4a225d039d8fbf6bd5e4144bb_rle_crop_3687254708_0.png.png imagette208304231740556021/1740555254_2544682_1339688642_da418e88b4969fb1c91a47055fb944ed_rle_crop_3687247984_0.png.png imagette208304231740556021/1740555374_2546610_1339688701_684804d4e6099580284615b9a8448265_rle_crop_3687250042_0.png.png imagette208304231740556021/1740555652_2553797_1339688940_85eeac90f5b0f94f8ffadf3d4cdd9481_rle_crop_3687252091_0.png.png imagette208304231740556021/1740555374_2546610_1339688709_ae85fe39afc49c3ade9bd914438aff67_rle_crop_3687249462_0.png.png imagette208304231740556021/1740555872_2562520_1339689306_97f26df12aa181244fe9760f79712223_rle_crop_3687254353_0.png.png imagette208304231740556021/1740555552_2552381_1339688881_5ee8fec6e37123c3b9896f5a33dc3ffb_rle_crop_3687251394_0.png.png imagette208304231740556021/1740555552_2552381_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251381_0.png.png imagette208304231740556021/1740555533_2552188_1339688823_6bc2ea1135e3741e6b2576747e670027_rle_crop_3687251369_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/77c10932228d9a6f2a14d85ee99609d0_80506903.png imagette208304231740556021 20830425 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=20830425 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339688824: '1740555254_2544682_1339688565_f5a9b2899c4a21c2ea39206ca11b637d_rle_crop_3687248030_0.png', 1339688952: '1740555374_2546610_1339688689_ebc9375f31e8d66c7e5b358f7366dbba_rle_crop_3687250052_0.png', 1339689060: '1740555552_2552381_1339688881_5ee8fec6e37123c3b9896f5a33dc3ffb_rle_crop_3687251390_0.png', 1339689283: '1740555652_2553797_1339688881_5ee8fec6e37123c3b9896f5a33dc3ffb_rle_crop_3687251390_0.png', 1339689457: '1740555853_2562297_1339689299_e0cc353a5ac155c2edb2b088b2a69bad_rle_crop_3687254337_0.png', 1339689458: '1740555853_2562297_1339689282_eb15cebea5ef41b9363cd0bfa1ef52ad_rle_crop_3687254372_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/68096c018ffe0806a5d159c218671cfd_77616070.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/56ac6bb1786da11d8213b8eaf4cc4f98_31871325.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/63c1c4160620d55cb40f148ae87cd97a_58027307.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/63c1c4160620d55cb40f148ae87cd97a_49544163.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/94c7a3df325c1a6437cadf3b4db61ae7_25517285.png change filename to text .imagette208304251740556022/ imagette208304251740556022/1740555552_2552381_1339688881_5ee8fec6e37123c3b9896f5a33dc3ffb_rle_crop_3687251390_0.png.png imagette208304251740556022/1740555853_2562297_1339689282_eb15cebea5ef41b9363cd0bfa1ef52ad_rle_crop_3687254372_0.png.png imagette208304251740556022/1740555374_2546610_1339688689_ebc9375f31e8d66c7e5b358f7366dbba_rle_crop_3687250052_0.png.png imagette208304251740556022/1740555652_2553797_1339688881_5ee8fec6e37123c3b9896f5a33dc3ffb_rle_crop_3687251390_0.png.png imagette208304251740556022/1740555853_2562297_1339689299_e0cc353a5ac155c2edb2b088b2a69bad_rle_crop_3687254337_0.png.png imagette208304251740556022/1740555254_2544682_1339688565_f5a9b2899c4a21c2ea39206ca11b637d_rle_crop_3687248030_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/6533f0bac397c3104919f80bfe76a6a7_60618934.png imagette208304251740556022 20830426 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=20830426 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339689175: '1740555631_2553531_1339688936_55dd31199e6ad617009a6a3b3e38f36d_rle_crop_3687251904_0.png', 1339689533: '1740555891_2562772_1339689076_a5626a77c6d2817ff0e8e296b2447285_rle_crop_3687254294_0.png', 1339689532: '1740555891_2562772_1339689084_1d333d05790fac568bc80a56ea6e72b4_rle_crop_3687254275_0.png', 1339689531: '1740555891_2562772_1339689089_e1bdc1e0a5c8377f3a23279f9fb78398_rle_crop_3687253581_0.png', 1339689510: '1740555915_2563163_1339689097_55d459b556778c0815d3f149faebb73a_rle_crop_3687254686_0.png', 1339689455: '1740555853_2562297_1339689303_40fa20a51ecc8b7bdfc5c73c196be0ca_rle_crop_3687254318_0.png', 1339689278: '1740555652_2553797_1339688881_5ee8fec6e37123c3b9896f5a33dc3ffb_rle_crop_3687251393_0.png', 1339689277: '1740555652_2553797_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251383_0.png', 1339689276: '1740555652_2553797_1339688886_1c023e960a8f3195f038eb1b826804d1_rle_crop_3687251353_0.png', 1339689275: '1740555652_2553797_1339688886_1c023e960a8f3195f038eb1b826804d1_rle_crop_3687251352_0.png', 1339689177: '1740555631_2553531_1339688929_b5f919f1fcfd2cd0fbc245766c611c54_rle_crop_3687251927_0.png', 1339689176: '1740555631_2553531_1339688929_b5f919f1fcfd2cd0fbc245766c611c54_rle_crop_3687251931_0.png', 1339688811: '1740555254_2544682_1339688568_3e80c326b525e04ce2b621e5141b0ac5_rle_crop_3687248007_0.png', 1339689057: '1740555552_2552381_1339688881_5ee8fec6e37123c3b9896f5a33dc3ffb_rle_crop_3687251393_0.png', 1339689056: '1740555552_2552381_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251383_0.png', 1339689055: '1740555552_2552381_1339688886_1c023e960a8f3195f038eb1b826804d1_rle_crop_3687251353_0.png', 1339689054: '1740555552_2552381_1339688886_1c023e960a8f3195f038eb1b826804d1_rle_crop_3687251352_0.png', 1339689046: '1740555533_2552188_1339688832_3d82eace34723c7278596578fad7fe1d_rle_crop_3687251341_0.png', 1339689045: '1740555533_2552188_1339688842_28109278e968203693079fcce4757938_rle_crop_3687251304_0.png', 1339688949: '1740555374_2546610_1339688701_684804d4e6099580284615b9a8448265_rle_crop_3687250029_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/fe98bfef3a59adc7a537a329a01d667d_51041731.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/494a023f0c48510e6cce5568b61efb79_64057070.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ebfcdbdda69b3c69af08b7a42a64893a_99044875.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/647e238b095e4c8a57315deef644d04a_36997171.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/06ea652bb54b532fbbbf514aa0e8ce42_95787485.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f112a69ff4227b3dda5938f36fa436fa_90128670.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/93b2728ce127b20ede9b4d09bd41c924_43776568.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5a2e41c672f613f61dc36403f501566c_29179199.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/cea9a12e06393e772f326c352e7f689e_10883931.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/307d5b1cecfb54242bda782a1ca92df2_61037679.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2d126c823183c1dfe10c4f9ef499128c_16193485.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5f7bf5c2681bdc175a9550c5bd69b8ff_44682000.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2941a3433c7c17b0698829b4c15cef55_76575496.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/93b2728ce127b20ede9b4d09bd41c924_34821395.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5a2e41c672f613f61dc36403f501566c_29994650.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/cea9a12e06393e772f326c352e7f689e_51077284.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/307d5b1cecfb54242bda782a1ca92df2_48088535.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/89fe325a6672ac5d5454f3a073285c13_94604174.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/23dbf2e35fde35827a93fa828168f881_61670072.png change filename to text .imagette208304261740556022/ imagette208304261740556022/1740555552_2552381_1339688881_5ee8fec6e37123c3b9896f5a33dc3ffb_rle_crop_3687251393_0.png.png imagette208304261740556022/1740555631_2553531_1339688936_55dd31199e6ad617009a6a3b3e38f36d_rle_crop_3687251904_0.png.png imagette208304261740556022/1740555552_2552381_1339688886_1c023e960a8f3195f038eb1b826804d1_rle_crop_3687251352_0.png.png imagette208304261740556022/1740555374_2546610_1339688701_684804d4e6099580284615b9a8448265_rle_crop_3687250029_0.png.png imagette208304261740556022/1740555652_2553797_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251383_0.png.png imagette208304261740556022/1740555552_2552381_1339688886_1c023e960a8f3195f038eb1b826804d1_rle_crop_3687251353_0.png.png imagette208304261740556022/1740555631_2553531_1339688929_b5f919f1fcfd2cd0fbc245766c611c54_rle_crop_3687251931_0.png.png imagette208304261740556022/1740555552_2552381_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251383_0.png.png imagette208304261740556022/1740555891_2562772_1339689089_e1bdc1e0a5c8377f3a23279f9fb78398_rle_crop_3687253581_0.png.png imagette208304261740556022/1740555533_2552188_1339688832_3d82eace34723c7278596578fad7fe1d_rle_crop_3687251341_0.png.png imagette208304261740556022/1740555891_2562772_1339689076_a5626a77c6d2817ff0e8e296b2447285_rle_crop_3687254294_0.png.png imagette208304261740556022/1740555533_2552188_1339688842_28109278e968203693079fcce4757938_rle_crop_3687251304_0.png.png imagette208304261740556022/1740555853_2562297_1339689303_40fa20a51ecc8b7bdfc5c73c196be0ca_rle_crop_3687254318_0.png.png imagette208304261740556022/1740555652_2553797_1339688881_5ee8fec6e37123c3b9896f5a33dc3ffb_rle_crop_3687251393_0.png.png imagette208304261740556022/1740555915_2563163_1339689097_55d459b556778c0815d3f149faebb73a_rle_crop_3687254686_0.png.png imagette208304261740556022/1740555891_2562772_1339689084_1d333d05790fac568bc80a56ea6e72b4_rle_crop_3687254275_0.png.png imagette208304261740556022/1740555254_2544682_1339688568_3e80c326b525e04ce2b621e5141b0ac5_rle_crop_3687248007_0.png.png imagette208304261740556022/1740555652_2553797_1339688886_1c023e960a8f3195f038eb1b826804d1_rle_crop_3687251353_0.png.png imagette208304261740556022/1740555631_2553531_1339688929_b5f919f1fcfd2cd0fbc245766c611c54_rle_crop_3687251927_0.png.png imagette208304261740556022/1740555652_2553797_1339688886_1c023e960a8f3195f038eb1b826804d1_rle_crop_3687251352_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/a344ca9c7c949f1d06da827064be09a8_65880847.png imagette208304261740556022 20830421 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=20830421 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339688944: '1740555374_2546610_1339688701_684804d4e6099580284615b9a8448265_rle_crop_3687250037_0.png', 1339688945: '1740555374_2546610_1339688689_ebc9375f31e8d66c7e5b358f7366dbba_rle_crop_3687250058_0.png', 1339689044: '1740555533_2552188_1339688823_6bc2ea1135e3741e6b2576747e670027_rle_crop_3687251367_0.png', 1339689049: '1740555552_2552381_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251385_0.png', 1339689171: '1740555631_2553531_1339688933_eac2873b60605aad6bc57a16478cc88c_rle_crop_3687251919_0.png', 1339689172: '1740555631_2553531_1339688929_b5f919f1fcfd2cd0fbc245766c611c54_rle_crop_3687251934_0.png', 1339689173: '1740555631_2553531_1339688929_b5f919f1fcfd2cd0fbc245766c611c54_rle_crop_3687251933_0.png', 1339689270: '1740555652_2553797_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251385_0.png', 1339689508: '1740555915_2563163_1339689024_48fb4ac4a225d039d8fbf6bd5e4144bb_rle_crop_3687254712_0.png', 1339689526: '1740555891_2562772_1339689154_0e5b7164a6582cc59634f1371a42fc21_rle_crop_3687254702_0.png', 1339689527: '1740555891_2562772_1339689154_0e5b7164a6582cc59634f1371a42fc21_rle_crop_3687254699_0.png', 1339689528: '1740555891_2562772_1339689092_d9b4d1be005228a556596f9777fc3956_rle_crop_3687253483_0.png', 1339689529: '1740555891_2562772_1339689084_1d333d05790fac568bc80a56ea6e72b4_rle_crop_3687254276_0.png', 1339689530: '1740555891_2562772_1339689076_a5626a77c6d2817ff0e8e296b2447285_rle_crop_3687254297_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/bec69053e80a169212d6062fc210d0d7_46822984.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f2a4da1bdfc9ae520a20ee6d9671592e_13586135.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/fdcae6d21c695fb082929a000cb2ab5c_24734294.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/90bd1ab4c418c63bf2394751ba977190_32415153.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f4a2a804c6871f6ed2a8c790b3f050ea_28733001.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/30928365f76ff8092335fdc6fc2ac990_93821257.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b59b06e75fa73168a0cdbc78ce9848a1_47203024.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/90bd1ab4c418c63bf2394751ba977190_37624985.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8488f59c56c9128c67b7f072fd974ab1_24278920.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/cc20162058f68c59d73f4d5bb9a05219_51943249.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f67ea93e43ee72410a6eb760bbde526f_14261944.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/25b24990c006fe5c601b1fd85b8a4eb5_81783912.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/05d68484e7b01a4794620292b2040909_54583430.png change filename to text .imagette208304211740556023/ imagette208304211740556023/1740555891_2562772_1339689154_0e5b7164a6582cc59634f1371a42fc21_rle_crop_3687254702_0.png.png imagette208304211740556023/1740555552_2552381_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251385_0.png.png imagette208304211740556023/1740555891_2562772_1339689154_0e5b7164a6582cc59634f1371a42fc21_rle_crop_3687254699_0.png.png imagette208304211740556023/1740555374_2546610_1339688689_ebc9375f31e8d66c7e5b358f7366dbba_rle_crop_3687250058_0.png.png imagette208304211740556023/1740555891_2562772_1339689076_a5626a77c6d2817ff0e8e296b2447285_rle_crop_3687254297_0.png.png imagette208304211740556023/1740555374_2546610_1339688701_684804d4e6099580284615b9a8448265_rle_crop_3687250037_0.png.png imagette208304211740556023/1740555891_2562772_1339689084_1d333d05790fac568bc80a56ea6e72b4_rle_crop_3687254276_0.png.png imagette208304211740556023/1740555915_2563163_1339689024_48fb4ac4a225d039d8fbf6bd5e4144bb_rle_crop_3687254712_0.png.png imagette208304211740556023/1740555533_2552188_1339688823_6bc2ea1135e3741e6b2576747e670027_rle_crop_3687251367_0.png.png imagette208304211740556023/1740555631_2553531_1339688929_b5f919f1fcfd2cd0fbc245766c611c54_rle_crop_3687251934_0.png.png imagette208304211740556023/1740555891_2562772_1339689092_d9b4d1be005228a556596f9777fc3956_rle_crop_3687253483_0.png.png imagette208304211740556023/1740555631_2553531_1339688929_b5f919f1fcfd2cd0fbc245766c611c54_rle_crop_3687251933_0.png.png imagette208304211740556023/1740555631_2553531_1339688933_eac2873b60605aad6bc57a16478cc88c_rle_crop_3687251919_0.png.png imagette208304211740556023/1740555652_2553797_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251385_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/bc2ccb02412b0c604b0774ce863a3496_33121319.png imagette208304211740556023 20830424 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=20830424 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339688825: '1740555254_2544682_1339688568_3e80c326b525e04ce2b621e5141b0ac5_rle_crop_3687248013_0.png', 1339688826: '1740555254_2544682_1339688568_3e80c326b525e04ce2b621e5141b0ac5_rle_crop_3687248011_0.png', 1339688827: '1740555254_2544682_1339688565_f5a9b2899c4a21c2ea39206ca11b637d_rle_crop_3687248042_0.png', 1339688956: '1740555374_2546610_1339688712_80732dd66eceba4aae395b0e1d4fc623_rle_crop_3687249440_0.png', 1339688957: '1740555374_2546610_1339688709_ae85fe39afc49c3ade9bd914438aff67_rle_crop_3687249455_0.png', 1339689050: '1740555533_2552188_1339688842_28109278e968203693079fcce4757938_rle_crop_3687251302_0.png', 1339689051: '1740555533_2552188_1339688832_3d82eace34723c7278596578fad7fe1d_rle_crop_3687251343_0.png', 1339689052: '1740555533_2552188_1339688823_6bc2ea1135e3741e6b2576747e670027_rle_crop_3687251365_0.png', 1339689061: '1740555552_2552381_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251384_0.png', 1339689284: '1740555652_2553797_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251384_0.png', 1339689460: '1740555853_2562297_1339689282_eb15cebea5ef41b9363cd0bfa1ef52ad_rle_crop_3687254371_0.png', 1339689461: '1740555872_2562520_1339689306_97f26df12aa181244fe9760f79712223_rle_crop_3687254355_0.png', 1339689512: '1740555915_2563163_1339689097_55d459b556778c0815d3f149faebb73a_rle_crop_3687254687_0.png', 1339689539: '1740555891_2562772_1339689092_d9b4d1be005228a556596f9777fc3956_rle_crop_3687253479_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5e48f4282f2a24428d806b3101b6b5c6_5185999.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/916da5682cbcf1f51e2f07d9e1d52bf2_64750687.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4f754c1d57933759c0073f455aa3aa4e_74138639.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/0cad4abe2454f3c34e2e46e4b3de1ca8_27291952.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/84f212ef16be2028aaaf990e9da0bd3d_57733756.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e4f3b27d8f4e1affd1b1e9e69dd9c332_88355734.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/060ebb0151d2481a70a18d7597a71b0c_86462495.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f93637caad8df60bd095a092d55e2e3e_12141411.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8c130d57381ae04ff25801087f9510f4_50305019.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8c130d57381ae04ff25801087f9510f4_85357826.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/34c96e1d0798cd4f8380a1e495047c2b_32071342.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/9d3b703010bda9fe1e039ef2a4986dd6_6914130.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/463e353413700942e89e2a61197557e0_16737884.png change filename to text .imagette208304241740556024/ imagette208304241740556024/1740555254_2544682_1339688568_3e80c326b525e04ce2b621e5141b0ac5_rle_crop_3687248011_0.png.png imagette208304241740556024/1740555254_2544682_1339688565_f5a9b2899c4a21c2ea39206ca11b637d_rle_crop_3687248042_0.png.png imagette208304241740556024/1740555853_2562297_1339689282_eb15cebea5ef41b9363cd0bfa1ef52ad_rle_crop_3687254371_0.png.png imagette208304241740556024/1740555915_2563163_1339689097_55d459b556778c0815d3f149faebb73a_rle_crop_3687254687_0.png.png imagette208304241740556024/1740555652_2553797_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251384_0.png.png imagette208304241740556024/1740555891_2562772_1339689092_d9b4d1be005228a556596f9777fc3956_rle_crop_3687253479_0.png.png imagette208304241740556024/1740555533_2552188_1339688842_28109278e968203693079fcce4757938_rle_crop_3687251302_0.png.png imagette208304241740556024/1740555374_2546610_1339688709_ae85fe39afc49c3ade9bd914438aff67_rle_crop_3687249455_0.png.png imagette208304241740556024/1740555533_2552188_1339688823_6bc2ea1135e3741e6b2576747e670027_rle_crop_3687251365_0.png.png imagette208304241740556024/1740555552_2552381_1339688884_12f4f4cba6e63fd25f83357bba8cac49_rle_crop_3687251384_0.png.png imagette208304241740556024/1740555872_2562520_1339689306_97f26df12aa181244fe9760f79712223_rle_crop_3687254355_0.png.png imagette208304241740556024/1740555533_2552188_1339688832_3d82eace34723c7278596578fad7fe1d_rle_crop_3687251343_0.png.png imagette208304241740556024/1740555254_2544682_1339688568_3e80c326b525e04ce2b621e5141b0ac5_rle_crop_3687248013_0.png.png imagette208304241740556024/1740555374_2546610_1339688712_80732dd66eceba4aae395b0e1d4fc623_rle_crop_3687249440_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f31864e547b5e9b3e222512407363f6b_7161331.png imagette208304241740556024 20830427 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=20830427 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339688821: '1740555254_2544682_1339688568_3e80c326b525e04ce2b621e5141b0ac5_rle_crop_3687248012_0.png', 1339688950: '1740555374_2546610_1339688771_67e86efb169bde2f7a74e4045a08b2dc_rle_crop_3687249428_0.png', 1339688951: '1740555374_2546610_1339688689_ebc9375f31e8d66c7e5b358f7366dbba_rle_crop_3687250054_0.png', 1339689047: '1740555533_2552188_1339688897_15690931ca452023b07b319cb27ae816_rle_crop_3687251289_0.png', 1339689059: '1740555552_2552381_1339688890_5a80b30f3a43de94405e4b818792c793_rle_crop_3687251327_0.png', 1339689178: '1740555631_2553531_1339688988_b5fd273ae1d20865b682d0964fe29c52_rle_crop_3687251888_0.png', 1339689179: '1740555631_2553531_1339688929_b5f919f1fcfd2cd0fbc245766c611c54_rle_crop_3687251925_0.png', 1339689281: '1740555652_2553797_1339688890_5a80b30f3a43de94405e4b818792c793_rle_crop_3687251327_0.png', 1339689456: '1740555853_2562297_1339689282_eb15cebea5ef41b9363cd0bfa1ef52ad_rle_crop_3687254365_0.png', 1339689536: '1740555891_2562772_1339689154_0e5b7164a6582cc59634f1371a42fc21_rle_crop_3687254696_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4592ceb562acec52aea43af191309788_74424100.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/9297d0388123cb169bab4dfc6166e033_97723170.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2d637f7f4575112947caa71f7ba5faf2_60078709.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/624be9d81fa9aa92acaa8045da3673c0_71602157.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/0a4b8da0b5e56cbcc5da88442fbd8755_96011344.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/d93a6080467d16ed6f81735f5928f615_35275512.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5e02355ce58d93330e379fa70bb5903e_65502082.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/0a4b8da0b5e56cbcc5da88442fbd8755_91025457.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ff65e27b7a451c2176b960e9d9a08e5f_45118661.png change filename to text .imagette208304271740556025/ imagette208304271740556025/1740555853_2562297_1339689282_eb15cebea5ef41b9363cd0bfa1ef52ad_rle_crop_3687254365_0.png.png imagette208304271740556025/1740555652_2553797_1339688890_5a80b30f3a43de94405e4b818792c793_rle_crop_3687251327_0.png.png imagette208304271740556025/1740555631_2553531_1339688988_b5fd273ae1d20865b682d0964fe29c52_rle_crop_3687251888_0.png.png imagette208304271740556025/1740555552_2552381_1339688890_5a80b30f3a43de94405e4b818792c793_rle_crop_3687251327_0.png.png imagette208304271740556025/1740555254_2544682_1339688568_3e80c326b525e04ce2b621e5141b0ac5_rle_crop_3687248012_0.png.png imagette208304271740556025/1740555533_2552188_1339688897_15690931ca452023b07b319cb27ae816_rle_crop_3687251289_0.png.png imagette208304271740556025/1740555891_2562772_1339689154_0e5b7164a6582cc59634f1371a42fc21_rle_crop_3687254696_0.png.png imagette208304271740556025/1740555631_2553531_1339688929_b5f919f1fcfd2cd0fbc245766c611c54_rle_crop_3687251925_0.png.png imagette208304271740556025/1740555374_2546610_1339688689_ebc9375f31e8d66c7e5b358f7366dbba_rle_crop_3687250054_0.png.png imagette208304271740556025/1740555374_2546610_1339688771_67e86efb169bde2f7a74e4045a08b2dc_rle_crop_3687249428_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/72479376434a23f9129fddb041359ed7_73971112.png imagette208304271740556025 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20830367 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20830428,20830429,20830430,20830431,20830432,20830433,20830434,20830435,20830436,20830437,20830438,20830439?tags=kraft,papier,mal_croppe,metal,environnement,Teint_Dans_La_Masse,flou,plastique,Carton_brun,cartonnette,autre_refus,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1339689486] : ('0.08030066560620876',) no score found for photo 1339689486 We are sending mail with results at report@fotonower.com args[1339689482] : ('0.08030066560620876',) no score found for photo 1339689482 We are sending mail with results at report@fotonower.com args[1339689478] : ('0.08030066560620876',) no score found for photo 1339689478 We are sending mail with results at report@fotonower.com args[1339689474] : ('0.08030066560620876',) no score found for photo 1339689474 We are sending mail with results at report@fotonower.com args[1339689471] : ('0.08030066560620876',) no score found for photo 1339689471 We are sending mail with results at report@fotonower.com args[1339689434] : ('0.08030066560620876',) no score found for photo 1339689434 We are sending mail with results at report@fotonower.com args[1339689431] : ('0.08030066560620876',) no score found for photo 1339689431 We are sending mail with results at report@fotonower.com args[1339689428] : ('0.08030066560620876',) no score found for photo 1339689428 We are sending mail with results at report@fotonower.com args[1339689424] : ('0.08030066560620876',) no score found for photo 1339689424 We are sending mail with results at report@fotonower.com args[1339689421] : ('0.08030066560620876',) no score found for photo 1339689421 We are sending mail with results at report@fotonower.com args[1339689417] : ('0.08030066560620876',) no score found for photo 1339689417 We are sending mail with results at report@fotonower.com refus_total : 0.08030066560620876 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=20830367 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_P20830367_26-02-2025_08_47_01.pdf results_Auto_P20830367_26-02-2025_08_47_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20830367_26-02-2025_08_47_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20830367','results_Auto_P20830367_26-02-2025_08_47_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20830367_26-02-2025_08_47_01.pdf','pdf','','0.33','0.08030066560620876') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20830367]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339689486, 1339689482, 1339689478, 1339689474, 1339689471, 1339689434, 1339689431, 1339689428, 1339689424, 1339689421, 1339689417] map_info['map_portfolio_photo'] : {20830367: [1339689486, 1339689482, 1339689478, 1339689474, 1339689471, 1339689434, 1339689431, 1339689428, 1339689424, 1339689421, 1339689417, 1339689389, 1339689385, 1339689381, 1339689306, 1339689303, 1339689299, 1339689290, 1339689282, 1339689154, 1339689147, 1339689097, 1339689092, 1339689089, 1339689084, 1339689076, 1339689032, 1339689024, 1339689019, 1339689009, 1339688988, 1339688985, 1339688981, 1339688977, 1339688974, 1339688940, 1339688936, 1339688933, 1339688929, 1339688926, 1339688897, 1339688890, 1339688886, 1339688884, 1339688881, 1339688844, 1339688842, 1339688838, 1339688832, 1339688823, 1339688771, 1339688769, 1339688766, 1339688763, 1339688715, 1339688712, 1339688709, 1339688701, 1339688689, 1339688684, 1339688642, 1339688639, 1339688636, 1339688634, 1339688631, 1339688568, 1339688565, 1339688561]} final : False mtd_id 4302 list_pids : [1339689486, 1339689482, 1339689478, 1339689474, 1339689471, 1339689434, 1339689431, 1339689428, 1339689424, 1339689421, 1339689417] 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, '2615179') ('4302', '20830367', '1339689486', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689482', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689478', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689474', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689471', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689434', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689431', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689428', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689424', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689421', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689417', None, None, None, None, None, '2615179') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '20830367', '1339689486', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689482', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689478', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689474', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689471', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689434', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689431', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689428', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689424', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689421', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689417', None, None, None, None, None, '2615179')] time used for this insertion : 0.013542890548706055 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.351866960525513 time spend to save output : 0.014027595520019531 total time spend for step 4 : 6.365894556045532 step5:split_time_score Wed Feb 26 08:47:07 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20830367'] 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 : [('20830367',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20830367) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339689482: {'path': 'temp/1740556020_1132882_1339689482_667d6591e16065c47391c4f7ef76b351.jpg', 'extension': 'jpg'}, 1339689486: {'path': 'temp/1740556020_1132882_1339689486_1036deb191fd635371891b01cc6df090.jpg', 'extension': 'jpg'}, 1339689417: {'path': 'temp/1740556020_1132882_1339689417_75f655575079b0e137ec338d4a7edc6e.jpg', 'extension': 'jpg'}, 1339689421: {'path': 'temp/1740556020_1132882_1339689421_dce682004e116e427266777eed73abeb.jpg', 'extension': 'jpg'}, 1339689424: {'path': 'temp/1740556020_1132882_1339689424_c8f46f0da386f241cf350aa1a6158b63.jpg', 'extension': 'jpg'}, 1339689471: {'path': 'temp/1740556020_1132882_1339689471_be285e1baaadb8aa6e84becb2dbbba4e.jpg', 'extension': 'jpg'}, 1339689474: {'path': 'temp/1740556020_1132882_1339689474_059af113e7ad8ac646a7b3eec5dde6a0.jpg', 'extension': 'jpg'}, 1339689478: {'path': 'temp/1740556020_1132882_1339689478_52fa7dae11b4a3e14f6fbc904e985860.jpg', 'extension': 'jpg'}, 1339689428: {'path': 'temp/1740556020_1132882_1339689428_94e83ad5389438a0f96e1af27f438458.jpg', 'extension': 'jpg'}, 1339689431: {'path': 'temp/1740556020_1132882_1339689431_9da8c53c939219f775be80f87b145b0b.jpg', 'extension': 'jpg'}, 1339689434: {'path': 'temp/1740556020_1132882_1339689434_114bd2d289adc5fdcde03b1d285dfa77.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 = 20830367; (('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 = 20830367 group by h (('08', 68),) 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=20830367 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 (20830367) 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 (20830367) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26022025 20830367 Nombre de photos uploadées : 68 / 23040 (0%) 26022025 20830367 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 26022025 20830367 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1339688568, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/3e80c326b525e04ce2b621e5141b0ac5.jpg', 'username': None, 'uploaded_at': 1740555095, 'text': 'image_26022025_08_30_24_010131m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339688565, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f5a9b2899c4a21c2ea39206ca11b637d.jpg', 'username': None, 'uploaded_at': 1740555095, 'text': 'image_26022025_08_30_35_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339688561, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5390fe60ac58b0391adf2eb7b2600c22.jpg', 'username': None, 'uploaded_at': 1740555095, 'text': 'image_26022025_08_30_44_009246m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339688642, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/da418e88b4969fb1c91a47055fb944ed.jpg', 'username': None, 'uploaded_at': 1740555156, 'text': 'image_26022025_08_30_54_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 8.106231689453125e-06 elapsed_time : order_list_meta_photo_and_scores 2.2172927856445312e-05 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003015756607055664 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20830367, '2025-02-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1624425,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02373671531677246 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= 1624425 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1624425, 'dashboard_run_id': 1632737, 'mtr_portfolio_id': 20829246, 'dashboard_result_id': 9068190, '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_P20829246_26-02-2025_08_21_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20829247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20829248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20829249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20829250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20829251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20829252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20829253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20829254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20829255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20829256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20829257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20829258, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1632737, 'mtr_portfolio_id': 20829828, 'dashboard_result_id': 9068191, '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_P20829828_26-02-2025_08_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20829853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20829854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20829855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20829856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20829857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20829858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20829859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20829860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20829861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20829862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20829863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20829864, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1632737, 'mtr_portfolio_id': 20830367, 'dashboard_result_id': 9068192, '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_P20830367_26-02-2025_08_45_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20830416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20830417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20830418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20830419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20830420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20830421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20830422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20830423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20830424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20830425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20830426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20830427, '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 = 20829246 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': 2615097, 'mtr_portfolio_id': 20829246, 'created_at': datetime.datetime(2025, 2, 26, 8, 21, 29), 'result': '0.10081344309685236', 'result_long': None, 'result_double': None}] Qualite : 0.10081344309685236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20829246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20829246_26-02-2025_08_21_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20829246 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_P20829246_26-02-2025_08_21_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20829247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20829248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20829249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20829250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20829251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20829252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20829253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20829254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20829255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20829256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20829257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20829258, 'pht': 3726}}" where mtr_portfolio_id = 20829246 and dashboard_run_id = 1632737 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`=20829246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9068190, 0.10081344309685236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20829246_26-02-2025_08_21_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20829247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20829248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20829249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20829250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20829251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20829252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20829253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20829254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20829255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20829256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20829257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20829258, '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 = 20829828 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': 2615133, 'mtr_portfolio_id': 20829828, 'created_at': datetime.datetime(2025, 2, 26, 8, 33), 'result': '0.09222898747848117', 'result_long': None, 'result_double': None}] Qualite : 0.09222898747848117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20829828 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20829828_26-02-2025_08_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20829828 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_P20829828_26-02-2025_08_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20829853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20829854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20829855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20829856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20829857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20829858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20829859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20829860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20829861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20829862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20829863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20829864, 'pht': 3726}}" where mtr_portfolio_id = 20829828 and dashboard_run_id = 1632737 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`=20829828 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9068191, 0.09222898747848117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20829828_26-02-2025_08_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20829853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20829854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20829855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20829856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20829857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20829858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20829859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20829860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20829861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20829862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20829863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20829864, '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 = 20830367 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': 2615179, 'mtr_portfolio_id': 20830367, 'created_at': datetime.datetime(2025, 2, 26, 8, 47), 'result': '0.08030066560620876', 'result_long': None, 'result_double': None}] Qualite : 0.08030066560620876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20830367 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20830367_26-02-2025_08_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20830367 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_P20830367_26-02-2025_08_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20830416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20830417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20830418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20830419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20830420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20830421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20830422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20830423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20830424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20830425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20830426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20830427, 'pht': 3726}}" where mtr_portfolio_id = 20830367 and dashboard_run_id = 1632737 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`=20830367 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9068192, 0.08030066560620876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20830367_26-02-2025_08_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20830416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20830417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20830418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20830419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20830420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20830421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20830422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20830423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20830424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20830425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20830426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20830427, '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 (20829246,20829828,20830367) result : ((1339685153,), (1339685157,), (1339685160,), (1339685164,), (1339685196,), (1339685201,), (1339685205,), (1339685214,), (1339685230,), (1339685701,), (1339685705,), (1339685733,), (1339685737,), (1339685758,), (1339685779,), (1339685828,), (1339685832,), (1339685837,), (1339685842,), (1339685886,), (1339685896,), (1339685903,), (1339685914,), (1339685918,), (1339685943,), (1339685946,), (1339685948,), (1339685951,), (1339685955,), (1339685988,), (1339686075,), (1339686084,), (1339686091,), (1339686101,), (1339686216,), (1339686311,), (1339686332,), (1339686335,), (1339686338,), (1339686379,), (1339686383,), (1339686386,), (1339686389,), (1339686391,), (1339686421,), (1339686426,), (1339686440,), (1339686447,), (1339686450,), (1339686453,), (1339686491,), (1339686495,), (1339686508,), (1339686524,), (1339686550,), (1339686551,), (1339686556,), (1339686560,), (1339686564,), (1339686568,), (1339686595,), (1339686599,), (1339686603,), (1339686606,), (1339686631,), (1339686635,), (1339686640,), (1339686643,), (1339686646,), (1339686648,), (1339686695,), (1339686697,), (1339686700,), (1339687126,), (1339686733,), (1339686946,), (1339686971,), (1339686975,), (1339687107,), (1339687193,), (1339687198,), (1339687203,), (1339687205,), (1339687262,), (1339687267,), (1339687270,), (1339687275,), (1339687278,), (1339687280,), (1339687329,), (1339687339,), (1339687343,), (1339687348,), (1339687351,), (1339687377,), (1339687381,), (1339687385,), (1339687388,), (1339687392,), (1339687394,), (1339687424,), (1339687428,), (1339687432,), (1339687435,), (1339687546,), (1339687551,), (1339687556,), (1339687568,), (1339687576,), (1339687579,), (1339687591,), (1339687596,), (1339687601,), (1339688076,), (1339688132,), (1339688166,), (1339688179,), (1339688195,), (1339688198,), (1339688286,), (1339688291,), (1339688297,), (1339688304,), (1339688329,), (1339688333,), (1339688336,), (1339688340,), (1339688348,), (1339688372,), (1339688376,), (1339688381,), (1339688385,), (1339688408,), (1339688412,), (1339688417,), (1339688464,), (1339688467,), (1339688472,), (1339688476,), (1339688480,), (1339688482,), (1339688505,), (1339688509,), (1339688512,), (1339688570,), (1339688561,), (1339688565,), (1339688568,), (1339688631,), (1339688634,), (1339688636,), (1339688639,), (1339688642,), (1339688684,), (1339688689,), (1339688701,), (1339688709,), (1339688712,), (1339688715,), (1339688763,), (1339688766,), (1339688769,), (1339688771,), (1339688823,), (1339688832,), (1339688838,), (1339688842,), (1339688844,), (1339688881,), (1339688884,), (1339688886,), (1339688890,), (1339688897,), (1339688926,), (1339688929,), (1339688933,), (1339688936,), (1339688940,), (1339688974,), (1339688977,), (1339688981,), (1339688985,), (1339688988,), (1339689009,), (1339689019,), (1339689024,), (1339689032,), (1339689076,), (1339689084,), (1339689089,), (1339689092,), (1339689097,), (1339689147,), (1339689154,), (1339689282,), (1339689290,), (1339689299,), (1339689303,), (1339689306,), (1339689381,), (1339689385,), (1339689389,), (1339689417,), (1339689421,), (1339689424,), (1339689428,), (1339689431,), (1339689434,), (1339689471,), (1339689474,), (1339689478,), (1339689482,), (1339689486,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26022025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20830367]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339689486, 1339689482, 1339689478, 1339689474, 1339689471, 1339689434, 1339689431, 1339689428, 1339689424, 1339689421, 1339689417] map_info['map_portfolio_photo'] : {20830367: [1339689486, 1339689482, 1339689478, 1339689474, 1339689471, 1339689434, 1339689431, 1339689428, 1339689424, 1339689421, 1339689417, 1339689389, 1339689385, 1339689381, 1339689306, 1339689303, 1339689299, 1339689290, 1339689282, 1339689154, 1339689147, 1339689097, 1339689092, 1339689089, 1339689084, 1339689076, 1339689032, 1339689024, 1339689019, 1339689009, 1339688988, 1339688985, 1339688981, 1339688977, 1339688974, 1339688940, 1339688936, 1339688933, 1339688929, 1339688926, 1339688897, 1339688890, 1339688886, 1339688884, 1339688881, 1339688844, 1339688842, 1339688838, 1339688832, 1339688823, 1339688771, 1339688769, 1339688766, 1339688763, 1339688715, 1339688712, 1339688709, 1339688701, 1339688689, 1339688684, 1339688642, 1339688639, 1339688636, 1339688634, 1339688631, 1339688568, 1339688565, 1339688561]} final : True mtd_id 4302 list_pids : [1339689486, 1339689482, 1339689478, 1339689474, 1339689471, 1339689434, 1339689431, 1339689428, 1339689424, 1339689421, 1339689417] Looping around the photos to save general results len do output : 1 /20830367Didn'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, '2615179') ('4302', '20830367', '1339689486', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689482', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689478', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689474', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689471', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689434', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689431', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689428', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689424', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689421', None, None, None, None, None, '2615179') ('4302', None, None, None, None, None, None, None, '2615179') ('4302', '20830367', '1339689417', None, None, None, None, None, '2615179') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20830367', 'None', None, None, None, None, '2615179'), ('4302', '20830367', '1339689486', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689482', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689478', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689474', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689471', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689434', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689431', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689428', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689424', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689421', None, None, None, None, None, '2615179'), ('4302', '20830367', '1339689417', None, None, None, None, None, '2615179')] time used for this insertion : 0.013118505477905273 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2954080104827881 time spend to save output : 0.013395071029663086 total time spend for step 5 : 0.30880308151245117 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 (2615179) 2.81user 2.64system 0:13.03elapsed 41%CPU (0avgtext+0avgdata 161504maxresident)k 81560inputs+18544outputs (443major+73465minor)pagefaults 0swaps