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 : 3698494 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 (3970053) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3970053) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27990560 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3970053'] with mtr_portfolio_ids : ['27990560'] and first list_photo_ids : [] new path : /proc/3698494/ Name: python3 Umask: 0002 State: R (running) Tgid: 3698494 Ngid: 0 Pid: 3698494 PPid: 3698493 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3698494 NSpid: 3698494 NSpgid: 3696716 NSsid: 3696716 VmPeak: 1106912 kB VmSize: 1106888 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98416 kB VmRSS: 98416 kB RssAnon: 59904 kB RssFile: 38512 kB RssShmem: 0 kB VmData: 865640 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3698494', 'Ngid': '0', 'Pid': '3698494', 'PPid': '3698493', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3698494', 'NSpid': '3698494', 'NSpgid': '3696716', 'NSsid': '3696716', 'VmPeak': '1106912 kB', 'VmSize': '1106888 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98416 kB', 'VmRSS': '98416 kB', 'RssAnon': '59904 kB', 'RssFile': '38512 kB', 'RssShmem': '0 kB', 'VmData': '865640 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '3698494', '1106912', '0', '1106888', '865640', '98416', b'', 'marlene', '3970053') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27990560) 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 (3970053 ) ) 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 (27990560) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1390842909, 'portfolio_id': 27990560}, {'photo_id': 1390842242, 'portfolio_id': 27990560}, {'photo_id': 1390842241, 'portfolio_id': 27990560}, {'photo_id': 1390842233, 'portfolio_id': 27990560}, {'photo_id': 1390842091, 'portfolio_id': 27990560}, {'photo_id': 1390841876, 'portfolio_id': 27990560}, {'photo_id': 1390840900, 'portfolio_id': 27990560}, {'photo_id': 1390840861, 'portfolio_id': 27990560}, {'photo_id': 1390840823, 'portfolio_id': 27990560}, {'photo_id': 1390840785, 'portfolio_id': 27990560}, {'photo_id': 1390840746, 'portfolio_id': 27990560}, {'photo_id': 1390840034, 'portfolio_id': 27990560}, {'photo_id': 1390839993, 'portfolio_id': 27990560}, {'photo_id': 1390839955, 'portfolio_id': 27990560}, {'photo_id': 1390839919, 'portfolio_id': 27990560}, {'photo_id': 1390839793, 'portfolio_id': 27990560}, {'photo_id': 1390839755, 'portfolio_id': 27990560}, {'photo_id': 1390839719, 'portfolio_id': 27990560}, {'photo_id': 1390839679, 'portfolio_id': 27990560}, {'photo_id': 1390839639, 'portfolio_id': 27990560}, {'photo_id': 1390839598, 'portfolio_id': 27990560}, {'photo_id': 1390839177, 'portfolio_id': 27990560}, {'photo_id': 1390839175, 'portfolio_id': 27990560}, {'photo_id': 1390839172, 'portfolio_id': 27990560}, {'photo_id': 1390839168, 'portfolio_id': 27990560}, {'photo_id': 1390839160, 'portfolio_id': 27990560}, {'photo_id': 1390839157, 'portfolio_id': 27990560}, {'photo_id': 1390839153, 'portfolio_id': 27990560}, {'photo_id': 1390839146, 'portfolio_id': 27990560}, {'photo_id': 1390839140, 'portfolio_id': 27990560}, {'photo_id': 1390839136, 'portfolio_id': 27990560}, {'photo_id': 1390839078, 'portfolio_id': 27990560}, {'photo_id': 1390839071, 'portfolio_id': 27990560}, {'photo_id': 1390839032, 'portfolio_id': 27990560}, {'photo_id': 1390838996, 'portfolio_id': 27990560}, {'photo_id': 1390837918, 'portfolio_id': 27990560}, {'photo_id': 1390836942, 'portfolio_id': 27990560}, {'photo_id': 1390835765, 'portfolio_id': 27990560}, {'photo_id': 1390835763, 'portfolio_id': 27990560}, {'photo_id': 1390835759, 'portfolio_id': 27990560}, {'photo_id': 1390835320, 'portfolio_id': 27990560}, {'photo_id': 1390835284, 'portfolio_id': 27990560}, {'photo_id': 1390835246, 'portfolio_id': 27990560}, {'photo_id': 1390835206, 'portfolio_id': 27990560}, {'photo_id': 1390835171, 'portfolio_id': 27990560}, {'photo_id': 1390834896, 'portfolio_id': 27990560}, {'photo_id': 1390834891, 'portfolio_id': 27990560}, {'photo_id': 1390834885, 'portfolio_id': 27990560}, {'photo_id': 1390834881, 'portfolio_id': 27990560}, {'photo_id': 1390834876, 'portfolio_id': 27990560}, {'photo_id': 1390834861, 'portfolio_id': 27990560}, {'photo_id': 1390834788, 'portfolio_id': 27990560}, {'photo_id': 1390834781, 'portfolio_id': 27990560}, {'photo_id': 1390834777, 'portfolio_id': 27990560}, {'photo_id': 1390834775, 'portfolio_id': 27990560}, {'photo_id': 1390834758, 'portfolio_id': 27990560}, {'photo_id': 1390834369, 'portfolio_id': 27990560}, {'photo_id': 1390834359, 'portfolio_id': 27990560}, {'photo_id': 1390834249, 'portfolio_id': 27990560}, {'photo_id': 1390834244, 'portfolio_id': 27990560}, {'photo_id': 1390834209, 'portfolio_id': 27990560}, {'photo_id': 1390834208, 'portfolio_id': 27990560}, {'photo_id': 1390832735, 'portfolio_id': 27990560}, {'photo_id': 1390832658, 'portfolio_id': 27990560}, {'photo_id': 1390832595, 'portfolio_id': 27990560}, {'photo_id': 1390832557, 'portfolio_id': 27990560}, {'photo_id': 1390832522, 'portfolio_id': 27990560}] map_portfolio_id_photo_id: {27990560: [1390842909, 1390842242, 1390842241, 1390842233, 1390842091, 1390841876, 1390840900, 1390840861, 1390840823, 1390840785, 1390840746, 1390840034, 1390839993, 1390839955, 1390839919, 1390839793, 1390839755, 1390839719, 1390839679, 1390839639, 1390839598, 1390839177, 1390839175, 1390839172, 1390839168, 1390839160, 1390839157, 1390839153, 1390839146, 1390839140, 1390839136, 1390839078, 1390839071, 1390839032, 1390838996, 1390837918, 1390836942, 1390835765, 1390835763, 1390835759, 1390835320, 1390835284, 1390835246, 1390835206, 1390835171, 1390834896, 1390834891, 1390834885, 1390834881, 1390834876, 1390834861, 1390834788, 1390834781, 1390834777, 1390834775, 1390834758, 1390834369, 1390834359, 1390834249, 1390834244, 1390834209, 1390834208, 1390832735, 1390832658, 1390832595, 1390832557, 1390832522]} ##### 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.01805257797241211 #### 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 Fri Oct 31 02:48:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27990560) 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 : 27990560 get user id for portfolio 27990560 get sub ptf for main ptf 27990560, type 3726 and hashtags ['kraft', 'papier', 'plastique', 'environnement', 'autre_refus', 'Carton_brun', 'metal', 'mal_croppe', 'flou', 'Carton_gris', 'Teint_Dans_La_Masse', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27990560 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','plastique','environnement','autre_refus','Carton_brun','metal','mal_croppe','flou','Carton_gris','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27990560 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','plastique','environnement','autre_refus','Carton_brun','metal','mal_croppe','flou','Carton_gris','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 27990560, 'sub_port_id': 27990562, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908526, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 29)}, 'Carton_gris': {'main_port_id': 27990560, 'sub_port_id': 27990563, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908527, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 29)}, 'cartonnette': {'main_port_id': 27990560, 'sub_port_id': 27990564, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908528, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 29)}, 'papier': {'main_port_id': 27990560, 'sub_port_id': 27990565, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908529, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 29)}, 'environnement': {'main_port_id': 27990560, 'sub_port_id': 27990566, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908530, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 29)}, 'flou': {'main_port_id': 27990560, 'sub_port_id': 27990567, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908531, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 29)}, 'Carton_brun': {'main_port_id': 27990560, 'sub_port_id': 27990568, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908532, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 29)}, 'mal_croppe': {'main_port_id': 27990560, 'sub_port_id': 27990569, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908533, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 27990560, 'sub_port_id': 27990570, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908534, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 29)}, 'plastique': {'main_port_id': 27990560, 'sub_port_id': 27990571, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908535, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 29)}, 'autre_refus': {'main_port_id': 27990560, 'sub_port_id': 27990572, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908536, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 29)}, 'metal': {'main_port_id': 27990560, 'sub_port_id': 27990573, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908537, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27990562 , 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=27990560 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 (27990562) result : ((1390835686,), (1390836689,), (1390837920,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27990560) result : ((1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,)) 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 (1390840900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27990563 , 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=27990560 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 (27990563) result : ((1390836578,), (1390836583,), (1390839103,), (1390839147,), (1390839190,), (1390842553,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27990560) result : ((1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,)) 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 (1390840900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27990564 , 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=27990560 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 (27990564) result : ((1390835656,), (1390836617,), (1390837891,), (1390839104,), (1390839105,), (1390839106,), (1390839192,), (1390839193,), (1390839194,), (1390842267,), (1390842269,), (1390842555,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27990560) result : ((1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,)) 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 (1390840900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27990565 , 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=27990560 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 (27990565) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27990560) result : ((1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,)) 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 (1390840900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27990566 , 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=27990560 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 (27990566) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27990560) result : ((1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,)) 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 (1390840900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27990567 , 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=27990560 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 (27990567) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27990560) result : ((1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,)) 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 (1390840900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27990568 , 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=27990560 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 (27990568) result : ((1390835671,), (1390835673,), (1390835675,), (1390835677,), (1390836654,), (1390837903,), (1390837905,), (1390837907,), (1390837909,), (1390839110,), (1390839111,), (1390839112,), (1390839150,), (1390839151,), (1390839195,), (1390839196,), (1390839197,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27990560) result : ((1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,)) 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 (1390840900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27990569 , 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=27990560 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 (27990569) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27990560) result : ((1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,)) 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 (1390840900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27990570 , 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=27990560 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 (27990570) result : ((1390835621,), (1390835623,), (1390835625,), (1390835627,), (1390835629,), (1390835631,), (1390835633,), (1390835635,), (1390835637,), (1390836507,), (1390836512,), (1390836518,), (1390836523,), (1390837828,), (1390837830,), (1390837833,), (1390837835,), (1390837839,), (1390837841,), (1390837844,), (1390837848,), (1390837852,), (1390839091,), (1390839092,), (1390839093,), (1390839094,), (1390839095,), (1390839096,), (1390839097,), (1390839143,), (1390839181,), (1390839182,), (1390839183,), (1390839184,), (1390839185,), (1390839187,), (1390839188,), (1390842546,), (1390842547,), (1390842548,), (1390842549,), (1390842550,), (1390842551,), (1390842552,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27990560) result : ((1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,)) 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 (1390840900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27990571 , 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=27990560 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 (27990571) result : ((1390839114,), (1390839115,), (1390839199,), (1390839200,), (1390842282,), (1390842582,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27990560) result : ((1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,)) 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 (1390840900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27990572 , 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=27990560 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 (27990572) result : ((1390835646,), (1390837872,), (1390839101,), (1390839145,), (1390839189,), (1390842253,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27990560) result : ((1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,)) 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 (1390840900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27990573 , 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=27990560 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 (27990573) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27990560) result : ((1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,)) 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 (1390840900) and cspi.crop_hashtag_id = chi.id; 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`=27990560 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','plastique','environnement','autre_refus','Carton_brun','metal','mal_croppe','flou','Carton_gris','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27990560 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','plastique','environnement','autre_refus','Carton_brun','metal','mal_croppe','flou','Carton_gris','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 27990560, 'sub_port_id': 27990574, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908538, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 31)}, 'Carton_gris': {'main_port_id': 27990560, 'sub_port_id': 27990575, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908539, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 31)}, 'cartonnette': {'main_port_id': 27990560, 'sub_port_id': 27990576, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908540, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 31)}, 'papier': {'main_port_id': 27990560, 'sub_port_id': 27990577, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908541, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 31)}, 'environnement': {'main_port_id': 27990560, 'sub_port_id': 27990578, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908542, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 31)}, 'flou': {'main_port_id': 27990560, 'sub_port_id': 27990579, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908543, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 31)}, 'Carton_brun': {'main_port_id': 27990560, 'sub_port_id': 27990580, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908544, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 31)}, 'mal_croppe': {'main_port_id': 27990560, 'sub_port_id': 27990581, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908545, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 27990560, 'sub_port_id': 27990582, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908546, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 31)}, 'plastique': {'main_port_id': 27990560, 'sub_port_id': 27990583, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908547, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 31)}, 'autre_refus': {'main_port_id': 27990560, 'sub_port_id': 27990584, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908548, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 31)}, 'metal': {'main_port_id': 27990560, 'sub_port_id': 27990585, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18908549, 'last_updated_at': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 2, 46, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 2, 33, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27990574,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27990562 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27990575,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27990563 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27990576,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27990564 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27990577,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27990565 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27990578,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27990566 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27990579,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27990567 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27990580,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27990568 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27990581,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27990569 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27990582,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27990570 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27990583,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27990571 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27990584,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27990572 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27990585,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27990573 lien utilise dans velours : https://marlene.fotonower.com/velours/27990574,27990575,27990576,27990577,27990578,27990579,27990580,27990581,27990582,27990583,27990584,27990585?tags=kraft,Carton_gris,cartonnette,papier,environnement,flou,Carton_brun,mal_croppe,Teint_Dans_La_Masse,plastique,autre_refus,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27990560]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1390842909] map_info['map_portfolio_photo'] : {27990560: [1390842909, 1390842242, 1390842241, 1390842233, 1390842091, 1390841876, 1390840900, 1390840861, 1390840823, 1390840785, 1390840746, 1390840034, 1390839993, 1390839955, 1390839919, 1390839793, 1390839755, 1390839719, 1390839679, 1390839639, 1390839598, 1390839177, 1390839175, 1390839172, 1390839168, 1390839160, 1390839157, 1390839153, 1390839146, 1390839140, 1390839136, 1390839078, 1390839071, 1390839032, 1390838996, 1390837918, 1390836942, 1390835765, 1390835763, 1390835759, 1390835320, 1390835284, 1390835246, 1390835206, 1390835171, 1390834896, 1390834891, 1390834885, 1390834881, 1390834876, 1390834861, 1390834788, 1390834781, 1390834777, 1390834775, 1390834758, 1390834369, 1390834359, 1390834249, 1390834244, 1390834209, 1390834208, 1390832735, 1390832658, 1390832595, 1390832557, 1390832522]} final : False mtd_id 4302 list_pids : [1390842909] Looping around the photos to save general results len do output : 1 /27990560. 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, '3970053') ('4302', '27990560', '1390842909', None, None, None, None, None, '3970053') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '27990560', "{'kraft': 27990562, 'Carton_gris': 27990563, 'cartonnette': 27990564, 'papier': 27990565, 'environnement': 27990566, 'flou': 27990567, 'Carton_brun': 27990568, 'mal_croppe': 27990569, 'Teint_Dans_La_Masse': 27990570, 'plastique': 27990571, 'autre_refus': 27990572, 'metal': 27990573}", None, None, None, None, '3970053'), ('4302', '27990560', '1390842909', None, None, None, None, None, '3970053')] time used for this insertion : 0.010849952697753906 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4183964729309082 time spend to save output : 0.011055469512939453 total time spend for step 1 : 0.42945194244384766 step2:final Fri Oct 31 02:48:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27990560) 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 27990560 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1390832735,1390832658,1390832595,1390832557,1390832522,1390834369,1390834359,1390834244,1390834249,1390834209,1390834208,1390834788,1390834781,1390834777,1390834775,1390834758,1390834896,1390834891,1390834885,1390834881,1390834876,1390834861,1390835320,1390835284,1390835246,1390835206,1390835171,1390835765,1390835763,1390835759,1390836942,1390837918,1390839078,1390839071,1390839032,1390838996,1390839160,1390839157,1390839153,1390839146,1390839140,1390839136,1390839177,1390839175,1390839172,1390839168,1390839793,1390839755,1390839719,1390839679,1390839639,1390839598,1390840034,1390839993,1390839955,1390839919,1390840900,1390840861,1390840823,1390840785,1390840746,1390842242,1390842241,1390842233,1390842091,1390841876,1390842909); 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([27990560]) Inside saveOutput : final : False verbose : True original output for save of step final : {1390842909: ('0.06988985110979506',)} new output for save of step final : {1390842909: ('0.06988985110979506',)} [1390842909] map_info['map_portfolio_photo'] : {27990560: [1390842909, 1390842242, 1390842241, 1390842233, 1390842091, 1390841876, 1390840900, 1390840861, 1390840823, 1390840785, 1390840746, 1390840034, 1390839993, 1390839955, 1390839919, 1390839793, 1390839755, 1390839719, 1390839679, 1390839639, 1390839598, 1390839177, 1390839175, 1390839172, 1390839168, 1390839160, 1390839157, 1390839153, 1390839146, 1390839140, 1390839136, 1390839078, 1390839071, 1390839032, 1390838996, 1390837918, 1390836942, 1390835765, 1390835763, 1390835759, 1390835320, 1390835284, 1390835246, 1390835206, 1390835171, 1390834896, 1390834891, 1390834885, 1390834881, 1390834876, 1390834861, 1390834788, 1390834781, 1390834777, 1390834775, 1390834758, 1390834369, 1390834359, 1390834249, 1390834244, 1390834209, 1390834208, 1390832735, 1390832658, 1390832595, 1390832557, 1390832522]} final : False mtd_id 4302 list_pids : [1390842909] Looping around the photos to save general results len do output : 1 /1390842909.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, '3970053') ('4302', '27990560', '1390842909', None, None, None, None, None, '3970053') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '27990560', '1390842909', '0.06988985110979506', None, None, None, None, '3970053')] time used for this insertion : 0.008811712265014648 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06476283073425293 time spend to save output : 0.008939266204833984 total time spend for step 2 : 0.07370209693908691 step3:velours_tree Fri Oct 31 02:48:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27990560: [{'kraft': 27990562, 'Carton_gris': 27990563, 'cartonnette': 27990564, 'papier': 27990565, 'environnement': 27990566, 'flou': 27990567, 'Carton_brun': 27990568, 'mal_croppe': 27990569, 'Teint_Dans_La_Masse': 27990570, 'plastique': 27990571, 'autre_refus': 27990572, 'metal': 27990573}]} input_args_next_step : {27990560: ()} output_args : {27990560: [{'kraft': 27990562, 'Carton_gris': 27990563, 'cartonnette': 27990564, 'papier': 27990565, 'environnement': 27990566, 'flou': 27990567, 'Carton_brun': 27990568, 'mal_croppe': 27990569, 'Teint_Dans_La_Masse': 27990570, 'plastique': 27990571, 'autre_refus': 27990572, 'metal': 27990573}]} args : 27990560 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 27990562, 'Carton_gris': 27990563, 'cartonnette': 27990564, 'papier': 27990565, 'environnement': 27990566, 'flou': 27990567, 'Carton_brun': 27990568, 'mal_croppe': 27990569, 'Teint_Dans_La_Masse': 27990570, 'plastique': 27990571, 'autre_refus': 27990572, 'metal': 27990573},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27990560) 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([27990560]) 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.28257131576538086 time spend to save output : 5.364418029785156e-05 total time spend for step 3 : 0.2826249599456787 step4:send_mail_cod Fri Oct 31 02:48:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1390842909: ('0.06988985110979506',)} input_args_next_step : {1390842909: ()} output_args : {1390842909: ('0.06988985110979506',)} args : 1390842909 depend.output_id : 0 complete output_args for input 3 : {27990560: [{'kraft': 27990562, 'Carton_gris': 27990563, 'cartonnette': 27990564, 'papier': 27990565, 'environnement': 27990566, 'flou': 27990567, 'Carton_brun': 27990568, 'mal_croppe': 27990569, 'Teint_Dans_La_Masse': 27990570, 'plastique': 27990571, 'autre_refus': 27990572, 'metal': 27990573}]} input_args_next_step : {1390842909: ('0.06988985110979506',), 27990560: ()} output_args : {27990560: [{'kraft': 27990562, 'Carton_gris': 27990563, 'cartonnette': 27990564, 'papier': 27990565, 'environnement': 27990566, 'flou': 27990567, 'Carton_brun': 27990568, 'mal_croppe': 27990569, 'Teint_Dans_La_Masse': 27990570, 'plastique': 27990571, 'autre_refus': 27990572, 'metal': 27990573}]} args : 27990560 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 :2, first value : ('0.06988985110979506',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27990560) 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_view ph WHERE photo_id IN (1390842909) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1390842909 download finish for photo 1390842909 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P27990560_31-10-2025_02_48_58.pdf 27990562 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27990562 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390835686: '1761874524_623286_1390832735_dea1a2bc6e0978fc79b2dbfff455cc1b_rle_crop_4007398053_0.png', 1390836689: '1761874587_624181_1390834758_abcf57c3a830c41483b2347813ce6d31_rle_crop_4007402658_0.png', 1390837920: '1761874625_628417_1390832735_dea1a2bc6e0978fc79b2dbfff455cc1b_rle_crop_4007398053_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/2fc2a16cb67c90a87c6ea17d453a858d_47868787.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/3d2c170f3ff8d61208ef146c21639352_20816689.png change filename to text .imagette279905621761875338/ imagette279905621761875338/1761874587_624181_1390834758_abcf57c3a830c41483b2347813ce6d31_rle_crop_4007402658_0.png.png imagette279905621761875338/1761874625_628417_1390832735_dea1a2bc6e0978fc79b2dbfff455cc1b_rle_crop_4007398053_0.png.png imagette279905621761875338/1761874524_623286_1390832735_dea1a2bc6e0978fc79b2dbfff455cc1b_rle_crop_4007398053_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/2fc2a16cb67c90a87c6ea17d453a858d_88181864.png imagette279905621761875338 27990564 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27990564 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390835656: '1761874524_623286_1390832658_6dc20d00179ff9d49622006ca5140d28_rle_crop_4007398084_0.png', 1390836617: '1761874587_624181_1390834758_abcf57c3a830c41483b2347813ce6d31_rle_crop_4007402659_0.png', 1390837891: '1761874625_628417_1390832658_6dc20d00179ff9d49622006ca5140d28_rle_crop_4007398084_0.png', 1390839104: '1761874767_635026_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414674_0.png', 1390839105: '1761874767_635026_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414694_0.png', 1390839106: '1761874767_635026_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414688_0.png', 1390839192: '1761874866_638997_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414674_0.png', 1390839193: '1761874866_638997_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414694_0.png', 1390839194: '1761874866_638997_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414688_0.png', 1390842267: '1761875107_652380_1390839177_93e25a743556b430a1418fdbe5845538_rle_crop_4007434465_0.png', 1390842269: '1761875107_652380_1390839136_489d255318b5a30f66e45ef1d10389e1_rle_crop_4007434652_0.png', 1390842555: '1761875126_654631_1390839071_357ae8e28485dc39c333ee90a945bace_rle_crop_4007434691_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/69fdf27ff6e684f2e3429cce978fd2af_65154380.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/38e00d4006d83b55dd95391b03c0dc4d_88678812.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/69fdf27ff6e684f2e3429cce978fd2af_3254766.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/c72b169e19de8dc0957619187f25cfdc_85739086.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/6dbd59d04136ed1ea621bbf25726533a_91437174.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/11438b5fb5e2a261fbe0914a298ccb18_59297980.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/c72b169e19de8dc0957619187f25cfdc_63051815.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/6dbd59d04136ed1ea621bbf25726533a_47260882.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/11438b5fb5e2a261fbe0914a298ccb18_52590425.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/b199aa2d8018370a5a439f69dc82b02a_96435616.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/fb352dceb3e497c2eceb2554ac04dda9_68525090.png change filename to text .imagette279905641761875339/ imagette279905641761875339/1761874866_638997_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414688_0.png.png imagette279905641761875339/1761875126_654631_1390839071_357ae8e28485dc39c333ee90a945bace_rle_crop_4007434691_0.png.png imagette279905641761875339/1761875107_652380_1390839136_489d255318b5a30f66e45ef1d10389e1_rle_crop_4007434652_0.png.png imagette279905641761875339/1761874625_628417_1390832658_6dc20d00179ff9d49622006ca5140d28_rle_crop_4007398084_0.png.png imagette279905641761875339/1761875107_652380_1390839177_93e25a743556b430a1418fdbe5845538_rle_crop_4007434465_0.png.png imagette279905641761875339/1761874866_638997_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414694_0.png.png imagette279905641761875339/1761874767_635026_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414674_0.png.png imagette279905641761875339/1761874524_623286_1390832658_6dc20d00179ff9d49622006ca5140d28_rle_crop_4007398084_0.png.png imagette279905641761875339/1761874866_638997_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414674_0.png.png imagette279905641761875339/1761874767_635026_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414694_0.png.png imagette279905641761875339/1761874587_624181_1390834758_abcf57c3a830c41483b2347813ce6d31_rle_crop_4007402659_0.png.png imagette279905641761875339/1761874767_635026_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414688_0.png.png imagette279905671761875340/ imagette279905691761875340/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/b04e97a0ff7174c6765229ba4d4456cd_65237706.png imagette279905641761875339 27990567 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27990567 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279905671761875340 27990569 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27990569 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279905691761875340 27990571 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27990571 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390839114: '1761874767_635026_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414668_0.png', 1390839115: '1761874767_635026_1390834861_9b439e437b38a184e7279942bd97f94b_rle_crop_4007414711_0.png', 1390839199: '1761874866_638997_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414668_0.png', 1390839200: '1761874866_638997_1390834861_9b439e437b38a184e7279942bd97f94b_rle_crop_4007414711_0.png', 1390842282: '1761875107_652380_1390839177_93e25a743556b430a1418fdbe5845538_rle_crop_4007434459_0.png', 1390842582: '1761875126_654631_1390838996_13c72c464af4154b268ef411d55cf477_rle_crop_4007434714_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/151b67612d5a6fd924e645f5c78bc708_18613899.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/601ebb4fc291048f93db8e610f70ad6e_66710610.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/151b67612d5a6fd924e645f5c78bc708_38089491.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/601ebb4fc291048f93db8e610f70ad6e_19618556.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/08140cf3e278c97e57523a8f2cf5e54e_48840997.png change filename to text .imagette279905711761875340/ imagette279905711761875340/1761874767_635026_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414668_0.png.png imagette279905711761875340/1761875107_652380_1390839177_93e25a743556b430a1418fdbe5845538_rle_crop_4007434459_0.png.png imagette279905711761875340/1761875126_654631_1390838996_13c72c464af4154b268ef411d55cf477_rle_crop_4007434714_0.png.png imagette279905711761875340/1761874866_638997_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414668_0.png.png imagette279905711761875340/1761874866_638997_1390834861_9b439e437b38a184e7279942bd97f94b_rle_crop_4007414711_0.png.png imagette279905711761875340/1761874767_635026_1390834861_9b439e437b38a184e7279942bd97f94b_rle_crop_4007414711_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/e6e601d13cbf6eea34ee615fa3354b8e_36413168.png imagette279905711761875340 27990572 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27990572 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390835646: '1761874524_623286_1390832595_a0aa7a5f5a96aba99048abc2547f5235_rle_crop_4007398099_0.png', 1390837872: '1761874625_628417_1390832595_a0aa7a5f5a96aba99048abc2547f5235_rle_crop_4007398099_0.png', 1390839101: '1761874767_635026_1390835320_98e512d3003c9c8f292ed945e680567c_rle_crop_4007414628_0.png', 1390839145: '1761874826_636237_1390835759_12a34a48b6bcb499ef18b54655bd16e4_rle_crop_4007417268_0.png', 1390839189: '1761874866_638997_1390835320_98e512d3003c9c8f292ed945e680567c_rle_crop_4007414628_0.png', 1390842253: '1761875107_652380_1390839136_489d255318b5a30f66e45ef1d10389e1_rle_crop_4007434651_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/ff6f657c81413f3793cf804b76aa25d8_27139687.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/ff6f657c81413f3793cf804b76aa25d8_63906627.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/2156b1f6812b8d1d898dadcd0d168439_29404987.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/09c7ef9245c58218f1432b8ea6da0a6e_7399547.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/2156b1f6812b8d1d898dadcd0d168439_34193001.png change filename to text .imagette279905721761875340/ imagette279905721761875340/1761874524_623286_1390832595_a0aa7a5f5a96aba99048abc2547f5235_rle_crop_4007398099_0.png.png imagette279905721761875340/1761874866_638997_1390835320_98e512d3003c9c8f292ed945e680567c_rle_crop_4007414628_0.png.png imagette279905721761875340/1761875107_652380_1390839136_489d255318b5a30f66e45ef1d10389e1_rle_crop_4007434651_0.png.png imagette279905721761875340/1761874625_628417_1390832595_a0aa7a5f5a96aba99048abc2547f5235_rle_crop_4007398099_0.png.png imagette279905721761875340/1761874767_635026_1390835320_98e512d3003c9c8f292ed945e680567c_rle_crop_4007414628_0.png.png imagette279905721761875340/1761874826_636237_1390835759_12a34a48b6bcb499ef18b54655bd16e4_rle_crop_4007417268_0.png.png imagette279905731761875341/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/0f0ec725571384964db0bd92f5105277_25071672.png imagette279905721761875340 27990573 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27990573 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279905731761875341 27990563 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27990563 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390836578: '1761874587_624181_1390834781_09800ab5715bb78d66c57aef81f14f0b_rle_crop_4007401704_0.png', 1390836583: '1761874587_624181_1390834777_cc03807852fe98b442506ace1571ba5a_rle_crop_4007401710_0.png', 1390839103: '1761874767_635026_1390834891_f371797a458dd2962251c5bb2aedc437_rle_crop_4007414646_0.png', 1390839147: '1761874826_636237_1390836942_4a570165e874abb77499de57f76b6906_rle_crop_4007417244_0.png', 1390839190: '1761874866_638997_1390834891_f371797a458dd2962251c5bb2aedc437_rle_crop_4007414646_0.png', 1390842553: '1761875126_654631_1390839071_357ae8e28485dc39c333ee90a945bace_rle_crop_4007434690_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/c710cbfce09379b960def6d976016616_29523466.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/638adedb85a7e9e150419a0e6c3510f8_1359578.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/ebe07754ec567189977501878cb50e6d_23181598.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/9f6ab32a389a9ad900a626d47bc8cd61_90065213.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/ebe07754ec567189977501878cb50e6d_66672311.png change filename to text .imagette279905631761875341/ imagette279905631761875341/1761874587_624181_1390834781_09800ab5715bb78d66c57aef81f14f0b_rle_crop_4007401704_0.png.png imagette279905631761875341/1761875126_654631_1390839071_357ae8e28485dc39c333ee90a945bace_rle_crop_4007434690_0.png.png imagette279905631761875341/1761874767_635026_1390834891_f371797a458dd2962251c5bb2aedc437_rle_crop_4007414646_0.png.png imagette279905631761875341/1761874587_624181_1390834777_cc03807852fe98b442506ace1571ba5a_rle_crop_4007401710_0.png.png imagette279905631761875341/1761874826_636237_1390836942_4a570165e874abb77499de57f76b6906_rle_crop_4007417244_0.png.png imagette279905631761875341/1761874866_638997_1390834891_f371797a458dd2962251c5bb2aedc437_rle_crop_4007414646_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/f17a5fa1fc2f048ad4d819ca7cb88c9f_34998980.png imagette279905631761875341 27990568 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27990568 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390837909: '1761874625_628417_1390832735_dea1a2bc6e0978fc79b2dbfff455cc1b_rle_crop_4007398057_0.png', 1390839197: '1761874866_638997_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414691_0.png', 1390839196: '1761874866_638997_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414692_0.png', 1390839195: '1761874866_638997_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414676_0.png', 1390839151: '1761874826_636237_1390835759_12a34a48b6bcb499ef18b54655bd16e4_rle_crop_4007417262_0.png', 1390839150: '1761874826_636237_1390835763_2fd8361ff672d7a25d2bb960f22ef2fa_rle_crop_4007417253_0.png', 1390839112: '1761874767_635026_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414691_0.png', 1390839111: '1761874767_635026_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414692_0.png', 1390839110: '1761874767_635026_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414676_0.png', 1390835671: '1761874524_623286_1390834369_0f7bbe0515e9bbe059690982a42500b8_rle_crop_4007398030_0.png', 1390837907: '1761874625_628417_1390832735_dea1a2bc6e0978fc79b2dbfff455cc1b_rle_crop_4007398055_0.png', 1390837905: '1761874625_628417_1390834359_5943b4fa01cf785b9608743a0e2bd2c0_rle_crop_4007398042_0.png', 1390837903: '1761874625_628417_1390834369_0f7bbe0515e9bbe059690982a42500b8_rle_crop_4007398030_0.png', 1390836654: '1761874587_624181_1390834758_abcf57c3a830c41483b2347813ce6d31_rle_crop_4007402666_0.png', 1390835677: '1761874524_623286_1390832735_dea1a2bc6e0978fc79b2dbfff455cc1b_rle_crop_4007398057_0.png', 1390835675: '1761874524_623286_1390832735_dea1a2bc6e0978fc79b2dbfff455cc1b_rle_crop_4007398055_0.png', 1390835673: '1761874524_623286_1390834359_5943b4fa01cf785b9608743a0e2bd2c0_rle_crop_4007398042_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/58e3751e395a136e1c75f0a8067104e4_55811208.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/ccc7aababd508c92aba5cae87ab9de6c_88646539.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/9eb62405c8ff4a7aa06c9add0dae67c3_33771760.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/d2728a7bfb459f0b892f0abc01b6c6c1_14439628.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/4ac0ee7210c6f397c55b4b18ed11d61e_67119067.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/289d0bb687bed7bd0fd3c32a46b8b0fd_43591323.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/ccc7aababd508c92aba5cae87ab9de6c_83639215.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/9eb62405c8ff4a7aa06c9add0dae67c3_25799438.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/d2728a7bfb459f0b892f0abc01b6c6c1_46504256.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/8d065daef1a688c088869a4f9451a232_28368306.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/1e72245d373a4d02012a1ce47a30df28_35295019.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/8d065daef1a688c088869a4f9451a232_68837540.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/8d065daef1a688c088869a4f9451a232_4048218.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/162ecff7cad11b2b3ade61b1f5009749_63982997.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/58e3751e395a136e1c75f0a8067104e4_38756736.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/1e72245d373a4d02012a1ce47a30df28_38299267.png change filename to text .imagette279905681761875341/ imagette279905681761875341/1761874826_636237_1390835759_12a34a48b6bcb499ef18b54655bd16e4_rle_crop_4007417262_0.png.png imagette279905681761875341/1761874826_636237_1390835763_2fd8361ff672d7a25d2bb960f22ef2fa_rle_crop_4007417253_0.png.png imagette279905681761875341/1761874524_623286_1390832735_dea1a2bc6e0978fc79b2dbfff455cc1b_rle_crop_4007398057_0.png.png imagette279905681761875341/1761874767_635026_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414691_0.png.png imagette279905681761875341/1761874625_628417_1390832735_dea1a2bc6e0978fc79b2dbfff455cc1b_rle_crop_4007398055_0.png.png imagette279905681761875341/1761874524_623286_1390834359_5943b4fa01cf785b9608743a0e2bd2c0_rle_crop_4007398042_0.png.png imagette279905681761875341/1761874524_623286_1390832735_dea1a2bc6e0978fc79b2dbfff455cc1b_rle_crop_4007398055_0.png.png imagette279905681761875341/1761874625_628417_1390832735_dea1a2bc6e0978fc79b2dbfff455cc1b_rle_crop_4007398057_0.png.png imagette279905681761875341/1761874866_638997_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414691_0.png.png imagette279905681761875341/1761874767_635026_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414676_0.png.png imagette279905681761875341/1761874866_638997_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414676_0.png.png imagette279905681761875341/1761874866_638997_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414692_0.png.png imagette279905681761875341/1761874625_628417_1390834369_0f7bbe0515e9bbe059690982a42500b8_rle_crop_4007398030_0.png.png imagette279905681761875341/1761874587_624181_1390834758_abcf57c3a830c41483b2347813ce6d31_rle_crop_4007402666_0.png.png imagette279905681761875341/1761874625_628417_1390834359_5943b4fa01cf785b9608743a0e2bd2c0_rle_crop_4007398042_0.png.png imagette279905681761875341/1761874524_623286_1390834369_0f7bbe0515e9bbe059690982a42500b8_rle_crop_4007398030_0.png.png imagette279905681761875341/1761874767_635026_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414692_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/8d065daef1a688c088869a4f9451a232_63389498.png imagette279905681761875341 27990570 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27990570 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390839184: '1761874866_638997_1390834885_ea07c786ccbc753904559cbe0eb98631_rle_crop_4007414660_0.png', 1390839092: '1761874767_635026_1390834891_f371797a458dd2962251c5bb2aedc437_rle_crop_4007414645_0.png', 1390839093: '1761874767_635026_1390834885_ea07c786ccbc753904559cbe0eb98631_rle_crop_4007414661_0.png', 1390839094: '1761874767_635026_1390834885_ea07c786ccbc753904559cbe0eb98631_rle_crop_4007414660_0.png', 1390839095: '1761874767_635026_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414682_0.png', 1390839096: '1761874767_635026_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414670_0.png', 1390839097: '1761874767_635026_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414697_0.png', 1390839143: '1761874826_636237_1390835759_12a34a48b6bcb499ef18b54655bd16e4_rle_crop_4007417265_0.png', 1390839181: '1761874866_638997_1390835320_98e512d3003c9c8f292ed945e680567c_rle_crop_4007414630_0.png', 1390839182: '1761874866_638997_1390834891_f371797a458dd2962251c5bb2aedc437_rle_crop_4007414645_0.png', 1390839183: '1761874866_638997_1390834885_ea07c786ccbc753904559cbe0eb98631_rle_crop_4007414661_0.png', 1390839091: '1761874767_635026_1390835320_98e512d3003c9c8f292ed945e680567c_rle_crop_4007414630_0.png', 1390839185: '1761874866_638997_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414682_0.png', 1390839187: '1761874866_638997_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414670_0.png', 1390839188: '1761874866_638997_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414697_0.png', 1390842546: '1761875126_654631_1390839160_08a97d00cf9cef5b5b678b6d489f4b8f_rle_crop_4007434681_0.png', 1390842547: '1761875126_654631_1390839071_357ae8e28485dc39c333ee90a945bace_rle_crop_4007434694_0.png', 1390842548: '1761875126_654631_1390839071_357ae8e28485dc39c333ee90a945bace_rle_crop_4007434692_0.png', 1390842549: '1761875126_654631_1390839071_357ae8e28485dc39c333ee90a945bace_rle_crop_4007434696_0.png', 1390842550: '1761875126_654631_1390839032_79bd9a556282beb724f45e6bae864e81_rle_crop_4007434709_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/5f75eefe4e32fa4b8fac0124167d1f49_83062072.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/b107233613d16da63adef5c29c90816f_30427108.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/13d343c6711e12ead6c21d25a73e5a84_38579083.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/5f75eefe4e32fa4b8fac0124167d1f49_42384642.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/8f63bf60f8ea8b559a400d14f1fbc18e_68283217.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/300d903a7e825f98f59a8391469f29dd_67145827.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/1b686ef16e0f65e384cd37d75bfd404a_28113198.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/069e3bf6205a811a41546afed26cd61f_93163867.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/d9d916e72c3f5c87a9bd3db1b1aa5f1c_26678999.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/b107233613d16da63adef5c29c90816f_3349507.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/13d343c6711e12ead6c21d25a73e5a84_5119621.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/d9d916e72c3f5c87a9bd3db1b1aa5f1c_804296.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/8f63bf60f8ea8b559a400d14f1fbc18e_23437889.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/300d903a7e825f98f59a8391469f29dd_34888954.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/1b686ef16e0f65e384cd37d75bfd404a_85038116.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/5320b06bf593894f0715ef4c533f332d_7678073.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/af941d900607c8a535ba801abda52e05_92697957.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/7d4fda6ad5865ad993ee536d5967a321_43520711.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/ffcf3ffddfbb961bfb254f5861a3fbc8_42223219.png change filename to text .imagette279905701761875342/ imagette279905701761875342/1761874866_638997_1390834885_ea07c786ccbc753904559cbe0eb98631_rle_crop_4007414660_0.png.png imagette279905701761875342/1761874866_638997_1390834885_ea07c786ccbc753904559cbe0eb98631_rle_crop_4007414661_0.png.png imagette279905701761875342/1761874767_635026_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414697_0.png.png imagette279905701761875342/1761874767_635026_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414682_0.png.png imagette279905701761875342/1761874767_635026_1390835320_98e512d3003c9c8f292ed945e680567c_rle_crop_4007414630_0.png.png imagette279905701761875342/1761874767_635026_1390834885_ea07c786ccbc753904559cbe0eb98631_rle_crop_4007414660_0.png.png imagette279905701761875342/1761875126_654631_1390839071_357ae8e28485dc39c333ee90a945bace_rle_crop_4007434696_0.png.png imagette279905701761875342/1761875126_654631_1390839160_08a97d00cf9cef5b5b678b6d489f4b8f_rle_crop_4007434681_0.png.png imagette279905701761875342/1761874866_638997_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414670_0.png.png imagette279905701761875342/1761874767_635026_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414670_0.png.png imagette279905701761875342/1761874866_638997_1390834891_f371797a458dd2962251c5bb2aedc437_rle_crop_4007414645_0.png.png imagette279905701761875342/1761875126_654631_1390839032_79bd9a556282beb724f45e6bae864e81_rle_crop_4007434709_0.png.png imagette279905701761875342/1761875126_654631_1390839071_357ae8e28485dc39c333ee90a945bace_rle_crop_4007434692_0.png.png imagette279905701761875342/1761874767_635026_1390834885_ea07c786ccbc753904559cbe0eb98631_rle_crop_4007414661_0.png.png imagette279905701761875342/1761874826_636237_1390835759_12a34a48b6bcb499ef18b54655bd16e4_rle_crop_4007417265_0.png.png imagette279905701761875342/1761875126_654631_1390839071_357ae8e28485dc39c333ee90a945bace_rle_crop_4007434694_0.png.png imagette279905701761875342/1761874866_638997_1390835320_98e512d3003c9c8f292ed945e680567c_rle_crop_4007414630_0.png.png imagette279905701761875342/1761874767_635026_1390834891_f371797a458dd2962251c5bb2aedc437_rle_crop_4007414645_0.png.png imagette279905701761875342/1761874866_638997_1390834876_0c3c690ed75c7655a689d224cc6ecbd3_rle_crop_4007414697_0.png.png imagette279905701761875342/1761874866_638997_1390834881_a038136a6134d5f4cad5879ea980605c_rle_crop_4007414682_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/4e6b50ea37e87728c3239ef351001044_37834414.png imagette279905701761875342 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27990560 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27990574,27990575,27990576,27990577,27990578,27990579,27990580,27990581,27990582,27990583,27990584,27990585?tags=kraft,Carton_gris,cartonnette,papier,environnement,flou,Carton_brun,mal_croppe,Teint_Dans_La_Masse,plastique,autre_refus,metal your option no_mail is active, we will not send the real mail to your client args[1390842909] : ('0.06988985110979506',) no score found for photo 1390842909 We are sending mail with results at report@fotonower.com refus_total : 0.06988985110979506 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27990560 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_P27990560_31-10-2025_02_48_58.pdf results_Auto_P27990560_31-10-2025_02_48_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27990560_31-10-2025_02_48_58.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','27990560','results_Auto_P27990560_31-10-2025_02_48_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27990560_31-10-2025_02_48_58.pdf','pdf','','0.22','0.06988985110979506') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27990560]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1390842909] map_info['map_portfolio_photo'] : {27990560: [1390842909, 1390842242, 1390842241, 1390842233, 1390842091, 1390841876, 1390840900, 1390840861, 1390840823, 1390840785, 1390840746, 1390840034, 1390839993, 1390839955, 1390839919, 1390839793, 1390839755, 1390839719, 1390839679, 1390839639, 1390839598, 1390839177, 1390839175, 1390839172, 1390839168, 1390839160, 1390839157, 1390839153, 1390839146, 1390839140, 1390839136, 1390839078, 1390839071, 1390839032, 1390838996, 1390837918, 1390836942, 1390835765, 1390835763, 1390835759, 1390835320, 1390835284, 1390835246, 1390835206, 1390835171, 1390834896, 1390834891, 1390834885, 1390834881, 1390834876, 1390834861, 1390834788, 1390834781, 1390834777, 1390834775, 1390834758, 1390834369, 1390834359, 1390834249, 1390834244, 1390834209, 1390834208, 1390832735, 1390832658, 1390832595, 1390832557, 1390832522]} final : False mtd_id 4302 list_pids : [1390842909] 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, '3970053') ('4302', '27990560', '1390842909', None, None, None, None, None, '3970053') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '27990560', '1390842909', None, None, None, None, None, '3970053')] time used for this insertion : 0.00873875617980957 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.443079948425293 time spend to save output : 0.00889134407043457 total time spend for step 4 : 6.4519712924957275 step5:split_time_score Fri Oct 31 02:49:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['27990560'] 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 : [('27990560',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27990560) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1390842909: {'path': 'temp/1761875338_3698494_1390842909_22d37439dd3eb74215b9557b6115bbcb.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 = 27990560; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27990560 group by h (('02', 67),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27990560 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 (27990560) 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 (27990560) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31102025 27990560 Nombre de photos uploadées : 67 / 23040 (0%) 31102025 27990560 Nombre de photos taguées (types de déchets): 0 / 67 (0%) 31102025 27990560 Nombre de photos taguées (volume) : 0 / 67 (0%) [{'photo_id': 1390832735, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/dea1a2bc6e0978fc79b2dbfff455cc1b.jpg', 'username': None, 'uploaded_at': 1761874278, 'text': 'image_31102025_02_30_04_010148m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1390832658, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/6dc20d00179ff9d49622006ca5140d28.jpg', 'username': None, 'uploaded_at': 1761874278, 'text': 'image_31102025_02_30_15_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1390832595, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/a0aa7a5f5a96aba99048abc2547f5235.jpg', 'username': None, 'uploaded_at': 1761874278, 'text': 'image_31102025_02_30_24_009123m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1390832557, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/348fab5022e09fbc6716a623148422ba.jpg', 'username': None, 'uploaded_at': 1761874278, 'text': 'image_31102025_02_30_34_010133m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002858877182006836 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27990560, '2025-10-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-10-31' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2480930,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2019350528717041 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= 2480930 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2480930, 'dashboard_run_id': 2488873, 'mtr_portfolio_id': 27984246, 'dashboard_result_id': 16603656, '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_P27984246_31-10-2025_00_21_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27984251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27984252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27984253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27984254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27984255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27984257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27984258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27984259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27984260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27984261, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2488873, 'mtr_portfolio_id': 27984915, 'dashboard_result_id': 16603657, '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_P27984915_31-10-2025_00_33_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985009, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2488873, 'mtr_portfolio_id': 27985516, 'dashboard_result_id': 16603658, '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_P27985516_31-10-2025_00_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27985520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27985528, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2488873, 'mtr_portfolio_id': 27986113, 'dashboard_result_id': 16603659, '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_P27986113_31-10-2025_01_35_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27986138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27986139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27986140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27986141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27986142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27986143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27986144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27986145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27986146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27986147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27986148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27986149, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2488873, 'mtr_portfolio_id': 27987917, 'dashboard_result_id': 16603660, '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_P27987917_31-10-2025_01_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27987918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27987919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27987920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27987921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27987922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27987923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27987924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27987925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27987926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27987927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27987928, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27987929, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2488873, 'mtr_portfolio_id': 27988609, 'dashboard_result_id': 16603661, '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_P27988609_31-10-2025_02_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27988613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27988614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27988615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27988616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27988617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27988618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27988619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27988620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27988621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27988622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27988623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27988624, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2488873, 'mtr_portfolio_id': 27989289, 'dashboard_result_id': 16603662, '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_P27989289_31-10-2025_02_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989301, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2488873, 'mtr_portfolio_id': 27989961, 'dashboard_result_id': 16603663, '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_P27989961_31-10-2025_02_33_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989999, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2488873, 'mtr_portfolio_id': 27990560, 'dashboard_result_id': 16603664, '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_P27990560_31-10-2025_02_44_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27990562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27990563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27990564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27990565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27990566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27990567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27990568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27990569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27990570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27990571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27990572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27990573, '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 = 27984246 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': 3969509, 'mtr_portfolio_id': 27984246, 'created_at': datetime.datetime(2025, 10, 31, 0, 21, 7), 'result': '0.0485640521063409', 'result_long': None, 'result_double': None}] Qualite : 0.0485640521063409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27984246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27984246_31-10-2025_00_21_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27984246 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_P27984246_31-10-2025_00_21_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27984251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27984252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27984253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27984254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27984255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27984257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27984258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27984259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27984260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27984261, 'pht': 3726}}" where mtr_portfolio_id = 27984246 and dashboard_run_id = 2488873 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`=27984246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16603656, 0.0485640521063409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27984246_31-10-2025_00_21_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27984251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27984252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27984253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27984254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27984255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27984257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27984258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27984259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27984260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27984261, '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 = 27984915 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': 3969553, 'mtr_portfolio_id': 27984915, 'created_at': datetime.datetime(2025, 10, 31, 0, 33, 30), 'result': '0.06613849093810649', 'result_long': None, 'result_double': None}] Qualite : 0.06613849093810649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27984915 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27984915_31-10-2025_00_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27984915 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_P27984915_31-10-2025_00_33_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985009, 'pht': 3726}}" where mtr_portfolio_id = 27984915 and dashboard_run_id = 2488873 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`=27984915 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16603657, 0.06613849093810649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27984915_31-10-2025_00_33_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985009, '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 = 27985516 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': 3969618, 'mtr_portfolio_id': 27985516, 'created_at': datetime.datetime(2025, 10, 31, 0, 48, 59), 'result': '0.04081272999715808', 'result_long': None, 'result_double': None}] Qualite : 0.04081272999715808 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27985516 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27985516_31-10-2025_00_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27985516 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_P27985516_31-10-2025_00_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27985520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27985528, 'pht': 3726}}" where mtr_portfolio_id = 27985516 and dashboard_run_id = 2488873 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`=27985516 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16603658, 0.04081272999715808, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27985516_31-10-2025_00_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27985520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27985528, '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 = 27986113 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': 3969708, 'mtr_portfolio_id': 27986113, 'created_at': datetime.datetime(2025, 10, 31, 1, 35, 1), 'result': '0.043844437442149733', 'result_long': None, 'result_double': None}] Qualite : 0.043844437442149733 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27986113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27986113_31-10-2025_01_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27986113 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_P27986113_31-10-2025_01_35_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27986138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27986139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27986140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27986141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27986142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27986143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27986144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27986145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27986146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27986147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27986148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27986149, 'pht': 3726}}" where mtr_portfolio_id = 27986113 and dashboard_run_id = 2488873 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`=27986113 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16603659, 0.043844437442149733, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27986113_31-10-2025_01_35_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27986138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27986139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27986140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27986141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27986142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27986143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27986144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27986145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27986146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27986147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27986148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27986149, '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 = 27987917 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': 3969845, 'mtr_portfolio_id': 27987917, 'created_at': datetime.datetime(2025, 10, 31, 1, 48, 57), 'result': '0.046096920408609306', 'result_long': None, 'result_double': None}] Qualite : 0.046096920408609306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27987917 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27987917_31-10-2025_01_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27987917 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_P27987917_31-10-2025_01_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27987918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27987919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27987920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27987921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27987922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27987923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27987924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27987925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27987926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27987927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27987928, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27987929, 'pht': 3726}}" where mtr_portfolio_id = 27987917 and dashboard_run_id = 2488873 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`=27987917 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16603660, 0.046096920408609306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27987917_31-10-2025_01_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27987918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27987919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27987920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27987921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27987922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27987923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27987924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27987925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27987926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27987927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27987928, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27987929, '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 = 27988609 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': 3969880, 'mtr_portfolio_id': 27988609, 'created_at': datetime.datetime(2025, 10, 31, 2, 3, 59), 'result': '0.05145342664783269', 'result_long': None, 'result_double': None}] Qualite : 0.05145342664783269 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27988609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27988609_31-10-2025_02_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27988609 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_P27988609_31-10-2025_02_04_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27988613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27988614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27988615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27988616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27988617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27988618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27988619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27988620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27988621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27988622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27988623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27988624, 'pht': 3726}}" where mtr_portfolio_id = 27988609 and dashboard_run_id = 2488873 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`=27988609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16603661, 0.05145342664783269, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27988609_31-10-2025_02_04_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27988613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27988614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27988615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27988616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27988617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27988618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27988619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27988620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27988621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27988622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27988623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27988624, '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 = 27989289 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': 3969945, 'mtr_portfolio_id': 27989289, 'created_at': datetime.datetime(2025, 10, 31, 2, 19, 32), 'result': '0.06619168477635745', 'result_long': None, 'result_double': None}] Qualite : 0.06619168477635745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27989289 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27989289_31-10-2025_02_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27989289 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_P27989289_31-10-2025_02_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989301, 'pht': 3726}}" where mtr_portfolio_id = 27989289 and dashboard_run_id = 2488875 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`=27989289 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16603662, 0.06619168477635745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27989289_31-10-2025_02_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989301, '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 = 27989961 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': 3969990, 'mtr_portfolio_id': 27989961, 'created_at': datetime.datetime(2025, 10, 31, 2, 33, 29), 'result': '0.060098423084526995', 'result_long': None, 'result_double': None}] Qualite : 0.060098423084526995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27989961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27989961_31-10-2025_02_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27989961 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_P27989961_31-10-2025_02_33_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989999, 'pht': 3726}}" where mtr_portfolio_id = 27989961 and dashboard_run_id = 2488875 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`=27989961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16603663, 0.060098423084526995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27989961_31-10-2025_02_33_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989999, '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 = 27990560 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': 3970053, 'mtr_portfolio_id': 27990560, 'created_at': datetime.datetime(2025, 10, 31, 2, 48, 58), 'result': '0.06988985110979506', 'result_long': None, 'result_double': None}] Qualite : 0.06988985110979506 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27990560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27990560_31-10-2025_02_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27990560 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_P27990560_31-10-2025_02_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27990562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27990563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27990564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27990565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27990566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27990567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27990568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27990569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27990570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27990571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27990572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27990573, 'pht': 3726}}" where mtr_portfolio_id = 27990560 and dashboard_run_id = 2488875 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`=27990560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16603664, 0.06988985110979506, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27990560_31-10-2025_02_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27990562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27990563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27990564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27990565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27990566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27990567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27990568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27990569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27990570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27990571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27990572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27990573, '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 (27984246,27984915,27985516,27986113,27987917,27988609,27989289,27989961,27990560) result : ((1390745358,), (1390745465,), (1390745887,), (1390746141,), (1390746479,), (1390748560,), (1390748630,), (1390748710,), (1390749763,), (1390749800,), (1390749842,), (1390750134,), (1390750171,), (1390750248,), (1390750302,), (1390751546,), (1390751617,), (1390751718,), (1390752340,), (1390752353,), (1390752356,), (1390752359,), (1390752362,), (1390752674,), (1390752675,), (1390752676,), (1390752677,), (1390752699,), (1390752702,), (1390752721,), (1390752723,), (1390752730,), (1390752731,), (1390752866,), (1390752904,), (1390752942,), (1390752980,), (1390753018,), (1390753063,), (1390753586,), (1390753620,), (1390753653,), (1390753688,), (1390753720,), (1390753760,), (1390753934,), (1390754002,), (1390754129,), (1390755664,), (1390755842,), (1390755902,), (1390755946,), (1390755987,), (1390756020,), (1390756023,), (1390756026,), (1390756030,), (1390756596,), (1390756685,), (1390756721,), (1390756727,), (1390756788,), (1390756808,), (1390757196,), (1390757239,), (1390757279,), (1390757347,), (1390758646,), (1390758002,), (1390758183,), (1390758386,), (1390758552,), (1390758611,), (1390759138,), (1390759176,), (1390759223,), (1390759955,), (1390759958,), (1390760028,), (1390760031,), (1390760103,), (1390760108,), (1390760598,), (1390760607,), (1390760642,), (1390761317,), (1390761383,), (1390761477,), (1390761570,), (1390761646,), (1390761950,), (1390762020,), (1390762062,), (1390762098,), (1390762133,), (1390762189,), (1390762190,), (1390762192,), (1390763228,), (1390763334,), (1390763401,), (1390763468,), (1390763517,), (1390764383,), (1390764384,), (1390764417,), (1390764421,), (1390764491,), (1390764496,), (1390764530,), (1390764532,), (1390764573,), (1390764574,), (1390764592,), (1390764593,), (1390764611,), (1390764620,), (1390764634,), (1390764638,), (1390765144,), (1390765259,), (1390765342,), (1390765380,), (1390765966,), (1390765998,), (1390766036,), (1390766064,), (1390766067,), (1390766069,), (1390766456,), (1390766525,), (1390766559,), (1390766630,), (1390766792,), (1390766960,), (1390767734,), (1390767736,), (1390767779,), (1390767793,), (1390767803,), (1390767814,), (1390767852,), (1390767890,), (1390767928,), (1390767962,), (1390768003,), (1390768288,), (1390768297,), (1390768298,), (1390768389,), (1390768423,), (1390768454,), (1390768488,), (1390768237,), (1390768239,), (1390768269,), (1390768634,), (1390768675,), (1390768726,), (1390768770,), (1390768806,), (1390769142,), (1390769144,), (1390769222,), (1390769223,), (1390769224,), (1390769225,), (1390769331,), (1390769337,), (1390769341,), (1390769346,), (1390769597,), (1390769599,), (1390772338,), (1390772339,), (1390772341,), (1390772342,), (1390772352,), (1390772353,), (1390772357,), (1390772358,), (1390772410,), (1390772462,), (1390772499,), (1390772643,), (1390772683,), (1390772723,), (1390772761,), (1390773181,), (1390773183,), (1390773219,), (1390773266,), (1390773305,), (1390773342,), (1390773630,), (1390773682,), (1390773732,), (1390773837,), (1390773852,), (1390773889,), (1390774123,), (1390774127,), (1390774131,), (1390774133,), (1390774136,), (1390774140,), (1390774174,), (1390774177,), (1390774285,), (1390774419,), (1390775130,), (1390775125,), (1390775127,), (1390775648,), (1390775685,), (1390775719,), (1390775796,), (1390775830,), (1390775864,), (1390776388,), (1390776389,), (1390776392,), (1390776394,), (1390776396,), (1390776398,), (1390776465,), (1390776603,), (1390776752,), (1390776903,), (1390777470,), (1390777538,), (1390777558,), (1390777610,), (1390777646,), (1390778232,), (1390778270,), (1390778307,), (1390778346,), (1390779080,), (1390779118,), (1390779154,), (1390779204,), (1390779284,), (1390779637,), (1390779708,), (1390779749,), (1390780201,), (1390780241,), (1390780250,), (1390780464,), (1390780599,), (1390780733,), (1390780894,), (1390781061,), (1390781323,), (1390781382,), (1390781888,), (1390781949,), (1390781996,), (1390782036,), (1390782078,), (1390782377,), (1390782380,), (1390782383,), (1390782385,), (1390782388,), (1390782391,), (1390782787,), (1390782794,), (1390782797,), (1390782822,), (1390782863,), (1390802666,), (1390802659,), (1390802661,), (1390802663,), (1390802672,), (1390802675,), (1390802678,), (1390802684,), (1390802689,), (1390802985,), (1390803900,), (1390804057,), (1390804205,), (1390804407,), (1390804604,), (1390804857,), (1390804879,), (1390804936,), (1390804984,), (1390805893,), (1390805929,), (1390805970,), (1390806058,), (1390806100,), (1390806106,), (1390806342,), (1390806344,), (1390806354,), (1390806560,), (1390806561,), (1390806597,), (1390806602,), (1390806635,), (1390806640,), (1390806676,), (1390806678,), (1390806722,), (1390806730,), (1390806798,), (1390806802,), (1390807423,), (1390807600,), (1390807765,), (1390807948,), (1390808113,), (1390808755,), (1390808762,), (1390808796,), (1390808854,), (1390808855,), (1390809260,), (1390809296,), (1390809335,), (1390809376,), (1390809606,), (1390809607,), (1390809624,), (1390809625,), (1390809646,), (1390809647,), (1390809652,), (1390809653,), (1390809660,), (1390809661,), (1390809677,), (1390809682,), (1390809686,), (1390809690,), (1390810046,), (1390809835,), (1390809884,), (1390809921,), (1390809963,), (1390810004,), (1390810385,), (1390810389,), (1390810392,), (1390810666,), (1390810685,), (1390810692,), (1390810695,), (1390810698,), (1390811369,), (1390811374,), (1390811378,), (1390811380,), (1390811943,), (1390811986,), (1390812022,), (1390812058,), (1390812094,), (1390812780,), (1390812820,), (1390812861,), (1390812906,), (1390812928,), (1390812929,), (1390813431,), (1390813452,), (1390813466,), (1390813471,), (1390813473,), (1390813481,), (1390813491,), (1390813498,), (1390813507,), (1390813512,), (1390813514,), (1390813517,), (1390813520,), (1390813553,), (1390813556,), (1390813558,), (1390813560,), (1390813568,), (1390813602,), (1390813603,), (1390813606,), (1390813608,), (1390813624,), (1390813625,), (1390813935,), (1390813968,), (1390814001,), (1390814041,), (1390814081,), (1390815858,), (1390816040,), (1390816196,), (1390816232,), (1390816264,), (1390816301,), (1390817292,), (1390817380,), (1390817472,), (1390817557,), (1390817776,), (1390817777,), (1390818229,), (1390818116,), (1390818123,), (1390818162,), (1390818420,), (1390818462,), (1390818501,), (1390818540,), (1390818575,), (1390818616,), (1390819165,), (1390819217,), (1390819296,), (1390819362,), (1390819430,), (1390819502,), (1390819772,), (1390819835,), (1390820297,), (1390820332,), (1390820370,), (1390820410,), (1390821972,), (1390822011,), (1390822050,), (1390822090,), (1390822685,), (1390822814,), (1390822999,), (1390823108,), (1390823192,), (1390823228,), (1390823642,), (1390823655,), (1390823670,), (1390823681,), (1390823684,), (1390823687,), (1390823692,), (1390823696,), (1390823736,), (1390823737,), (1390823741,), (1390823809,), (1390823810,), (1390823814,), (1390823817,), (1390823819,), (1390824555,), (1390824556,), (1390824626,), (1390824632,), (1390824686,), (1390824694,), (1390825639,), (1390825659,), (1390826130,), (1390825994,), (1390826028,), (1390826060,), (1390826097,), (1390826474,), (1390826475,), (1390826492,), (1390826493,), (1390826495,), (1390826496,), (1390826499,), (1390826500,), (1390826516,), (1390826521,), (1390826558,), (1390826560,), (1390826610,), (1390826612,), (1390826615,), (1390826768,), (1390826804,), (1390826842,), (1390826879,), (1390826916,), (1390826952,), (1390827139,), (1390827180,), (1390827199,), (1390827209,), (1390827217,), (1390827241,), (1390827305,), (1390827365,), (1390827391,), (1390827536,), (1390827538,), (1390827540,), (1390827542,), (1390827557,), (1390827560,), (1390827562,), (1390827566,), (1390827570,), (1390827575,), (1390828679,), (1390828720,), (1390828756,), (1390828792,), (1390828827,), (1390830201,), (1390830311,), (1390830390,), (1390831120,), (1390831154,), (1390831226,), (1390831282,), (1390831348,), (1390831370,), (1390831421,), (1390831422,), (1390831425,), (1390831426,), (1390831443,), (1390831451,), (1390831483,), (1390831486,), (1390831491,), (1390831499,), (1390831518,), (1390831522,), (1390831526,), (1390831531,), (1390831573,), (1390831577,), (1390831583,), (1390831587,), (1390831591,), (1390831595,), (1390832007,), (1390832040,), (1390832075,), (1390832421,), (1390832423,), (1390832427,), (1390832431,), (1390832435,), (1390832438,), (1390832929,), (1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31102025': {'nb_upload': 67, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27990560]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1390842909] map_info['map_portfolio_photo'] : {27990560: [1390842909, 1390842242, 1390842241, 1390842233, 1390842091, 1390841876, 1390840900, 1390840861, 1390840823, 1390840785, 1390840746, 1390840034, 1390839993, 1390839955, 1390839919, 1390839793, 1390839755, 1390839719, 1390839679, 1390839639, 1390839598, 1390839177, 1390839175, 1390839172, 1390839168, 1390839160, 1390839157, 1390839153, 1390839146, 1390839140, 1390839136, 1390839078, 1390839071, 1390839032, 1390838996, 1390837918, 1390836942, 1390835765, 1390835763, 1390835759, 1390835320, 1390835284, 1390835246, 1390835206, 1390835171, 1390834896, 1390834891, 1390834885, 1390834881, 1390834876, 1390834861, 1390834788, 1390834781, 1390834777, 1390834775, 1390834758, 1390834369, 1390834359, 1390834249, 1390834244, 1390834209, 1390834208, 1390832735, 1390832658, 1390832595, 1390832557, 1390832522]} final : True mtd_id 4302 list_pids : [1390842909] Looping around the photos to save general results len do output : 1 /27990560Didn'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, '3970053') ('4302', '27990560', '1390842909', None, None, None, None, None, '3970053') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '27990560', 'None', None, None, None, None, '3970053'), ('4302', '27990560', '1390842909', None, None, None, None, None, '3970053')] time used for this insertion : 0.009172916412353516 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7993535995483398 time spend to save output : 0.009327888488769531 total time spend for step 5 : 0.8086814880371094 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 (3970053) 2.00user 2.82system 0:11.87elapsed 40%CPU (0avgtext+0avgdata 157656maxresident)k 104inputs+12576outputs (0major+63412minor)pagefaults 0swaps