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 : 2745112 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 (2815393) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2815393) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854863 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2815393'] with mtr_portfolio_ids : ['22854863'] and first list_photo_ids : [] new path : /proc/2745112/ Name: python3 Umask: 0002 State: R (running) Tgid: 2745112 Ngid: 0 Pid: 2745112 PPid: 2745111 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2745112 NSpid: 2745112 NSpgid: 2743334 NSsid: 2743334 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98488 kB VmRSS: 98488 kB RssAnon: 60196 kB RssFile: 38292 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 83 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2745112', 'Ngid': '0', 'Pid': '2745112', 'PPid': '2745111', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2745112', 'NSpid': '2745112', 'NSpgid': '2743334', 'NSsid': '2743334', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98488 kB', 'VmRSS': '98488 kB', 'RssAnon': '60196 kB', 'RssFile': '38292 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '83'} ('datou_batch_current', '2745112', '1107228', '0', '1107228', '865976', '98488', b'', 'marlene', '2815393') 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 (22854863) 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 (2815393 ) ) 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 (22854863) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1357363650, 'portfolio_id': 22854863}, {'photo_id': 1357363401, 'portfolio_id': 22854863}, {'photo_id': 1357363384, 'portfolio_id': 22854863}, {'photo_id': 1357363381, 'portfolio_id': 22854863}, {'photo_id': 1357363379, 'portfolio_id': 22854863}, {'photo_id': 1357363377, 'portfolio_id': 22854863}, {'photo_id': 1357363376, 'portfolio_id': 22854863}, {'photo_id': 1357363358, 'portfolio_id': 22854863}, {'photo_id': 1357363356, 'portfolio_id': 22854863}, {'photo_id': 1357363353, 'portfolio_id': 22854863}, {'photo_id': 1357363351, 'portfolio_id': 22854863}, {'photo_id': 1357363348, 'portfolio_id': 22854863}, {'photo_id': 1357363345, 'portfolio_id': 22854863}, {'photo_id': 1357363294, 'portfolio_id': 22854863}, {'photo_id': 1357363292, 'portfolio_id': 22854863}, {'photo_id': 1357363268, 'portfolio_id': 22854863}, {'photo_id': 1357363266, 'portfolio_id': 22854863}, {'photo_id': 1357363263, 'portfolio_id': 22854863}, {'photo_id': 1357363260, 'portfolio_id': 22854863}, {'photo_id': 1357363257, 'portfolio_id': 22854863}, {'photo_id': 1357363254, 'portfolio_id': 22854863}, {'photo_id': 1357363207, 'portfolio_id': 22854863}, {'photo_id': 1357363197, 'portfolio_id': 22854863}, {'photo_id': 1357363194, 'portfolio_id': 22854863}, {'photo_id': 1357363191, 'portfolio_id': 22854863}, {'photo_id': 1357363186, 'portfolio_id': 22854863}, {'photo_id': 1357362926, 'portfolio_id': 22854863}, {'photo_id': 1357362923, 'portfolio_id': 22854863}, {'photo_id': 1357362921, 'portfolio_id': 22854863}, {'photo_id': 1357362919, 'portfolio_id': 22854863}, {'photo_id': 1357362918, 'portfolio_id': 22854863}, {'photo_id': 1357362888, 'portfolio_id': 22854863}, {'photo_id': 1357362886, 'portfolio_id': 22854863}, {'photo_id': 1357362883, 'portfolio_id': 22854863}, {'photo_id': 1357362881, 'portfolio_id': 22854863}, {'photo_id': 1357362879, 'portfolio_id': 22854863}, {'photo_id': 1357362876, 'portfolio_id': 22854863}, {'photo_id': 1357362828, 'portfolio_id': 22854863}, {'photo_id': 1357362826, 'portfolio_id': 22854863}, {'photo_id': 1357362823, 'portfolio_id': 22854863}, {'photo_id': 1357362808, 'portfolio_id': 22854863}, {'photo_id': 1357362806, 'portfolio_id': 22854863}, {'photo_id': 1357362802, 'portfolio_id': 22854863}, {'photo_id': 1357362799, 'portfolio_id': 22854863}, {'photo_id': 1357362797, 'portfolio_id': 22854863}, {'photo_id': 1357362793, 'portfolio_id': 22854863}, {'photo_id': 1357362774, 'portfolio_id': 22854863}, {'photo_id': 1357362770, 'portfolio_id': 22854863}, {'photo_id': 1357362767, 'portfolio_id': 22854863}, {'photo_id': 1357362764, 'portfolio_id': 22854863}, {'photo_id': 1357362720, 'portfolio_id': 22854863}, {'photo_id': 1357362717, 'portfolio_id': 22854863}, {'photo_id': 1357362716, 'portfolio_id': 22854863}, {'photo_id': 1357362715, 'portfolio_id': 22854863}, {'photo_id': 1357362714, 'portfolio_id': 22854863}, {'photo_id': 1357362687, 'portfolio_id': 22854863}, {'photo_id': 1357362685, 'portfolio_id': 22854863}, {'photo_id': 1357362683, 'portfolio_id': 22854863}, {'photo_id': 1357362682, 'portfolio_id': 22854863}] map_portfolio_id_photo_id: {22854863: [1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345, 1357363294, 1357363292, 1357363268, 1357363266, 1357363263, 1357363260, 1357363257, 1357363254, 1357363207, 1357363197, 1357363194, 1357363191, 1357363186, 1357362926, 1357362923, 1357362921, 1357362919, 1357362918, 1357362888, 1357362886, 1357362883, 1357362881, 1357362879, 1357362876, 1357362828, 1357362826, 1357362823, 1357362808, 1357362806, 1357362802, 1357362799, 1357362797, 1357362793, 1357362774, 1357362770, 1357362767, 1357362764, 1357362720, 1357362717, 1357362716, 1357362715, 1357362714, 1357362687, 1357362685, 1357362683, 1357362682]} ##### 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.016377925872802734 #### 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 Sat May 10 03:58:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22854863) 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 : 22854863 get user id for portfolio 22854863 get sub ptf for main ptf 22854863, type 3726 and hashtags ['cartonnette', 'flou', 'papier', 'mal_croppe', 'Teint_Dans_La_Masse', 'Carton_gris', 'environnement', 'kraft', 'metal', 'autre_refus', 'Carton_brun', 'plastique'] 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`=22854863 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','papier','mal_croppe','Teint_Dans_La_Masse','Carton_gris','environnement','kraft','metal','autre_refus','Carton_brun','plastique')) 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`=22854863 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','papier','mal_croppe','Teint_Dans_La_Masse','Carton_gris','environnement','kraft','metal','autre_refus','Carton_brun','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22854863, 'sub_port_id': 22854864, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255458, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'metal': {'main_port_id': 22854863, 'sub_port_id': 22854865, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255459, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'kraft': {'main_port_id': 22854863, 'sub_port_id': 22854866, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255460, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'papier': {'main_port_id': 22854863, 'sub_port_id': 22854867, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255461, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'environnement': {'main_port_id': 22854863, 'sub_port_id': 22854868, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255462, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'mal_croppe': {'main_port_id': 22854863, 'sub_port_id': 22854869, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255463, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22854863, 'sub_port_id': 22854870, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255464, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'plastique': {'main_port_id': 22854863, 'sub_port_id': 22854871, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255465, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'autre_refus': {'main_port_id': 22854863, 'sub_port_id': 22854872, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255466, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'Carton_brun': {'main_port_id': 22854863, 'sub_port_id': 22854873, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255467, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'Carton_gris': {'main_port_id': 22854863, 'sub_port_id': 22854874, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255468, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'cartonnette': {'main_port_id': 22854863, 'sub_port_id': 22854875, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255469, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22854864 , 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=22854863 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 (22854864) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,)) 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 22854865 , 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=22854863 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 (22854865) result : ((1357363229,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,)) 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 22854866 , 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=22854863 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 (22854866) result : ((1357362952,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,)) 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 22854867 , 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=22854863 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 (22854867) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,)) 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 22854868 , 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=22854863 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 (22854868) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,)) 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 22854869 , 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=22854863 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 (22854869) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,)) 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 22854870 , 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=22854863 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 (22854870) result : ((1357362941,), (1357362942,), (1357363222,), (1357363232,), (1357363275,), (1357363276,), (1357363323,), (1357363324,), (1357363327,), (1357363328,), (1357363333,), (1357363334,), (1357363335,), (1357363337,), (1357363501,), (1357363561,), (1357363562,), (1357363563,), (1357363564,), (1357363565,), (1357363566,), (1357363567,), (1357363568,), (1357363909,), (1357363910,), (1357363911,), (1357363913,), (1357363914,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,)) 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 22854871 , 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=22854863 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 (22854871) result : ((1357362951,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,)) 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 22854872 , 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=22854863 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 (22854872) result : ((1357362943,), (1357363223,), (1357363224,), (1357363278,), (1357363329,), (1357363920,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,)) 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 22854873 , 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=22854863 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 (22854873) result : ((1357362950,), (1357363226,), (1357363227,), (1357363239,), (1357363240,), (1357363241,), (1357363282,), (1357363283,), (1357363336,), (1357363340,), (1357363341,), (1357363947,), (1357363948,), (1357363949,), (1357363950,), (1357363951,), (1357363952,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,)) 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 22854874 , 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=22854863 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 (22854874) result : ((1357362944,), (1357363225,), (1357363233,), (1357363338,), (1357363339,), (1357363574,), (1357363928,), (1357363929,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,)) 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 22854875 , 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=22854863 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 (22854875) result : ((1357362947,), (1357362948,), (1357362949,), (1357363235,), (1357363236,), (1357363237,), (1357363279,), (1357363280,), (1357363281,), (1357363331,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,)) 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`=22854863 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','papier','mal_croppe','Teint_Dans_La_Masse','Carton_gris','environnement','kraft','metal','autre_refus','Carton_brun','plastique')) 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`=22854863 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','papier','mal_croppe','Teint_Dans_La_Masse','Carton_gris','environnement','kraft','metal','autre_refus','Carton_brun','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22854863, 'sub_port_id': 22854876, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255470, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'metal': {'main_port_id': 22854863, 'sub_port_id': 22854877, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255471, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'kraft': {'main_port_id': 22854863, 'sub_port_id': 22854878, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255472, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'papier': {'main_port_id': 22854863, 'sub_port_id': 22854879, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255473, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'environnement': {'main_port_id': 22854863, 'sub_port_id': 22854880, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255474, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'mal_croppe': {'main_port_id': 22854863, 'sub_port_id': 22854881, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255475, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22854863, 'sub_port_id': 22854882, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255476, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'plastique': {'main_port_id': 22854863, 'sub_port_id': 22854883, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255477, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'autre_refus': {'main_port_id': 22854863, 'sub_port_id': 22854884, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255478, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'Carton_brun': {'main_port_id': 22854863, 'sub_port_id': 22854885, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255479, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'Carton_gris': {'main_port_id': 22854863, 'sub_port_id': 22854886, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255480, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'cartonnette': {'main_port_id': 22854863, 'sub_port_id': 22854887, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255481, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854876,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854864 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854877,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854865 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854878,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854866 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854879,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854867 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854880,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854868 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854881,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854869 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854882,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854870 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854883,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854871 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854884,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854872 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854885,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854873 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854886,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854874 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854887,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854875 lien utilise dans velours : https://www.fotonower.com/velours/22854876,22854877,22854878,22854879,22854880,22854881,22854882,22854883,22854884,22854885,22854886,22854887?tags=flou,metal,kraft,papier,environnement,mal_croppe,Teint_Dans_La_Masse,plastique,autre_refus,Carton_brun,Carton_gris,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22854863]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345] map_info['map_portfolio_photo'] : {22854863: [1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345, 1357363294, 1357363292, 1357363268, 1357363266, 1357363263, 1357363260, 1357363257, 1357363254, 1357363207, 1357363197, 1357363194, 1357363191, 1357363186, 1357362926, 1357362923, 1357362921, 1357362919, 1357362918, 1357362888, 1357362886, 1357362883, 1357362881, 1357362879, 1357362876, 1357362828, 1357362826, 1357362823, 1357362808, 1357362806, 1357362802, 1357362799, 1357362797, 1357362793, 1357362774, 1357362770, 1357362767, 1357362764, 1357362720, 1357362717, 1357362716, 1357362715, 1357362714, 1357362687, 1357362685, 1357362683, 1357362682]} final : False mtd_id 4302 list_pids : [1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345] Looping around the photos to save general results len do output : 1 /22854863. 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, '2815393') ('4302', '22854863', '1357363650', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363401', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363384', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363381', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363379', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363377', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363376', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363358', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363356', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363353', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363351', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363348', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363345', None, None, None, None, None, '2815393') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '22854863', "{'flou': 22854864, 'metal': 22854865, 'kraft': 22854866, 'papier': 22854867, 'environnement': 22854868, 'mal_croppe': 22854869, 'Teint_Dans_La_Masse': 22854870, 'plastique': 22854871, 'autre_refus': 22854872, 'Carton_brun': 22854873, 'Carton_gris': 22854874, 'cartonnette': 22854875}", None, None, None, None, '2815393'), ('4302', '22854863', '1357363650', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363401', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363384', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363381', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363379', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363377', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363376', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363358', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363356', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363353', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363351', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363348', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363345', None, None, None, None, None, '2815393')] time used for this insertion : 0.014786958694458008 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3844120502471924 time spend to save output : 0.015076398849487305 total time spend for step 1 : 1.3994884490966797 step2:final Sat May 10 03:58:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22854863) 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 22854863 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1357362687,1357362685,1357362683,1357362682,1357362720,1357362717,1357362716,1357362715,1357362714,1357362774,1357362770,1357362767,1357362764,1357362808,1357362806,1357362802,1357362799,1357362797,1357362793,1357362828,1357362826,1357362823,1357362888,1357362886,1357362883,1357362881,1357362879,1357362876,1357362926,1357362923,1357362921,1357362919,1357362918,1357363207,1357363197,1357363194,1357363191,1357363186,1357363268,1357363266,1357363263,1357363260,1357363257,1357363254,1357363294,1357363292,1357363358,1357363356,1357363353,1357363351,1357363348,1357363345,1357363401,1357363384,1357363381,1357363379,1357363377,1357363376,1357363650); 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([22854863]) Inside saveOutput : final : False verbose : True original output for save of step final : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} new output for save of step final : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} [1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345] map_info['map_portfolio_photo'] : {22854863: [1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345, 1357363294, 1357363292, 1357363268, 1357363266, 1357363263, 1357363260, 1357363257, 1357363254, 1357363207, 1357363197, 1357363194, 1357363191, 1357363186, 1357362926, 1357362923, 1357362921, 1357362919, 1357362918, 1357362888, 1357362886, 1357362883, 1357362881, 1357362879, 1357362876, 1357362828, 1357362826, 1357362823, 1357362808, 1357362806, 1357362802, 1357362799, 1357362797, 1357362793, 1357362774, 1357362770, 1357362767, 1357362764, 1357362720, 1357362717, 1357362716, 1357362715, 1357362714, 1357362687, 1357362685, 1357362683, 1357362682]} final : False mtd_id 4302 list_pids : [1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345] Looping around the photos to save general results len do output : 13 /1357363650.Didn't retrieve data . /1357363401.Didn't retrieve data . /1357363384.Didn't retrieve data . /1357363381.Didn't retrieve data . /1357363379.Didn't retrieve data . /1357363377.Didn't retrieve data . /1357363376.Didn't retrieve data . /1357363358.Didn't retrieve data . /1357363356.Didn't retrieve data . /1357363353.Didn't retrieve data . /1357363351.Didn't retrieve data . /1357363348.Didn't retrieve data . /1357363345.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, '2815393') ('4302', '22854863', '1357363650', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363401', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363384', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363381', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363379', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363377', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363376', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363358', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363356', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363353', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363351', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363348', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363345', None, None, None, None, None, '2815393') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '22854863', '1357363650', '0.04621544358878052', None, None, None, None, '2815393'), ('4302', '22854863', '1357363401', '0.04621544358878052', None, None, None, None, '2815393'), ('4302', '22854863', '1357363384', '0.04621544358878052', None, None, None, None, '2815393'), ('4302', '22854863', '1357363381', '0.04621544358878052', None, None, None, None, '2815393'), ('4302', '22854863', '1357363379', '0.04621544358878052', None, None, None, None, '2815393'), ('4302', '22854863', '1357363377', '0.04621544358878052', None, None, None, None, '2815393'), ('4302', '22854863', '1357363376', '0.04621544358878052', None, None, None, None, '2815393'), ('4302', '22854863', '1357363358', '0.04621544358878052', None, None, None, None, '2815393'), ('4302', '22854863', '1357363356', '0.04621544358878052', None, None, None, None, '2815393'), ('4302', '22854863', '1357363353', '0.04621544358878052', None, None, None, None, '2815393'), ('4302', '22854863', '1357363351', '0.04621544358878052', None, None, None, None, '2815393'), ('4302', '22854863', '1357363348', '0.04621544358878052', None, None, None, None, '2815393'), ('4302', '22854863', '1357363345', '0.04621544358878052', None, None, None, None, '2815393')] time used for this insertion : 0.01659560203552246 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06915616989135742 time spend to save output : 0.017275094985961914 total time spend for step 2 : 0.08643126487731934 step3:velours_tree Sat May 10 03:58:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22854863: [{'flou': 22854864, 'metal': 22854865, 'kraft': 22854866, 'papier': 22854867, 'environnement': 22854868, 'mal_croppe': 22854869, 'Teint_Dans_La_Masse': 22854870, 'plastique': 22854871, 'autre_refus': 22854872, 'Carton_brun': 22854873, 'Carton_gris': 22854874, 'cartonnette': 22854875}]} input_args_next_step : {22854863: ()} output_args : {22854863: [{'flou': 22854864, 'metal': 22854865, 'kraft': 22854866, 'papier': 22854867, 'environnement': 22854868, 'mal_croppe': 22854869, 'Teint_Dans_La_Masse': 22854870, 'plastique': 22854871, 'autre_refus': 22854872, 'Carton_brun': 22854873, 'Carton_gris': 22854874, 'cartonnette': 22854875}]} args : 22854863 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 22854864, 'metal': 22854865, 'kraft': 22854866, 'papier': 22854867, 'environnement': 22854868, 'mal_croppe': 22854869, 'Teint_Dans_La_Masse': 22854870, 'plastique': 22854871, 'autre_refus': 22854872, 'Carton_brun': 22854873, 'Carton_gris': 22854874, 'cartonnette': 22854875},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22854863) 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([22854863]) 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.27879858016967773 time spend to save output : 4.887580871582031e-05 total time spend for step 3 : 0.27884745597839355 step4:send_mail_cod Sat May 10 03:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} input_args_next_step : {1357363650: ()} output_args : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} args : 1357363650 depend.output_id : 0 input_args_next_step : {1357363650: ('0.04621544358878052',), 1357363401: ()} output_args : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} args : 1357363401 depend.output_id : 0 input_args_next_step : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ()} output_args : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} args : 1357363384 depend.output_id : 0 input_args_next_step : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ()} output_args : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} args : 1357363381 depend.output_id : 0 input_args_next_step : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ()} output_args : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} args : 1357363379 depend.output_id : 0 input_args_next_step : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ()} output_args : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} args : 1357363377 depend.output_id : 0 input_args_next_step : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ()} output_args : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} args : 1357363376 depend.output_id : 0 input_args_next_step : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ()} output_args : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} args : 1357363358 depend.output_id : 0 input_args_next_step : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ()} output_args : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} args : 1357363356 depend.output_id : 0 input_args_next_step : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ()} output_args : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} args : 1357363353 depend.output_id : 0 input_args_next_step : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ()} output_args : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} args : 1357363351 depend.output_id : 0 input_args_next_step : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ()} output_args : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} args : 1357363348 depend.output_id : 0 input_args_next_step : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ()} output_args : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',)} args : 1357363345 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 : {22854863: [{'flou': 22854864, 'metal': 22854865, 'kraft': 22854866, 'papier': 22854867, 'environnement': 22854868, 'mal_croppe': 22854869, 'Teint_Dans_La_Masse': 22854870, 'plastique': 22854871, 'autre_refus': 22854872, 'Carton_brun': 22854873, 'Carton_gris': 22854874, 'cartonnette': 22854875}]} input_args_next_step : {1357363650: ('0.04621544358878052',), 1357363401: ('0.04621544358878052',), 1357363384: ('0.04621544358878052',), 1357363381: ('0.04621544358878052',), 1357363379: ('0.04621544358878052',), 1357363377: ('0.04621544358878052',), 1357363376: ('0.04621544358878052',), 1357363358: ('0.04621544358878052',), 1357363356: ('0.04621544358878052',), 1357363353: ('0.04621544358878052',), 1357363351: ('0.04621544358878052',), 1357363348: ('0.04621544358878052',), 1357363345: ('0.04621544358878052',), 22854863: ()} output_args : {22854863: [{'flou': 22854864, 'metal': 22854865, 'kraft': 22854866, 'papier': 22854867, 'environnement': 22854868, 'mal_croppe': 22854869, 'Teint_Dans_La_Masse': 22854870, 'plastique': 22854871, 'autre_refus': 22854872, 'Carton_brun': 22854873, 'Carton_gris': 22854874, 'cartonnette': 22854875}]} args : 22854863 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 :14, first value : ('0.04621544358878052',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22854863) 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 (1357363650,1357363401,1357363384,1357363381,1357363379,1357363377,1357363376,1357363358,1357363356,1357363353,1357363351,1357363348,1357363345) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1357363345 begin to download photo : 1357363353 begin to download photo : 1357363376 begin to download photo : 1357363381 begin to download photo : 1357363650 download finish for photo 1357363650 download finish for photo 1357363381 begin to download photo : 1357363384 download finish for photo 1357363345 begin to download photo : 1357363348 download finish for photo 1357363353 begin to download photo : 1357363356 download finish for photo 1357363376 begin to download photo : 1357363377 download finish for photo 1357363356 begin to download photo : 1357363358 download finish for photo 1357363384 begin to download photo : 1357363401 download finish for photo 1357363348 begin to download photo : 1357363351 download finish for photo 1357363377 begin to download photo : 1357363379 download finish for photo 1357363401 download finish for photo 1357363351 download finish for photo 1357363358 download finish for photo 1357363379 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette228548641746842339/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P22854863_10-05-2025_03_58_59.pdf 22854864 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=22854864 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228548641746842339 22854865 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=22854865 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357363229: '1746841992_707225_1357362823_105a353f6a7579782179c3b4fb44cb22_rle_crop_3792660941_0.png'} change filename to text .imagette228548651746842339/ imagette228548651746842339/1746841992_707225_1357362823_105a353f6a7579782179c3b4fb44cb22_rle_crop_3792660941_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/6cbc6fee87024169584d1020800e315e_43887280.png imagette228548651746842339 22854866 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=22854866 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357362952: '1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660652_0.png'} change filename to text .imagette228548661746842339/ imagette228548661746842339/1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660652_0.png.png imagette228548691746842339/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/46ca98a8295d4b783f765c25824fdbb9_70178871.png imagette228548661746842339 22854869 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=22854869 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228548691746842339 22854871 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=22854871 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357362951: '1746841933_706780_1357362802_c1451008f9fee7b6ea2a9234dbefb80b_rle_crop_3792660678_0.png'} change filename to text .imagette228548711746842339/ imagette228548711746842339/1746841933_706780_1357362802_c1451008f9fee7b6ea2a9234dbefb80b_rle_crop_3792660678_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/b66f1e687ef87d963a88f1ea5a6ef229_60256665.png imagette228548711746842339 22854872 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=22854872 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357362943: '1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660648_0.png', 1357363223: '1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660923_0.png', 1357363224: '1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660916_0.png', 1357363278: '1746842053_707852_1357362883_024bb55768b652ea17d754e1335486a9_rle_crop_3792661186_0.png', 1357363329: '1746842126_4151155_1357363191_a24bbdc72a67ac37d4af67e534c760f0_rle_crop_3792665600_0.png', 1357363920: '1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680325_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/31bddbf8542872351a609e561d83498a_17622086.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/94e5041a93e7fa11933287f017f6fc16_90155362.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/fbec8bbe71c7ea3925c5912d9cc01de4_62834249.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/9227e067111f6246131ed6a3ae6b5b51_11597243.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/c8136da2722122b16aafa8f51756a88e_93772596.png change filename to text .imagette228548721746842339/ imagette228548721746842339/1746842126_4151155_1357363191_a24bbdc72a67ac37d4af67e534c760f0_rle_crop_3792665600_0.png.png imagette228548721746842339/1746842053_707852_1357362883_024bb55768b652ea17d754e1335486a9_rle_crop_3792661186_0.png.png imagette228548721746842339/1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660648_0.png.png imagette228548721746842339/1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660916_0.png.png imagette228548721746842339/1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660923_0.png.png imagette228548721746842339/1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680325_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/5bdd8642e46368221228deea3e70d81a_9942125.png imagette228548721746842339 22854875 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=22854875 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357362947: '1746841933_706780_1357362806_90900f51b2dd67420cb989e132c0ce30_rle_crop_3792660665_0.png', 1357362948: '1746841933_706780_1357362802_c1451008f9fee7b6ea2a9234dbefb80b_rle_crop_3792660679_0.png', 1357362949: '1746841933_706780_1357362797_42e521b0b0778920bd12858374afecca_rle_crop_3792660712_0.png', 1357363235: '1746842004_4148145_1357362808_fff419334b820e9d80bd02e5b9656c38_rle_crop_3792660957_0.png', 1357363236: '1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660981_0.png', 1357363237: '1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660972_0.png', 1357363279: '1746842053_707852_1357362881_70a07c5b7811718b04cdf34ed6ffec7c_rle_crop_3792661199_0.png', 1357363280: '1746842053_707852_1357362879_567472a2e5fffe277d71968b831aa671_rle_crop_3792661210_0.png', 1357363281: '1746842053_707852_1357362876_979712300dce78d2b098a7af1dca48ac_rle_crop_3792661221_0.png', 1357363331: '1746842126_4151155_1357363197_0760143af0b95393f3392b02cb9ae0ed_rle_crop_3792665581_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/73d2d6d594187d764e5c17f20951bb26_76201195.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/62b815e389b4b6afca6ea5eae449b615_50885094.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/d306183604c482b3d9d60f597b1288e3_25871394.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/a766b2f336dfa2d12af6c8a6d0fbad9a_38175475.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/46750094d5ae5713b79687374aa15c2f_1010034.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/e2d3b12973545e0622fd03f42e9c3cd0_9238018.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/c9feb11033213ee88a6f6de32aaa17c0_76879794.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/a81301dd1f8c460c5515df1f32038cf3_75962837.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/a921e67b17a25e2964df6190839e77e6_66416457.png change filename to text .imagette228548751746842339/ imagette228548751746842339/1746841933_706780_1357362802_c1451008f9fee7b6ea2a9234dbefb80b_rle_crop_3792660679_0.png.png imagette228548751746842339/1746842053_707852_1357362876_979712300dce78d2b098a7af1dca48ac_rle_crop_3792661221_0.png.png imagette228548751746842339/1746841933_706780_1357362797_42e521b0b0778920bd12858374afecca_rle_crop_3792660712_0.png.png imagette228548751746842339/1746842053_707852_1357362881_70a07c5b7811718b04cdf34ed6ffec7c_rle_crop_3792661199_0.png.png imagette228548751746842339/1746842053_707852_1357362879_567472a2e5fffe277d71968b831aa671_rle_crop_3792661210_0.png.png imagette228548751746842339/1746841933_706780_1357362806_90900f51b2dd67420cb989e132c0ce30_rle_crop_3792660665_0.png.png imagette228548751746842339/1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660981_0.png.png imagette228548751746842339/1746842126_4151155_1357363197_0760143af0b95393f3392b02cb9ae0ed_rle_crop_3792665581_0.png.png imagette228548751746842339/1746842004_4148145_1357362808_fff419334b820e9d80bd02e5b9656c38_rle_crop_3792660957_0.png.png imagette228548751746842339/1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660972_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/e741095c64deaf1367b81942b2c3c914_93261113.png imagette228548751746842339 22854870 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=22854870 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357363501: '1746842246_4155268_1357363268_6a03bf2e858248a8b688bd0c5b1a43cc_rle_crop_3792673121_0.png', 1357363914: '1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680363_0.png', 1357363913: '1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680355_0.png', 1357363911: '1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680321_0.png', 1357363910: '1746842290_710489_1357363266_a2d578612f2fce744446285edb36b2e9_rle_crop_3792680317_0.png', 1357363909: '1746842290_710489_1357363266_a2d578612f2fce744446285edb36b2e9_rle_crop_3792680312_0.png', 1357363568: '1746842233_709620_1357362714_d8bdb23a478c55c7f816e9d8d576faff_rle_crop_3792673181_0.png', 1357363567: '1746842233_709620_1357362714_d8bdb23a478c55c7f816e9d8d576faff_rle_crop_3792673178_0.png', 1357363566: '1746842233_709620_1357362715_5362d3ebdbf8ae01c75d4e98fe0a3ca7_rle_crop_3792673165_0.png', 1357363565: '1746842233_709620_1357362715_5362d3ebdbf8ae01c75d4e98fe0a3ca7_rle_crop_3792673160_0.png', 1357363564: '1746842233_709620_1357362716_1b034e8b21eeaa78b6085cb840af227d_rle_crop_3792673155_0.png', 1357363563: '1746842233_709620_1357362717_d522d3775d41efc5f59f49aa73e32096_rle_crop_3792673143_0.png', 1357363562: '1746842233_709620_1357362717_d522d3775d41efc5f59f49aa73e32096_rle_crop_3792673144_0.png', 1357363561: '1746842233_709620_1357362774_60a416675a3010040f6a2c49559b3e99_rle_crop_3792673129_0.png', 1357362941: '1746841933_706780_1357362793_789c6f0c2dbce35ceeb3fcb3a91d21db_rle_crop_3792660730_0.png', 1357363337: '1746842125_292572_1357362919_dd41167877e864d4a3a8bbe0e3bb8222_bib_crop_3792665558_0.jpg', 1357363335: '1746842125_292572_1357362919_dd41167877e864d4a3a8bbe0e3bb8222_bib_crop_3792665560_0.jpg', 1357363334: '1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665539_0.jpg', 1357363333: '1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665538_0.jpg', 1357363328: '1746842126_4151155_1357363186_378bf460dba31153b4f34608a2df65e2_rle_crop_3792665628_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/ef9832e5bd2c9d4221063c3f22334402_19725414.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/50dd9d9784774435721b100b9c48a7c8_87203866.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/4d59afdca4626ea0993f6d9493d174b2_93719047.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/92084093aff846677f62c79e440be911_73478108.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/d1bdd0d8f559f05c9af70ed144efb995_12840878.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/70e050ed7a5822d5c9dc1b2f704f9abf_11497527.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/1ffbac992d5046a53e071a0b10a5830e_8647092.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/c8c878bdd1523c11d8192ff060f68c5d_57556267.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/6ace68aa1d38cb12acbda35453e32aa2_19176557.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/91ee405266c1dbd63a0b322352618e93_40359009.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/57bb5d36768f24b92d1716468dd3c924_24466929.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/f5aa637dc89596451959fcc8fdd25051_49703712.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/6ca4cc7129624a63f94cb675a4e29bed_68054707.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/9e0873562b6040174c8b7e45013bc0c7_42631932.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/9c968cca5034f7e7d4a91445e9e95f07_41612163.png change filename to text .wget -O 16.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/f20f53b51a9b5d9b2251616997031d19_14785917.jpg change filename to text .wget -O 17.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/b08b22249f36b31069626052f4faeb73_51496956.jpg change filename to text .wget -O 18.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/84778300ba5d7badbfba181dd62ad4ea_78436259.jpg change filename to text .wget -O 19.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/1a41baa74d8cf213f4ff69d460a487c6_7283078.jpg change filename to text .imagette228548701746842341/ imagette228548701746842341/1746842246_4155268_1357363268_6a03bf2e858248a8b688bd0c5b1a43cc_rle_crop_3792673121_0.png.png imagette228548701746842341/1746842125_292572_1357362919_dd41167877e864d4a3a8bbe0e3bb8222_bib_crop_3792665558_0.jpg.jpg imagette228548701746842341/1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680363_0.png.png imagette228548701746842341/1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680355_0.png.png imagette228548701746842341/1746842233_709620_1357362774_60a416675a3010040f6a2c49559b3e99_rle_crop_3792673129_0.png.png imagette228548701746842341/1746842233_709620_1357362717_d522d3775d41efc5f59f49aa73e32096_rle_crop_3792673143_0.png.png imagette228548701746842341/1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665539_0.jpg.jpg imagette228548701746842341/1746842126_4151155_1357363186_378bf460dba31153b4f34608a2df65e2_rle_crop_3792665628_0.png.png imagette228548701746842341/1746842233_709620_1357362717_d522d3775d41efc5f59f49aa73e32096_rle_crop_3792673144_0.png.png imagette228548701746842341/1746842233_709620_1357362715_5362d3ebdbf8ae01c75d4e98fe0a3ca7_rle_crop_3792673160_0.png.png imagette228548701746842341/1746842125_292572_1357362919_dd41167877e864d4a3a8bbe0e3bb8222_bib_crop_3792665560_0.jpg.jpg imagette228548701746842341/1746842290_710489_1357363266_a2d578612f2fce744446285edb36b2e9_rle_crop_3792680317_0.png.png imagette228548701746842341/1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680321_0.png.png imagette228548701746842341/1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665538_0.jpg.jpg imagette228548701746842341/1746841933_706780_1357362793_789c6f0c2dbce35ceeb3fcb3a91d21db_rle_crop_3792660730_0.png.png imagette228548701746842341/1746842233_709620_1357362715_5362d3ebdbf8ae01c75d4e98fe0a3ca7_rle_crop_3792673165_0.png.png imagette228548701746842341/1746842233_709620_1357362714_d8bdb23a478c55c7f816e9d8d576faff_rle_crop_3792673178_0.png.png imagette228548701746842341/1746842290_710489_1357363266_a2d578612f2fce744446285edb36b2e9_rle_crop_3792680312_0.png.png imagette228548701746842341/1746842233_709620_1357362716_1b034e8b21eeaa78b6085cb840af227d_rle_crop_3792673155_0.png.png imagette228548701746842341/1746842233_709620_1357362714_d8bdb23a478c55c7f816e9d8d576faff_rle_crop_3792673181_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/0fb38a7f781ecc09719a0f469798c186_50947074.png imagette228548701746842341 22854873 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=22854873 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357363336: '1746842126_4151155_1357363186_378bf460dba31153b4f34608a2df65e2_rle_crop_3792665629_0.png', 1357363952: '1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680352_0.png', 1357363951: '1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680353_0.png', 1357363950: '1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680356_0.png', 1357363949: '1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680358_0.png', 1357363948: '1746842290_710489_1357363260_38f4913abf6bb2b4619f72264d2d0749_rle_crop_3792680339_0.png', 1357363947: '1746842290_710489_1357363260_38f4913abf6bb2b4619f72264d2d0749_rle_crop_3792680342_0.png', 1357363341: '1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665534_0.jpg', 1357363340: '1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665542_0.jpg', 1357362950: '1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660647_0.png', 1357363283: '1746842053_707852_1357362883_024bb55768b652ea17d754e1335486a9_rle_crop_3792661185_0.png', 1357363282: '1746842053_707852_1357362886_33850513fb35194c202d0f734dc54741_rle_crop_3792661175_0.png', 1357363241: '1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660979_0.png', 1357363240: '1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660985_0.png', 1357363239: '1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660976_0.png', 1357363227: '1746841992_707225_1357362823_105a353f6a7579782179c3b4fb44cb22_rle_crop_3792660942_0.png', 1357363226: '1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660922_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/9905acb7be309fb0cd52a7553187a109_26600213.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/aa7461d2cf62dde7d11098bbd9900fe2_23756891.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/0f47781141bb03feaf2e830f49436182_64702428.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/297fa1f9797b64ec56c4cc6d0626958f_81068889.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/2e82a9101205ce234f3631b12ae9f1c8_59341522.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/04159a95b571b4e41ce59ef61789b3cb_51664981.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/a5627d0bce0aa2efa48e30dae007c5a6_98185469.png change filename to text .wget -O 8.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/71e6e401f2cb48e5fb33da9e1a100296_70230675.jpg change filename to text .wget -O 9.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/fc120a0e5b3ad40c47c8f74240a38af5_83983912.jpg change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/acde6b83f2e4a044e616a10f967721b3_31499369.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/42102080a5f1830b14ec5f4f09546e40_59275798.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/bafddfa47f615b31ab5e1c6ed8ee6068_59331056.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/edb9c709aadac37655e69cd56e609e5b_3843724.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/ee38876567af24fe19e4aba610e0498b_75691436.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/8e8d9260ac90383fe42e1b4f4c60d825_2101365.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/1a3e603e5d6673e1d141983f61f3a14a_72840142.png change filename to text .imagette228548731746842343/ imagette228548731746842343/1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665534_0.jpg.jpg imagette228548731746842343/1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660647_0.png.png imagette228548731746842343/1746842290_710489_1357363260_38f4913abf6bb2b4619f72264d2d0749_rle_crop_3792680339_0.png.png imagette228548731746842343/1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680358_0.png.png imagette228548731746842343/1746842053_707852_1357362886_33850513fb35194c202d0f734dc54741_rle_crop_3792661175_0.png.png imagette228548731746842343/1746841992_707225_1357362823_105a353f6a7579782179c3b4fb44cb22_rle_crop_3792660942_0.png.png imagette228548731746842343/1746842290_710489_1357363260_38f4913abf6bb2b4619f72264d2d0749_rle_crop_3792680342_0.png.png imagette228548731746842343/1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660979_0.png.png imagette228548731746842343/1746842053_707852_1357362883_024bb55768b652ea17d754e1335486a9_rle_crop_3792661185_0.png.png imagette228548731746842343/1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660922_0.png.png imagette228548731746842343/1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680353_0.png.png imagette228548731746842343/1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660985_0.png.png imagette228548731746842343/1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680352_0.png.png imagette228548731746842343/1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665542_0.jpg.jpg imagette228548731746842343/1746842126_4151155_1357363186_378bf460dba31153b4f34608a2df65e2_rle_crop_3792665629_0.png.png imagette228548731746842343/1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680356_0.png.png imagette228548731746842343/1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660976_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/8c8c143ec9cd0e91373fbf244863a81f_6912281.png imagette228548731746842343 22854874 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=22854874 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357362944: '1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660649_0.png', 1357363225: '1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660927_0.png', 1357363233: '1746842004_4148145_1357362808_fff419334b820e9d80bd02e5b9656c38_rle_crop_3792660967_0.png', 1357363338: '1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665529_0.jpg', 1357363339: '1746842125_292572_1357362919_dd41167877e864d4a3a8bbe0e3bb8222_bib_crop_3792665556_0.jpg', 1357363574: '1746842233_709620_1357362716_1b034e8b21eeaa78b6085cb840af227d_rle_crop_3792673150_0.png', 1357363928: '1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680324_0.png', 1357363929: '1746842290_710489_1357363260_38f4913abf6bb2b4619f72264d2d0749_rle_crop_3792680338_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/225a65ac982806dbf146897f7c7cab27_50544898.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/0b60de896814d528cf8ab652057c515a_24484099.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/10f9aa2e3f30909ca642af7243b41b0e_9010446.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/0b5e632f40a4c6f521acd862c4d9d6d1_13395199.jpg change filename to text .wget -O 5.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/8b13d5fdb44f7f653c98c120d76627cb_47016730.jpg change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/e494f666aeca9f20feadfc6baac21c2a_37377852.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/bc24d733f4a62cae74a3e858a3fa0196_14597166.png change filename to text .imagette228548741746842343/ imagette228548741746842343/1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660649_0.png.png imagette228548741746842343/1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660927_0.png.png imagette228548741746842343/1746842290_710489_1357363260_38f4913abf6bb2b4619f72264d2d0749_rle_crop_3792680338_0.png.png imagette228548741746842343/1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665529_0.jpg.jpg imagette228548741746842343/1746842004_4148145_1357362808_fff419334b820e9d80bd02e5b9656c38_rle_crop_3792660967_0.png.png imagette228548741746842343/1746842233_709620_1357362716_1b034e8b21eeaa78b6085cb840af227d_rle_crop_3792673150_0.png.png imagette228548741746842343/1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680324_0.png.png imagette228548741746842343/1746842125_292572_1357362919_dd41167877e864d4a3a8bbe0e3bb8222_bib_crop_3792665556_0.jpg.jpg wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/70c55836c83ca6d52e3ac19af169faa1_11955308.png imagette228548741746842343 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22854863 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22854876,22854877,22854878,22854879,22854880,22854881,22854882,22854883,22854884,22854885,22854886,22854887?tags=flou,metal,kraft,papier,environnement,mal_croppe,Teint_Dans_La_Masse,plastique,autre_refus,Carton_brun,Carton_gris,cartonnette your option no_mail is active, we will not send the real mail to your client args[1357363650] : ('0.04621544358878052',) no score found for photo 1357363650 We are sending mail with results at report@fotonower.com args[1357363401] : ('0.04621544358878052',) no score found for photo 1357363401 We are sending mail with results at report@fotonower.com args[1357363384] : ('0.04621544358878052',) no score found for photo 1357363384 We are sending mail with results at report@fotonower.com args[1357363381] : ('0.04621544358878052',) no score found for photo 1357363381 We are sending mail with results at report@fotonower.com args[1357363379] : ('0.04621544358878052',) no score found for photo 1357363379 We are sending mail with results at report@fotonower.com args[1357363377] : ('0.04621544358878052',) no score found for photo 1357363377 We are sending mail with results at report@fotonower.com args[1357363376] : ('0.04621544358878052',) no score found for photo 1357363376 We are sending mail with results at report@fotonower.com args[1357363358] : ('0.04621544358878052',) no score found for photo 1357363358 We are sending mail with results at report@fotonower.com args[1357363356] : ('0.04621544358878052',) no score found for photo 1357363356 We are sending mail with results at report@fotonower.com args[1357363353] : ('0.04621544358878052',) no score found for photo 1357363353 We are sending mail with results at report@fotonower.com args[1357363351] : ('0.04621544358878052',) no score found for photo 1357363351 We are sending mail with results at report@fotonower.com args[1357363348] : ('0.04621544358878052',) no score found for photo 1357363348 We are sending mail with results at report@fotonower.com args[1357363345] : ('0.04621544358878052',) no score found for photo 1357363345 We are sending mail with results at report@fotonower.com refus_total : 0.04621544358878052 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=22854863 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_P22854863_10-05-2025_03_58_59.pdf results_Auto_P22854863_10-05-2025_03_58_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22854863_10-05-2025_03_58_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22854863','results_Auto_P22854863_10-05-2025_03_58_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22854863_10-05-2025_03_58_59.pdf','pdf','','0.28','0.04621544358878052') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22854863]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345] map_info['map_portfolio_photo'] : {22854863: [1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345, 1357363294, 1357363292, 1357363268, 1357363266, 1357363263, 1357363260, 1357363257, 1357363254, 1357363207, 1357363197, 1357363194, 1357363191, 1357363186, 1357362926, 1357362923, 1357362921, 1357362919, 1357362918, 1357362888, 1357362886, 1357362883, 1357362881, 1357362879, 1357362876, 1357362828, 1357362826, 1357362823, 1357362808, 1357362806, 1357362802, 1357362799, 1357362797, 1357362793, 1357362774, 1357362770, 1357362767, 1357362764, 1357362720, 1357362717, 1357362716, 1357362715, 1357362714, 1357362687, 1357362685, 1357362683, 1357362682]} final : False mtd_id 4302 list_pids : [1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345] 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, '2815393') ('4302', '22854863', '1357363650', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363401', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363384', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363381', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363379', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363377', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363376', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363358', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363356', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363353', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363351', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363348', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363345', None, None, None, None, None, '2815393') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '22854863', '1357363650', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363401', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363384', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363381', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363379', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363377', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363376', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363358', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363356', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363353', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363351', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363348', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363345', None, None, None, None, None, '2815393')] time used for this insertion : 0.016887187957763672 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.511259078979492 time spend to save output : 0.017158985137939453 total time spend for step 4 : 6.528418064117432 step5:split_time_score Sat May 10 03:59:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22854863'] 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 : [('22854863',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22854863) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1357363650: {'path': 'temp/1746842339_2745112_1357363650_329d344271bda4e7ed1c8e4174d8b8bb.jpg', 'extension': 'jpg'}, 1357363381: {'path': 'temp/1746842339_2745112_1357363381_27236d8262833c5e193d20c22c1e3eda.jpg', 'extension': 'jpg'}, 1357363384: {'path': 'temp/1746842339_2745112_1357363384_ee0f75a30c56f23aa30c510450e3fba0.jpg', 'extension': 'jpg'}, 1357363401: {'path': 'temp/1746842339_2745112_1357363401_29889d11a40738dfb6a01ed9499302f8.jpg', 'extension': 'jpg'}, 1357363345: {'path': 'temp/1746842339_2745112_1357363345_f566ab1051fab4d2e57e3564bc2030d8.jpg', 'extension': 'jpg'}, 1357363348: {'path': 'temp/1746842339_2745112_1357363348_12559a4a19d44e10d00229d65e9e50bf.jpg', 'extension': 'jpg'}, 1357363351: {'path': 'temp/1746842339_2745112_1357363351_899d4035898c4d6cc7a1fba6f12a8352.jpg', 'extension': 'jpg'}, 1357363353: {'path': 'temp/1746842339_2745112_1357363353_086e964855a512b79c590af1b9c6d26b.jpg', 'extension': 'jpg'}, 1357363356: {'path': 'temp/1746842339_2745112_1357363356_bdda5a42a2f659a6950898eb455abf5f.jpg', 'extension': 'jpg'}, 1357363358: {'path': 'temp/1746842339_2745112_1357363358_7b7dd96656c63d2f7054d2459332401c.jpg', 'extension': 'jpg'}, 1357363376: {'path': 'temp/1746842339_2745112_1357363376_bec131ca784b4b2f97a1c36ef3767b5b.jpg', 'extension': 'jpg'}, 1357363377: {'path': 'temp/1746842339_2745112_1357363377_5f186cfa8215e2368564c4ba9e463225.jpg', 'extension': 'jpg'}, 1357363379: {'path': 'temp/1746842339_2745112_1357363379_3c40798dfea54df3321c57e0de0c940e.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 = 22854863; (('arc_en_ciel_jrm_live',), ('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 = 22854863 group by h (('03', 59),) 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=22854863 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 (22854863) 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 (22854863) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10052025 22854863 Nombre de photos uploadées : 59 / 23040 (0%) 10052025 22854863 Nombre de photos taguées (types de déchets): 0 / 59 (0%) 10052025 22854863 Nombre de photos taguées (volume) : 0 / 59 (0%) [{'photo_id': 1357362687, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/9568060d23850d107bc4623a119b8388.jpg', 'username': None, 'uploaded_at': 1746841567, 'text': 'image_10052025_03_45_14_9127.jpg'}, {'photo_id': 1357362685, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/d49d20e4716e8ef83e44ec541db15acc.jpg', 'username': None, 'uploaded_at': 1746841567, 'text': 'image_10052025_03_45_24_10140.jpg'}, {'photo_id': 1357362683, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/028edda439e459e0ae21c163a94c0f75.jpg', 'username': None, 'uploaded_at': 1746841567, 'text': 'image_10052025_03_45_34_10138.jpg'}, {'photo_id': 1357362682, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/4f7c8ff90ace45b950e9cd59c19330d5.jpg', 'username': None, 'uploaded_at': 1746841567, 'text': 'image_10052025_03_45_44_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ??????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002892732620239258 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22854863, '2025-05-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1793779,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024995803833007812 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= 1793779 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1793779, 'dashboard_run_id': 1801598, 'mtr_portfolio_id': 22853513, 'dashboard_result_id': 10465622, '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_P22853513_10-05-2025_03_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22853515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22853516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22853517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22853518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22853519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22853520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22853521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22853522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22853523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22853524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22853525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22853526, 'pht': 3726}}"}, {'dashboat_entry_day': 1793779, 'dashboard_run_id': 1801598, 'mtr_portfolio_id': 22853997, 'dashboard_result_id': 10465623, '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_P22853997_10-05-2025_03_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22854009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854016, 'pht': 3726}}"}, {'dashboat_entry_day': 1793779, 'dashboard_run_id': 1801598, 'mtr_portfolio_id': 22854384, 'dashboard_result_id': 10465624, '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_P22854384_10-05-2025_03_49_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854390, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22854393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854396, 'pht': 3726}}"}, {'dashboat_entry_day': 1793779, 'dashboard_run_id': 1801598, 'mtr_portfolio_id': 22854863, 'dashboard_result_id': 10465625, '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_P22854863_10-05-2025_03_57_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22854864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854875, '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 = 22853513 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': 2815270, 'mtr_portfolio_id': 22853513, 'created_at': datetime.datetime(2025, 5, 10, 3, 18, 59), 'result': '0.037056217519254156', 'result_long': None, 'result_double': None}] Qualite : 0.037056217519254156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22853513 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22853513_10-05-2025_03_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22853513 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_P22853513_10-05-2025_03_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22853515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22853516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22853517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22853518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22853519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22853520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22853521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22853522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22853523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22853524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22853525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22853526, 'pht': 3726}}" where mtr_portfolio_id = 22853513 and dashboard_run_id = 1801607 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`=22853513 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10465622, 0.037056217519254156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22853513_10-05-2025_03_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22853515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22853516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22853517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22853518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22853519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22853520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22853521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22853522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22853523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22853524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22853525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22853526, '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 = 22853997 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': 2815305, 'mtr_portfolio_id': 22853997, 'created_at': datetime.datetime(2025, 5, 10, 3, 32, 59), 'result': '0.040627068166049336', 'result_long': None, 'result_double': None}] Qualite : 0.040627068166049336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22853997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22853997_10-05-2025_03_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22853997 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_P22853997_10-05-2025_03_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22854009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854016, 'pht': 3726}}" where mtr_portfolio_id = 22853997 and dashboard_run_id = 1801607 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`=22853997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10465623, 0.040627068166049336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22853997_10-05-2025_03_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22854009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854016, '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 = 22854384 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': 2815344, 'mtr_portfolio_id': 22854384, 'created_at': datetime.datetime(2025, 5, 10, 3, 49, 3), 'result': '0.04338489063191088', 'result_long': None, 'result_double': None}] Qualite : 0.04338489063191088 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22854384 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22854384_10-05-2025_03_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22854384 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_P22854384_10-05-2025_03_49_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854390, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22854393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854396, 'pht': 3726}}" where mtr_portfolio_id = 22854384 and dashboard_run_id = 1801607 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`=22854384 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10465624, 0.04338489063191088, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22854384_10-05-2025_03_49_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854390, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22854393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854396, '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 = 22854863 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': 2815393, 'mtr_portfolio_id': 22854863, 'created_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'result': '0.04621544358878052', 'result_long': None, 'result_double': None}] Qualite : 0.04621544358878052 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22854863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22854863_10-05-2025_03_58_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22854863 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_P22854863_10-05-2025_03_58_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22854864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854875, 'pht': 3726}}" where mtr_portfolio_id = 22854863 and dashboard_run_id = 1801607 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`=22854863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10465625, 0.04621544358878052, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22854863_10-05-2025_03_58_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22854864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854875, '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 (22853513,22853997,22854384,22854863) result : ((1357356999,), (1357357041,), (1357357047,), (1357357068,), (1357357156,), (1357357158,), (1357357161,), (1357357175,), (1357357204,), (1357357508,), (1357357536,), (1357357561,), (1357357906,), (1357357932,), (1357357956,), (1357357983,), (1357358310,), (1357358335,), (1357358356,), (1357358358,), (1357359015,), (1357359193,), (1357359255,), (1357359257,), (1357359261,), (1357359335,), (1357359361,), (1357359386,), (1357359411,), (1357359434,), (1357360212,), (1357360372,), (1357360374,), (1357360591,), (1357360594,), (1357360653,), (1357360679,), (1357360682,), (1357360684,), (1357360687,), (1357360711,), (1357360713,), (1357360715,), (1357361002,), (1357361004,), (1357361006,), (1357361009,), (1357361012,), (1357361032,), (1357361035,), (1357361038,), (1357361040,), (1357361072,), (1357361061,), (1357361063,), (1357361065,), (1357361067,), (1357361069,), (1357361091,), (1357361095,), (1357361096,), (1357361097,), (1357361119,), (1357361120,), (1357361121,), (1357361122,), (1357361123,), (1357361149,), (1357361150,), (1357361153,), (1357361154,), (1357361157,), (1357361159,), (1357361196,), (1357361197,), (1357361199,), (1357361201,), (1357361252,), (1357361253,), (1357361254,), (1357361255,), (1357361256,), (1357361258,), (1357361292,), (1357361295,), (1357361298,), (1357361300,), (1357361324,), (1357361326,), (1357361327,), (1357361328,), (1357361330,), (1357361331,), (1357361382,), (1357361384,), (1357361386,), (1357361388,), (1357361424,), (1357361425,), (1357361427,), (1357361429,), (1357361482,), (1357361484,), (1357361510,), (1357361513,), (1357361515,), (1357361517,), (1357361519,), (1357361551,), (1357361554,), (1357361556,), (1357361558,), (1357361561,), (1357361564,), (1357361587,), (1357361589,), (1357361591,), (1357361612,), (1357361614,), (1357361618,), (1357361620,), (1357361623,), (1357361625,), (1357361676,), (1357361664,), (1357361666,), (1357361668,), (1357361670,), (1357361674,), (1357361698,), (1357361701,), (1357361703,), (1357361980,), (1357361983,), (1357361985,), (1357361996,), (1357362002,), (1357362007,), (1357362030,), (1357362031,), (1357362037,), (1357362039,), (1357362083,), (1357362085,), (1357362087,), (1357362089,), (1357362091,), (1357362092,), (1357362117,), (1357362119,), (1357362120,), (1357362148,), (1357362149,), (1357362150,), (1357362152,), (1357362154,), (1357362192,), (1357362193,), (1357362194,), (1357362195,), (1357362197,), (1357362223,), (1357362224,), (1357362242,), (1357362244,), (1357362376,), (1357362378,), (1357362380,), (1357362382,), (1357362386,), (1357362387,), (1357362448,), (1357362455,), (1357362457,), (1357362459,), (1357362512,), (1357362513,), (1357362514,), (1357362515,), (1357362517,), (1357362519,), (1357362541,), (1357362544,), (1357362546,), (1357362588,), (1357362591,), (1357362593,), (1357362595,), (1357362597,), (1357362601,), (1357362626,), (1357362628,), (1357362631,), (1357362634,), (1357362635,), (1357362690,), (1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10052025': {'nb_upload': 59, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22854863]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345] map_info['map_portfolio_photo'] : {22854863: [1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345, 1357363294, 1357363292, 1357363268, 1357363266, 1357363263, 1357363260, 1357363257, 1357363254, 1357363207, 1357363197, 1357363194, 1357363191, 1357363186, 1357362926, 1357362923, 1357362921, 1357362919, 1357362918, 1357362888, 1357362886, 1357362883, 1357362881, 1357362879, 1357362876, 1357362828, 1357362826, 1357362823, 1357362808, 1357362806, 1357362802, 1357362799, 1357362797, 1357362793, 1357362774, 1357362770, 1357362767, 1357362764, 1357362720, 1357362717, 1357362716, 1357362715, 1357362714, 1357362687, 1357362685, 1357362683, 1357362682]} final : True mtd_id 4302 list_pids : [1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345] Looping around the photos to save general results len do output : 1 /22854863Didn'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, '2815393') ('4302', '22854863', '1357363650', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363401', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363384', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363381', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363379', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363377', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363376', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363358', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363356', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363353', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363351', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363348', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363345', None, None, None, None, None, '2815393') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '22854863', 'None', None, None, None, None, '2815393'), ('4302', '22854863', '1357363650', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363401', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363384', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363381', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363379', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363377', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363376', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363358', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363356', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363353', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363351', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363348', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363345', None, None, None, None, None, '2815393')] time used for this insertion : 0.016994237899780273 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.35849809646606445 time spend to save output : 0.01728677749633789 total time spend for step 5 : 0.37578487396240234 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 (2815393) 2.23user 2.50system 0:11.26elapsed 42%CPU (0avgtext+0avgdata 160580maxresident)k 488inputs+15184outputs (3major+73092minor)pagefaults 0swaps