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 : 14026 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 (2552297) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2552297) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20262935 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2552297'] with mtr_portfolio_ids : ['20262935'] and first list_photo_ids : [] new path : /proc/14026/ Name: python3 Umask: 0002 State: R (running) Tgid: 14026 Ngid: 0 Pid: 14026 PPid: 14025 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 14026 NSpid: 14026 NSpgid: 12173 NSsid: 12173 VmPeak: 1106660 kB VmSize: 1106660 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99252 kB VmRSS: 99252 kB RssAnon: 59732 kB RssFile: 39520 kB RssShmem: 0 kB VmData: 865412 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 600 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: 43 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '14026', 'Ngid': '0', 'Pid': '14026', 'PPid': '14025', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '14026', 'NSpid': '14026', 'NSpgid': '12173', 'NSsid': '12173', 'VmPeak': '1106660 kB', 'VmSize': '1106660 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99252 kB', 'VmRSS': '99252 kB', 'RssAnon': '59732 kB', 'RssFile': '39520 kB', 'RssShmem': '0 kB', 'VmData': '865412 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '43', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '14026', '1106660', '0', '1106660', '865412', '99252', b'', 'marlene', '2552297') 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 (20262935) 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 (2552297 ) ) 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 (20262935) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1334968712, 'portfolio_id': 20262935}, {'photo_id': 1334968709, 'portfolio_id': 20262935}, {'photo_id': 1334968704, 'portfolio_id': 20262935}, {'photo_id': 1334968632, 'portfolio_id': 20262935}, {'photo_id': 1334968628, 'portfolio_id': 20262935}, {'photo_id': 1334968624, 'portfolio_id': 20262935}, {'photo_id': 1334968623, 'portfolio_id': 20262935}, {'photo_id': 1334968397, 'portfolio_id': 20262935}, {'photo_id': 1334968394, 'portfolio_id': 20262935}, {'photo_id': 1334968389, 'portfolio_id': 20262935}, {'photo_id': 1334968383, 'portfolio_id': 20262935}, {'photo_id': 1334968381, 'portfolio_id': 20262935}, {'photo_id': 1334968288, 'portfolio_id': 20262935}, {'photo_id': 1334968272, 'portfolio_id': 20262935}, {'photo_id': 1334968260, 'portfolio_id': 20262935}, {'photo_id': 1334968155, 'portfolio_id': 20262935}, {'photo_id': 1334968153, 'portfolio_id': 20262935}, {'photo_id': 1334968052, 'portfolio_id': 20262935}, {'photo_id': 1334968028, 'portfolio_id': 20262935}, {'photo_id': 1334968026, 'portfolio_id': 20262935}, {'photo_id': 1334968023, 'portfolio_id': 20262935}, {'photo_id': 1334968021, 'portfolio_id': 20262935}, {'photo_id': 1334967966, 'portfolio_id': 20262935}, {'photo_id': 1334967960, 'portfolio_id': 20262935}, {'photo_id': 1334967932, 'portfolio_id': 20262935}, {'photo_id': 1334967927, 'portfolio_id': 20262935}, {'photo_id': 1334967917, 'portfolio_id': 20262935}, {'photo_id': 1334967643, 'portfolio_id': 20262935}, {'photo_id': 1334967641, 'portfolio_id': 20262935}, {'photo_id': 1334967596, 'portfolio_id': 20262935}, {'photo_id': 1334967527, 'portfolio_id': 20262935}, {'photo_id': 1334967366, 'portfolio_id': 20262935}, {'photo_id': 1334967363, 'portfolio_id': 20262935}, {'photo_id': 1334967361, 'portfolio_id': 20262935}, {'photo_id': 1334967358, 'portfolio_id': 20262935}, {'photo_id': 1334967356, 'portfolio_id': 20262935}, {'photo_id': 1334967338, 'portfolio_id': 20262935}, {'photo_id': 1334967337, 'portfolio_id': 20262935}, {'photo_id': 1334967334, 'portfolio_id': 20262935}, {'photo_id': 1334967332, 'portfolio_id': 20262935}, {'photo_id': 1334967330, 'portfolio_id': 20262935}, {'photo_id': 1334967249, 'portfolio_id': 20262935}, {'photo_id': 1334967247, 'portfolio_id': 20262935}, {'photo_id': 1334967238, 'portfolio_id': 20262935}, {'photo_id': 1334967236, 'portfolio_id': 20262935}, {'photo_id': 1334967231, 'portfolio_id': 20262935}, {'photo_id': 1334967191, 'portfolio_id': 20262935}, {'photo_id': 1334967188, 'portfolio_id': 20262935}, {'photo_id': 1334967185, 'portfolio_id': 20262935}, {'photo_id': 1334967181, 'portfolio_id': 20262935}, {'photo_id': 1334967174, 'portfolio_id': 20262935}, {'photo_id': 1334967010, 'portfolio_id': 20262935}, {'photo_id': 1334966925, 'portfolio_id': 20262935}, {'photo_id': 1334966880, 'portfolio_id': 20262935}, {'photo_id': 1334966874, 'portfolio_id': 20262935}, {'photo_id': 1334966867, 'portfolio_id': 20262935}, {'photo_id': 1334966768, 'portfolio_id': 20262935}, {'photo_id': 1334966326, 'portfolio_id': 20262935}, {'photo_id': 1334966193, 'portfolio_id': 20262935}, {'photo_id': 1334966123, 'portfolio_id': 20262935}] map_portfolio_id_photo_id: {20262935: [1334968712, 1334968709, 1334968704, 1334968632, 1334968628, 1334968624, 1334968623, 1334968397, 1334968394, 1334968389, 1334968383, 1334968381, 1334968288, 1334968272, 1334968260, 1334968155, 1334968153, 1334968052, 1334968028, 1334968026, 1334968023, 1334968021, 1334967966, 1334967960, 1334967932, 1334967927, 1334967917, 1334967643, 1334967641, 1334967596, 1334967527, 1334967366, 1334967363, 1334967361, 1334967358, 1334967356, 1334967338, 1334967337, 1334967334, 1334967332, 1334967330, 1334967249, 1334967247, 1334967238, 1334967236, 1334967231, 1334967191, 1334967188, 1334967185, 1334967181, 1334967174, 1334967010, 1334966925, 1334966880, 1334966874, 1334966867, 1334966768, 1334966326, 1334966193, 1334966123]} ##### 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.01468038558959961 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Feb 5 15: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20262935) 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 : 20262935 get user id for portfolio 20262935 get sub ptf for main ptf 20262935, type 3726 and hashtags ['autre_refus', 'kraft', 'environnement', 'plastique', 'Carton_gris', 'cartonnette', 'papier', 'mal_croppe', 'metal', 'flou', 'Teint_Dans_La_Masse', 'Carton_brun'] 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`=20262935 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','environnement','plastique','Carton_gris','cartonnette','papier','mal_croppe','metal','flou','Teint_Dans_La_Masse','Carton_brun')) 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`=20262935 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','environnement','plastique','Carton_gris','cartonnette','papier','mal_croppe','metal','flou','Teint_Dans_La_Masse','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20262935, 'sub_port_id': 20262967, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960272, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 57)}, 'papier': {'main_port_id': 20262935, 'sub_port_id': 20262968, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960273, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 57)}, 'autre_refus': {'main_port_id': 20262935, 'sub_port_id': 20262969, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960274, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 57)}, 'Carton_gris': {'main_port_id': 20262935, 'sub_port_id': 20262970, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960275, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 57)}, 'kraft': {'main_port_id': 20262935, 'sub_port_id': 20262971, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960276, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 57)}, 'metal': {'main_port_id': 20262935, 'sub_port_id': 20262972, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960277, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 57)}, 'plastique': {'main_port_id': 20262935, 'sub_port_id': 20262973, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960278, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20262935, 'sub_port_id': 20262974, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960279, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 57)}, 'environnement': {'main_port_id': 20262935, 'sub_port_id': 20262975, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960280, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 57)}, 'mal_croppe': {'main_port_id': 20262935, 'sub_port_id': 20262976, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960281, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 57)}, 'cartonnette': {'main_port_id': 20262935, 'sub_port_id': 20262977, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960282, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 57)}, 'Carton_brun': {'main_port_id': 20262935, 'sub_port_id': 20262978, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960283, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20262967 , 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=20262935 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 (20262967) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20262935) result : ((1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,)) 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 20262968 , 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=20262935 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 (20262968) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20262935) result : ((1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,)) 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 20262969 , 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=20262935 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 (20262969) result : ((1334967368,), (1334967369,), (1334967961,), (1334967962,), (1334968262,), (1334968568,), (1334968637,), (1334968638,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20262935) result : ((1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,)) 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 20262970 , 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=20262935 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 (20262970) result : ((1334967371,), (1334967372,), (1334967963,), (1334967964,), (1334968270,), (1334968271,), (1334968387,), (1334968569,), (1334968570,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20262935) result : ((1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,)) 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 20262971 , 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=20262935 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 (20262971) result : ((1334967921,), (1334967922,), (1334968342,), (1334968343,), (1334968344,), (1334968393,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20262935) result : ((1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,)) 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 20262972 , 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=20262935 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 (20262972) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20262935) result : ((1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,)) 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 20262973 , 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=20262935 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 (20262973) result : ((1334967381,), (1334967382,), (1334967974,), (1334967975,), (1334968286,), (1334968578,), (1334968645,), (1334968646,), (1334968647,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20262935) result : ((1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,)) 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 20262974 , 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=20262935 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 (20262974) result : ((1334968261,), (1334968386,), (1334968566,), (1334968634,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20262935) result : ((1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,)) 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 20262975 , 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=20262935 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 (20262975) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20262935) result : ((1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,)) 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 20262976 , 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=20262935 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 (20262976) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20262935) result : ((1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,)) 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 20262977 , 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=20262935 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 (20262977) result : ((1334968273,), (1334968274,), (1334968275,), (1334968388,), (1334968573,), (1334968574,), (1334968575,), (1334968640,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20262935) result : ((1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,)) 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 20262978 , 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=20262935 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 (20262978) result : ((1334967373,), (1334967374,), (1334967375,), (1334967376,), (1334967377,), (1334967918,), (1334967919,), (1334967920,), (1334967968,), (1334967969,), (1334967970,), (1334967971,), (1334967972,), (1334968276,), (1334968278,), (1334968338,), (1334968339,), (1334968340,), (1334968391,), (1334968392,), (1334968576,), (1334968577,), (1334968641,), (1334968642,), (1334968643,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20262935) result : ((1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,)) 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`=20262935 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','environnement','plastique','Carton_gris','cartonnette','papier','mal_croppe','metal','flou','Teint_Dans_La_Masse','Carton_brun')) 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`=20262935 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','environnement','plastique','Carton_gris','cartonnette','papier','mal_croppe','metal','flou','Teint_Dans_La_Masse','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20262935, 'sub_port_id': 20262979, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960284, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 58)}, 'papier': {'main_port_id': 20262935, 'sub_port_id': 20262980, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960285, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 58)}, 'autre_refus': {'main_port_id': 20262935, 'sub_port_id': 20262981, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960286, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 58)}, 'Carton_gris': {'main_port_id': 20262935, 'sub_port_id': 20262982, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960287, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 58)}, 'kraft': {'main_port_id': 20262935, 'sub_port_id': 20262983, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960288, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 58)}, 'metal': {'main_port_id': 20262935, 'sub_port_id': 20262984, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960289, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 58)}, 'plastique': {'main_port_id': 20262935, 'sub_port_id': 20262985, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960290, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20262935, 'sub_port_id': 20262986, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960291, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 58)}, 'environnement': {'main_port_id': 20262935, 'sub_port_id': 20262987, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960292, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 58)}, 'mal_croppe': {'main_port_id': 20262935, 'sub_port_id': 20262988, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960293, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 58)}, 'cartonnette': {'main_port_id': 20262935, 'sub_port_id': 20262989, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960294, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 58)}, 'Carton_brun': {'main_port_id': 20262935, 'sub_port_id': 20262990, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12960295, 'last_updated_at': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 15, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 15, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20262979,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20262967 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20262980,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20262968 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20262981,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20262969 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20262982,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20262970 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20262983,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20262971 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20262984,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20262972 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20262985,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20262973 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20262986,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20262974 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20262987,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20262975 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20262988,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20262976 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20262989,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20262977 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20262990,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20262978 lien utilise dans velours : https://www.fotonower.com/velours/20262979,20262980,20262981,20262982,20262983,20262984,20262985,20262986,20262987,20262988,20262989,20262990?tags=flou,papier,autre_refus,Carton_gris,kraft,metal,plastique,Teint_Dans_La_Masse,environnement,mal_croppe,cartonnette,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20262935]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1334968712, 1334968709, 1334968704, 1334968632, 1334968628, 1334968624, 1334968623, 1334968397, 1334968394, 1334968389, 1334968383, 1334968381] map_info['map_portfolio_photo'] : {20262935: [1334968712, 1334968709, 1334968704, 1334968632, 1334968628, 1334968624, 1334968623, 1334968397, 1334968394, 1334968389, 1334968383, 1334968381, 1334968288, 1334968272, 1334968260, 1334968155, 1334968153, 1334968052, 1334968028, 1334968026, 1334968023, 1334968021, 1334967966, 1334967960, 1334967932, 1334967927, 1334967917, 1334967643, 1334967641, 1334967596, 1334967527, 1334967366, 1334967363, 1334967361, 1334967358, 1334967356, 1334967338, 1334967337, 1334967334, 1334967332, 1334967330, 1334967249, 1334967247, 1334967238, 1334967236, 1334967231, 1334967191, 1334967188, 1334967185, 1334967181, 1334967174, 1334967010, 1334966925, 1334966880, 1334966874, 1334966867, 1334966768, 1334966326, 1334966193, 1334966123]} final : False mtd_id 4302 list_pids : [1334968712, 1334968709, 1334968704, 1334968632, 1334968628, 1334968624, 1334968623, 1334968397, 1334968394, 1334968389, 1334968383, 1334968381] Looping around the photos to save general results len do output : 1 /20262935. 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, '2552297') ('4302', '20262935', '1334968712', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968709', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968704', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968632', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968628', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968624', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968623', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968397', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968394', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968389', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968383', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968381', None, None, None, None, None, '2552297') 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', None, '20262935', "{'flou': 20262967, 'papier': 20262968, 'autre_refus': 20262969, 'Carton_gris': 20262970, 'kraft': 20262971, 'metal': 20262972, 'plastique': 20262973, 'Teint_Dans_La_Masse': 20262974, 'environnement': 20262975, 'mal_croppe': 20262976, 'cartonnette': 20262977, 'Carton_brun': 20262978}", None, None, None, None, '2552297'), ('4302', '20262935', '1334968712', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968709', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968704', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968632', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968628', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968624', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968623', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968397', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968394', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968389', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968383', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968381', None, None, None, None, None, '2552297')] time used for this insertion : 0.01414632797241211 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3904764652252197 time spend to save output : 0.014485597610473633 total time spend for step 1 : 1.4049620628356934 step2:final Wed Feb 5 15:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20262935) 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 20262935 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1334966326,1334966193,1334966123,1334967010,1334966925,1334966880,1334966874,1334966867,1334966768,1334967191,1334967188,1334967185,1334967181,1334967174,1334967249,1334967247,1334967238,1334967236,1334967231,1334967338,1334967337,1334967334,1334967332,1334967330,1334967366,1334967363,1334967361,1334967358,1334967356,1334967643,1334967641,1334967596,1334967527,1334967966,1334967960,1334967932,1334967927,1334967917,1334968052,1334968028,1334968026,1334968023,1334968021,1334968288,1334968272,1334968260,1334968155,1334968153,1334968397,1334968394,1334968389,1334968383,1334968381,1334968632,1334968628,1334968624,1334968623,1334968712,1334968709,1334968704); 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([20262935]) Inside saveOutput : final : False verbose : True original output for save of step final : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} new output for save of step final : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} [1334968712, 1334968709, 1334968704, 1334968632, 1334968628, 1334968624, 1334968623, 1334968397, 1334968394, 1334968389, 1334968383, 1334968381] map_info['map_portfolio_photo'] : {20262935: [1334968712, 1334968709, 1334968704, 1334968632, 1334968628, 1334968624, 1334968623, 1334968397, 1334968394, 1334968389, 1334968383, 1334968381, 1334968288, 1334968272, 1334968260, 1334968155, 1334968153, 1334968052, 1334968028, 1334968026, 1334968023, 1334968021, 1334967966, 1334967960, 1334967932, 1334967927, 1334967917, 1334967643, 1334967641, 1334967596, 1334967527, 1334967366, 1334967363, 1334967361, 1334967358, 1334967356, 1334967338, 1334967337, 1334967334, 1334967332, 1334967330, 1334967249, 1334967247, 1334967238, 1334967236, 1334967231, 1334967191, 1334967188, 1334967185, 1334967181, 1334967174, 1334967010, 1334966925, 1334966880, 1334966874, 1334966867, 1334966768, 1334966326, 1334966193, 1334966123]} final : False mtd_id 4302 list_pids : [1334968712, 1334968709, 1334968704, 1334968632, 1334968628, 1334968624, 1334968623, 1334968397, 1334968394, 1334968389, 1334968383, 1334968381] Looping around the photos to save general results len do output : 12 /1334968712.Didn't retrieve data . /1334968709.Didn't retrieve data . /1334968704.Didn't retrieve data . /1334968632.Didn't retrieve data . /1334968628.Didn't retrieve data . /1334968624.Didn't retrieve data . /1334968623.Didn't retrieve data . /1334968397.Didn't retrieve data . /1334968394.Didn't retrieve data . /1334968389.Didn't retrieve data . /1334968383.Didn't retrieve data . /1334968381.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, '2552297') ('4302', '20262935', '1334968712', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968709', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968704', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968632', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968628', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968624', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968623', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968397', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968394', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968389', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968383', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968381', None, None, None, None, None, '2552297') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '20262935', '1334968712', '0.04572569210543287', None, None, None, None, '2552297'), ('4302', '20262935', '1334968709', '0.04572569210543287', None, None, None, None, '2552297'), ('4302', '20262935', '1334968704', '0.04572569210543287', None, None, None, None, '2552297'), ('4302', '20262935', '1334968632', '0.04572569210543287', None, None, None, None, '2552297'), ('4302', '20262935', '1334968628', '0.04572569210543287', None, None, None, None, '2552297'), ('4302', '20262935', '1334968624', '0.04572569210543287', None, None, None, None, '2552297'), ('4302', '20262935', '1334968623', '0.04572569210543287', None, None, None, None, '2552297'), ('4302', '20262935', '1334968397', '0.04572569210543287', None, None, None, None, '2552297'), ('4302', '20262935', '1334968394', '0.04572569210543287', None, None, None, None, '2552297'), ('4302', '20262935', '1334968389', '0.04572569210543287', None, None, None, None, '2552297'), ('4302', '20262935', '1334968383', '0.04572569210543287', None, None, None, None, '2552297'), ('4302', '20262935', '1334968381', '0.04572569210543287', None, None, None, None, '2552297')] time used for this insertion : 0.013379335403442383 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06507706642150879 time spend to save output : 0.013956069946289062 total time spend for step 2 : 0.07903313636779785 step3:velours_tree Wed Feb 5 15:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20262935: [{'flou': 20262967, 'papier': 20262968, 'autre_refus': 20262969, 'Carton_gris': 20262970, 'kraft': 20262971, 'metal': 20262972, 'plastique': 20262973, 'Teint_Dans_La_Masse': 20262974, 'environnement': 20262975, 'mal_croppe': 20262976, 'cartonnette': 20262977, 'Carton_brun': 20262978}]} input_args_next_step : {20262935: ()} output_args : {20262935: [{'flou': 20262967, 'papier': 20262968, 'autre_refus': 20262969, 'Carton_gris': 20262970, 'kraft': 20262971, 'metal': 20262972, 'plastique': 20262973, 'Teint_Dans_La_Masse': 20262974, 'environnement': 20262975, 'mal_croppe': 20262976, 'cartonnette': 20262977, 'Carton_brun': 20262978}]} args : 20262935 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': 20262967, 'papier': 20262968, 'autre_refus': 20262969, 'Carton_gris': 20262970, 'kraft': 20262971, 'metal': 20262972, 'plastique': 20262973, 'Teint_Dans_La_Masse': 20262974, 'environnement': 20262975, 'mal_croppe': 20262976, 'cartonnette': 20262977, 'Carton_brun': 20262978},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20262935) 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([20262935]) 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.2646496295928955 time spend to save output : 5.030632019042969e-05 total time spend for step 3 : 0.26469993591308594 step4:send_mail_cod Wed Feb 5 15:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} input_args_next_step : {1334968712: ()} output_args : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} args : 1334968712 depend.output_id : 0 input_args_next_step : {1334968712: ('0.04572569210543287',), 1334968709: ()} output_args : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} args : 1334968709 depend.output_id : 0 input_args_next_step : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ()} output_args : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} args : 1334968704 depend.output_id : 0 input_args_next_step : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ()} output_args : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} args : 1334968632 depend.output_id : 0 input_args_next_step : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ()} output_args : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} args : 1334968628 depend.output_id : 0 input_args_next_step : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ()} output_args : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} args : 1334968624 depend.output_id : 0 input_args_next_step : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ()} output_args : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} args : 1334968623 depend.output_id : 0 input_args_next_step : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ()} output_args : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} args : 1334968397 depend.output_id : 0 input_args_next_step : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ()} output_args : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} args : 1334968394 depend.output_id : 0 input_args_next_step : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ()} output_args : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} args : 1334968389 depend.output_id : 0 input_args_next_step : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ()} output_args : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} args : 1334968383 depend.output_id : 0 input_args_next_step : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ()} output_args : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',)} args : 1334968381 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 : {20262935: [{'flou': 20262967, 'papier': 20262968, 'autre_refus': 20262969, 'Carton_gris': 20262970, 'kraft': 20262971, 'metal': 20262972, 'plastique': 20262973, 'Teint_Dans_La_Masse': 20262974, 'environnement': 20262975, 'mal_croppe': 20262976, 'cartonnette': 20262977, 'Carton_brun': 20262978}]} input_args_next_step : {1334968712: ('0.04572569210543287',), 1334968709: ('0.04572569210543287',), 1334968704: ('0.04572569210543287',), 1334968632: ('0.04572569210543287',), 1334968628: ('0.04572569210543287',), 1334968624: ('0.04572569210543287',), 1334968623: ('0.04572569210543287',), 1334968397: ('0.04572569210543287',), 1334968394: ('0.04572569210543287',), 1334968389: ('0.04572569210543287',), 1334968383: ('0.04572569210543287',), 1334968381: ('0.04572569210543287',), 20262935: ()} output_args : {20262935: [{'flou': 20262967, 'papier': 20262968, 'autre_refus': 20262969, 'Carton_gris': 20262970, 'kraft': 20262971, 'metal': 20262972, 'plastique': 20262973, 'Teint_Dans_La_Masse': 20262974, 'environnement': 20262975, 'mal_croppe': 20262976, 'cartonnette': 20262977, 'Carton_brun': 20262978}]} args : 20262935 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 :13, first value : ('0.04572569210543287',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20262935) 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 (1334968712,1334968709,1334968704,1334968632,1334968628,1334968624,1334968623,1334968397,1334968394,1334968389,1334968383,1334968381) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1334968381 begin to download photo : 1334968394 begin to download photo : 1334968624 begin to download photo : 1334968704 download finish for photo 1334968624 begin to download photo : 1334968628 download finish for photo 1334968704 begin to download photo : 1334968709 download finish for photo 1334968394 begin to download photo : 1334968397 download finish for photo 1334968381 begin to download photo : 1334968383 download finish for photo 1334968628 begin to download photo : 1334968632 download finish for photo 1334968709 begin to download photo : 1334968712 download finish for photo 1334968397 begin to download photo : 1334968623 download finish for photo 1334968383 begin to download photo : 1334968389 download finish for photo 1334968632 download finish for photo 1334968712 download finish for photo 1334968623 download finish for photo 1334968389 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette202629671738767541/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P20262935_05-02-2025_15_59_01.pdf 20262967 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=20262967 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202629671738767541 20262969 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=20262969 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334967368: '1738767012_533615_1334966880_5da1bad61398ae7e85a60179e2facd4e_rle_crop_3656207199_0.png', 1334967369: '1738767012_533615_1334966880_5da1bad61398ae7e85a60179e2facd4e_rle_crop_3656207197_0.png', 1334967961: '1738767114_535018_1334966880_5da1bad61398ae7e85a60179e2facd4e_rle_crop_3656207199_0.png', 1334967962: '1738767114_535018_1334966880_5da1bad61398ae7e85a60179e2facd4e_rle_crop_3656207197_0.png', 1334968262: '1738767252_539310_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210991_0.png', 1334968568: '1738767333_540734_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210991_0.png', 1334968637: '1738767353_541022_1334967960_0fccc875cb646dd5b827e25feb110e51_rle_crop_3656214039_0.png', 1334968638: '1738767353_541022_1334967927_c98d0ba6fd30d02a1081bc4f89560f6a_rle_crop_3656214168_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/0fb10b9a45e9c9f1394b5e4a36dde2a5_94546064.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/582dde1c2f191c435c2914c7aa0329a9_69893270.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/0fb10b9a45e9c9f1394b5e4a36dde2a5_33794532.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/61472966b272b609c33379063f831434_85240385.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/0d3b5e657fb062ac446890057595f978_61478840.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/0d3b5e657fb062ac446890057595f978_76842264.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/a6b6c5a73638b60e3265dc2a53e2c061_83237834.png change filename to text .imagette202629691738767541/ imagette202629691738767541/1738767114_535018_1334966880_5da1bad61398ae7e85a60179e2facd4e_rle_crop_3656207199_0.png.png imagette202629691738767541/1738767333_540734_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210991_0.png.png imagette202629691738767541/1738767012_533615_1334966880_5da1bad61398ae7e85a60179e2facd4e_rle_crop_3656207197_0.png.png imagette202629691738767541/1738767353_541022_1334967927_c98d0ba6fd30d02a1081bc4f89560f6a_rle_crop_3656214168_0.png.png imagette202629691738767541/1738767353_541022_1334967960_0fccc875cb646dd5b827e25feb110e51_rle_crop_3656214039_0.png.png imagette202629691738767541/1738767012_533615_1334966880_5da1bad61398ae7e85a60179e2facd4e_rle_crop_3656207199_0.png.png imagette202629691738767541/1738767114_535018_1334966880_5da1bad61398ae7e85a60179e2facd4e_rle_crop_3656207197_0.png.png imagette202629691738767541/1738767252_539310_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210991_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/294c689b263f858f0ac00e278ea9ed5c_74807192.png imagette202629691738767541 20262971 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=20262971 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334967921: '1738767093_534752_1334967238_f5c04f4bab645941f5194720171ecdc8_rle_crop_3656208700_0.png', 1334967922: '1738767093_534752_1334967236_76a16bde6823392703efb58db0debfac_rle_crop_3656208755_0.png', 1334968342: '1738767271_539985_1334967238_f5c04f4bab645941f5194720171ecdc8_bib_crop_3656208700_0.jpg', 1334968343: '1738767271_539985_1334967238_f5c04f4bab645941f5194720171ecdc8_rle_crop_3656211105_0.png', 1334968344: '1738767271_539985_1334967236_76a16bde6823392703efb58db0debfac_rle_crop_3656208755_0.png', 1334968393: '1738767314_540484_1334968021_c49d535093dd5dd00e181033044b1ed2_rle_crop_3656212502_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/4a4e949b05476f05bd3c796850d3932f_22055395.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/18b396f7b8c1d07f9ee6a019c435195a_2172286.png change filename to text .wget -O 3.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/4ff298b0c4a1ba0d76d7c06743509c11_83931958.jpg change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/67cacf30c9a6001577d40542bcc5cf59_3873150.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/18b396f7b8c1d07f9ee6a019c435195a_50230312.png change filename to text .imagette202629711738767541/ imagette202629711738767541/1738767314_540484_1334968021_c49d535093dd5dd00e181033044b1ed2_rle_crop_3656212502_0.png.png imagette202629711738767541/1738767093_534752_1334967236_76a16bde6823392703efb58db0debfac_rle_crop_3656208755_0.png.png imagette202629711738767541/1738767093_534752_1334967238_f5c04f4bab645941f5194720171ecdc8_rle_crop_3656208700_0.png.png imagette202629711738767541/1738767271_539985_1334967236_76a16bde6823392703efb58db0debfac_rle_crop_3656208755_0.png.png imagette202629711738767541/1738767271_539985_1334967238_f5c04f4bab645941f5194720171ecdc8_rle_crop_3656211105_0.png.png imagette202629711738767541/1738767271_539985_1334967238_f5c04f4bab645941f5194720171ecdc8_bib_crop_3656208700_0.jpg.jpg imagette202629721738767541/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/9db9e31c1d2ae462598d71863eade4fd_26893515.png imagette202629711738767541 20262972 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=20262972 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202629721738767541 20262973 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=20262973 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334967381: '1738767012_533615_1334967191_e5675eb13c7809d9313f949c3d7f0f7c_rle_crop_3656206706_0.png', 1334967382: '1738767012_533615_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207795_0.png', 1334967974: '1738767114_535018_1334967191_e5675eb13c7809d9313f949c3d7f0f7c_rle_crop_3656206706_0.png', 1334967975: '1738767114_535018_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207795_0.png', 1334968286: '1738767252_539310_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210990_0.png', 1334968578: '1738767333_540734_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210990_0.png', 1334968645: '1738767353_541022_1334968052_9ef829d011a8b55f11251b906f10b081_rle_crop_3656213937_0.png', 1334968646: '1738767353_541022_1334968052_9ef829d011a8b55f11251b906f10b081_rle_crop_3656213936_0.png', 1334968647: '1738767353_541022_1334967927_c98d0ba6fd30d02a1081bc4f89560f6a_rle_crop_3656214172_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/77c27ba0c882b9cc9934239c34280cfa_27874128.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/abcdc1503a462c22d7fd03053677ef81_52282497.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/77c27ba0c882b9cc9934239c34280cfa_20357966.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/abcdc1503a462c22d7fd03053677ef81_92887683.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/f503dd704372b8257fbfd077404dfa36_90385957.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/f503dd704372b8257fbfd077404dfa36_67905769.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/c80da1755e3895d27a93adedf0a04cbb_91900063.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/3bf21c3d670960b1328fb063ecf2083b_65918675.png change filename to text .imagette202629731738767541/ imagette202629731738767541/1738767353_541022_1334968052_9ef829d011a8b55f11251b906f10b081_rle_crop_3656213937_0.png.png imagette202629731738767541/1738767012_533615_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207795_0.png.png imagette202629731738767541/1738767114_535018_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207795_0.png.png imagette202629731738767541/1738767114_535018_1334967191_e5675eb13c7809d9313f949c3d7f0f7c_rle_crop_3656206706_0.png.png imagette202629731738767541/1738767353_541022_1334968052_9ef829d011a8b55f11251b906f10b081_rle_crop_3656213936_0.png.png imagette202629731738767541/1738767012_533615_1334967191_e5675eb13c7809d9313f949c3d7f0f7c_rle_crop_3656206706_0.png.png imagette202629731738767541/1738767252_539310_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210990_0.png.png imagette202629731738767541/1738767333_540734_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210990_0.png.png imagette202629731738767541/1738767353_541022_1334967927_c98d0ba6fd30d02a1081bc4f89560f6a_rle_crop_3656214172_0.png.png imagette202629761738767542/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/c25dbad8810138622ffe02b86ff8a581_84584041.png imagette202629731738767541 20262976 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=20262976 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202629761738767542 20262977 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=20262977 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334968273: '1738767252_539310_1334967363_541a5ca120df754d81c64d63ec0c078d_rle_crop_3656210823_0.png', 1334968274: '1738767252_539310_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210995_0.png', 1334968275: '1738767252_539310_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210989_0.png', 1334968388: '1738767314_540484_1334968023_beb826f51adcc4a5d04efac3708299f8_rle_crop_3656212481_0.png', 1334968573: '1738767333_540734_1334967363_541a5ca120df754d81c64d63ec0c078d_rle_crop_3656210823_0.png', 1334968574: '1738767333_540734_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210995_0.png', 1334968575: '1738767333_540734_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210989_0.png', 1334968640: '1738767353_541022_1334967917_94b8e9152cb23f8ea7fcb4c3cdd0b020_rle_crop_3656214183_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/bf9edc5a898b3c0bd02d7afe1fdefe0b_59546986.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/181f2e9052f49a2ad7cfe1ba23105ded_84942089.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/efc48b9fb247c4fc873a1bbd8522ebdf_52577842.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/2434df0da65de51284f0dfeb16a58964_97691790.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/bf9edc5a898b3c0bd02d7afe1fdefe0b_88579403.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/181f2e9052f49a2ad7cfe1ba23105ded_66824756.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/efc48b9fb247c4fc873a1bbd8522ebdf_74211012.png change filename to text .imagette202629771738767542/ imagette202629771738767542/1738767252_539310_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210989_0.png.png imagette202629771738767542/1738767333_540734_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210995_0.png.png imagette202629771738767542/1738767314_540484_1334968023_beb826f51adcc4a5d04efac3708299f8_rle_crop_3656212481_0.png.png imagette202629771738767542/1738767333_540734_1334967363_541a5ca120df754d81c64d63ec0c078d_rle_crop_3656210823_0.png.png imagette202629771738767542/1738767353_541022_1334967917_94b8e9152cb23f8ea7fcb4c3cdd0b020_rle_crop_3656214183_0.png.png imagette202629771738767542/1738767252_539310_1334967363_541a5ca120df754d81c64d63ec0c078d_rle_crop_3656210823_0.png.png imagette202629771738767542/1738767333_540734_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210989_0.png.png imagette202629771738767542/1738767252_539310_1334967361_60222969bbc22f880d0087c7ac11e4df_rle_crop_3656210995_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/41eba61ddde30e66f936c88a5a517f43_58406753.png imagette202629771738767542 20262970 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=20262970 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334967371: '1738767012_533615_1334966867_33b05ef2490e6337c8efb467e08cf79d_rle_crop_3656207527_0.png', 1334967372: '1738767012_533615_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207800_0.png', 1334967963: '1738767114_535018_1334966867_33b05ef2490e6337c8efb467e08cf79d_rle_crop_3656207527_0.png', 1334967964: '1738767114_535018_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207800_0.png', 1334968270: '1738767252_539310_1334967643_f079a86bdc08f79c4d45c3b34609b24a_rle_crop_3656210808_0.png', 1334968271: '1738767252_539310_1334967363_541a5ca120df754d81c64d63ec0c078d_rle_crop_3656210822_0.png', 1334968387: '1738767314_540484_1334968023_beb826f51adcc4a5d04efac3708299f8_rle_crop_3656212478_0.png', 1334968569: '1738767333_540734_1334967643_f079a86bdc08f79c4d45c3b34609b24a_rle_crop_3656210808_0.png', 1334968570: '1738767333_540734_1334967363_541a5ca120df754d81c64d63ec0c078d_rle_crop_3656210822_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/1dbac9aa5650b5dd749210404f5cc9f6_8970906.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/7934ed3c74bb4d671151f009c7178956_96350331.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/1dbac9aa5650b5dd749210404f5cc9f6_99996447.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/7934ed3c74bb4d671151f009c7178956_29536443.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/c5bc278c3011393af929164d8c1a18e8_96381999.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/ba7099255accc1096e6e962f5194ef73_19345283.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/d81f7525b6d67abae7e19267812bc6bf_86521338.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/c5bc278c3011393af929164d8c1a18e8_45816036.png change filename to text .imagette202629701738767542/ imagette202629701738767542/1738767012_533615_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207800_0.png.png imagette202629701738767542/1738767252_539310_1334967363_541a5ca120df754d81c64d63ec0c078d_rle_crop_3656210822_0.png.png imagette202629701738767542/1738767314_540484_1334968023_beb826f51adcc4a5d04efac3708299f8_rle_crop_3656212478_0.png.png imagette202629701738767542/1738767012_533615_1334966867_33b05ef2490e6337c8efb467e08cf79d_rle_crop_3656207527_0.png.png imagette202629701738767542/1738767114_535018_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207800_0.png.png imagette202629701738767542/1738767333_540734_1334967643_f079a86bdc08f79c4d45c3b34609b24a_rle_crop_3656210808_0.png.png imagette202629701738767542/1738767252_539310_1334967643_f079a86bdc08f79c4d45c3b34609b24a_rle_crop_3656210808_0.png.png imagette202629701738767542/1738767114_535018_1334966867_33b05ef2490e6337c8efb467e08cf79d_rle_crop_3656207527_0.png.png imagette202629701738767542/1738767333_540734_1334967363_541a5ca120df754d81c64d63ec0c078d_rle_crop_3656210822_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/ba7099255accc1096e6e962f5194ef73_25379720.png imagette202629701738767542 20262974 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=20262974 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334968261: '1738767252_539310_1334967356_3fad2d2138469dbd505d13dc606f24a2_rle_crop_3656211031_0.png', 1334968386: '1738767314_540484_1334968023_beb826f51adcc4a5d04efac3708299f8_rle_crop_3656212485_0.png', 1334968566: '1738767333_540734_1334967356_3fad2d2138469dbd505d13dc606f24a2_rle_crop_3656211031_0.png', 1334968634: '1738767353_541022_1334968052_9ef829d011a8b55f11251b906f10b081_rle_crop_3656213942_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/60dd363406006619d421a00887533320_14444521.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/1b7f84bd5251b86664f6f1bf8cc63ead_46105195.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/60dd363406006619d421a00887533320_5259661.png change filename to text .imagette202629741738767543/ imagette202629741738767543/1738767333_540734_1334967356_3fad2d2138469dbd505d13dc606f24a2_rle_crop_3656211031_0.png.png imagette202629741738767543/1738767353_541022_1334968052_9ef829d011a8b55f11251b906f10b081_rle_crop_3656213942_0.png.png imagette202629741738767543/1738767314_540484_1334968023_beb826f51adcc4a5d04efac3708299f8_rle_crop_3656212485_0.png.png imagette202629741738767543/1738767252_539310_1334967356_3fad2d2138469dbd505d13dc606f24a2_rle_crop_3656211031_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/73ac45796ec1623f2f59071cad2f9fbf_90511634.png imagette202629741738767543 20262978 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=20262978 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334967972: '1738767114_535018_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207796_0.png', 1334968643: '1738767353_541022_1334967932_87f38abbdce83ef8552bdbc6b961b38d_rle_crop_3656214158_0.png', 1334968642: '1738767353_541022_1334967932_87f38abbdce83ef8552bdbc6b961b38d_rle_crop_3656214161_0.png', 1334968641: '1738767353_541022_1334967932_87f38abbdce83ef8552bdbc6b961b38d_rle_crop_3656214157_0.png', 1334968577: '1738767333_540734_1334967358_b0de5ab6f15aeec97ac23ad244bc7eb8_rle_crop_3656211007_0.png', 1334968576: '1738767333_540734_1334967358_b0de5ab6f15aeec97ac23ad244bc7eb8_rle_crop_3656211008_0.png', 1334968392: '1738767314_540484_1334968023_beb826f51adcc4a5d04efac3708299f8_rle_crop_3656212487_0.png', 1334968391: '1738767314_540484_1334968023_beb826f51adcc4a5d04efac3708299f8_rle_crop_3656212492_0.png', 1334968340: '1738767271_539985_1334967236_76a16bde6823392703efb58db0debfac_rle_crop_3656208757_0.png', 1334968339: '1738767271_539985_1334967238_f5c04f4bab645941f5194720171ecdc8_rle_crop_3656208704_0.png', 1334968338: '1738767271_539985_1334967338_2316c76eee11e4708a1d91f33846d0fc_rle_crop_3656208685_0.png', 1334968278: '1738767252_539310_1334967358_b0de5ab6f15aeec97ac23ad244bc7eb8_rle_crop_3656211007_0.png', 1334968276: '1738767252_539310_1334967358_b0de5ab6f15aeec97ac23ad244bc7eb8_rle_crop_3656211008_0.png', 1334967373: '1738767012_533615_1334966874_1bf8bc2b40df6f100a12c3e731459c2c_rle_crop_3656207257_0.png', 1334967971: '1738767114_535018_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207803_0.png', 1334967970: '1738767114_535018_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207798_0.png', 1334967969: '1738767114_535018_1334966867_33b05ef2490e6337c8efb467e08cf79d_rle_crop_3656207530_0.png', 1334967968: '1738767114_535018_1334966874_1bf8bc2b40df6f100a12c3e731459c2c_rle_crop_3656207257_0.png', 1334967920: '1738767093_534752_1334967236_76a16bde6823392703efb58db0debfac_rle_crop_3656208757_0.png', 1334967919: '1738767093_534752_1334967238_f5c04f4bab645941f5194720171ecdc8_rle_crop_3656208704_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/dc043852e7a02cc9aa5102d0d448427d_11533591.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/1f87c573af024a0a58ddfb6d98154b8d_6032491.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/ae77db71c180176dc51cce8771d01483_7737029.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/5b39b5d8780ed945b4da5c69e3a14ffb_1972117.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/f3d88966d4a3f51ed7061751247dcfa3_4020851.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/77f3c763471c20a656416164e92e6699_99782909.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/a3d58d4cb2b6aacf291dfc1a0ac9a137_44430822.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/8840f884997b5e5206d1c1e58219d714_59976488.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/4fe314be943373609d687b8df8d84660_17659792.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/bd934500fa8ad55bdde7d71df487f874_25387422.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/bfad7f7db4ff344ddc7943ffd639dd81_95142232.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/f3d88966d4a3f51ed7061751247dcfa3_4789860.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/77f3c763471c20a656416164e92e6699_75042814.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/afc9458a2407171bba2cd70c7387239b_56738709.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/2978489612be104af5f1609f3df5316e_56713064.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/0c1e1c8f42929de48aed9215d39f1ac1_15015742.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/98294ba05dfce034ef1047199e6a6256_12512209.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/afc9458a2407171bba2cd70c7387239b_96575957.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/4fe314be943373609d687b8df8d84660_22475108.png change filename to text .imagette202629781738767545/ imagette202629781738767545/1738767333_540734_1334967358_b0de5ab6f15aeec97ac23ad244bc7eb8_rle_crop_3656211007_0.png.png imagette202629781738767545/1738767353_541022_1334967932_87f38abbdce83ef8552bdbc6b961b38d_rle_crop_3656214161_0.png.png imagette202629781738767545/1738767271_539985_1334967238_f5c04f4bab645941f5194720171ecdc8_rle_crop_3656208704_0.png.png imagette202629781738767545/1738767012_533615_1334966874_1bf8bc2b40df6f100a12c3e731459c2c_rle_crop_3656207257_0.png.png imagette202629781738767545/1738767093_534752_1334967236_76a16bde6823392703efb58db0debfac_rle_crop_3656208757_0.png.png imagette202629781738767545/1738767252_539310_1334967358_b0de5ab6f15aeec97ac23ad244bc7eb8_rle_crop_3656211007_0.png.png imagette202629781738767545/1738767333_540734_1334967358_b0de5ab6f15aeec97ac23ad244bc7eb8_rle_crop_3656211008_0.png.png imagette202629781738767545/1738767314_540484_1334968023_beb826f51adcc4a5d04efac3708299f8_rle_crop_3656212487_0.png.png imagette202629781738767545/1738767252_539310_1334967358_b0de5ab6f15aeec97ac23ad244bc7eb8_rle_crop_3656211008_0.png.png imagette202629781738767545/1738767114_535018_1334966867_33b05ef2490e6337c8efb467e08cf79d_rle_crop_3656207530_0.png.png imagette202629781738767545/1738767314_540484_1334968023_beb826f51adcc4a5d04efac3708299f8_rle_crop_3656212492_0.png.png imagette202629781738767545/1738767114_535018_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207796_0.png.png imagette202629781738767545/1738767271_539985_1334967338_2316c76eee11e4708a1d91f33846d0fc_rle_crop_3656208685_0.png.png imagette202629781738767545/1738767114_535018_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207798_0.png.png imagette202629781738767545/1738767093_534752_1334967238_f5c04f4bab645941f5194720171ecdc8_rle_crop_3656208704_0.png.png imagette202629781738767545/1738767271_539985_1334967236_76a16bde6823392703efb58db0debfac_rle_crop_3656208757_0.png.png imagette202629781738767545/1738767114_535018_1334966768_1b984f9dc0260931b05a9db34a3e4528_rle_crop_3656207803_0.png.png imagette202629781738767545/1738767353_541022_1334967932_87f38abbdce83ef8552bdbc6b961b38d_rle_crop_3656214157_0.png.png imagette202629781738767545/1738767353_541022_1334967932_87f38abbdce83ef8552bdbc6b961b38d_rle_crop_3656214158_0.png.png imagette202629781738767545/1738767114_535018_1334966874_1bf8bc2b40df6f100a12c3e731459c2c_rle_crop_3656207257_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/bd934500fa8ad55bdde7d71df487f874_23695665.png imagette202629781738767545 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20262935 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20262979,20262980,20262981,20262982,20262983,20262984,20262985,20262986,20262987,20262988,20262989,20262990?tags=flou,papier,autre_refus,Carton_gris,kraft,metal,plastique,Teint_Dans_La_Masse,environnement,mal_croppe,cartonnette,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1334968712] : ('0.04572569210543287',) no score found for photo 1334968712 We are sending mail with results at report@fotonower.com args[1334968709] : ('0.04572569210543287',) no score found for photo 1334968709 We are sending mail with results at report@fotonower.com args[1334968704] : ('0.04572569210543287',) no score found for photo 1334968704 We are sending mail with results at report@fotonower.com args[1334968632] : ('0.04572569210543287',) no score found for photo 1334968632 We are sending mail with results at report@fotonower.com args[1334968628] : ('0.04572569210543287',) no score found for photo 1334968628 We are sending mail with results at report@fotonower.com args[1334968624] : ('0.04572569210543287',) no score found for photo 1334968624 We are sending mail with results at report@fotonower.com args[1334968623] : ('0.04572569210543287',) no score found for photo 1334968623 We are sending mail with results at report@fotonower.com args[1334968397] : ('0.04572569210543287',) no score found for photo 1334968397 We are sending mail with results at report@fotonower.com args[1334968394] : ('0.04572569210543287',) no score found for photo 1334968394 We are sending mail with results at report@fotonower.com args[1334968389] : ('0.04572569210543287',) no score found for photo 1334968389 We are sending mail with results at report@fotonower.com args[1334968383] : ('0.04572569210543287',) no score found for photo 1334968383 We are sending mail with results at report@fotonower.com args[1334968381] : ('0.04572569210543287',) no score found for photo 1334968381 We are sending mail with results at report@fotonower.com refus_total : 0.04572569210543287 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=20262935 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_P20262935_05-02-2025_15_59_01.pdf results_Auto_P20262935_05-02-2025_15_59_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20262935_05-02-2025_15_59_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20262935','results_Auto_P20262935_05-02-2025_15_59_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20262935_05-02-2025_15_59_01.pdf','pdf','','0.24','0.04572569210543287') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20262935]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1334968712, 1334968709, 1334968704, 1334968632, 1334968628, 1334968624, 1334968623, 1334968397, 1334968394, 1334968389, 1334968383, 1334968381] map_info['map_portfolio_photo'] : {20262935: [1334968712, 1334968709, 1334968704, 1334968632, 1334968628, 1334968624, 1334968623, 1334968397, 1334968394, 1334968389, 1334968383, 1334968381, 1334968288, 1334968272, 1334968260, 1334968155, 1334968153, 1334968052, 1334968028, 1334968026, 1334968023, 1334968021, 1334967966, 1334967960, 1334967932, 1334967927, 1334967917, 1334967643, 1334967641, 1334967596, 1334967527, 1334967366, 1334967363, 1334967361, 1334967358, 1334967356, 1334967338, 1334967337, 1334967334, 1334967332, 1334967330, 1334967249, 1334967247, 1334967238, 1334967236, 1334967231, 1334967191, 1334967188, 1334967185, 1334967181, 1334967174, 1334967010, 1334966925, 1334966880, 1334966874, 1334966867, 1334966768, 1334966326, 1334966193, 1334966123]} final : False mtd_id 4302 list_pids : [1334968712, 1334968709, 1334968704, 1334968632, 1334968628, 1334968624, 1334968623, 1334968397, 1334968394, 1334968389, 1334968383, 1334968381] 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, '2552297') ('4302', '20262935', '1334968712', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968709', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968704', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968632', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968628', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968624', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968623', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968397', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968394', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968389', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968383', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968381', None, None, None, None, None, '2552297') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20262935', '1334968712', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968709', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968704', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968632', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968628', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968624', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968623', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968397', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968394', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968389', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968383', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968381', None, None, None, None, None, '2552297')] time used for this insertion : 0.01384115219116211 save_final save missing photos in datou_result : time spend for datou_step_exec : 10.104100942611694 time spend to save output : 0.014130592346191406 total time spend for step 4 : 10.118231534957886 step5:split_time_score Wed Feb 5 15:59:10 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 : ['20262935'] 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 : [('20262935',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20262935) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1334968624: {'path': 'temp/1738767540_14026_1334968624_65cb3516b2e632d700e7771062085773.jpg', 'extension': 'jpg'}, 1334968628: {'path': 'temp/1738767540_14026_1334968628_8d041b5157772f0c1f959004a32ace29.jpg', 'extension': 'jpg'}, 1334968632: {'path': 'temp/1738767540_14026_1334968632_1537cf0191060dee01ec8a883048325a.jpg', 'extension': 'jpg'}, 1334968704: {'path': 'temp/1738767540_14026_1334968704_6868419d756855a446442970dd0cfc3b.jpg', 'extension': 'jpg'}, 1334968709: {'path': 'temp/1738767540_14026_1334968709_fccd1135c79118a5d94e225835837605.jpg', 'extension': 'jpg'}, 1334968712: {'path': 'temp/1738767540_14026_1334968712_749bcb8aa2a34e47ba4685a9cd420e36.jpg', 'extension': 'jpg'}, 1334968394: {'path': 'temp/1738767540_14026_1334968394_4b08907690b7965b7c6538e36375235f.jpg', 'extension': 'jpg'}, 1334968397: {'path': 'temp/1738767540_14026_1334968397_4ceceffd3a0b1399781dd866b53cf75e.jpg', 'extension': 'jpg'}, 1334968623: {'path': 'temp/1738767540_14026_1334968623_e2ba343d128cf4d0b781735f1c4f0aa4.jpg', 'extension': 'jpg'}, 1334968381: {'path': 'temp/1738767540_14026_1334968381_fc4f9003d49303b2ab168cac2e742758.jpg', 'extension': 'jpg'}, 1334968383: {'path': 'temp/1738767540_14026_1334968383_09a7a43b7d94704bbf86cc76c40e9533.jpg', 'extension': 'jpg'}, 1334968389: {'path': 'temp/1738767540_14026_1334968389_77a43f8c5bcf7bad8a3cab20e5327ad9.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 = 20262935; (('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 = 20262935 group by h (('15', 60),) 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=20262935 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 (20262935) 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 (20262935) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05022025 20262935 Nombre de photos uploadées : 60 / 23040 (0%) 05022025 20262935 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 05022025 20262935 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1334966326, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/c06e2dbd189003833730d806acefdfae.jpg', 'username': None, 'uploaded_at': 1738766767, 'text': 'image_05022025_15_45_04_10173.jpg'}, {'photo_id': 1334966193, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/827ec9b06b4147010897cc650fe0c7da.jpg', 'username': None, 'uploaded_at': 1738766767, 'text': 'image_05022025_15_45_35_10133.jpg'}, {'photo_id': 1334966123, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/4565ea2a225e8c87987e9865a1d11198.jpg', 'username': None, 'uploaded_at': 1738766767, 'text': 'image_05022025_15_45_44_9125.jpg'}, {'photo_id': 1334967010, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/1757155ad57f8ba330e9eb488083c17d.jpg', 'username': None, 'uploaded_at': 1738766828, 'text': 'image_05022025_15_45_54_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025310516357421875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20262935, '2025-02-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1578490,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02222299575805664 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= 1578490 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1578490, 'dashboard_run_id': 1587883, 'mtr_portfolio_id': 20261240, 'dashboard_result_id': 8711218, '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_P20261240_05-02-2025_15_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20261247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20261248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20261249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20261250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20261251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20261252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20261253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20261254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20261255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20261256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20261257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20261258, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1587883, 'mtr_portfolio_id': 20261452, 'dashboard_result_id': 8711219, '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_P20261452_05-02-2025_15_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20261461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20261462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20261463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20261464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20261465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20261466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20261467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20261468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20261469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20261470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20261471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20261472, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1587883, 'mtr_portfolio_id': 20262234, 'dashboard_result_id': 8711220, '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_P20262234_05-02-2025_15_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20262244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20262245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20262246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20262247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20262248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20262249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20262250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20262251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20262252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20262253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20262254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20262255, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1587883, 'mtr_portfolio_id': 20262935, 'dashboard_result_id': 8711221, '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_P20262935_05-02-2025_15_56_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20262967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20262968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20262969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20262970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20262971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20262972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20262973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20262974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20262975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20262976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20262977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20262978, '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 = 20261240 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': 2551989, 'mtr_portfolio_id': 20261240, 'created_at': datetime.datetime(2025, 2, 5, 15, 16, 59), 'result': '0.02409676861084138', 'result_long': None, 'result_double': None}] Qualite : 0.02409676861084138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20261240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20261240_05-02-2025_15_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20261240 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_P20261240_05-02-2025_15_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20261247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20261248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20261249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20261250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20261251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20261252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20261253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20261254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20261255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20261256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20261257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20261258, 'pht': 3726}}" where mtr_portfolio_id = 20261240 and dashboard_run_id = 1587883 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`=20261240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8711218, 0.02409676861084138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20261240_05-02-2025_15_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20261247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20261248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20261249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20261250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20261251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20261252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20261253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20261254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20261255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20261256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20261257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20261258, '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 = 20261452 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': 2552063, 'mtr_portfolio_id': 20261452, 'created_at': datetime.datetime(2025, 2, 5, 15, 32, 59), 'result': '0.05184673070292047', 'result_long': None, 'result_double': None}] Qualite : 0.05184673070292047 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20261452 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20261452_05-02-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20261452 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_P20261452_05-02-2025_15_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20261461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20261462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20261463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20261464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20261465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20261466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20261467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20261468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20261469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20261470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20261471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20261472, 'pht': 3726}}" where mtr_portfolio_id = 20261452 and dashboard_run_id = 1587883 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`=20261452 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8711219, 0.05184673070292047, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20261452_05-02-2025_15_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20261461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20261462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20261463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20261464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20261465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20261466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20261467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20261468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20261469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20261470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20261471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20261472, '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 = 20262234 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': 2552199, 'mtr_portfolio_id': 20262234, 'created_at': datetime.datetime(2025, 2, 5, 15, 46, 57), 'result': '0.038216745678866196', 'result_long': None, 'result_double': None}] Qualite : 0.038216745678866196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20262234 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20262234_05-02-2025_15_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20262234 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_P20262234_05-02-2025_15_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20262244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20262245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20262246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20262247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20262248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20262249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20262250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20262251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20262252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20262253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20262254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20262255, 'pht': 3726}}" where mtr_portfolio_id = 20262234 and dashboard_run_id = 1587883 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`=20262234 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8711220, 0.038216745678866196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20262234_05-02-2025_15_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20262244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20262245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20262246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20262247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20262248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20262249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20262250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20262251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20262252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20262253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20262254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20262255, '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 = 20262935 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': 2552297, 'mtr_portfolio_id': 20262935, 'created_at': datetime.datetime(2025, 2, 5, 15, 59), 'result': '0.04572569210543287', 'result_long': None, 'result_double': None}] Qualite : 0.04572569210543287 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20262935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20262935_05-02-2025_15_59_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20262935 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_P20262935_05-02-2025_15_59_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20262967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20262968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20262969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20262970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20262971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20262972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20262973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20262974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20262975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20262976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20262977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20262978, 'pht': 3726}}" where mtr_portfolio_id = 20262935 and dashboard_run_id = 1587883 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`=20262935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8711221, 0.04572569210543287, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20262935_05-02-2025_15_59_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20262967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20262968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20262969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20262970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20262971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20262972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20262973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20262974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20262975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20262976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20262977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20262978, '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 (20261240,20261452,20262234,20262935) result : ((1334952695,), (1334952698,), (1334952833,), (1334952902,), (1334952906,), (1334953111,), (1334953114,), (1334953119,), (1334953127,), (1334953132,), (1334953154,), (1334953184,), (1334953220,), (1334953317,), (1334953383,), (1334953394,), (1334953397,), (1334953399,), (1334953436,), (1334953504,), (1334953507,), (1334953508,), (1334953510,), (1334953591,), (1334953598,), (1334953613,), (1334953614,), (1334953616,), (1334953645,), (1334953646,), (1334953651,), (1334953653,), (1334953679,), (1334953681,), (1334953685,), (1334953689,), (1334953693,), (1334953697,), (1334953719,), (1334953726,), (1334953737,), (1334953745,), (1334953747,), (1334953800,), (1334953797,), (1334953798,), (1334953829,), (1334953832,), (1334953972,), (1334954057,), (1334954245,), (1334954616,), (1334954705,), (1334954794,), (1334954879,), (1334956063,), (1334956067,), (1334956139,), (1334956141,), (1334956154,), (1334956176,), (1334956390,), (1334956544,), (1334957163,), (1334957165,), (1334957179,), (1334957181,), (1334957182,), (1334957189,), (1334957215,), (1334957217,), (1334957219,), (1334957220,), (1334957222,), (1334957728,), (1334957802,), (1334957886,), (1334957971,), (1334959689,), (1334959691,), (1334959722,), (1334959725,), (1334959754,), (1334959840,), (1334960575,), (1334960640,), (1334963267,), (1334963250,), (1334963256,), (1334963258,), (1334963445,), (1334963449,), (1334963456,), (1334963505,), (1334963759,), (1334963839,), (1334963856,), (1334963859,), (1334963907,), (1334963931,), (1334964033,), (1334964177,), (1334964404,), (1334964405,), (1334964407,), (1334964420,), (1334964423,), (1334964497,), (1334964502,), (1334964505,), (1334964509,), (1334964543,), (1334964594,), (1334964596,), (1334964670,), (1334964678,), (1334964683,), (1334964729,), (1334964731,), (1334964762,), (1334964800,), (1334964803,), (1334964807,), (1334964809,), (1334964812,), (1334964857,), (1334964866,), (1334964868,), (1334964872,), (1334964876,), (1334964996,), (1334964998,), (1334965004,), (1334965008,), (1334965012,), (1334965088,), (1334965090,), (1334965093,), (1334965096,), (1334965105,), (1334965383,), (1334965490,), (1334965587,), (1334965777,), (1334965876,), (1334965963,), (1334966424,), (1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05022025': {'nb_upload': 60, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20262935]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1334968712, 1334968709, 1334968704, 1334968632, 1334968628, 1334968624, 1334968623, 1334968397, 1334968394, 1334968389, 1334968383, 1334968381] map_info['map_portfolio_photo'] : {20262935: [1334968712, 1334968709, 1334968704, 1334968632, 1334968628, 1334968624, 1334968623, 1334968397, 1334968394, 1334968389, 1334968383, 1334968381, 1334968288, 1334968272, 1334968260, 1334968155, 1334968153, 1334968052, 1334968028, 1334968026, 1334968023, 1334968021, 1334967966, 1334967960, 1334967932, 1334967927, 1334967917, 1334967643, 1334967641, 1334967596, 1334967527, 1334967366, 1334967363, 1334967361, 1334967358, 1334967356, 1334967338, 1334967337, 1334967334, 1334967332, 1334967330, 1334967249, 1334967247, 1334967238, 1334967236, 1334967231, 1334967191, 1334967188, 1334967185, 1334967181, 1334967174, 1334967010, 1334966925, 1334966880, 1334966874, 1334966867, 1334966768, 1334966326, 1334966193, 1334966123]} final : True mtd_id 4302 list_pids : [1334968712, 1334968709, 1334968704, 1334968632, 1334968628, 1334968624, 1334968623, 1334968397, 1334968394, 1334968389, 1334968383, 1334968381] Looping around the photos to save general results len do output : 1 /20262935Didn'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, '2552297') ('4302', '20262935', '1334968712', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968709', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968704', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968632', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968628', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968624', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968623', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968397', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968394', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968389', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968383', None, None, None, None, None, '2552297') ('4302', None, None, None, None, None, None, None, '2552297') ('4302', '20262935', '1334968381', None, None, None, None, None, '2552297') 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', None, '20262935', 'None', None, None, None, None, '2552297'), ('4302', '20262935', '1334968712', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968709', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968704', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968632', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968628', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968624', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968623', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968397', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968394', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968389', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968383', None, None, None, None, None, '2552297'), ('4302', '20262935', '1334968381', None, None, None, None, None, '2552297')] time used for this insertion : 0.014276981353759766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33129453659057617 time spend to save output : 0.014568090438842773 total time spend for step 5 : 0.34586262702941895 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 (2552297) 2.13user 2.74system 0:15.09elapsed 32%CPU (0avgtext+0avgdata 160828maxresident)k 56inputs+14832outputs (0major+64266minor)pagefaults 0swaps