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 : 704618 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 (2715809) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2715809) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21969192 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2715809'] with mtr_portfolio_ids : ['21969192'] and first list_photo_ids : [] new path : /proc/704618/ Name: python3 Umask: 0002 State: R (running) Tgid: 704618 Ngid: 0 Pid: 704618 PPid: 704617 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 704618 NSpid: 704618 NSpgid: 703558 NSsid: 703558 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97328 kB VmRSS: 97328 kB RssAnon: 59772 kB RssFile: 37556 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 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: 44 nonvoluntary_ctxt_switches: 177 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '704618', 'Ngid': '0', 'Pid': '704618', 'PPid': '704617', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '704618', 'NSpid': '704618', 'NSpgid': '703558', 'NSsid': '703558', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97328 kB', 'VmRSS': '97328 kB', 'RssAnon': '59772 kB', 'RssFile': '37556 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 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': '44', 'nonvoluntary_ctxt_switches': '177'} ('datou_batch_current', '704618', '1106848', '0', '1106848', '865596', '97328', b'', 'marlene', '2715809') 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 (21969192) 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 (2715809 ) ) 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 (21969192) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349471704, 'portfolio_id': 21969192}, {'photo_id': 1349471696, 'portfolio_id': 21969192}, {'photo_id': 1349471688, 'portfolio_id': 21969192}, {'photo_id': 1349471684, 'portfolio_id': 21969192}, {'photo_id': 1349471680, 'portfolio_id': 21969192}, {'photo_id': 1349471644, 'portfolio_id': 21969192}, {'photo_id': 1349471634, 'portfolio_id': 21969192}, {'photo_id': 1349471631, 'portfolio_id': 21969192}, {'photo_id': 1349471627, 'portfolio_id': 21969192}, {'photo_id': 1349471624, 'portfolio_id': 21969192}, {'photo_id': 1349471587, 'portfolio_id': 21969192}, {'photo_id': 1349471586, 'portfolio_id': 21969192}, {'photo_id': 1349471584, 'portfolio_id': 21969192}, {'photo_id': 1349471583, 'portfolio_id': 21969192}, {'photo_id': 1349471560, 'portfolio_id': 21969192}, {'photo_id': 1349471555, 'portfolio_id': 21969192}, {'photo_id': 1349471549, 'portfolio_id': 21969192}, {'photo_id': 1349471547, 'portfolio_id': 21969192}, {'photo_id': 1349471543, 'portfolio_id': 21969192}, {'photo_id': 1349471533, 'portfolio_id': 21969192}, {'photo_id': 1349471487, 'portfolio_id': 21969192}, {'photo_id': 1349471483, 'portfolio_id': 21969192}, {'photo_id': 1349471479, 'portfolio_id': 21969192}, {'photo_id': 1349471475, 'portfolio_id': 21969192}, {'photo_id': 1349471402, 'portfolio_id': 21969192}, {'photo_id': 1349471396, 'portfolio_id': 21969192}, {'photo_id': 1349471388, 'portfolio_id': 21969192}, {'photo_id': 1349471373, 'portfolio_id': 21969192}, {'photo_id': 1349471370, 'portfolio_id': 21969192}, {'photo_id': 1349471359, 'portfolio_id': 21969192}, {'photo_id': 1349471315, 'portfolio_id': 21969192}, {'photo_id': 1349471312, 'portfolio_id': 21969192}, {'photo_id': 1349471309, 'portfolio_id': 21969192}, {'photo_id': 1349471306, 'portfolio_id': 21969192}, {'photo_id': 1349471303, 'portfolio_id': 21969192}, {'photo_id': 1349471206, 'portfolio_id': 21969192}, {'photo_id': 1349471198, 'portfolio_id': 21969192}, {'photo_id': 1349471187, 'portfolio_id': 21969192}, {'photo_id': 1349471181, 'portfolio_id': 21969192}, {'photo_id': 1349471179, 'portfolio_id': 21969192}, {'photo_id': 1349471176, 'portfolio_id': 21969192}, {'photo_id': 1349471136, 'portfolio_id': 21969192}, {'photo_id': 1349471133, 'portfolio_id': 21969192}, {'photo_id': 1349471131, 'portfolio_id': 21969192}, {'photo_id': 1349471126, 'portfolio_id': 21969192}, {'photo_id': 1349471121, 'portfolio_id': 21969192}, {'photo_id': 1349471117, 'portfolio_id': 21969192}, {'photo_id': 1349471030, 'portfolio_id': 21969192}, {'photo_id': 1349470995, 'portfolio_id': 21969192}, {'photo_id': 1349470991, 'portfolio_id': 21969192}, {'photo_id': 1349470989, 'portfolio_id': 21969192}, {'photo_id': 1349470908, 'portfolio_id': 21969192}, {'photo_id': 1349470904, 'portfolio_id': 21969192}, {'photo_id': 1349470899, 'portfolio_id': 21969192}, {'photo_id': 1349470897, 'portfolio_id': 21969192}, {'photo_id': 1349470894, 'portfolio_id': 21969192}, {'photo_id': 1349470893, 'portfolio_id': 21969192}, {'photo_id': 1349470792, 'portfolio_id': 21969192}, {'photo_id': 1349470788, 'portfolio_id': 21969192}, {'photo_id': 1349470786, 'portfolio_id': 21969192}] map_portfolio_id_photo_id: {21969192: [1349471704, 1349471696, 1349471688, 1349471684, 1349471680, 1349471644, 1349471634, 1349471631, 1349471627, 1349471624, 1349471587, 1349471586, 1349471584, 1349471583, 1349471560, 1349471555, 1349471549, 1349471547, 1349471543, 1349471533, 1349471487, 1349471483, 1349471479, 1349471475, 1349471402, 1349471396, 1349471388, 1349471373, 1349471370, 1349471359, 1349471315, 1349471312, 1349471309, 1349471306, 1349471303, 1349471206, 1349471198, 1349471187, 1349471181, 1349471179, 1349471176, 1349471136, 1349471133, 1349471131, 1349471126, 1349471121, 1349471117, 1349471030, 1349470995, 1349470991, 1349470989, 1349470908, 1349470904, 1349470899, 1349470897, 1349470894, 1349470893, 1349470792, 1349470788, 1349470786]} ##### 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.015866518020629883 #### 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 Apr 2 07:58:30 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 (21969192) 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 : 21969192 get user id for portfolio 21969192 get sub ptf for main ptf 21969192, type 3726 and hashtags ['flou', 'papier', 'cartonnette', 'mal_croppe', 'plastique', 'environnement', 'Carton_gris', 'kraft', 'Carton_brun', 'Teint_Dans_La_Masse', 'metal', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21969192 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','papier','cartonnette','mal_croppe','plastique','environnement','Carton_gris','kraft','Carton_brun','Teint_Dans_La_Masse','metal','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21969192 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','papier','cartonnette','mal_croppe','plastique','environnement','Carton_gris','kraft','Carton_brun','Teint_Dans_La_Masse','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21969192, 'sub_port_id': 21969193, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468785, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 27)}, 'cartonnette': {'main_port_id': 21969192, 'sub_port_id': 21969194, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468786, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 27)}, 'Carton_gris': {'main_port_id': 21969192, 'sub_port_id': 21969195, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468787, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 21969192, 'sub_port_id': 21969196, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468788, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 27)}, 'environnement': {'main_port_id': 21969192, 'sub_port_id': 21969197, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468789, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 27)}, 'kraft': {'main_port_id': 21969192, 'sub_port_id': 21969198, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468790, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 27)}, 'flou': {'main_port_id': 21969192, 'sub_port_id': 21969199, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468791, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 27)}, 'autre_refus': {'main_port_id': 21969192, 'sub_port_id': 21969200, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468792, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 27)}, 'Carton_brun': {'main_port_id': 21969192, 'sub_port_id': 21969201, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468793, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 27)}, 'plastique': {'main_port_id': 21969192, 'sub_port_id': 21969202, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468794, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 27)}, 'metal': {'main_port_id': 21969192, 'sub_port_id': 21969203, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468795, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 27)}, 'papier': {'main_port_id': 21969192, 'sub_port_id': 21969204, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468796, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21969193 , 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=21969192 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 (21969193) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21969192) result : ((1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,)) 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 21969194 , 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=21969192 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 (21969194) result : ((1349471159,), (1349471160,), (1349471343,), (1349471344,), (1349471366,), (1349471367,), (1349471527,), (1349471528,), (1349471529,), (1349471530,), (1349471531,), (1349471606,), (1349471652,), (1349471653,), (1349471654,), (1349471655,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21969192) result : ((1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,)) 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 21969195 , 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=21969192 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 (21969195) result : ((1349471158,), (1349471360,), (1349471523,), (1349471524,), (1349471642,), (1349471647,), (1349471648,), (1349471649,), (1349471650,), (1349471722,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21969192) result : ((1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,)) 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 21969196 , 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=21969192 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 (21969196) result : ((1349470939,), (1349471337,), (1349471338,), (1349471514,), (1349471517,), (1349471518,), (1349471519,), (1349471520,), (1349471604,), (1349471605,), (1349471635,), (1349471636,), (1349471637,), (1349471755,), (1349471756,), (1349471757,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21969192) result : ((1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,)) 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 21969197 , 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=21969192 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 (21969197) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21969192) result : ((1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,)) 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 21969198 , 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=21969192 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 (21969198) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21969192) result : ((1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,)) 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 21969199 , 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=21969192 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 (21969199) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21969192) result : ((1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,)) 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 21969200 , 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=21969192 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 (21969200) result : ((1349471155,), (1349471156,), (1349471339,), (1349471340,), (1349471341,), (1349471522,), (1349471638,), (1349471759,), (1349471760,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21969192) result : ((1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,)) 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 21969201 , 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=21969192 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 (21969201) result : ((1349470941,), (1349471163,), (1349471164,), (1349471346,), (1349471347,), (1349471368,), (1349471369,), (1349471534,), (1349471535,), (1349471536,), (1349471607,), (1349471608,), (1349471656,), (1349471657,), (1349471723,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21969192) result : ((1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,)) 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 21969202 , 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=21969192 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 (21969202) result : ((1349470945,), (1349470946,), (1349471167,), (1349471168,), (1349471349,), (1349471350,), (1349471660,), (1349471661,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21969192) result : ((1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,)) 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 21969203 , 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=21969192 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 (21969203) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21969192) result : ((1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,)) 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 21969204 , 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=21969192 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 (21969204) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21969192) result : ((1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,)) 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`=21969192 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','papier','cartonnette','mal_croppe','plastique','environnement','Carton_gris','kraft','Carton_brun','Teint_Dans_La_Masse','metal','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21969192 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','papier','cartonnette','mal_croppe','plastique','environnement','Carton_gris','kraft','Carton_brun','Teint_Dans_La_Masse','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21969192, 'sub_port_id': 21969205, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468797, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 33)}, 'cartonnette': {'main_port_id': 21969192, 'sub_port_id': 21969206, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468798, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 33)}, 'Carton_gris': {'main_port_id': 21969192, 'sub_port_id': 21969207, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468799, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 21969192, 'sub_port_id': 21969208, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468800, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 33)}, 'environnement': {'main_port_id': 21969192, 'sub_port_id': 21969209, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468801, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 33)}, 'kraft': {'main_port_id': 21969192, 'sub_port_id': 21969210, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468802, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 33)}, 'flou': {'main_port_id': 21969192, 'sub_port_id': 21969211, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468803, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 33)}, 'autre_refus': {'main_port_id': 21969192, 'sub_port_id': 21969212, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468804, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 33)}, 'Carton_brun': {'main_port_id': 21969192, 'sub_port_id': 21969213, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468805, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 33)}, 'plastique': {'main_port_id': 21969192, 'sub_port_id': 21969214, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468806, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 33)}, 'metal': {'main_port_id': 21969192, 'sub_port_id': 21969215, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468807, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 33)}, 'papier': {'main_port_id': 21969192, 'sub_port_id': 21969216, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468808, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 49, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21969205,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21969193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21969206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21969194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21969207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21969195 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21969208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21969196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21969209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21969197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21969210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21969198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21969211,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21969199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21969212,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21969200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21969213,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21969201 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21969214,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21969202 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21969215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21969203 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21969216,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21969204 lien utilise dans velours : https://www.fotonower.com/velours/21969205,21969206,21969207,21969208,21969209,21969210,21969211,21969212,21969213,21969214,21969215,21969216?tags=mal_croppe,cartonnette,Carton_gris,Teint_Dans_La_Masse,environnement,kraft,flou,autre_refus,Carton_brun,plastique,metal,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21969192]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349471704, 1349471696, 1349471688, 1349471684, 1349471680, 1349471644, 1349471634, 1349471631, 1349471627, 1349471624] map_info['map_portfolio_photo'] : {21969192: [1349471704, 1349471696, 1349471688, 1349471684, 1349471680, 1349471644, 1349471634, 1349471631, 1349471627, 1349471624, 1349471587, 1349471586, 1349471584, 1349471583, 1349471560, 1349471555, 1349471549, 1349471547, 1349471543, 1349471533, 1349471487, 1349471483, 1349471479, 1349471475, 1349471402, 1349471396, 1349471388, 1349471373, 1349471370, 1349471359, 1349471315, 1349471312, 1349471309, 1349471306, 1349471303, 1349471206, 1349471198, 1349471187, 1349471181, 1349471179, 1349471176, 1349471136, 1349471133, 1349471131, 1349471126, 1349471121, 1349471117, 1349471030, 1349470995, 1349470991, 1349470989, 1349470908, 1349470904, 1349470899, 1349470897, 1349470894, 1349470893, 1349470792, 1349470788, 1349470786]} final : False mtd_id 4302 list_pids : [1349471704, 1349471696, 1349471688, 1349471684, 1349471680, 1349471644, 1349471634, 1349471631, 1349471627, 1349471624] Looping around the photos to save general results len do output : 1 /21969192. 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, '2715809') ('4302', '21969192', '1349471704', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471696', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471688', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471684', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471680', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471644', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471634', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471631', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471627', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471624', None, None, None, None, None, '2715809') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21969192', "{'mal_croppe': 21969193, 'cartonnette': 21969194, 'Carton_gris': 21969195, 'Teint_Dans_La_Masse': 21969196, 'environnement': 21969197, 'kraft': 21969198, 'flou': 21969199, 'autre_refus': 21969200, 'Carton_brun': 21969201, 'plastique': 21969202, 'metal': 21969203, 'papier': 21969204}", None, None, None, None, '2715809'), ('4302', '21969192', '1349471704', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471696', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471688', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471684', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471680', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471644', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471634', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471631', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471627', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471624', None, None, None, None, None, '2715809')] time used for this insertion : 0.014310836791992188 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7570390701293945 time spend to save output : 0.014862298965454102 total time spend for step 1 : 1.7719013690948486 step2:final Wed Apr 2 07:58:32 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 (21969192) 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 21969192 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349470792,1349470788,1349470786,1349470908,1349470904,1349470899,1349470897,1349470894,1349470893,1349471030,1349470995,1349470991,1349470989,1349471136,1349471133,1349471131,1349471126,1349471121,1349471117,1349471206,1349471198,1349471187,1349471181,1349471179,1349471176,1349471315,1349471312,1349471309,1349471306,1349471303,1349471402,1349471396,1349471388,1349471373,1349471370,1349471359,1349471487,1349471483,1349471479,1349471475,1349471560,1349471555,1349471533,1349471549,1349471547,1349471543,1349471587,1349471586,1349471584,1349471583,1349471644,1349471634,1349471631,1349471627,1349471624,1349471704,1349471696,1349471688,1349471684,1349471680); 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([21969192]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',)} new output for save of step final : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',)} [1349471704, 1349471696, 1349471688, 1349471684, 1349471680, 1349471644, 1349471634, 1349471631, 1349471627, 1349471624] map_info['map_portfolio_photo'] : {21969192: [1349471704, 1349471696, 1349471688, 1349471684, 1349471680, 1349471644, 1349471634, 1349471631, 1349471627, 1349471624, 1349471587, 1349471586, 1349471584, 1349471583, 1349471560, 1349471555, 1349471549, 1349471547, 1349471543, 1349471533, 1349471487, 1349471483, 1349471479, 1349471475, 1349471402, 1349471396, 1349471388, 1349471373, 1349471370, 1349471359, 1349471315, 1349471312, 1349471309, 1349471306, 1349471303, 1349471206, 1349471198, 1349471187, 1349471181, 1349471179, 1349471176, 1349471136, 1349471133, 1349471131, 1349471126, 1349471121, 1349471117, 1349471030, 1349470995, 1349470991, 1349470989, 1349470908, 1349470904, 1349470899, 1349470897, 1349470894, 1349470893, 1349470792, 1349470788, 1349470786]} final : False mtd_id 4302 list_pids : [1349471704, 1349471696, 1349471688, 1349471684, 1349471680, 1349471644, 1349471634, 1349471631, 1349471627, 1349471624] Looping around the photos to save general results len do output : 10 /1349471704.Didn't retrieve data . /1349471696.Didn't retrieve data . /1349471688.Didn't retrieve data . /1349471684.Didn't retrieve data . /1349471680.Didn't retrieve data . /1349471644.Didn't retrieve data . /1349471634.Didn't retrieve data . /1349471631.Didn't retrieve data . /1349471627.Didn't retrieve data . /1349471624.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, '2715809') ('4302', '21969192', '1349471704', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471696', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471688', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471684', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471680', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471644', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471634', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471631', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471627', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471624', None, None, None, None, None, '2715809') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '21969192', '1349471704', '0.05184618939921589', None, None, None, None, '2715809'), ('4302', '21969192', '1349471696', '0.05184618939921589', None, None, None, None, '2715809'), ('4302', '21969192', '1349471688', '0.05184618939921589', None, None, None, None, '2715809'), ('4302', '21969192', '1349471684', '0.05184618939921589', None, None, None, None, '2715809'), ('4302', '21969192', '1349471680', '0.05184618939921589', None, None, None, None, '2715809'), ('4302', '21969192', '1349471644', '0.05184618939921589', None, None, None, None, '2715809'), ('4302', '21969192', '1349471634', '0.05184618939921589', None, None, None, None, '2715809'), ('4302', '21969192', '1349471631', '0.05184618939921589', None, None, None, None, '2715809'), ('4302', '21969192', '1349471627', '0.05184618939921589', None, None, None, None, '2715809'), ('4302', '21969192', '1349471624', '0.05184618939921589', None, None, None, None, '2715809')] time used for this insertion : 0.013489723205566406 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07351922988891602 time spend to save output : 0.014110803604125977 total time spend for step 2 : 0.08763003349304199 step3:velours_tree Wed Apr 2 07:58:32 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 : {21969192: [{'mal_croppe': 21969193, 'cartonnette': 21969194, 'Carton_gris': 21969195, 'Teint_Dans_La_Masse': 21969196, 'environnement': 21969197, 'kraft': 21969198, 'flou': 21969199, 'autre_refus': 21969200, 'Carton_brun': 21969201, 'plastique': 21969202, 'metal': 21969203, 'papier': 21969204}]} input_args_next_step : {21969192: ()} output_args : {21969192: [{'mal_croppe': 21969193, 'cartonnette': 21969194, 'Carton_gris': 21969195, 'Teint_Dans_La_Masse': 21969196, 'environnement': 21969197, 'kraft': 21969198, 'flou': 21969199, 'autre_refus': 21969200, 'Carton_brun': 21969201, 'plastique': 21969202, 'metal': 21969203, 'papier': 21969204}]} args : 21969192 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 : ({'mal_croppe': 21969193, 'cartonnette': 21969194, 'Carton_gris': 21969195, 'Teint_Dans_La_Masse': 21969196, 'environnement': 21969197, 'kraft': 21969198, 'flou': 21969199, 'autre_refus': 21969200, 'Carton_brun': 21969201, 'plastique': 21969202, 'metal': 21969203, 'papier': 21969204},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21969192) 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([21969192]) 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.5783114433288574 time spend to save output : 5.6743621826171875e-05 total time spend for step 3 : 0.5783681869506836 step4:send_mail_cod Wed Apr 2 07:58:32 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 : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',)} input_args_next_step : {1349471704: ()} output_args : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',)} args : 1349471704 depend.output_id : 0 input_args_next_step : {1349471704: ('0.05184618939921589',), 1349471696: ()} output_args : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',)} args : 1349471696 depend.output_id : 0 input_args_next_step : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ()} output_args : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',)} args : 1349471688 depend.output_id : 0 input_args_next_step : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ()} output_args : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',)} args : 1349471684 depend.output_id : 0 input_args_next_step : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ()} output_args : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',)} args : 1349471680 depend.output_id : 0 input_args_next_step : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ()} output_args : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',)} args : 1349471644 depend.output_id : 0 input_args_next_step : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ()} output_args : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',)} args : 1349471634 depend.output_id : 0 input_args_next_step : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ()} output_args : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',)} args : 1349471631 depend.output_id : 0 input_args_next_step : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ()} output_args : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',)} args : 1349471627 depend.output_id : 0 input_args_next_step : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ()} output_args : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',)} args : 1349471624 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 : {21969192: [{'mal_croppe': 21969193, 'cartonnette': 21969194, 'Carton_gris': 21969195, 'Teint_Dans_La_Masse': 21969196, 'environnement': 21969197, 'kraft': 21969198, 'flou': 21969199, 'autre_refus': 21969200, 'Carton_brun': 21969201, 'plastique': 21969202, 'metal': 21969203, 'papier': 21969204}]} input_args_next_step : {1349471704: ('0.05184618939921589',), 1349471696: ('0.05184618939921589',), 1349471688: ('0.05184618939921589',), 1349471684: ('0.05184618939921589',), 1349471680: ('0.05184618939921589',), 1349471644: ('0.05184618939921589',), 1349471634: ('0.05184618939921589',), 1349471631: ('0.05184618939921589',), 1349471627: ('0.05184618939921589',), 1349471624: ('0.05184618939921589',), 21969192: ()} output_args : {21969192: [{'mal_croppe': 21969193, 'cartonnette': 21969194, 'Carton_gris': 21969195, 'Teint_Dans_La_Masse': 21969196, 'environnement': 21969197, 'kraft': 21969198, 'flou': 21969199, 'autre_refus': 21969200, 'Carton_brun': 21969201, 'plastique': 21969202, 'metal': 21969203, 'papier': 21969204}]} args : 21969192 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 :11, first value : ('0.05184618939921589',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21969192) 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 (1349471704,1349471696,1349471688,1349471684,1349471680,1349471644,1349471634,1349471631,1349471627,1349471624) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349471624 begin to download photo : 1349471634 begin to download photo : 1349471684 begin to download photo : 1349471704 download finish for photo 1349471624 begin to download photo : 1349471627 download finish for photo 1349471684 begin to download photo : 1349471688 download finish for photo 1349471704 download finish for photo 1349471634 begin to download photo : 1349471644 download finish for photo 1349471688 begin to download photo : 1349471696 download finish for photo 1349471644 begin to download photo : 1349471680 download finish for photo 1349471627 begin to download photo : 1349471631 download finish for photo 1349471696 download finish for photo 1349471631 download finish for photo 1349471680 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette219691931743573513/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21969192_02-04-2025_07_58_33.pdf 21969193 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=21969193 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219691931743573513 21969194 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=21969194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349471159: '1743572953_1006884_1349470897_62f556b49f3b8e7b736a5371ee568330_rle_crop_3743977775_0.png', 1349471160: '1743572953_1006884_1349470894_3463374fbfee3a2d5d0de061a22bf837_rle_crop_3743977788_0.png', 1349471343: '1743573073_1008129_1349470995_bb2b479a58ac1eac958b738d380899ce_rle_crop_3743978352_0.png', 1349471344: '1743573073_1008129_1349470989_3c6de74c76eacba72f01f9dc73548505_rle_crop_3743978383_0.png', 1349471366: '1743573091_1008316_1349471131_585fbe98e18b465e63bbe7e98cd59955_rle_crop_3743978563_0.png', 1349471367: '1743573091_1008316_1349471121_541ad835f4463eafd3b97230a54ec9a2_rle_crop_3743978587_0.png', 1349471527: '1743573193_1009201_1349471198_be393015091d0280523f37163b8ddb7c_rle_crop_3743980608_0.png', 1349471528: '1743573193_1009201_1349471187_9eb24c268306257b9933221a79b20abf_rle_crop_3743980635_0.png', 1349471529: '1743573193_1009201_1349471187_9eb24c268306257b9933221a79b20abf_rle_crop_3743980630_0.png', 1349471530: '1743573193_1009201_1349471181_43b74d24ea7f25e3e30f6dd1e50da8bf_rle_crop_3743980657_0.png', 1349471531: '1743573193_1009201_1349471176_c2f6d47f018a914f452ebe06d6d19402_rle_crop_3743980684_0.png', 1349471606: '1743573313_1010135_1349471483_0bc020eb49458c897da315e9effca350_rle_crop_3743980800_0.png', 1349471652: '1743573333_1010332_1349471396_5cccc584335f8601acba447eb8e02321_rle_crop_3743981070_0.png', 1349471653: '1743573333_1010332_1349471396_5cccc584335f8601acba447eb8e02321_rle_crop_3743981072_0.png', 1349471654: '1743573333_1010332_1349471388_5e33dc7d01972f4a8dbb67c23c5ba2a7_rle_crop_3743981099_0.png', 1349471655: '1743573333_1010332_1349471359_a68c108fa98311d2e59cad403c6c8a50_rle_crop_3743981153_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/db05ac59ad7436e78526561f1e3cd50d_69756374.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/50db23109cdc35d9b72c0165128f5f10_96987942.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7eea06efd1f4ad3834536b61ca3eb01f_47676313.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f602661ed639f59a6171a0f99b5d2da6_33966222.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/bc6380eb050b2be9d623eed55ce44c73_58053723.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e1cd6bfc2af2f1e1ac6b201b1bb548a2_85418004.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/05fc470fc065f97f010ff8583ee2cde1_21311361.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/85fd6bdae39f78fbd883faefd833387c_30474834.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2f44e313469be4bd0236eae3b29efabb_31170584.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/03b3a1ce737cf9c8ad137384bcc4adfd_95042295.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e2b85c4d615cabb7b52b4f9094fa8479_30950060.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d2d2d098506c0eeeeb326a6f9030d3d3_27509373.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0386801f87cf637252256d5c77796d65_35375052.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d593303f341417693a65f7671ea8be80_64894147.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/10034be8d1a9b3f4733ef0e0abb57eac_56799561.png change filename to text .imagette219691941743573513/ imagette219691941743573513/1743573193_1009201_1349471198_be393015091d0280523f37163b8ddb7c_rle_crop_3743980608_0.png.png imagette219691941743573513/1743573333_1010332_1349471388_5e33dc7d01972f4a8dbb67c23c5ba2a7_rle_crop_3743981099_0.png.png imagette219691941743573513/1743573333_1010332_1349471396_5cccc584335f8601acba447eb8e02321_rle_crop_3743981072_0.png.png imagette219691941743573513/1743573073_1008129_1349470995_bb2b479a58ac1eac958b738d380899ce_rle_crop_3743978352_0.png.png imagette219691941743573513/1743573193_1009201_1349471176_c2f6d47f018a914f452ebe06d6d19402_rle_crop_3743980684_0.png.png imagette219691941743573513/1743573193_1009201_1349471187_9eb24c268306257b9933221a79b20abf_rle_crop_3743980635_0.png.png imagette219691941743573513/1743573073_1008129_1349470989_3c6de74c76eacba72f01f9dc73548505_rle_crop_3743978383_0.png.png imagette219691941743573513/1743572953_1006884_1349470897_62f556b49f3b8e7b736a5371ee568330_rle_crop_3743977775_0.png.png imagette219691941743573513/1743573313_1010135_1349471483_0bc020eb49458c897da315e9effca350_rle_crop_3743980800_0.png.png imagette219691941743573513/1743573193_1009201_1349471181_43b74d24ea7f25e3e30f6dd1e50da8bf_rle_crop_3743980657_0.png.png imagette219691941743573513/1743573333_1010332_1349471359_a68c108fa98311d2e59cad403c6c8a50_rle_crop_3743981153_0.png.png imagette219691941743573513/1743573193_1009201_1349471187_9eb24c268306257b9933221a79b20abf_rle_crop_3743980630_0.png.png imagette219691941743573513/1743572953_1006884_1349470894_3463374fbfee3a2d5d0de061a22bf837_rle_crop_3743977788_0.png.png imagette219691941743573513/1743573333_1010332_1349471396_5cccc584335f8601acba447eb8e02321_rle_crop_3743981070_0.png.png imagette219691941743573513/1743573091_1008316_1349471121_541ad835f4463eafd3b97230a54ec9a2_rle_crop_3743978587_0.png.png imagette219691941743573513/1743573091_1008316_1349471131_585fbe98e18b465e63bbe7e98cd59955_rle_crop_3743978563_0.png.png imagette219691981743573514/ imagette219691991743573514/ wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/50d0105351104847654a70f0fcabc1b6_9723900.png imagette219691941743573513 21969198 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=21969198 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219691981743573514 21969199 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=21969199 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219691991743573514 21969200 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=21969200 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349471155: '1743572953_1006884_1349470904_c91c306be7f2931f4600d49ea21966b0_rle_crop_3743977743_0.png', 1349471156: '1743572953_1006884_1349470897_62f556b49f3b8e7b736a5371ee568330_rle_crop_3743977772_0.png', 1349471339: '1743573073_1008129_1349470995_bb2b479a58ac1eac958b738d380899ce_rle_crop_3743978350_0.png', 1349471340: '1743573073_1008129_1349470991_ab29e793fbf1c4f9101e8f26a47f23a7_rle_crop_3743978375_0.png', 1349471341: '1743573073_1008129_1349470989_3c6de74c76eacba72f01f9dc73548505_rle_crop_3743978384_0.png', 1349471522: '1743573193_1009201_1349471176_c2f6d47f018a914f452ebe06d6d19402_rle_crop_3743980689_0.png', 1349471638: '1743573333_1010332_1349471388_5e33dc7d01972f4a8dbb67c23c5ba2a7_rle_crop_3743981095_0.png', 1349471759: '1743573450_1011676_1349471549_7b86b755cc8b1464a775d099d9ea9163_rle_crop_3743992606_0.png', 1349471760: '1743573450_1011676_1349471549_7b86b755cc8b1464a775d099d9ea9163_rle_crop_3743992609_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3f0ea196438abc487a43cc7f7b0b5634_59703421.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b47532e0158795b841b5cb3231052229_60555558.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f09e2ab5fb26bba3fa08672fcab8a5d4_64916691.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/bbe7dc312df74127eb4437db3bbaf794_63279169.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/88c7676dd8b9c3a28da04ba17f0bd529_71268158.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4dcafe5cba9ac7faf9317f253c88a86c_83583885.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e9a3d4f0b3bd6e996f13f4c9180c5a8c_87092436.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d8b763371a1490017acbda14e8e9ebd0_48972528.png change filename to text .imagette219692001743573514/ imagette219692001743573514/1743572953_1006884_1349470904_c91c306be7f2931f4600d49ea21966b0_rle_crop_3743977743_0.png.png imagette219692001743573514/1743573073_1008129_1349470991_ab29e793fbf1c4f9101e8f26a47f23a7_rle_crop_3743978375_0.png.png imagette219692001743573514/1743573193_1009201_1349471176_c2f6d47f018a914f452ebe06d6d19402_rle_crop_3743980689_0.png.png imagette219692001743573514/1743573333_1010332_1349471388_5e33dc7d01972f4a8dbb67c23c5ba2a7_rle_crop_3743981095_0.png.png imagette219692001743573514/1743573073_1008129_1349470989_3c6de74c76eacba72f01f9dc73548505_rle_crop_3743978384_0.png.png imagette219692001743573514/1743573073_1008129_1349470995_bb2b479a58ac1eac958b738d380899ce_rle_crop_3743978350_0.png.png imagette219692001743573514/1743573450_1011676_1349471549_7b86b755cc8b1464a775d099d9ea9163_rle_crop_3743992606_0.png.png imagette219692001743573514/1743572953_1006884_1349470897_62f556b49f3b8e7b736a5371ee568330_rle_crop_3743977772_0.png.png imagette219692001743573514/1743573450_1011676_1349471549_7b86b755cc8b1464a775d099d9ea9163_rle_crop_3743992609_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8b8ad4664604dce1d9e819bdf7ee1792_42161286.png imagette219692001743573514 21969202 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=21969202 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349470945: '1743572850_1005768_1349470788_d4b99484d024a961b4d8826d48ef92e0_rle_crop_3743976619_0.png', 1349470946: '1743572850_1005768_1349470786_50635b2567e938ac2ce963075b2123aa_rle_crop_3743976643_0.png', 1349471167: '1743572953_1006884_1349470904_c91c306be7f2931f4600d49ea21966b0_rle_crop_3743977744_0.png', 1349471168: '1743572953_1006884_1349470897_62f556b49f3b8e7b736a5371ee568330_rle_crop_3743977781_0.png', 1349471349: '1743573073_1008129_1349470995_bb2b479a58ac1eac958b738d380899ce_rle_crop_3743978361_0.png', 1349471350: '1743573073_1008129_1349470991_ab29e793fbf1c4f9101e8f26a47f23a7_rle_crop_3743978374_0.png', 1349471660: '1743573333_1010332_1349471388_5e33dc7d01972f4a8dbb67c23c5ba2a7_rle_crop_3743981101_0.png', 1349471661: '1743573333_1010332_1349471359_a68c108fa98311d2e59cad403c6c8a50_rle_crop_3743981149_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b060900d0f85a1db45d129f53ac44f36_33878908.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/aa17fee9958ed90aaa8322ad158d3633_66255028.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7e5a33e5a8a22ba5f31d404376ecc1d4_50266553.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/fd048923aefc66de8c15e4c5dd7f37c3_33376486.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cafe90fa242781f74cd4077a7f19b23e_54599420.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7673ccea313c107fbcc854ea369dee13_99837581.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6c245869a82a5d293b94c5e5ffd95184_83748673.png change filename to text .imagette219692021743573514/ imagette219692021743573514/1743572953_1006884_1349470897_62f556b49f3b8e7b736a5371ee568330_rle_crop_3743977781_0.png.png imagette219692021743573514/1743572953_1006884_1349470904_c91c306be7f2931f4600d49ea21966b0_rle_crop_3743977744_0.png.png imagette219692021743573514/1743573073_1008129_1349470995_bb2b479a58ac1eac958b738d380899ce_rle_crop_3743978361_0.png.png imagette219692021743573514/1743573333_1010332_1349471388_5e33dc7d01972f4a8dbb67c23c5ba2a7_rle_crop_3743981101_0.png.png imagette219692021743573514/1743572850_1005768_1349470788_d4b99484d024a961b4d8826d48ef92e0_rle_crop_3743976619_0.png.png imagette219692021743573514/1743573073_1008129_1349470991_ab29e793fbf1c4f9101e8f26a47f23a7_rle_crop_3743978374_0.png.png imagette219692021743573514/1743573333_1010332_1349471359_a68c108fa98311d2e59cad403c6c8a50_rle_crop_3743981149_0.png.png imagette219692021743573514/1743572850_1005768_1349470786_50635b2567e938ac2ce963075b2123aa_rle_crop_3743976643_0.png.png imagette219692031743573515/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/da143838b93df6ebe99425dd220b7896_14262944.png imagette219692021743573514 21969203 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=21969203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219692031743573515 21969195 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=21969195 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349471158: '1743572953_1006884_1349470893_e36031c9d95f9374c7128e1e748f2d56_rle_crop_3743977801_0.png', 1349471360: '1743573091_1008316_1349471117_81dbefbb82ae965b8b92cc92040b022d_rle_crop_3743978605_0.png', 1349471523: '1743573193_1009201_1349471198_be393015091d0280523f37163b8ddb7c_rle_crop_3743980612_0.png', 1349471524: '1743573193_1009201_1349471176_c2f6d47f018a914f452ebe06d6d19402_rle_crop_3743980678_0.png', 1349471642: '1743573333_1010332_1349471487_5463b1b5d4351fb1da0b66a09c2dee2a_rle_crop_3743981054_0.png', 1349471647: '1743573333_1010332_1349471487_5463b1b5d4351fb1da0b66a09c2dee2a_rle_crop_3743981055_0.png', 1349471648: '1743573333_1010332_1349471388_5e33dc7d01972f4a8dbb67c23c5ba2a7_rle_crop_3743981100_0.png', 1349471649: '1743573333_1010332_1349471373_cdef7f52ed84825d8687b3e87d8a1b85_rle_crop_3743981117_0.png', 1349471650: '1743573333_1010332_1349471373_cdef7f52ed84825d8687b3e87d8a1b85_rle_crop_3743981111_0.png', 1349471722: '1743573433_1011462_1349471583_36ab3cb2a388a8d4aa7f0717ae8fbb71_rle_crop_3743992373_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5b1f324b8392e7a682f7230cd7e2baba_11938401.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/202bc86eb587bcb09091213a941492f4_96224873.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e2445d39cb9495e17ae01ff7fa8c66d6_96474499.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9d00348b79031e71fe45fdc386fd1df9_25072003.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f86a5c2c7f248e320d93d6ddda2f6943_29042358.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/282ef638782af6b31af2188849116e03_36889132.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/68872d00d1e82d7eb3a7b6f6efa401c5_42122434.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/553b01ea9106f14b63a36722ac979cd1_2110073.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2f057a7ec32bbcd28651a458702a104a_4666908.png change filename to text .imagette219691951743573515/ imagette219691951743573515/1743573333_1010332_1349471487_5463b1b5d4351fb1da0b66a09c2dee2a_rle_crop_3743981055_0.png.png imagette219691951743573515/1743572953_1006884_1349470893_e36031c9d95f9374c7128e1e748f2d56_rle_crop_3743977801_0.png.png imagette219691951743573515/1743573333_1010332_1349471373_cdef7f52ed84825d8687b3e87d8a1b85_rle_crop_3743981111_0.png.png imagette219691951743573515/1743573193_1009201_1349471176_c2f6d47f018a914f452ebe06d6d19402_rle_crop_3743980678_0.png.png imagette219691951743573515/1743573433_1011462_1349471583_36ab3cb2a388a8d4aa7f0717ae8fbb71_rle_crop_3743992373_0.png.png imagette219691951743573515/1743573333_1010332_1349471487_5463b1b5d4351fb1da0b66a09c2dee2a_rle_crop_3743981054_0.png.png imagette219691951743573515/1743573333_1010332_1349471388_5e33dc7d01972f4a8dbb67c23c5ba2a7_rle_crop_3743981100_0.png.png imagette219691951743573515/1743573333_1010332_1349471373_cdef7f52ed84825d8687b3e87d8a1b85_rle_crop_3743981117_0.png.png imagette219691951743573515/1743573193_1009201_1349471198_be393015091d0280523f37163b8ddb7c_rle_crop_3743980612_0.png.png imagette219691951743573515/1743573091_1008316_1349471117_81dbefbb82ae965b8b92cc92040b022d_rle_crop_3743978605_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d1705106a4ec93a591c533dfd7b56555_61874121.png imagette219691951743573515 21969196 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=21969196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349470939: '1743572850_1005768_1349470786_50635b2567e938ac2ce963075b2123aa_rle_crop_3743976636_0.png', 1349471337: '1743573073_1008129_1349470995_bb2b479a58ac1eac958b738d380899ce_rle_crop_3743978354_0.png', 1349471338: '1743573073_1008129_1349470995_bb2b479a58ac1eac958b738d380899ce_rle_crop_3743978359_0.png', 1349471514: '1743573205_3192486_1349471303_a498709ad0e91e0365c775bd071ae0ff_rle_crop_3743980645_0.png', 1349471517: '1743573193_1009201_1349471315_ae10ffa84c0d79066708b4b920cf3b92_rle_crop_3743980592_0.png', 1349471518: '1743573193_1009201_1349471198_be393015091d0280523f37163b8ddb7c_rle_crop_3743980616_0.png', 1349471519: '1743573193_1009201_1349471187_9eb24c268306257b9933221a79b20abf_rle_crop_3743980634_0.png', 1349471520: '1743573193_1009201_1349471181_43b74d24ea7f25e3e30f6dd1e50da8bf_rle_crop_3743980655_0.png', 1349471604: '1743573313_1010135_1349471483_0bc020eb49458c897da315e9effca350_rle_crop_3743980803_0.png', 1349471605: '1743573313_1010135_1349471479_5012890722f8749a9a4f93246bdee6a3_rle_crop_3743980818_0.png', 1349471635: '1743573333_1010332_1349471396_5cccc584335f8601acba447eb8e02321_rle_crop_3743981073_0.png', 1349471636: '1743573333_1010332_1349471373_cdef7f52ed84825d8687b3e87d8a1b85_rle_crop_3743981113_0.png', 1349471637: '1743573333_1010332_1349471359_a68c108fa98311d2e59cad403c6c8a50_rle_crop_3743981157_0.png', 1349471755: '1743573450_1011676_1349471555_f0ddbf948a498bc711286145208b476b_rle_crop_3743992596_0.png', 1349471756: '1743573450_1011676_1349471549_7b86b755cc8b1464a775d099d9ea9163_rle_crop_3743992612_0.png', 1349471757: '1743573450_1011676_1349471533_dc3a0c9864493941f0fff010b9b80aa2_rle_crop_3743992664_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6c532a613092c58d9cdc8bac1e34d5e9_48037441.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/57aad468eb6d8142dac4dc6293ee6a7e_60952407.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/11976856cc4adada3101cc6ac6cdb0d2_33753478.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c01e8cd7cd53fc174e59ae460850aff3_83146092.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2558f7c536d41ec1ad6fce31d5aee854_84691240.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7f0c669dcf3f52394cf29facc64886a8_64065356.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/93388e2ecc747779791bcd64a3138dc6_43124440.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cd2d32988abf429e41358fea246cd8ca_43563838.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/84e18fc146217ae064cdab234f006cb5_33617556.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/097f72f94536f87dfad804de999ae978_14115403.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/af9f6078385755893d38ab8be982419d_134053.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/41e9eace5bfb2cbe6ad1305165037846_4608540.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4e3aee85f4d030e404a0e2b5ed54ce77_97806440.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ffcbdb4a0943ba02a895c0d6cf91115c_45867384.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/97daf869a30b4da5d07a22cbbde136ec_68701632.png change filename to text .imagette219691961743573515/ imagette219691961743573515/1743573333_1010332_1349471396_5cccc584335f8601acba447eb8e02321_rle_crop_3743981073_0.png.png imagette219691961743573515/1743573205_3192486_1349471303_a498709ad0e91e0365c775bd071ae0ff_rle_crop_3743980645_0.png.png imagette219691961743573515/1743573450_1011676_1349471555_f0ddbf948a498bc711286145208b476b_rle_crop_3743992596_0.png.png imagette219691961743573515/1743573450_1011676_1349471549_7b86b755cc8b1464a775d099d9ea9163_rle_crop_3743992612_0.png.png imagette219691961743573515/1743573333_1010332_1349471373_cdef7f52ed84825d8687b3e87d8a1b85_rle_crop_3743981113_0.png.png imagette219691961743573515/1743573193_1009201_1349471198_be393015091d0280523f37163b8ddb7c_rle_crop_3743980616_0.png.png imagette219691961743573515/1743573313_1010135_1349471483_0bc020eb49458c897da315e9effca350_rle_crop_3743980803_0.png.png imagette219691961743573515/1743573450_1011676_1349471533_dc3a0c9864493941f0fff010b9b80aa2_rle_crop_3743992664_0.png.png imagette219691961743573515/1743573313_1010135_1349471479_5012890722f8749a9a4f93246bdee6a3_rle_crop_3743980818_0.png.png imagette219691961743573515/1743573073_1008129_1349470995_bb2b479a58ac1eac958b738d380899ce_rle_crop_3743978354_0.png.png imagette219691961743573515/1743573193_1009201_1349471315_ae10ffa84c0d79066708b4b920cf3b92_rle_crop_3743980592_0.png.png imagette219691961743573515/1743573333_1010332_1349471359_a68c108fa98311d2e59cad403c6c8a50_rle_crop_3743981157_0.png.png imagette219691961743573515/1743573073_1008129_1349470995_bb2b479a58ac1eac958b738d380899ce_rle_crop_3743978359_0.png.png imagette219691961743573515/1743573193_1009201_1349471187_9eb24c268306257b9933221a79b20abf_rle_crop_3743980634_0.png.png imagette219691961743573515/1743573193_1009201_1349471181_43b74d24ea7f25e3e30f6dd1e50da8bf_rle_crop_3743980655_0.png.png imagette219691961743573515/1743572850_1005768_1349470786_50635b2567e938ac2ce963075b2123aa_rle_crop_3743976636_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1a3ae5d5e0c9affdea0843bc62116598_56915214.png imagette219691961743573515 21969201 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=21969201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349470941: '1743572850_1005768_1349470786_50635b2567e938ac2ce963075b2123aa_rle_crop_3743976637_0.png', 1349471163: '1743572953_1006884_1349470899_668d3678a8613151c0f2f7d20e04edb7_rle_crop_3743977758_0.png', 1349471164: '1743572953_1006884_1349470893_e36031c9d95f9374c7128e1e748f2d56_rle_crop_3743977804_0.png', 1349471346: '1743573073_1008129_1349470995_bb2b479a58ac1eac958b738d380899ce_rle_crop_3743978355_0.png', 1349471347: '1743573073_1008129_1349470989_3c6de74c76eacba72f01f9dc73548505_rle_crop_3743978388_0.png', 1349471368: '1743573091_1008316_1349471121_541ad835f4463eafd3b97230a54ec9a2_rle_crop_3743978586_0.png', 1349471369: '1743573091_1008316_1349471121_541ad835f4463eafd3b97230a54ec9a2_rle_crop_3743978591_0.png', 1349471534: '1743573193_1009201_1349471315_ae10ffa84c0d79066708b4b920cf3b92_rle_crop_3743980590_0.png', 1349471535: '1743573193_1009201_1349471198_be393015091d0280523f37163b8ddb7c_rle_crop_3743980618_0.png', 1349471536: '1743573193_1009201_1349471176_c2f6d47f018a914f452ebe06d6d19402_rle_crop_3743980685_0.png', 1349471607: '1743573313_1010135_1349471483_0bc020eb49458c897da315e9effca350_rle_crop_3743980809_0.png', 1349471608: '1743573313_1010135_1349471483_0bc020eb49458c897da315e9effca350_rle_crop_3743980804_0.png', 1349471656: '1743573333_1010332_1349471487_5463b1b5d4351fb1da0b66a09c2dee2a_rle_crop_3743981060_0.png', 1349471657: '1743573333_1010332_1349471396_5cccc584335f8601acba447eb8e02321_rle_crop_3743981075_0.png', 1349471723: '1743573433_1011462_1349471583_36ab3cb2a388a8d4aa7f0717ae8fbb71_rle_crop_3743992378_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d759986f78e4fd2ccb46108cb8092273_70153056.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/65aa8d13871b5bc94f30121b2e73c5b8_43409403.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c50d493854f5be4768700a6c754cbbab_58723372.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/eeaa7f6fd2cbf42c18993d3db0047cb7_6531281.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/eccf0a8be8b1f3604ff79ba66e793322_70701769.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ae39dcffd79f2e13b3d9f2e290c8ede9_52506597.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f2cf30c96a322b4b3d83c9d8ba278ffd_25465663.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/46b96bd44a1aa270c75c940d655a3cf9_52706038.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1926be5d73d547402fb611eb99d0e690_28772025.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/efd2084d49a7747a0ef61bd458bc7c31_92815246.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7f5158201d77c8019ec8ea9c63a11771_95191945.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8fe1303fc1241f7f640ec50226e0abe1_28416056.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/584472ad8b113f20305f31eeca2e0b02_41797770.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4b68f1b85ec27cd730de8c42087da158_90903343.png change filename to text .imagette219692011743573516/ imagette219692011743573516/1743573313_1010135_1349471483_0bc020eb49458c897da315e9effca350_rle_crop_3743980809_0.png.png imagette219692011743573516/1743573333_1010332_1349471396_5cccc584335f8601acba447eb8e02321_rle_crop_3743981075_0.png.png imagette219692011743573516/1743573091_1008316_1349471121_541ad835f4463eafd3b97230a54ec9a2_rle_crop_3743978586_0.png.png imagette219692011743573516/1743573073_1008129_1349470995_bb2b479a58ac1eac958b738d380899ce_rle_crop_3743978355_0.png.png imagette219692011743573516/1743573313_1010135_1349471483_0bc020eb49458c897da315e9effca350_rle_crop_3743980804_0.png.png imagette219692011743573516/1743573193_1009201_1349471315_ae10ffa84c0d79066708b4b920cf3b92_rle_crop_3743980590_0.png.png imagette219692011743573516/1743573433_1011462_1349471583_36ab3cb2a388a8d4aa7f0717ae8fbb71_rle_crop_3743992378_0.png.png imagette219692011743573516/1743572850_1005768_1349470786_50635b2567e938ac2ce963075b2123aa_rle_crop_3743976637_0.png.png imagette219692011743573516/1743572953_1006884_1349470899_668d3678a8613151c0f2f7d20e04edb7_rle_crop_3743977758_0.png.png imagette219692011743573516/1743573073_1008129_1349470989_3c6de74c76eacba72f01f9dc73548505_rle_crop_3743978388_0.png.png imagette219692011743573516/1743573333_1010332_1349471487_5463b1b5d4351fb1da0b66a09c2dee2a_rle_crop_3743981060_0.png.png imagette219692011743573516/1743573193_1009201_1349471176_c2f6d47f018a914f452ebe06d6d19402_rle_crop_3743980685_0.png.png imagette219692011743573516/1743573091_1008316_1349471121_541ad835f4463eafd3b97230a54ec9a2_rle_crop_3743978591_0.png.png imagette219692011743573516/1743572953_1006884_1349470893_e36031c9d95f9374c7128e1e748f2d56_rle_crop_3743977804_0.png.png imagette219692011743573516/1743573193_1009201_1349471198_be393015091d0280523f37163b8ddb7c_rle_crop_3743980618_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ac10a8c3641e5edf0fa39a7b8b5aed21_84236880.png imagette219692011743573516 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21969192 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21969205,21969206,21969207,21969208,21969209,21969210,21969211,21969212,21969213,21969214,21969215,21969216?tags=mal_croppe,cartonnette,Carton_gris,Teint_Dans_La_Masse,environnement,kraft,flou,autre_refus,Carton_brun,plastique,metal,papier your option no_mail is active, we will not send the real mail to your client args[1349471704] : ('0.05184618939921589',) no score found for photo 1349471704 We are sending mail with results at report@fotonower.com args[1349471696] : ('0.05184618939921589',) no score found for photo 1349471696 We are sending mail with results at report@fotonower.com args[1349471688] : ('0.05184618939921589',) no score found for photo 1349471688 We are sending mail with results at report@fotonower.com args[1349471684] : ('0.05184618939921589',) no score found for photo 1349471684 We are sending mail with results at report@fotonower.com args[1349471680] : ('0.05184618939921589',) no score found for photo 1349471680 We are sending mail with results at report@fotonower.com args[1349471644] : ('0.05184618939921589',) no score found for photo 1349471644 We are sending mail with results at report@fotonower.com args[1349471634] : ('0.05184618939921589',) no score found for photo 1349471634 We are sending mail with results at report@fotonower.com args[1349471631] : ('0.05184618939921589',) no score found for photo 1349471631 We are sending mail with results at report@fotonower.com args[1349471627] : ('0.05184618939921589',) no score found for photo 1349471627 We are sending mail with results at report@fotonower.com args[1349471624] : ('0.05184618939921589',) no score found for photo 1349471624 We are sending mail with results at report@fotonower.com refus_total : 0.05184618939921589 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=21969192 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_P21969192_02-04-2025_07_58_33.pdf results_Auto_P21969192_02-04-2025_07_58_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969192_02-04-2025_07_58_33.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','21969192','results_Auto_P21969192_02-04-2025_07_58_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969192_02-04-2025_07_58_33.pdf','pdf','','0.27','0.05184618939921589') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21969192]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349471704, 1349471696, 1349471688, 1349471684, 1349471680, 1349471644, 1349471634, 1349471631, 1349471627, 1349471624] map_info['map_portfolio_photo'] : {21969192: [1349471704, 1349471696, 1349471688, 1349471684, 1349471680, 1349471644, 1349471634, 1349471631, 1349471627, 1349471624, 1349471587, 1349471586, 1349471584, 1349471583, 1349471560, 1349471555, 1349471549, 1349471547, 1349471543, 1349471533, 1349471487, 1349471483, 1349471479, 1349471475, 1349471402, 1349471396, 1349471388, 1349471373, 1349471370, 1349471359, 1349471315, 1349471312, 1349471309, 1349471306, 1349471303, 1349471206, 1349471198, 1349471187, 1349471181, 1349471179, 1349471176, 1349471136, 1349471133, 1349471131, 1349471126, 1349471121, 1349471117, 1349471030, 1349470995, 1349470991, 1349470989, 1349470908, 1349470904, 1349470899, 1349470897, 1349470894, 1349470893, 1349470792, 1349470788, 1349470786]} final : False mtd_id 4302 list_pids : [1349471704, 1349471696, 1349471688, 1349471684, 1349471680, 1349471644, 1349471634, 1349471631, 1349471627, 1349471624] 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, '2715809') ('4302', '21969192', '1349471704', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471696', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471688', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471684', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471680', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471644', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471634', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471631', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471627', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471624', None, None, None, None, None, '2715809') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21969192', '1349471704', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471696', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471688', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471684', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471680', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471644', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471634', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471631', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471627', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471624', None, None, None, None, None, '2715809')] time used for this insertion : 0.013732194900512695 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.626835823059082 time spend to save output : 0.013988971710205078 total time spend for step 4 : 5.640824794769287 step5:split_time_score Wed Apr 2 07:58:38 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 : ['21969192'] 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 : [('21969192',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21969192) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349471704: {'path': 'temp/1743573512_704618_1349471704_6ca0e9935522e9716a6fc38235f174f3.jpg', 'extension': 'jpg'}, 1349471684: {'path': 'temp/1743573512_704618_1349471684_11dd32dd95457bc4db42423f53b51f69.jpg', 'extension': 'jpg'}, 1349471688: {'path': 'temp/1743573512_704618_1349471688_ab4d5c412bd063cf6e57608de4ae45ed.jpg', 'extension': 'jpg'}, 1349471696: {'path': 'temp/1743573512_704618_1349471696_8361f76101e30c9f5e8487dcbca8f2bc.jpg', 'extension': 'jpg'}, 1349471624: {'path': 'temp/1743573512_704618_1349471624_09a189cd3077b33f8f2b20c7ad7a9379.jpg', 'extension': 'jpg'}, 1349471627: {'path': 'temp/1743573512_704618_1349471627_541da987b167cb7d3d748ec246b1a8df.jpg', 'extension': 'jpg'}, 1349471631: {'path': 'temp/1743573512_704618_1349471631_33ba3a18184ab6d6d38f8dda620b4ea4.jpg', 'extension': 'jpg'}, 1349471634: {'path': 'temp/1743573512_704618_1349471634_5cbbf3c31e3cf28228efdc681278b3b5.jpg', 'extension': 'jpg'}, 1349471644: {'path': 'temp/1743573512_704618_1349471644_4c7f26008ec387ed91b1c5f288787e4e.jpg', 'extension': 'jpg'}, 1349471680: {'path': 'temp/1743573512_704618_1349471680_caaffece67f20ec737cb0b5ec3d8f4cf.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 = 21969192; (('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 = 21969192 group by h (('07', 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=21969192 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 (21969192) 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 (21969192) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02042025 21969192 Nombre de photos uploadées : 60 / 23040 (0%) 02042025 21969192 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 02042025 21969192 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1349470792, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/141d33632957fa20311c10b2474a239f.jpg', 'username': None, 'uploaded_at': 1743572767, 'text': 'image_02042025_07_45_04_10143.jpg'}, {'photo_id': 1349470788, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d4b99484d024a961b4d8826d48ef92e0.jpg', 'username': None, 'uploaded_at': 1743572767, 'text': 'image_02042025_07_45_34_10134.jpg'}, {'photo_id': 1349470786, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/50635b2567e938ac2ce963075b2123aa.jpg', 'username': None, 'uploaded_at': 1743572767, 'text': 'image_02042025_07_45_44_10133.jpg'}, {'photo_id': 1349470908, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9ec72c1bacd345cdc3468cc74170b43f.jpg', 'username': None, 'uploaded_at': 1743572828, 'text': 'image_02042025_07_45_53_9125.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.1444091796875e-05 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026984214782714844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21969192, '2025-04-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1709477,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025319576263427734 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= 1709477 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1709477, 'dashboard_run_id': 1717831, 'mtr_portfolio_id': 21967292, 'dashboard_result_id': 9805314, '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_P21967292_02-04-2025_07_22_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1717831, 'mtr_portfolio_id': 21967515, 'dashboard_result_id': 9805315, '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_P21967515_02-04-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21967533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967539, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1717831, 'mtr_portfolio_id': 21968589, 'dashboard_result_id': 9805316, '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_P21968589_02-04-2025_07_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21968618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21968619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21968620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21968621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21968622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21968623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21968624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21968625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21968626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21968627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21968628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21968629, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1717831, 'mtr_portfolio_id': 21969192, 'dashboard_result_id': 9805317, '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_P21969192_02-04-2025_07_56_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21969199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969204, '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 = 21967292 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': 2715671, 'mtr_portfolio_id': 21967292, 'created_at': datetime.datetime(2025, 4, 2, 7, 22, 58), 'result': '0.04335168860141576', 'result_long': None, 'result_double': None}] Qualite : 0.04335168860141576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21967292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_22_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21967292 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_P21967292_02-04-2025_07_22_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, 'pht': 3726}}" where mtr_portfolio_id = 21967292 and dashboard_run_id = 1717831 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`=21967292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9805314, 0.04335168860141576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_22_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, '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 = 21967515 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': 2715698, 'mtr_portfolio_id': 21967515, 'created_at': datetime.datetime(2025, 4, 2, 7, 32, 59), 'result': '0.034342358176222956', 'result_long': None, 'result_double': None}] Qualite : 0.034342358176222956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21967515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967515_02-04-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21967515 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_P21967515_02-04-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21967533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967539, 'pht': 3726}}" where mtr_portfolio_id = 21967515 and dashboard_run_id = 1717831 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`=21967515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9805315, 0.034342358176222956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967515_02-04-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21967533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967539, '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 = 21968589 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': 2715767, 'mtr_portfolio_id': 21968589, 'created_at': datetime.datetime(2025, 4, 2, 7, 46, 31), 'result': '0.04523367331598181', 'result_long': None, 'result_double': None}] Qualite : 0.04523367331598181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21968589 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21968589_02-04-2025_07_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21968589 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_P21968589_02-04-2025_07_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21968618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21968619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21968620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21968621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21968622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21968623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21968624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21968625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21968626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21968627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21968628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21968629, 'pht': 3726}}" where mtr_portfolio_id = 21968589 and dashboard_run_id = 1717831 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`=21968589 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9805316, 0.04523367331598181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21968589_02-04-2025_07_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21968618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21968619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21968620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21968621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21968622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21968623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21968624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21968625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21968626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21968627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21968628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21968629, '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 = 21969192 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': 2715809, 'mtr_portfolio_id': 21969192, 'created_at': datetime.datetime(2025, 4, 2, 7, 58, 32), 'result': '0.05184618939921589', 'result_long': None, 'result_double': None}] Qualite : 0.05184618939921589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21969192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969192_02-04-2025_07_58_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21969192 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_P21969192_02-04-2025_07_58_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21969199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969204, 'pht': 3726}}" where mtr_portfolio_id = 21969192 and dashboard_run_id = 1717831 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`=21969192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9805317, 0.05184618939921589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969192_02-04-2025_07_58_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21969199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969204, '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 (21967292,21967515,21968589,21969192) result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,), (1349466860,), (1349466902,), (1349466919,), (1349466936,), (1349466941,), (1349466955,), (1349467043,), (1349467053,), (1349467056,), (1349467137,), (1349467140,), (1349467172,), (1349467179,), (1349467185,), (1349467203,), (1349467208,), (1349467212,), (1349467216,), (1349467220,), (1349467226,), (1349467242,), (1349467247,), (1349467254,), (1349467259,), (1349467277,), (1349467283,), (1349467284,), (1349467286,), (1349467288,), (1349467291,), (1349467324,), (1349467340,), (1349467342,), (1349467381,), (1349467410,), (1349467103,), (1349467104,), (1349467110,), (1349467111,), (1349467119,), (1349467120,), (1349467124,), (1349467125,), (1349467130,), (1349467131,), (1349467155,), (1349467156,), (1349467157,), (1349467158,), (1349467159,), (1349467160,), (1349467164,), (1349467165,), (1349467169,), (1349467236,), (1349467238,), (1349467305,), (1349467309,), (1349467314,), (1349467354,), (1349467374,), (1349467457,), (1349467460,), (1349467463,), (1349467467,), (1349467538,), (1349467542,), (1349467545,), (1349467569,), (1349467618,), (1349467794,), (1349467797,), (1349467801,), (1349467808,), (1349467853,), (1349467858,), (1349467862,), (1349467867,), (1349467936,), (1349467948,), (1349467951,), (1349467954,), (1349467967,), (1349467987,), (1349468328,), (1349468356,), (1349468391,), (1349468438,), (1349468454,), (1349468456,), (1349468516,), (1349468520,), (1349468527,), (1349468530,), (1349468714,), (1349468718,), (1349468722,), (1349468726,), (1349468729,), (1349468732,), (1349468791,), (1349468795,), (1349468804,), (1349468810,), (1349469000,), (1349468878,), (1349468903,), (1349468928,), (1349468956,), (1349468986,), (1349469137,), (1349469146,), (1349469150,), (1349469155,), (1349469160,), (1349469241,), (1349469251,), (1349469254,), (1349469258,), (1349469261,), (1349469267,), (1349469310,), (1349469312,), (1349469314,), (1349469319,), (1349469376,), (1349469382,), (1349469419,), (1349469446,), (1349469461,), (1349469639,), (1349469650,), (1349469654,), (1349469659,), (1349469664,), (1349469673,), (1349469730,), (1349469766,), (1349469792,), (1349469994,), (1349470006,), (1349470014,), (1349470028,), (1349470032,), (1349470110,), (1349470136,), (1349470160,), (1349470163,), (1349470204,), (1349470206,), (1349470209,), (1349470212,), (1349470215,), (1349470226,), (1349470267,), (1349470285,), (1349470322,), (1349470376,), (1349470386,), (1349470403,), (1349470411,), (1349470421,), (1349470428,), (1349470492,), (1349470497,), (1349470501,), (1349470504,), (1349470510,), (1349470566,), (1349470570,), (1349470575,), (1349470579,), (1349470721,), (1349470724,), (1349470726,), (1349470728,), (1349470732,), (1349470737,), (1349470797,), (1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02042025': {'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([21969192]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349471704, 1349471696, 1349471688, 1349471684, 1349471680, 1349471644, 1349471634, 1349471631, 1349471627, 1349471624] map_info['map_portfolio_photo'] : {21969192: [1349471704, 1349471696, 1349471688, 1349471684, 1349471680, 1349471644, 1349471634, 1349471631, 1349471627, 1349471624, 1349471587, 1349471586, 1349471584, 1349471583, 1349471560, 1349471555, 1349471549, 1349471547, 1349471543, 1349471533, 1349471487, 1349471483, 1349471479, 1349471475, 1349471402, 1349471396, 1349471388, 1349471373, 1349471370, 1349471359, 1349471315, 1349471312, 1349471309, 1349471306, 1349471303, 1349471206, 1349471198, 1349471187, 1349471181, 1349471179, 1349471176, 1349471136, 1349471133, 1349471131, 1349471126, 1349471121, 1349471117, 1349471030, 1349470995, 1349470991, 1349470989, 1349470908, 1349470904, 1349470899, 1349470897, 1349470894, 1349470893, 1349470792, 1349470788, 1349470786]} final : True mtd_id 4302 list_pids : [1349471704, 1349471696, 1349471688, 1349471684, 1349471680, 1349471644, 1349471634, 1349471631, 1349471627, 1349471624] Looping around the photos to save general results len do output : 1 /21969192Didn'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, '2715809') ('4302', '21969192', '1349471704', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471696', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471688', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471684', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471680', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471644', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471634', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471631', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471627', None, None, None, None, None, '2715809') ('4302', None, None, None, None, None, None, None, '2715809') ('4302', '21969192', '1349471624', None, None, None, None, None, '2715809') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21969192', 'None', None, None, None, None, '2715809'), ('4302', '21969192', '1349471704', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471696', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471688', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471684', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471680', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471644', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471634', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471631', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471627', None, None, None, None, None, '2715809'), ('4302', '21969192', '1349471624', None, None, None, None, None, '2715809')] time used for this insertion : 0.013327360153198242 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8974835872650146 time spend to save output : 0.013586759567260742 total time spend for step 5 : 1.9110703468322754 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 (2715809) 2.52user 2.39system 0:14.56elapsed 33%CPU (0avgtext+0avgdata 159252maxresident)k 77000inputs+14560outputs (339major+78776minor)pagefaults 0swaps