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 : 19403 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 (4282143) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4282143) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29762558 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4282143'] with mtr_portfolio_ids : ['29762558'] and first list_photo_ids : [] new path : /proc/19403/ Name: python3 Umask: 0002 State: R (running) Tgid: 19403 Ngid: 0 Pid: 19403 PPid: 19402 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 19403 NSpid: 19403 NSpgid: 9571 NSsid: 9571 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 103744 kB VmRSS: 103744 kB RssAnon: 66296 kB RssFile: 37448 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 620 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: 54 nonvoluntary_ctxt_switches: 98 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '19403', 'Ngid': '0', 'Pid': '19403', 'PPid': '19402', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '19403', 'NSpid': '19403', 'NSpgid': '9571', 'NSsid': '9571', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '103744 kB', 'VmRSS': '103744 kB', 'RssAnon': '66296 kB', 'RssFile': '37448 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '620 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': '54', 'nonvoluntary_ctxt_switches': '98'} ('datou_batch_current', '19403', '1113364', '0', '1113364', '872092', '103744', b'', 'marlene', '4282143') 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 (29762558) 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 (4282143 ) ) 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 (29762558) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1401481812, 'portfolio_id': 29762558}, {'photo_id': 1401481469, 'portfolio_id': 29762558}, {'photo_id': 1401481445, 'portfolio_id': 29762558}, {'photo_id': 1401481430, 'portfolio_id': 29762558}, {'photo_id': 1401481425, 'portfolio_id': 29762558}, {'photo_id': 1401481405, 'portfolio_id': 29762558}, {'photo_id': 1401481307, 'portfolio_id': 29762558}, {'photo_id': 1401480938, 'portfolio_id': 29762558}, {'photo_id': 1401480937, 'portfolio_id': 29762558}, {'photo_id': 1401480936, 'portfolio_id': 29762558}, {'photo_id': 1401480935, 'portfolio_id': 29762558}, {'photo_id': 1401480911, 'portfolio_id': 29762558}, {'photo_id': 1401480909, 'portfolio_id': 29762558}, {'photo_id': 1401480907, 'portfolio_id': 29762558}, {'photo_id': 1401480905, 'portfolio_id': 29762558}, {'photo_id': 1401480883, 'portfolio_id': 29762558}, {'photo_id': 1401480881, 'portfolio_id': 29762558}, {'photo_id': 1401480880, 'portfolio_id': 29762558}, {'photo_id': 1401480879, 'portfolio_id': 29762558}, {'photo_id': 1401480856, 'portfolio_id': 29762558}, {'photo_id': 1401480855, 'portfolio_id': 29762558}, {'photo_id': 1401480837, 'portfolio_id': 29762558}, {'photo_id': 1401480835, 'portfolio_id': 29762558}, {'photo_id': 1401480833, 'portfolio_id': 29762558}, {'photo_id': 1401480831, 'portfolio_id': 29762558}, {'photo_id': 1401480800, 'portfolio_id': 29762558}, {'photo_id': 1401480795, 'portfolio_id': 29762558}, {'photo_id': 1401480792, 'portfolio_id': 29762558}, {'photo_id': 1401480790, 'portfolio_id': 29762558}, {'photo_id': 1401480769, 'portfolio_id': 29762558}, {'photo_id': 1401480768, 'portfolio_id': 29762558}, {'photo_id': 1401480766, 'portfolio_id': 29762558}, {'photo_id': 1401480750, 'portfolio_id': 29762558}, {'photo_id': 1401480746, 'portfolio_id': 29762558}, {'photo_id': 1401480744, 'portfolio_id': 29762558}, {'photo_id': 1401480742, 'portfolio_id': 29762558}, {'photo_id': 1401480741, 'portfolio_id': 29762558}, {'photo_id': 1401480722, 'portfolio_id': 29762558}, {'photo_id': 1401480721, 'portfolio_id': 29762558}, {'photo_id': 1401480720, 'portfolio_id': 29762558}, {'photo_id': 1401480696, 'portfolio_id': 29762558}, {'photo_id': 1401480695, 'portfolio_id': 29762558}, {'photo_id': 1401480694, 'portfolio_id': 29762558}, {'photo_id': 1401480692, 'portfolio_id': 29762558}, {'photo_id': 1401480674, 'portfolio_id': 29762558}, {'photo_id': 1401480670, 'portfolio_id': 29762558}, {'photo_id': 1401480668, 'portfolio_id': 29762558}, {'photo_id': 1401480665, 'portfolio_id': 29762558}, {'photo_id': 1401480664, 'portfolio_id': 29762558}, {'photo_id': 1401480639, 'portfolio_id': 29762558}, {'photo_id': 1401480637, 'portfolio_id': 29762558}, {'photo_id': 1401480634, 'portfolio_id': 29762558}, {'photo_id': 1401480632, 'portfolio_id': 29762558}, {'photo_id': 1401480612, 'portfolio_id': 29762558}, {'photo_id': 1401480609, 'portfolio_id': 29762558}] map_portfolio_id_photo_id: {29762558: [1401481812, 1401481469, 1401481445, 1401481430, 1401481425, 1401481405, 1401481307, 1401480938, 1401480937, 1401480936, 1401480935, 1401480911, 1401480909, 1401480907, 1401480905, 1401480883, 1401480881, 1401480880, 1401480879, 1401480856, 1401480855, 1401480837, 1401480835, 1401480833, 1401480831, 1401480800, 1401480795, 1401480792, 1401480790, 1401480769, 1401480768, 1401480766, 1401480750, 1401480746, 1401480744, 1401480742, 1401480741, 1401480722, 1401480721, 1401480720, 1401480696, 1401480695, 1401480694, 1401480692, 1401480674, 1401480670, 1401480668, 1401480665, 1401480664, 1401480639, 1401480637, 1401480634, 1401480632, 1401480612, 1401480609]} ##### 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.02031421661376953 #### 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 Mon Dec 29 07:04:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29762558) 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 : 29762558 get user id for portfolio 29762558 get sub ptf for main ptf 29762558, type 3726 and hashtags ['metal', 'plastique', 'Teint_Dans_La_Masse', 'Carton_gris', 'environnement', 'cartonnette', 'mal_croppe', 'autre_refus', 'flou', 'papier', 'Carton_brun', 'kraft'] 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`=29762558 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','Teint_Dans_La_Masse','Carton_gris','environnement','cartonnette','mal_croppe','autre_refus','flou','papier','Carton_brun','kraft')) 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`=29762558 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','Teint_Dans_La_Masse','Carton_gris','environnement','cartonnette','mal_croppe','autre_refus','flou','papier','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29762558, 'sub_port_id': 29762565, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344315, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 26)}, 'metal': {'main_port_id': 29762558, 'sub_port_id': 29762566, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344316, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 26)}, 'kraft': {'main_port_id': 29762558, 'sub_port_id': 29762567, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344317, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 26)}, 'environnement': {'main_port_id': 29762558, 'sub_port_id': 29762568, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344318, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 26)}, 'Carton_brun': {'main_port_id': 29762558, 'sub_port_id': 29762569, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344319, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 26)}, 'papier': {'main_port_id': 29762558, 'sub_port_id': 29762570, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344320, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 26)}, 'flou': {'main_port_id': 29762558, 'sub_port_id': 29762571, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344321, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 26)}, 'cartonnette': {'main_port_id': 29762558, 'sub_port_id': 29762572, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344322, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 26)}, 'Carton_gris': {'main_port_id': 29762558, 'sub_port_id': 29762573, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344323, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 26)}, 'autre_refus': {'main_port_id': 29762558, 'sub_port_id': 29762574, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344324, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 26)}, 'plastique': {'main_port_id': 29762558, 'sub_port_id': 29762575, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344325, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 26)}, 'mal_croppe': {'main_port_id': 29762558, 'sub_port_id': 29762577, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344326, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29762565 , 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=29762558 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 (29762565) result : ((1401480807,), (1401480821,), (1401480901,), (1401480918,), (1401480919,), (1401480920,), (1401480922,), (1401481587,), (1401482023,), (1401482122,), (1401482124,), (1401482126,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29762558) result : ((1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,)) 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 (1401480800) 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 29762566 , 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=29762558 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 (29762566) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29762558) result : ((1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,)) 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 (1401480800) 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 29762567 , 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=29762558 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 (29762567) result : ((1401480810,), (1401480811,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29762558) result : ((1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,)) 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 (1401480800) 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 29762568 , 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=29762558 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 (29762568) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29762558) result : ((1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,)) 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 (1401480800) 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 29762569 , 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=29762558 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 (29762569) result : ((1401480868,), (1401480923,), (1401480924,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29762558) result : ((1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,)) 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 (1401480800) 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 29762570 , 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=29762558 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 (29762570) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29762558) result : ((1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,)) 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 (1401480800) 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 29762571 , 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=29762558 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 (29762571) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29762558) result : ((1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,)) 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 (1401480800) 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 29762572 , 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=29762558 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 (29762572) result : ((1401480687,), (1401480827,), (1401480875,), (1401480876,), (1401481180,), (1401482028,), (1401482157,), (1401482159,), (1401482161,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29762558) result : ((1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,)) 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 (1401480800) 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 29762573 , 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=29762558 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 (29762573) result : ((1401480686,), (1401480823,), (1401480824,), (1401480825,), (1401480826,), (1401480902,), (1401481172,), (1401481604,), (1401482026,), (1401482146,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29762558) result : ((1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,)) 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 (1401480800) 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 29762574 , 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=29762558 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 (29762574) result : ((1401480808,), (1401480822,), (1401480867,), (1401481162,), (1401481164,), (1401481596,), (1401482024,), (1401482136,), (1401482138,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29762558) result : ((1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,)) 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 (1401480800) 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 29762575 , 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=29762558 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 (29762575) result : ((1401480787,), (1401481189,), (1401482029,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29762558) result : ((1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,)) 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 (1401480800) 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 29762577 , 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=29762558 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 (29762577) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29762558) result : ((1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,)) 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 (1401480800) 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`=29762558 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','Teint_Dans_La_Masse','Carton_gris','environnement','cartonnette','mal_croppe','autre_refus','flou','papier','Carton_brun','kraft')) 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`=29762558 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','Teint_Dans_La_Masse','Carton_gris','environnement','cartonnette','mal_croppe','autre_refus','flou','papier','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29762558, 'sub_port_id': 29762578, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344327, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 32)}, 'metal': {'main_port_id': 29762558, 'sub_port_id': 29762579, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344328, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 32)}, 'kraft': {'main_port_id': 29762558, 'sub_port_id': 29762580, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344329, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 32)}, 'environnement': {'main_port_id': 29762558, 'sub_port_id': 29762581, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344330, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 32)}, 'Carton_brun': {'main_port_id': 29762558, 'sub_port_id': 29762582, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344331, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 32)}, 'papier': {'main_port_id': 29762558, 'sub_port_id': 29762583, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344332, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 32)}, 'flou': {'main_port_id': 29762558, 'sub_port_id': 29762584, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344333, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 32)}, 'cartonnette': {'main_port_id': 29762558, 'sub_port_id': 29762586, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344334, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 32)}, 'Carton_gris': {'main_port_id': 29762558, 'sub_port_id': 29762588, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344335, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 32)}, 'autre_refus': {'main_port_id': 29762558, 'sub_port_id': 29762590, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344336, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 32)}, 'plastique': {'main_port_id': 29762558, 'sub_port_id': 29762592, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344337, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 47, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 32)}, 'mal_croppe': {'main_port_id': 29762558, 'sub_port_id': 29762594, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20344338, 'last_updated_at': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 29, 6, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 29, 6, 47, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29762578,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29762565 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29762579,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29762566 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29762580,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29762567 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29762581,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29762568 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29762582,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29762569 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29762583,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29762570 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29762584,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29762571 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29762586,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29762572 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29762588,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29762573 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29762590,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29762574 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29762592,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29762575 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29762594,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29762577 lien utilise dans velours : https://marlene.fotonower.com/velours/29762578,29762579,29762580,29762581,29762582,29762583,29762584,29762586,29762588,29762590,29762592,29762594?tags=Teint_Dans_La_Masse,metal,kraft,environnement,Carton_brun,papier,flou,cartonnette,Carton_gris,autre_refus,plastique,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29762558]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1401481812, 1401481469, 1401481445, 1401481430, 1401481425, 1401481405, 1401481307] map_info['map_portfolio_photo'] : {29762558: [1401481812, 1401481469, 1401481445, 1401481430, 1401481425, 1401481405, 1401481307, 1401480938, 1401480937, 1401480936, 1401480935, 1401480911, 1401480909, 1401480907, 1401480905, 1401480883, 1401480881, 1401480880, 1401480879, 1401480856, 1401480855, 1401480837, 1401480835, 1401480833, 1401480831, 1401480800, 1401480795, 1401480792, 1401480790, 1401480769, 1401480768, 1401480766, 1401480750, 1401480746, 1401480744, 1401480742, 1401480741, 1401480722, 1401480721, 1401480720, 1401480696, 1401480695, 1401480694, 1401480692, 1401480674, 1401480670, 1401480668, 1401480665, 1401480664, 1401480639, 1401480637, 1401480634, 1401480632, 1401480612, 1401480609]} final : False mtd_id 4302 list_pids : [1401481812, 1401481469, 1401481445, 1401481430, 1401481425, 1401481405, 1401481307] Looping around the photos to save general results len do output : 1 /29762558. 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, '4282143') ('4302', '29762558', '1401481812', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481469', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481445', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481430', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481425', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481405', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481307', None, None, None, None, None, '4282143') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '29762558', "{'Teint_Dans_La_Masse': 29762565, 'metal': 29762566, 'kraft': 29762567, 'environnement': 29762568, 'Carton_brun': 29762569, 'papier': 29762570, 'flou': 29762571, 'cartonnette': 29762572, 'Carton_gris': 29762573, 'autre_refus': 29762574, 'plastique': 29762575, 'mal_croppe': 29762577}", None, None, None, None, '4282143'), ('4302', '29762558', '1401481812', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481469', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481445', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481430', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481425', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481405', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481307', None, None, None, None, None, '4282143')] time used for this insertion : 0.01865363121032715 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5769805908203125 time spend to save output : 0.01895308494567871 total time spend for step 1 : 0.5959336757659912 step2:final Mon Dec 29 07:04: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 (29762558) 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 29762558 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1401480612,1401480609,1401480639,1401480637,1401480634,1401480632,1401480674,1401480670,1401480668,1401480665,1401480664,1401480696,1401480695,1401480694,1401480692,1401480722,1401480721,1401480720,1401480750,1401480746,1401480744,1401480742,1401480741,1401480769,1401480768,1401480766,1401480800,1401480795,1401480792,1401480790,1401480837,1401480835,1401480833,1401480831,1401480856,1401480855,1401480883,1401480881,1401480880,1401480879,1401480911,1401480909,1401480907,1401480905,1401480938,1401480937,1401480936,1401480935,1401481469,1401481445,1401481430,1401481425,1401481405,1401481307,1401481812); 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([29762558]) Inside saveOutput : final : False verbose : True original output for save of step final : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ('0.0466972534748235',), 1401481405: ('0.0466972534748235',), 1401481307: ('0.0466972534748235',)} new output for save of step final : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ('0.0466972534748235',), 1401481405: ('0.0466972534748235',), 1401481307: ('0.0466972534748235',)} [1401481812, 1401481469, 1401481445, 1401481430, 1401481425, 1401481405, 1401481307] map_info['map_portfolio_photo'] : {29762558: [1401481812, 1401481469, 1401481445, 1401481430, 1401481425, 1401481405, 1401481307, 1401480938, 1401480937, 1401480936, 1401480935, 1401480911, 1401480909, 1401480907, 1401480905, 1401480883, 1401480881, 1401480880, 1401480879, 1401480856, 1401480855, 1401480837, 1401480835, 1401480833, 1401480831, 1401480800, 1401480795, 1401480792, 1401480790, 1401480769, 1401480768, 1401480766, 1401480750, 1401480746, 1401480744, 1401480742, 1401480741, 1401480722, 1401480721, 1401480720, 1401480696, 1401480695, 1401480694, 1401480692, 1401480674, 1401480670, 1401480668, 1401480665, 1401480664, 1401480639, 1401480637, 1401480634, 1401480632, 1401480612, 1401480609]} final : False mtd_id 4302 list_pids : [1401481812, 1401481469, 1401481445, 1401481430, 1401481425, 1401481405, 1401481307] Looping around the photos to save general results len do output : 7 /1401481812.Didn't retrieve data . /1401481469.Didn't retrieve data . /1401481445.Didn't retrieve data . /1401481430.Didn't retrieve data . /1401481425.Didn't retrieve data . /1401481405.Didn't retrieve data . /1401481307.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, '4282143') ('4302', '29762558', '1401481812', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481469', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481445', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481430', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481425', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481405', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481307', None, None, None, None, None, '4282143') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '29762558', '1401481812', '0.0466972534748235', None, None, None, None, '4282143'), ('4302', '29762558', '1401481469', '0.0466972534748235', None, None, None, None, '4282143'), ('4302', '29762558', '1401481445', '0.0466972534748235', None, None, None, None, '4282143'), ('4302', '29762558', '1401481430', '0.0466972534748235', None, None, None, None, '4282143'), ('4302', '29762558', '1401481425', '0.0466972534748235', None, None, None, None, '4282143'), ('4302', '29762558', '1401481405', '0.0466972534748235', None, None, None, None, '4282143'), ('4302', '29762558', '1401481307', '0.0466972534748235', None, None, None, None, '4282143')] time used for this insertion : 0.015728473663330078 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08193373680114746 time spend to save output : 0.016107797622680664 total time spend for step 2 : 0.09804153442382812 step3:velours_tree Mon Dec 29 07:04: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 : {29762558: [{'Teint_Dans_La_Masse': 29762565, 'metal': 29762566, 'kraft': 29762567, 'environnement': 29762568, 'Carton_brun': 29762569, 'papier': 29762570, 'flou': 29762571, 'cartonnette': 29762572, 'Carton_gris': 29762573, 'autre_refus': 29762574, 'plastique': 29762575, 'mal_croppe': 29762577}]} input_args_next_step : {29762558: ()} output_args : {29762558: [{'Teint_Dans_La_Masse': 29762565, 'metal': 29762566, 'kraft': 29762567, 'environnement': 29762568, 'Carton_brun': 29762569, 'papier': 29762570, 'flou': 29762571, 'cartonnette': 29762572, 'Carton_gris': 29762573, 'autre_refus': 29762574, 'plastique': 29762575, 'mal_croppe': 29762577}]} args : 29762558 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 : ({'Teint_Dans_La_Masse': 29762565, 'metal': 29762566, 'kraft': 29762567, 'environnement': 29762568, 'Carton_brun': 29762569, 'papier': 29762570, 'flou': 29762571, 'cartonnette': 29762572, 'Carton_gris': 29762573, 'autre_refus': 29762574, 'plastique': 29762575, 'mal_croppe': 29762577},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29762558) 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([29762558]) 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.5023622512817383 time spend to save output : 5.555152893066406e-05 total time spend for step 3 : 0.502417802810669 step4:send_mail_cod Mon Dec 29 07:04:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ('0.0466972534748235',), 1401481405: ('0.0466972534748235',), 1401481307: ('0.0466972534748235',)} input_args_next_step : {1401481812: ()} output_args : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ('0.0466972534748235',), 1401481405: ('0.0466972534748235',), 1401481307: ('0.0466972534748235',)} args : 1401481812 depend.output_id : 0 input_args_next_step : {1401481812: ('0.0466972534748235',), 1401481469: ()} output_args : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ('0.0466972534748235',), 1401481405: ('0.0466972534748235',), 1401481307: ('0.0466972534748235',)} args : 1401481469 depend.output_id : 0 input_args_next_step : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ()} output_args : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ('0.0466972534748235',), 1401481405: ('0.0466972534748235',), 1401481307: ('0.0466972534748235',)} args : 1401481445 depend.output_id : 0 input_args_next_step : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ()} output_args : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ('0.0466972534748235',), 1401481405: ('0.0466972534748235',), 1401481307: ('0.0466972534748235',)} args : 1401481430 depend.output_id : 0 input_args_next_step : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ()} output_args : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ('0.0466972534748235',), 1401481405: ('0.0466972534748235',), 1401481307: ('0.0466972534748235',)} args : 1401481425 depend.output_id : 0 input_args_next_step : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ('0.0466972534748235',), 1401481405: ()} output_args : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ('0.0466972534748235',), 1401481405: ('0.0466972534748235',), 1401481307: ('0.0466972534748235',)} args : 1401481405 depend.output_id : 0 input_args_next_step : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ('0.0466972534748235',), 1401481405: ('0.0466972534748235',), 1401481307: ()} output_args : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ('0.0466972534748235',), 1401481405: ('0.0466972534748235',), 1401481307: ('0.0466972534748235',)} args : 1401481307 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {29762558: [{'Teint_Dans_La_Masse': 29762565, 'metal': 29762566, 'kraft': 29762567, 'environnement': 29762568, 'Carton_brun': 29762569, 'papier': 29762570, 'flou': 29762571, 'cartonnette': 29762572, 'Carton_gris': 29762573, 'autre_refus': 29762574, 'plastique': 29762575, 'mal_croppe': 29762577}]} input_args_next_step : {1401481812: ('0.0466972534748235',), 1401481469: ('0.0466972534748235',), 1401481445: ('0.0466972534748235',), 1401481430: ('0.0466972534748235',), 1401481425: ('0.0466972534748235',), 1401481405: ('0.0466972534748235',), 1401481307: ('0.0466972534748235',), 29762558: ()} output_args : {29762558: [{'Teint_Dans_La_Masse': 29762565, 'metal': 29762566, 'kraft': 29762567, 'environnement': 29762568, 'Carton_brun': 29762569, 'papier': 29762570, 'flou': 29762571, 'cartonnette': 29762572, 'Carton_gris': 29762573, 'autre_refus': 29762574, 'plastique': 29762575, 'mal_croppe': 29762577}]} args : 29762558 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 :8, first value : ('0.0466972534748235',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29762558) 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 (1401481812,1401481469,1401481445,1401481430,1401481425,1401481405,1401481307) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1401481307 begin to download photo : 1401481425 begin to download photo : 1401481445 begin to download photo : 1401481812 download finish for photo 1401481445 begin to download photo : 1401481469 download finish for photo 1401481307 begin to download photo : 1401481405 download finish for photo 1401481812 download finish for photo 1401481425 begin to download photo : 1401481430 download finish for photo 1401481469 download finish for photo 1401481405 download finish for photo 1401481430 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette297625661766988299/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P29762558_29-12-2025_07_04_59.pdf 29762566 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=29762566 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297625661766988299 29762567 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=29762567 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401480810: '1766987586_2910107_1401480695_440783fa83394e53e31fc715d8aabd87_rle_crop_4084264532_0.png', 1401480811: '1766987586_2910107_1401480694_b53ba455d1e46e00e892c2f0ddb9d986_rle_crop_4084264546_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/078a2adcfbbadf5fb0d3711ffedf8389_52441085.png change filename to text .imagette297625671766988299/ imagette297625671766988299/1766987586_2910107_1401480695_440783fa83394e53e31fc715d8aabd87_rle_crop_4084264532_0.png.png imagette297625671766988299/1766987586_2910107_1401480694_b53ba455d1e46e00e892c2f0ddb9d986_rle_crop_4084264546_0.png.png imagette297625711766988299/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/25569d1ed56a4541eed4ea2dc0342e73_27391161.png imagette297625671766988299 29762571 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=29762571 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297625711766988299 29762572 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=29762572 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401480687: '1766987305_2894250_1401480609_c6c7ce27fbd2e020b1a05550cf17527b_rle_crop_4084264094_0.png', 1401480827: '1766987606_2911798_1401480665_9aa20e15cef8f26e607ba30ddec04c26_rle_crop_4084264712_0.png', 1401480875: '1766987726_2917328_1401480639_f9c43bc14be26bfc723ede8afccf9347_rle_crop_4084264914_0.png', 1401480876: '1766987726_2917328_1401480639_f9c43bc14be26bfc723ede8afccf9347_rle_crop_4084264917_0.png', 1401481180: '1766987946_2929311_1401480800_281e6b8009c2b7c83879b418aa377851_rle_crop_4084272294_0.png', 1401482028: '1766988066_2933075_1401480907_dccc7c3721d93a2c06e1cc9f1c8612f3_rle_crop_4084279363_0.png', 1401482157: '1766988085_2936035_1401480911_a78c10236486286d9860faec8d2388dc_rle_crop_4084279532_0.png', 1401482159: '1766988085_2936035_1401480880_0f503f7974ed67befe9808580e14db54_rle_crop_4084279554_0.png', 1401482161: '1766988085_2936035_1401480879_6b44a7aff225201e03802f340f715e6a_rle_crop_4084279577_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/af71ac1210ba284c3f657dc26a8e6a00_92308092.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/f50caead32371aadb0f0755421c3fa40_28774068.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/d92e1fa56ba089a009cd36ccdb347632_56997882.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/538d0cd6232818fe4ed57f669c89fa68_32102079.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/6766927d4bf36c21a3cf90a62bc99244_40637217.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/4744ee62d8314f72bfbeca9ce74d69a4_36145959.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/7c1b0d09fc8413726bd22651a9621a9f_46979939.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/8830f49f8c43a9875aa2052ecc1c6488_7979409.png change filename to text .imagette297625721766988299/ imagette297625721766988299/1766988085_2936035_1401480880_0f503f7974ed67befe9808580e14db54_rle_crop_4084279554_0.png.png imagette297625721766988299/1766987946_2929311_1401480800_281e6b8009c2b7c83879b418aa377851_rle_crop_4084272294_0.png.png imagette297625721766988299/1766987606_2911798_1401480665_9aa20e15cef8f26e607ba30ddec04c26_rle_crop_4084264712_0.png.png imagette297625721766988299/1766988066_2933075_1401480907_dccc7c3721d93a2c06e1cc9f1c8612f3_rle_crop_4084279363_0.png.png imagette297625721766988299/1766987726_2917328_1401480639_f9c43bc14be26bfc723ede8afccf9347_rle_crop_4084264917_0.png.png imagette297625721766988299/1766988085_2936035_1401480911_a78c10236486286d9860faec8d2388dc_rle_crop_4084279532_0.png.png imagette297625721766988299/1766988085_2936035_1401480879_6b44a7aff225201e03802f340f715e6a_rle_crop_4084279577_0.png.png imagette297625721766988299/1766987726_2917328_1401480639_f9c43bc14be26bfc723ede8afccf9347_rle_crop_4084264914_0.png.png imagette297625721766988299/1766987305_2894250_1401480609_c6c7ce27fbd2e020b1a05550cf17527b_rle_crop_4084264094_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/9af323c9cb0370543a67ea02d70ee627_99696946.png imagette297625721766988299 29762574 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=29762574 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401480808: '1766987586_2910107_1401480692_c3fa402d216ca1ff5b8d2932f8397240_rle_crop_4084264558_0.png', 1401480822: '1766987606_2911798_1401480668_c5622697c54d96d41e3aea6acba69f72_rle_crop_4084264695_0.png', 1401480867: '1766987706_2916905_1401480632_132092fd6d67a7548dd7e6b3ac08fbae_rle_crop_4084264883_0.png', 1401481162: '1766987946_2929311_1401480768_36d6b01c9a2e2fbbae5117649b73daf9_rle_crop_4084272312_0.png', 1401481164: '1766987946_2929311_1401480766_eec699bc894745578674f8901d4f7eed_rle_crop_4084272332_0.png', 1401481596: '1766988025_2931987_1401480937_c83ca10925fcba8ad90e454f553703c9_rle_crop_4084272424_0.png', 1401482024: '1766988066_2933075_1401480905_ea231d5920bb9bc9719fb8bde9287b78_rle_crop_4084279381_0.png', 1401482136: '1766988085_2936035_1401480880_0f503f7974ed67befe9808580e14db54_rle_crop_4084279556_0.png', 1401482138: '1766988085_2936035_1401480879_6b44a7aff225201e03802f340f715e6a_rle_crop_4084279575_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/f47f5b7dd12b019fb8985b1212ec12f6_33715384.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/758993b7262f510c0d9859479ad04c59_45266168.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/e59bbf603d1323df0a2ac5697d0d3f7b_59245195.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/6fba359845ab83f12c7bd1484ff1371d_67646028.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/7db90785c10d8191769c554257e52542_83388323.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/b6a74ba2aba70b9fc13416450e727c37_49686042.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/561aa2a0b022a6b6d4855203eb6027c6_95516912.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/3f9b348280cee614ae50c52a597a2c0b_43953083.png change filename to text .imagette297625741766988300/ imagette297625741766988300/1766988085_2936035_1401480879_6b44a7aff225201e03802f340f715e6a_rle_crop_4084279575_0.png.png imagette297625741766988300/1766988025_2931987_1401480937_c83ca10925fcba8ad90e454f553703c9_rle_crop_4084272424_0.png.png imagette297625741766988300/1766987606_2911798_1401480668_c5622697c54d96d41e3aea6acba69f72_rle_crop_4084264695_0.png.png imagette297625741766988300/1766987706_2916905_1401480632_132092fd6d67a7548dd7e6b3ac08fbae_rle_crop_4084264883_0.png.png imagette297625741766988300/1766988085_2936035_1401480880_0f503f7974ed67befe9808580e14db54_rle_crop_4084279556_0.png.png imagette297625741766988300/1766987946_2929311_1401480768_36d6b01c9a2e2fbbae5117649b73daf9_rle_crop_4084272312_0.png.png imagette297625741766988300/1766987586_2910107_1401480692_c3fa402d216ca1ff5b8d2932f8397240_rle_crop_4084264558_0.png.png imagette297625741766988300/1766988066_2933075_1401480905_ea231d5920bb9bc9719fb8bde9287b78_rle_crop_4084279381_0.png.png imagette297625741766988300/1766987946_2929311_1401480766_eec699bc894745578674f8901d4f7eed_rle_crop_4084272332_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/9fd4c29962f92a89d1918d5a34644d46_80202276.png imagette297625741766988300 29762575 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=29762575 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401480787: '1766987545_2908761_1401480720_05b3fccadae70c7159b099d0be2e5eb2_rle_crop_4084264449_0.png', 1401481189: '1766987946_2929311_1401480766_eec699bc894745578674f8901d4f7eed_rle_crop_4084272338_0.png', 1401482029: '1766988066_2933075_1401480907_dccc7c3721d93a2c06e1cc9f1c8612f3_rle_crop_4084279365_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/85ec48b5368fe9e2b3e10e52cf365e1f_65188471.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/37c754eb43a985e76d4af8660b19caf7_63033194.png change filename to text .imagette297625751766988301/ imagette297625751766988301/1766987545_2908761_1401480720_05b3fccadae70c7159b099d0be2e5eb2_rle_crop_4084264449_0.png.png imagette297625751766988301/1766987946_2929311_1401480766_eec699bc894745578674f8901d4f7eed_rle_crop_4084272338_0.png.png imagette297625751766988301/1766988066_2933075_1401480907_dccc7c3721d93a2c06e1cc9f1c8612f3_rle_crop_4084279365_0.png.png imagette297625771766988301/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/fa1a3b68a5371881345357395a9b8fff_74933281.png imagette297625751766988301 29762577 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=29762577 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297625771766988301 29762565 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=29762565 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401480807: '1766987586_2910107_1401480694_b53ba455d1e46e00e892c2f0ddb9d986_rle_crop_4084264549_0.png', 1401480821: '1766987606_2911798_1401480665_9aa20e15cef8f26e607ba30ddec04c26_rle_crop_4084264709_0.png', 1401480901: '1766987787_2922259_1401480833_59d71d0edebf8f1a8bedd8d73c95d811_rle_crop_4084264986_0.png', 1401480918: '1766987826_2923718_1401480837_cd305424f19b6dcddedff8bf8984841a_rle_crop_4084265121_0.png', 1401480919: '1766987826_2923718_1401480792_a8e29699fbca03cbea836314b6ba87c7_rle_crop_4084265149_0.png', 1401480920: '1766987826_2923718_1401480790_52ac757bac788c4b0262084594f707bf_rle_crop_4084265163_0.png', 1401480922: '1766987826_2923718_1401480790_52ac757bac788c4b0262084594f707bf_rle_crop_4084265166_0.png', 1401481587: '1766988025_2931987_1401480937_c83ca10925fcba8ad90e454f553703c9_rle_crop_4084272429_0.png', 1401482023: '1766988066_2933075_1401480909_a56d260850e211ee3348a17135e7ebb0_rle_crop_4084279358_0.png', 1401482122: '1766988085_2936035_1401480911_a78c10236486286d9860faec8d2388dc_rle_crop_4084279536_0.png', 1401482124: '1766988085_2936035_1401480880_0f503f7974ed67befe9808580e14db54_rle_crop_4084279562_0.png', 1401482126: '1766988085_2936035_1401480879_6b44a7aff225201e03802f340f715e6a_rle_crop_4084279583_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/39d6a392a934ea2bb701d5186687f40a_38276358.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/11609e274a5695a47b18dd913358c2aa_33149584.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/ad7c6d7e1d7a33f86996a66c84d43d7c_32262078.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/c61352cbf8bc7b6dd10f97c37ff1ed76_89769581.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/0eb23af1b8da0ae4555d2182522036c7_81726291.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/c36a73097364d6d186b6b905954d76d6_2136025.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/885318330416f7d3035108fb79a67156_54848265.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/562d17527ff7c123902ec9675f6358f9_16419555.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/857acfc3dc86507927c3ab1bab92940f_32166925.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/fe8a98c640278c4a0d53a24374d15a10_788170.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/99065910632f9c075c0c7b58c0c4f6c0_23760652.png change filename to text .imagette297625651766988301/ imagette297625651766988301/1766988066_2933075_1401480909_a56d260850e211ee3348a17135e7ebb0_rle_crop_4084279358_0.png.png imagette297625651766988301/1766987606_2911798_1401480665_9aa20e15cef8f26e607ba30ddec04c26_rle_crop_4084264709_0.png.png imagette297625651766988301/1766988085_2936035_1401480879_6b44a7aff225201e03802f340f715e6a_rle_crop_4084279583_0.png.png imagette297625651766988301/1766988025_2931987_1401480937_c83ca10925fcba8ad90e454f553703c9_rle_crop_4084272429_0.png.png imagette297625651766988301/1766987826_2923718_1401480790_52ac757bac788c4b0262084594f707bf_rle_crop_4084265166_0.png.png imagette297625651766988301/1766987787_2922259_1401480833_59d71d0edebf8f1a8bedd8d73c95d811_rle_crop_4084264986_0.png.png imagette297625651766988301/1766987826_2923718_1401480790_52ac757bac788c4b0262084594f707bf_rle_crop_4084265163_0.png.png imagette297625651766988301/1766987826_2923718_1401480792_a8e29699fbca03cbea836314b6ba87c7_rle_crop_4084265149_0.png.png imagette297625651766988301/1766988085_2936035_1401480880_0f503f7974ed67befe9808580e14db54_rle_crop_4084279562_0.png.png imagette297625651766988301/1766987826_2923718_1401480837_cd305424f19b6dcddedff8bf8984841a_rle_crop_4084265121_0.png.png imagette297625651766988301/1766988085_2936035_1401480911_a78c10236486286d9860faec8d2388dc_rle_crop_4084279536_0.png.png imagette297625651766988301/1766987586_2910107_1401480694_b53ba455d1e46e00e892c2f0ddb9d986_rle_crop_4084264549_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/ef8c0b0bbd37182b0422fb86ffa4f7fe_96862531.png imagette297625651766988301 29762569 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=29762569 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401480868: '1766987706_2916905_1401480637_d68ea8c7b87b96ad179cef66ddb4c5d0_rle_crop_4084264857_0.png', 1401480923: '1766987826_2923718_1401480792_a8e29699fbca03cbea836314b6ba87c7_rle_crop_4084265144_0.png', 1401480924: '1766987826_2923718_1401480792_a8e29699fbca03cbea836314b6ba87c7_rle_crop_4084265142_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/c18d3d93d9353ae7389174001e5a6371_84816915.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/1886ed641b2f3963bc424c445fc3ac90_3673078.png change filename to text .imagette297625691766988302/ imagette297625691766988302/1766987826_2923718_1401480792_a8e29699fbca03cbea836314b6ba87c7_rle_crop_4084265142_0.png.png imagette297625691766988302/1766987706_2916905_1401480637_d68ea8c7b87b96ad179cef66ddb4c5d0_rle_crop_4084264857_0.png.png imagette297625691766988302/1766987826_2923718_1401480792_a8e29699fbca03cbea836314b6ba87c7_rle_crop_4084265144_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/b097c25257d7fc7209d51445c10f8409_87292694.png imagette297625691766988302 29762573 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=29762573 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401480686: '1766987305_2894250_1401480609_c6c7ce27fbd2e020b1a05550cf17527b_rle_crop_4084264095_0.png', 1401480823: '1766987606_2911798_1401480668_c5622697c54d96d41e3aea6acba69f72_rle_crop_4084264692_0.png', 1401480824: '1766987606_2911798_1401480668_c5622697c54d96d41e3aea6acba69f72_rle_crop_4084264691_0.png', 1401480825: '1766987606_2911798_1401480665_9aa20e15cef8f26e607ba30ddec04c26_rle_crop_4084264708_0.png', 1401480826: '1766987606_2911798_1401480664_69d045f8cc5323d665bfa793b10a3606_rle_crop_4084264720_0.png', 1401480902: '1766987787_2922259_1401480833_59d71d0edebf8f1a8bedd8d73c95d811_rle_crop_4084264985_0.png', 1401481172: '1766987946_2929311_1401480768_36d6b01c9a2e2fbbae5117649b73daf9_rle_crop_4084272314_0.png', 1401481604: '1766988025_2931987_1401480937_c83ca10925fcba8ad90e454f553703c9_rle_crop_4084272425_0.png', 1401482026: '1766988066_2933075_1401480907_dccc7c3721d93a2c06e1cc9f1c8612f3_rle_crop_4084279373_0.png', 1401482146: '1766988085_2936035_1401480879_6b44a7aff225201e03802f340f715e6a_rle_crop_4084279574_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/09204ca284bcb9cdf33aec79fd356c49_82486954.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/0ab9c0634db9e3b2a3bb13bb96850cbe_89272999.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/2acd066a1b8ff215b8304cb2ee5667f0_1490912.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/a66b0bdf9343a623bb5f57216deda6d8_94158348.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/4225d206ce5ec3bf70ad61664dfa86ae_73086499.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/ab4f8a53e562da75bee1bbb43de0fe81_4620468.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/6e064c2025198a538f998a4a2653729c_53294156.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/27d479f585def7f2f631142381057a92_20966225.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/b65be9ec83dfdb88f7ea4f022c79a1e0_44054516.png change filename to text .imagette297625731766988302/ imagette297625731766988302/1766987606_2911798_1401480668_c5622697c54d96d41e3aea6acba69f72_rle_crop_4084264692_0.png.png imagette297625731766988302/1766988025_2931987_1401480937_c83ca10925fcba8ad90e454f553703c9_rle_crop_4084272425_0.png.png imagette297625731766988302/1766987305_2894250_1401480609_c6c7ce27fbd2e020b1a05550cf17527b_rle_crop_4084264095_0.png.png imagette297625731766988302/1766988085_2936035_1401480879_6b44a7aff225201e03802f340f715e6a_rle_crop_4084279574_0.png.png imagette297625731766988302/1766987946_2929311_1401480768_36d6b01c9a2e2fbbae5117649b73daf9_rle_crop_4084272314_0.png.png imagette297625731766988302/1766988066_2933075_1401480907_dccc7c3721d93a2c06e1cc9f1c8612f3_rle_crop_4084279373_0.png.png imagette297625731766988302/1766987787_2922259_1401480833_59d71d0edebf8f1a8bedd8d73c95d811_rle_crop_4084264985_0.png.png imagette297625731766988302/1766987606_2911798_1401480664_69d045f8cc5323d665bfa793b10a3606_rle_crop_4084264720_0.png.png imagette297625731766988302/1766987606_2911798_1401480665_9aa20e15cef8f26e607ba30ddec04c26_rle_crop_4084264708_0.png.png imagette297625731766988302/1766987606_2911798_1401480668_c5622697c54d96d41e3aea6acba69f72_rle_crop_4084264691_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/71a8fb9c4cbf329ae85971ceb59f23bf_84284356.png imagette297625731766988302 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29762558 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29762578,29762579,29762580,29762581,29762582,29762583,29762584,29762586,29762588,29762590,29762592,29762594?tags=Teint_Dans_La_Masse,metal,kraft,environnement,Carton_brun,papier,flou,cartonnette,Carton_gris,autre_refus,plastique,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1401481812] : ('0.0466972534748235',) no score found for photo 1401481812 We are sending mail with results at report@fotonower.com args[1401481469] : ('0.0466972534748235',) no score found for photo 1401481469 We are sending mail with results at report@fotonower.com args[1401481445] : ('0.0466972534748235',) no score found for photo 1401481445 We are sending mail with results at report@fotonower.com args[1401481430] : ('0.0466972534748235',) no score found for photo 1401481430 We are sending mail with results at report@fotonower.com args[1401481425] : ('0.0466972534748235',) no score found for photo 1401481425 We are sending mail with results at report@fotonower.com args[1401481405] : ('0.0466972534748235',) no score found for photo 1401481405 We are sending mail with results at report@fotonower.com args[1401481307] : ('0.0466972534748235',) no score found for photo 1401481307 We are sending mail with results at report@fotonower.com refus_total : 0.0466972534748235 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=29762558 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_P29762558_29-12-2025_07_04_59.pdf results_Auto_P29762558_29-12-2025_07_04_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29762558_29-12-2025_07_04_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29762558','results_Auto_P29762558_29-12-2025_07_04_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29762558_29-12-2025_07_04_59.pdf','pdf','','0.22','0.0466972534748235') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29762558]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1401481812, 1401481469, 1401481445, 1401481430, 1401481425, 1401481405, 1401481307] map_info['map_portfolio_photo'] : {29762558: [1401481812, 1401481469, 1401481445, 1401481430, 1401481425, 1401481405, 1401481307, 1401480938, 1401480937, 1401480936, 1401480935, 1401480911, 1401480909, 1401480907, 1401480905, 1401480883, 1401480881, 1401480880, 1401480879, 1401480856, 1401480855, 1401480837, 1401480835, 1401480833, 1401480831, 1401480800, 1401480795, 1401480792, 1401480790, 1401480769, 1401480768, 1401480766, 1401480750, 1401480746, 1401480744, 1401480742, 1401480741, 1401480722, 1401480721, 1401480720, 1401480696, 1401480695, 1401480694, 1401480692, 1401480674, 1401480670, 1401480668, 1401480665, 1401480664, 1401480639, 1401480637, 1401480634, 1401480632, 1401480612, 1401480609]} final : False mtd_id 4302 list_pids : [1401481812, 1401481469, 1401481445, 1401481430, 1401481425, 1401481405, 1401481307] 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, '4282143') ('4302', '29762558', '1401481812', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481469', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481445', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481430', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481425', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481405', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481307', None, None, None, None, None, '4282143') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '29762558', '1401481812', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481469', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481445', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481430', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481425', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481405', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481307', None, None, None, None, None, '4282143')] time used for this insertion : 0.016840457916259766 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.303851842880249 time spend to save output : 0.0169980525970459 total time spend for step 4 : 5.320849895477295 step5:split_time_score Mon Dec 29 07:05:04 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 : ['29762558'] 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 : [('29762558',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29762558) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1401481812: {'path': 'temp/1766988299_19403_1401481812_58fc04d4f9ccb6c08c0f636998c97422.jpg', 'extension': 'jpg'}, 1401481445: {'path': 'temp/1766988299_19403_1401481445_9a74ff69843e2cb0770f0033a11283e5.jpg', 'extension': 'jpg'}, 1401481469: {'path': 'temp/1766988299_19403_1401481469_f6cf009c419c1ed73ad77cbde03b21e5.jpg', 'extension': 'jpg'}, 1401481307: {'path': 'temp/1766988299_19403_1401481307_427ccf978f5c31919b0125024c2350f2.jpg', 'extension': 'jpg'}, 1401481405: {'path': 'temp/1766988299_19403_1401481405_31c228e360c13c42833ba444b1c5ae1f.jpg', 'extension': 'jpg'}, 1401481425: {'path': 'temp/1766988299_19403_1401481425_1c59770290072f415ab38f69cace0ddb.jpg', 'extension': 'jpg'}, 1401481430: {'path': 'temp/1766988299_19403_1401481430_3876b0f48da8ba5036b4a48a1298dc2b.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 = 29762558; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('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 = 29762558 group by h (('06', 55),) 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=29762558 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 (29762558) 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 (29762558) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 29122025 29762558 Nombre de photos uploadées : 55 / 23040 (0%) 29122025 29762558 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 29122025 29762558 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1401480612, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/3eddf47e82769e1081fa0c865518478d.jpg', 'username': None, 'uploaded_at': 1766987167, 'text': 'image_29122025_06_45_13_010156m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401480609, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/c6c7ce27fbd2e020b1a05550cf17527b.jpg', 'username': None, 'uploaded_at': 1766987167, 'text': 'image_29122025_06_45_23_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401480639, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/f9c43bc14be26bfc723ede8afccf9347.jpg', 'username': None, 'uploaded_at': 1766987227, 'text': 'image_29122025_06_45_43_010147m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1401480637, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/29/d68ea8c7b87b96ad179cef66ddb4c5d0.jpg', 'username': None, 'uploaded_at': 1766987227, 'text': 'image_29122025_06_46_04_010148m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.00188446044921875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29762558, '2025-12-29' ) 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-12-29' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2804132,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2494349479675293 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= 2804132 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2804132, 'dashboard_run_id': 2810982, 'mtr_portfolio_id': 29759841, 'dashboard_result_id': 18784083, '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_P29759841_29-12-2025_05_19_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29759843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29759844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29759845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29759846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29759847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29759848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29759849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29759850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29759851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29759852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29759853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29759854, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2810982, 'mtr_portfolio_id': 29760025, 'dashboard_result_id': 18784084, '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_P29760025_29-12-2025_05_33_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29760034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760040, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2810982, 'mtr_portfolio_id': 29760415, 'dashboard_result_id': 18784085, '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_P29760415_29-12-2025_05_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29760426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760431, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2810982, 'mtr_portfolio_id': 29760792, 'dashboard_result_id': 18784086, '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_P29760792_29-12-2025_06_03_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29760799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760805, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760810, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2810982, 'mtr_portfolio_id': 29761190, 'dashboard_result_id': 18784087, '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_P29761190_29-12-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29761191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29761192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29761193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29761194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29761195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29761196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29761197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29761198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29761199, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29761200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29761201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29761202, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2810982, 'mtr_portfolio_id': 29761669, 'dashboard_result_id': 18784088, '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_P29761669_29-12-2025_06_33_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29761670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29761671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29761672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29761673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29761674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29761675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29761676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29761677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29761678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29761679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29761680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29761681, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2810982, 'mtr_portfolio_id': 29762108, 'dashboard_result_id': 18784089, '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_P29762108_29-12-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29762112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29762113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29762114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29762115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29762116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29762117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29762118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29762119, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29762120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29762121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29762122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29762123, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2810982, 'mtr_portfolio_id': 29762558, 'dashboard_result_id': 18784090, '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_P29762558_29-12-2025_06_58_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29762565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29762566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29762567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29762568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29762569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29762570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29762571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29762572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29762573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29762574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29762575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29762577, 'pht': 3726}}"}, {'dashboat_entry_day': 2804132, 'dashboard_run_id': 2810982, 'mtr_portfolio_id': 29763024, 'dashboard_result_id': 18784091, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 29759841 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': 4281749, 'mtr_portfolio_id': 29759841, 'created_at': datetime.datetime(2025, 12, 29, 5, 19, 29), 'result': '0.061001476454854056', 'result_long': None, 'result_double': None}] Qualite : 0.061001476454854056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29759841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29759841_29-12-2025_05_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29759841 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_P29759841_29-12-2025_05_19_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29759843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29759844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29759845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29759846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29759847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29759848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29759849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29759850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29759851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29759852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29759853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29759854, 'pht': 3726}}" where mtr_portfolio_id = 29759841 and dashboard_run_id = 2810982 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`=29759841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18784083, 0.061001476454854056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29759841_29-12-2025_05_19_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29759843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29759844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29759845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29759846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29759847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29759848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29759849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29759850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29759851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29759852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29759853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29759854, '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 = 29760025 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': 4281775, 'mtr_portfolio_id': 29760025, 'created_at': datetime.datetime(2025, 12, 29, 5, 33), 'result': '0.07076046805816123', 'result_long': None, 'result_double': None}] Qualite : 0.07076046805816123 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29760025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29760025_29-12-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29760025 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_P29760025_29-12-2025_05_33_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29760034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760040, 'pht': 3726}}" where mtr_portfolio_id = 29760025 and dashboard_run_id = 2810982 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`=29760025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18784084, 0.07076046805816123, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29760025_29-12-2025_05_33_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29760034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760040, '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 = 29760415 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': 4281826, 'mtr_portfolio_id': 29760415, 'created_at': datetime.datetime(2025, 12, 29, 5, 47), 'result': '0.06216490440369649', 'result_long': None, 'result_double': None}] Qualite : 0.06216490440369649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29760415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29760415_29-12-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29760415 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_P29760415_29-12-2025_05_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29760426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760431, 'pht': 3726}}" where mtr_portfolio_id = 29760415 and dashboard_run_id = 2810982 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`=29760415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18784085, 0.06216490440369649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29760415_29-12-2025_05_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29760426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760431, '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 = 29760792 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': 4281882, 'mtr_portfolio_id': 29760792, 'created_at': datetime.datetime(2025, 12, 29, 6, 3, 31), 'result': '0.059933079572211535', 'result_long': None, 'result_double': None}] Qualite : 0.059933079572211535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29760792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29760792_29-12-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29760792 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_P29760792_29-12-2025_06_03_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29760799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760805, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760810, 'pht': 3726}}" where mtr_portfolio_id = 29760792 and dashboard_run_id = 2810982 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`=29760792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18784086, 0.059933079572211535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29760792_29-12-2025_06_03_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29760799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29760800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29760801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29760802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29760803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29760804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29760805, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29760806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29760807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29760808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29760809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29760810, '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 = 29761190 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': 4281966, 'mtr_portfolio_id': 29761190, 'created_at': datetime.datetime(2025, 12, 29, 6, 17, 1), 'result': '0.042741405386945416', 'result_long': None, 'result_double': None}] Qualite : 0.042741405386945416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29761190 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29761190_29-12-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29761190 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_P29761190_29-12-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29761191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29761192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29761193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29761194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29761195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29761196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29761197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29761198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29761199, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29761200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29761201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29761202, 'pht': 3726}}" where mtr_portfolio_id = 29761190 and dashboard_run_id = 2810982 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`=29761190 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18784087, 0.042741405386945416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29761190_29-12-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29761191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29761192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29761193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29761194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29761195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29761196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29761197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29761198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29761199, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29761200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29761201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29761202, '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 = 29761669 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': 4282025, 'mtr_portfolio_id': 29761669, 'created_at': datetime.datetime(2025, 12, 29, 6, 33, 28), 'result': '0.045653356615961364', 'result_long': None, 'result_double': None}] Qualite : 0.045653356615961364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29761669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29761669_29-12-2025_06_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29761669 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_P29761669_29-12-2025_06_33_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29761670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29761671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29761672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29761673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29761674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29761675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29761676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29761677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29761678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29761679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29761680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29761681, 'pht': 3726}}" where mtr_portfolio_id = 29761669 and dashboard_run_id = 2810982 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`=29761669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18784088, 0.045653356615961364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29761669_29-12-2025_06_33_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29761670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29761671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29761672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29761673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29761674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29761675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29761676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29761677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29761678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29761679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29761680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29761681, '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 = 29762108 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': 4282092, 'mtr_portfolio_id': 29762108, 'created_at': datetime.datetime(2025, 12, 29, 6, 46, 58), 'result': '0.03311495379366328', 'result_long': None, 'result_double': None}] Qualite : 0.03311495379366328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29762108 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29762108_29-12-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29762108 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_P29762108_29-12-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29762112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29762113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29762114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29762115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29762116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29762117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29762118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29762119, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29762120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29762121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29762122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29762123, 'pht': 3726}}" where mtr_portfolio_id = 29762108 and dashboard_run_id = 2810982 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`=29762108 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18784089, 0.03311495379366328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29762108_29-12-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29762112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29762113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29762114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29762115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29762116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29762117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29762118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29762119, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29762120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29762121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29762122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29762123, '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 = 29762558 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': 4282143, 'mtr_portfolio_id': 29762558, 'created_at': datetime.datetime(2025, 12, 29, 7, 4, 58), 'result': '0.0466972534748235', 'result_long': None, 'result_double': None}] Qualite : 0.0466972534748235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29762558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29762558_29-12-2025_07_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29762558 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_P29762558_29-12-2025_07_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29762565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29762566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29762567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29762568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29762569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29762570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29762571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29762572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29762573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29762574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29762575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29762577, 'pht': 3726}}" where mtr_portfolio_id = 29762558 and dashboard_run_id = 2810982 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`=29762558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18784090, 0.0466972534748235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29762558_29-12-2025_07_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29762565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29762566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29762567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29762568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29762569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29762570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29762571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29762572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29762573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29762574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29762575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29762577, '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 = 29763024 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 29763024 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29763024 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%29763024%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29763024 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 29763024 and dashboard_run_id = 2810982 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29759841,29760025,29760415,29760792,29761190,29761669,29762108,29762558,29763024) result : ((1401477787,), (1401477791,), (1401477793,), (1401477855,), (1401477873,), (1401477875,), (1401477887,), (1401477888,), (1401477889,), (1401477891,), (1401477894,), (1401477905,), (1401477907,), (1401477922,), (1401477923,), (1401477924,), (1401477925,), (1401477927,), (1401477947,), (1401477950,), (1401477952,), (1401477955,), (1401477965,), (1401477967,), (1401477969,), (1401477971,), (1401477975,), (1401477977,), (1401478008,), (1401478009,), (1401478015,), (1401478019,), (1401478021,), (1401478023,), (1401478026,), (1401478001,), (1401478003,), (1401478005,), (1401478007,), (1401478031,), (1401478032,), (1401478033,), (1401478047,), (1401478049,), (1401478051,), (1401478054,), (1401478056,), (1401478067,), (1401478070,), (1401478073,), (1401478076,), (1401478079,), (1401478108,), (1401478111,), (1401478112,), (1401478113,), (1401478114,), (1401478125,), (1401478126,), (1401478128,), (1401478162,), (1401478164,), (1401478168,), (1401478170,), (1401478173,), (1401478175,), (1401478198,), (1401478202,), (1401478206,), (1401478208,), (1401478215,), (1401478218,), (1401478248,), (1401478252,), (1401478255,), (1401478267,), (1401478270,), (1401478278,), (1401478281,), (1401478283,), (1401478286,), (1401478294,), (1401478296,), (1401478298,), (1401478301,), (1401478304,), (1401478306,), (1401478339,), (1401478352,), (1401478369,), (1401478372,), (1401478373,), (1401478375,), (1401478376,), (1401478396,), (1401478402,), (1401478404,), (1401478406,), (1401478417,), (1401478420,), (1401478422,), (1401478424,), (1401478427,), (1401478429,), (1401478444,), (1401478447,), (1401478448,), (1401478496,), (1401478493,), (1401478494,), (1401478495,), (1401478514,), (1401478517,), (1401478518,), (1401478520,), (1401478522,), (1401478525,), (1401478541,), (1401478543,), (1401478546,), (1401478549,), (1401478552,), (1401478561,), (1401478568,), (1401478569,), (1401478571,), (1401478578,), (1401478579,), (1401478581,), (1401478583,), (1401478585,), (1401478588,), (1401478596,), (1401478598,), (1401478599,), (1401478600,), (1401478624,), (1401478626,), (1401478627,), (1401478628,), (1401478639,), (1401478640,), (1401478641,), (1401478643,), (1401478646,), (1401478691,), (1401478693,), (1401478695,), (1401478697,), (1401478700,), (1401478714,), (1401478715,), (1401478716,), (1401478717,), (1401478740,), (1401478742,), (1401478743,), (1401478745,), (1401478748,), (1401478759,), (1401478761,), (1401478763,), (1401478765,), (1401478768,), (1401478788,), (1401478790,), (1401478791,), (1401478792,), (1401478794,), (1401478807,), (1401478808,), (1401478809,), (1401478841,), (1401478842,), (1401478843,), (1401478845,), (1401478847,), (1401478856,), (1401478860,), (1401478862,), (1401478864,), (1401478867,), (1401478870,), (1401478898,), (1401478896,), (1401478897,), (1401478910,), (1401478911,), (1401478912,), (1401478914,), (1401478917,), (1401478920,), (1401478928,), (1401478930,), (1401478932,), (1401478933,), (1401478948,), (1401478950,), (1401478951,), (1401478952,), (1401478954,), (1401478956,), (1401478978,), (1401478979,), (1401478980,), (1401478982,), (1401478985,), (1401478988,), (1401478997,), (1401478999,), (1401479001,), (1401479003,), (1401479026,), (1401479032,), (1401479033,), (1401479034,), (1401479036,), (1401479038,), (1401479049,), (1401479050,), (1401479051,), (1401479053,), (1401479085,), (1401479087,), (1401479088,), (1401479091,), (1401479094,), (1401479107,), (1401479109,), (1401479110,), (1401479111,), (1401479113,), (1401479114,), (1401479143,), (1401479146,), (1401479148,), (1401479151,), (1401479153,), (1401479155,), (1401479162,), (1401479165,), (1401479190,), (1401479194,), (1401479195,), (1401479197,), (1401479216,), (1401479220,), (1401479223,), (1401479226,), (1401479235,), (1401479236,), (1401479237,), (1401479238,), (1401479239,), (1401479240,), (1401479253,), (1401479248,), (1401479251,), (1401479273,), (1401479274,), (1401479276,), (1401479279,), (1401479304,), (1401479306,), (1401479309,), (1401479311,), (1401479313,), (1401479314,), (1401479340,), (1401479342,), (1401479344,), (1401479346,), (1401479349,), (1401479351,), (1401479366,), (1401479369,), (1401479371,), (1401479373,), (1401479393,), (1401479394,), (1401479397,), (1401479402,), (1401479411,), (1401479414,), (1401479420,), (1401479422,), (1401479430,), (1401479435,), (1401479444,), (1401479448,), (1401479450,), (1401479471,), (1401479474,), (1401479476,), (1401479477,), (1401479479,), (1401479492,), (1401479493,), (1401479495,), (1401479521,), (1401479523,), (1401479525,), (1401479552,), (1401479553,), (1401479554,), (1401479555,), (1401479558,), (1401479577,), (1401479578,), (1401479579,), (1401479581,), (1401479583,), (1401479611,), (1401479614,), (1401479616,), (1401479617,), (1401479646,), (1401479656,), (1401479659,), (1401479660,), (1401479682,), (1401479684,), (1401479687,), (1401479693,), (1401479729,), (1401479727,), (1401479746,), (1401479748,), (1401479749,), (1401479750,), (1401479753,), (1401479755,), (1401479774,), (1401479777,), (1401479781,), (1401479786,), (1401479792,), (1401479812,), (1401479814,), (1401479816,), (1401479818,), (1401479821,), (1401479848,), (1401479850,), (1401479851,), (1401479869,), (1401479871,), (1401479872,), (1401479874,), (1401479877,), (1401479879,), (1401479897,), (1401479900,), (1401479903,), (1401479928,), (1401479930,), (1401479932,), (1401479934,), (1401479936,), (1401479938,), (1401479948,), (1401479958,), (1401479960,), (1401479987,), (1401479992,), (1401479995,), (1401479998,), (1401480002,), (1401480018,), (1401480021,), (1401480023,), (1401480045,), (1401480050,), (1401480052,), (1401480056,), (1401480060,), (1401480064,), (1401480089,), (1401480091,), (1401480093,), (1401480095,), (1401480113,), (1401480115,), (1401480116,), (1401480149,), (1401480150,), (1401480152,), (1401480154,), (1401480186,), (1401480180,), (1401480182,), (1401480184,), (1401480213,), (1401480215,), (1401480216,), (1401480217,), (1401480233,), (1401480235,), (1401480236,), (1401480238,), (1401480242,), (1401480263,), (1401480265,), (1401480267,), (1401480293,), (1401480295,), (1401480296,), (1401480322,), (1401480323,), (1401480325,), (1401480328,), (1401480331,), (1401480334,), (1401480340,), (1401480341,), (1401480347,), (1401480349,), (1401480352,), (1401480355,), (1401480358,), (1401480379,), (1401480382,), (1401480399,), (1401480402,), (1401480404,), (1401480435,), (1401480437,), (1401480439,), (1401480441,), (1401480457,), (1401480459,), (1401480462,), (1401480466,), (1401480492,), (1401480495,), (1401480497,), (1401480512,), (1401480514,), (1401480516,), (1401480519,), (1401480544,), (1401480547,), (1401480550,), (1401480569,), (1401480572,), (1401480574,), (1401480614,), (1401480609,), (1401480612,), (1401480632,), (1401480634,), (1401480637,), (1401480639,), (1401480664,), (1401480665,), (1401480668,), (1401480670,), (1401480674,), (1401480692,), (1401480694,), (1401480695,), (1401480696,), (1401480720,), (1401480721,), (1401480722,), (1401480741,), (1401480742,), (1401480744,), (1401480746,), (1401480750,), (1401480766,), (1401480768,), (1401480769,), (1401480790,), (1401480792,), (1401480795,), (1401480800,), (1401480831,), (1401480833,), (1401480835,), (1401480837,), (1401480855,), (1401480856,), (1401480879,), (1401480880,), (1401480881,), (1401480883,), (1401480905,), (1401480907,), (1401480909,), (1401480911,), (1401480935,), (1401480936,), (1401480937,), (1401480938,), (1401481307,), (1401481405,), (1401481425,), (1401481430,), (1401481445,), (1401481469,), (1401481812,), (1401481708,), (1401481742,), (1401481777,), (1401482035,), (1401482073,), (1401482106,), (1401482143,), (1401482179,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'29122025': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29762558]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1401481812, 1401481469, 1401481445, 1401481430, 1401481425, 1401481405, 1401481307] map_info['map_portfolio_photo'] : {29762558: [1401481812, 1401481469, 1401481445, 1401481430, 1401481425, 1401481405, 1401481307, 1401480938, 1401480937, 1401480936, 1401480935, 1401480911, 1401480909, 1401480907, 1401480905, 1401480883, 1401480881, 1401480880, 1401480879, 1401480856, 1401480855, 1401480837, 1401480835, 1401480833, 1401480831, 1401480800, 1401480795, 1401480792, 1401480790, 1401480769, 1401480768, 1401480766, 1401480750, 1401480746, 1401480744, 1401480742, 1401480741, 1401480722, 1401480721, 1401480720, 1401480696, 1401480695, 1401480694, 1401480692, 1401480674, 1401480670, 1401480668, 1401480665, 1401480664, 1401480639, 1401480637, 1401480634, 1401480632, 1401480612, 1401480609]} final : True mtd_id 4302 list_pids : [1401481812, 1401481469, 1401481445, 1401481430, 1401481425, 1401481405, 1401481307] Looping around the photos to save general results len do output : 1 /29762558Didn'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, '4282143') ('4302', '29762558', '1401481812', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481469', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481445', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481430', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481425', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481405', None, None, None, None, None, '4282143') ('4302', None, None, None, None, None, None, None, '4282143') ('4302', '29762558', '1401481307', None, None, None, None, None, '4282143') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '29762558', 'None', None, None, None, None, '4282143'), ('4302', '29762558', '1401481812', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481469', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481445', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481430', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481425', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481405', None, None, None, None, None, '4282143'), ('4302', '29762558', '1401481307', None, None, None, None, None, '4282143')] time used for this insertion : 0.015434980392456055 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.220376491546631 time spend to save output : 0.01565384864807129 total time spend for step 5 : 2.236030340194702 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 (4282143) 2.15user 2.47system 0:11.02elapsed 41%CPU (0avgtext+0avgdata 165140maxresident)k 107152inputs+11424outputs (443major+75393minor)pagefaults 0swaps