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 : 787522 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 (3656012) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3656012) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26469960 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3656012'] with mtr_portfolio_ids : ['26469960'] and first list_photo_ids : [] new path : /proc/787522/ Name: python3 Umask: 0002 State: R (running) Tgid: 787522 Ngid: 0 Pid: 787522 PPid: 787521 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 787522 NSpid: 787522 NSpgid: 785798 NSsid: 785798 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99492 kB VmRSS: 99492 kB RssAnon: 60156 kB RssFile: 39336 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 624 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: 47 nonvoluntary_ctxt_switches: 69 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '787522', 'Ngid': '0', 'Pid': '787522', 'PPid': '787521', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '787522', 'NSpid': '787522', 'NSpgid': '785798', 'NSsid': '785798', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99492 kB', 'VmRSS': '99492 kB', 'RssAnon': '60156 kB', 'RssFile': '39336 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '624 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': '47', 'nonvoluntary_ctxt_switches': '69'} ('datou_batch_current', '787522', '1107252', '0', '1107252', '866004', '99492', b'', 'marlene', '3656012') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26469960) 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 (3656012 ) ) 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 (26469960) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1381009788, 'portfolio_id': 26469960}, {'photo_id': 1381009787, 'portfolio_id': 26469960}, {'photo_id': 1381009786, 'portfolio_id': 26469960}, {'photo_id': 1381009740, 'portfolio_id': 26469960}, {'photo_id': 1381009739, 'portfolio_id': 26469960}, {'photo_id': 1381009738, 'portfolio_id': 26469960}, {'photo_id': 1381009701, 'portfolio_id': 26469960}, {'photo_id': 1381009700, 'portfolio_id': 26469960}, {'photo_id': 1381009699, 'portfolio_id': 26469960}, {'photo_id': 1381009698, 'portfolio_id': 26469960}, {'photo_id': 1381009697, 'portfolio_id': 26469960}, {'photo_id': 1381009630, 'portfolio_id': 26469960}, {'photo_id': 1381009622, 'portfolio_id': 26469960}, {'photo_id': 1381009621, 'portfolio_id': 26469960}, {'photo_id': 1381009620, 'portfolio_id': 26469960}, {'photo_id': 1381009619, 'portfolio_id': 26469960}, {'photo_id': 1381009618, 'portfolio_id': 26469960}, {'photo_id': 1381009616, 'portfolio_id': 26469960}, {'photo_id': 1381009579, 'portfolio_id': 26469960}, {'photo_id': 1381009578, 'portfolio_id': 26469960}, {'photo_id': 1381009577, 'portfolio_id': 26469960}, {'photo_id': 1381009534, 'portfolio_id': 26469960}, {'photo_id': 1381009533, 'portfolio_id': 26469960}, {'photo_id': 1381009532, 'portfolio_id': 26469960}, {'photo_id': 1381009531, 'portfolio_id': 26469960}, {'photo_id': 1381009491, 'portfolio_id': 26469960}, {'photo_id': 1381009490, 'portfolio_id': 26469960}, {'photo_id': 1381009489, 'portfolio_id': 26469960}, {'photo_id': 1381009488, 'portfolio_id': 26469960}, {'photo_id': 1381009450, 'portfolio_id': 26469960}, {'photo_id': 1381009449, 'portfolio_id': 26469960}, {'photo_id': 1381009448, 'portfolio_id': 26469960}, {'photo_id': 1381009405, 'portfolio_id': 26469960}, {'photo_id': 1381009401, 'portfolio_id': 26469960}, {'photo_id': 1381009398, 'portfolio_id': 26469960}, {'photo_id': 1381009397, 'portfolio_id': 26469960}, {'photo_id': 1381009356, 'portfolio_id': 26469960}, {'photo_id': 1381009355, 'portfolio_id': 26469960}, {'photo_id': 1381009354, 'portfolio_id': 26469960}, {'photo_id': 1381009353, 'portfolio_id': 26469960}, {'photo_id': 1381009309, 'portfolio_id': 26469960}, {'photo_id': 1381009308, 'portfolio_id': 26469960}, {'photo_id': 1381009307, 'portfolio_id': 26469960}, {'photo_id': 1381009306, 'portfolio_id': 26469960}, {'photo_id': 1381009305, 'portfolio_id': 26469960}, {'photo_id': 1381009264, 'portfolio_id': 26469960}, {'photo_id': 1381009263, 'portfolio_id': 26469960}, {'photo_id': 1381009262, 'portfolio_id': 26469960}, {'photo_id': 1381009261, 'portfolio_id': 26469960}, {'photo_id': 1381009202, 'portfolio_id': 26469960}, {'photo_id': 1381009201, 'portfolio_id': 26469960}, {'photo_id': 1381009150, 'portfolio_id': 26469960}, {'photo_id': 1381009146, 'portfolio_id': 26469960}, {'photo_id': 1381009145, 'portfolio_id': 26469960}, {'photo_id': 1381009144, 'portfolio_id': 26469960}, {'photo_id': 1381009143, 'portfolio_id': 26469960}, {'photo_id': 1381009142, 'portfolio_id': 26469960}, {'photo_id': 1381009141, 'portfolio_id': 26469960}, {'photo_id': 1381009107, 'portfolio_id': 26469960}, {'photo_id': 1381009106, 'portfolio_id': 26469960}] map_portfolio_id_photo_id: {26469960: [1381009788, 1381009787, 1381009786, 1381009740, 1381009739, 1381009738, 1381009701, 1381009700, 1381009699, 1381009698, 1381009697, 1381009630, 1381009622, 1381009621, 1381009620, 1381009619, 1381009618, 1381009616, 1381009579, 1381009578, 1381009577, 1381009534, 1381009533, 1381009532, 1381009531, 1381009491, 1381009490, 1381009489, 1381009488, 1381009450, 1381009449, 1381009448, 1381009405, 1381009401, 1381009398, 1381009397, 1381009356, 1381009355, 1381009354, 1381009353, 1381009309, 1381009308, 1381009307, 1381009306, 1381009305, 1381009264, 1381009263, 1381009262, 1381009261, 1381009202, 1381009201, 1381009150, 1381009146, 1381009145, 1381009144, 1381009143, 1381009142, 1381009141, 1381009107, 1381009106]} ##### 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.01629352569580078 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Sep 3 03:30:56 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 (26469960) 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 : 26469960 get user id for portfolio 26469960 get sub ptf for main ptf 26469960, type 3726 and hashtags ['cartonnette', 'mal_croppe', 'flou', 'papier', 'metal', 'plastique', 'environnement', 'Carton_gris', 'kraft', 'autre_refus', 'Carton_brun', 'Teint_Dans_La_Masse'] 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`=26469960 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','flou','papier','metal','plastique','environnement','Carton_gris','kraft','autre_refus','Carton_brun','Teint_Dans_La_Masse')) 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`=26469960 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','flou','papier','metal','plastique','environnement','Carton_gris','kraft','autre_refus','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 26469960, 'sub_port_id': 26469971, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817364, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 28)}, 'Carton_gris': {'main_port_id': 26469960, 'sub_port_id': 26469972, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817365, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 28)}, 'Carton_brun': {'main_port_id': 26469960, 'sub_port_id': 26469973, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817366, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26469960, 'sub_port_id': 26469974, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817367, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 28)}, 'plastique': {'main_port_id': 26469960, 'sub_port_id': 26469975, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817368, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 28)}, 'flou': {'main_port_id': 26469960, 'sub_port_id': 26469976, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817369, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 28)}, 'cartonnette': {'main_port_id': 26469960, 'sub_port_id': 26469977, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817370, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 28)}, 'mal_croppe': {'main_port_id': 26469960, 'sub_port_id': 26469978, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817371, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 28)}, 'kraft': {'main_port_id': 26469960, 'sub_port_id': 26469979, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817372, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 28)}, 'metal': {'main_port_id': 26469960, 'sub_port_id': 26469980, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817373, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 28)}, 'papier': {'main_port_id': 26469960, 'sub_port_id': 26469981, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817374, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 28)}, 'environnement': {'main_port_id': 26469960, 'sub_port_id': 26469982, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817375, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26469971 , 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=26469960 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 (26469971) result : ((1381009481,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26469960) result : ((1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,)) 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 (1381009700) 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 26469972 , 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=26469960 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 (26469972) result : ((1381009286,), (1381009438,), (1381009439,), (1381009551,), (1381009564,), (1381009666,), (1381009689,), (1381009690,), (1381009759,), (1381009760,), (1381009769,), (1381009770,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26469960) result : ((1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,)) 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 (1381009700) 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 26469973 , 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=26469960 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 (26469973) result : ((1381009440,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26469960) result : ((1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,)) 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 (1381009700) 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 26469974 , 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=26469960 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 (26469974) result : ((1381009280,), (1381009281,), (1381009282,), (1381009437,), (1381009478,), (1381009479,), (1381009480,), (1381009549,), (1381009550,), (1381009560,), (1381009561,), (1381009562,), (1381009563,), (1381009608,), (1381009609,), (1381009662,), (1381009663,), (1381009664,), (1381009665,), (1381009757,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26469960) result : ((1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,)) 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 (1381009700) 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 26469975 , 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=26469960 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 (26469975) result : ((1381009293,), (1381009441,), (1381009567,), (1381009766,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26469960) result : ((1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,)) 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 (1381009700) 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 26469976 , 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=26469960 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 (26469976) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26469960) result : ((1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,)) 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 (1381009700) 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 26469977 , 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=26469960 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 (26469977) result : ((1381009291,), (1381009565,), (1381009566,), (1381009762,), (1381009763,), (1381009764,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26469960) result : ((1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,)) 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 (1381009700) 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 26469978 , 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=26469960 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 (26469978) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26469960) result : ((1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,)) 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 (1381009700) 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 26469979 , 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=26469960 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 (26469979) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26469960) result : ((1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,)) 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 (1381009700) 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 26469980 , 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=26469960 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 (26469980) result : ((1381009294,), (1381009569,), (1381009767,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26469960) result : ((1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,)) 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 (1381009700) 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 26469981 , 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=26469960 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 (26469981) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26469960) result : ((1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,)) 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 (1381009700) 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 26469982 , 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=26469960 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 (26469982) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26469960) result : ((1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,)) 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 (1381009700) 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`=26469960 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','flou','papier','metal','plastique','environnement','Carton_gris','kraft','autre_refus','Carton_brun','Teint_Dans_La_Masse')) 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`=26469960 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','flou','papier','metal','plastique','environnement','Carton_gris','kraft','autre_refus','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 26469960, 'sub_port_id': 26469984, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817376, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 34)}, 'Carton_gris': {'main_port_id': 26469960, 'sub_port_id': 26469985, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817377, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 34)}, 'Carton_brun': {'main_port_id': 26469960, 'sub_port_id': 26469986, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817378, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 26469960, 'sub_port_id': 26469987, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817379, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 34)}, 'plastique': {'main_port_id': 26469960, 'sub_port_id': 26469988, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817380, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 34)}, 'flou': {'main_port_id': 26469960, 'sub_port_id': 26469989, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817381, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 34)}, 'cartonnette': {'main_port_id': 26469960, 'sub_port_id': 26469990, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817382, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 34)}, 'mal_croppe': {'main_port_id': 26469960, 'sub_port_id': 26469991, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817383, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 34)}, 'kraft': {'main_port_id': 26469960, 'sub_port_id': 26469992, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817384, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 34)}, 'metal': {'main_port_id': 26469960, 'sub_port_id': 26469993, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817385, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 34)}, 'papier': {'main_port_id': 26469960, 'sub_port_id': 26469994, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817386, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 17, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 34)}, 'environnement': {'main_port_id': 26469960, 'sub_port_id': 26469995, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17817387, 'last_updated_at': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 3, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 3, 17, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26469984,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26469971 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26469985,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26469972 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26469986,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26469973 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26469987,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26469974 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26469988,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26469975 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26469989,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26469976 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26469990,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26469977 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26469991,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26469978 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26469992,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26469979 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26469993,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26469980 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26469994,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26469981 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26469995,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26469982 lien utilise dans velours : https://marlene.fotonower.com/velours/26469984,26469985,26469986,26469987,26469988,26469989,26469990,26469991,26469992,26469993,26469994,26469995?tags=autre_refus,Carton_gris,Carton_brun,Teint_Dans_La_Masse,plastique,flou,cartonnette,mal_croppe,kraft,metal,papier,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26469960]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1381009788, 1381009787, 1381009786, 1381009740, 1381009739, 1381009738] map_info['map_portfolio_photo'] : {26469960: [1381009788, 1381009787, 1381009786, 1381009740, 1381009739, 1381009738, 1381009701, 1381009700, 1381009699, 1381009698, 1381009697, 1381009630, 1381009622, 1381009621, 1381009620, 1381009619, 1381009618, 1381009616, 1381009579, 1381009578, 1381009577, 1381009534, 1381009533, 1381009532, 1381009531, 1381009491, 1381009490, 1381009489, 1381009488, 1381009450, 1381009449, 1381009448, 1381009405, 1381009401, 1381009398, 1381009397, 1381009356, 1381009355, 1381009354, 1381009353, 1381009309, 1381009308, 1381009307, 1381009306, 1381009305, 1381009264, 1381009263, 1381009262, 1381009261, 1381009202, 1381009201, 1381009150, 1381009146, 1381009145, 1381009144, 1381009143, 1381009142, 1381009141, 1381009107, 1381009106]} final : False mtd_id 4302 list_pids : [1381009788, 1381009787, 1381009786, 1381009740, 1381009739, 1381009738] Looping around the photos to save general results len do output : 1 /26469960. 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, '3656012') ('4302', '26469960', '1381009788', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009787', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009786', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009740', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009739', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009738', None, None, None, None, None, '3656012') 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', None, '26469960', "{'autre_refus': 26469971, 'Carton_gris': 26469972, 'Carton_brun': 26469973, 'Teint_Dans_La_Masse': 26469974, 'plastique': 26469975, 'flou': 26469976, 'cartonnette': 26469977, 'mal_croppe': 26469978, 'kraft': 26469979, 'metal': 26469980, 'papier': 26469981, 'environnement': 26469982}", None, None, None, None, '3656012'), ('4302', '26469960', '1381009788', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009787', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009786', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009740', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009739', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009738', None, None, None, None, None, '3656012')] time used for this insertion : 0.01678323745727539 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4682788848876953 time spend to save output : 0.01703953742980957 total time spend for step 1 : 0.4853184223175049 step2:final Wed Sep 3 03:30: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 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 (26469960) 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 26469960 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1381009107,1381009150,1381009106,1381009146,1381009145,1381009144,1381009143,1381009142,1381009141,1381009202,1381009201,1381009264,1381009263,1381009262,1381009261,1381009309,1381009308,1381009307,1381009306,1381009305,1381009356,1381009355,1381009354,1381009353,1381009405,1381009401,1381009398,1381009397,1381009450,1381009449,1381009448,1381009491,1381009490,1381009489,1381009488,1381009534,1381009533,1381009532,1381009531,1381009579,1381009630,1381009578,1381009622,1381009577,1381009621,1381009620,1381009619,1381009618,1381009616,1381009701,1381009700,1381009699,1381009698,1381009697,1381009740,1381009739,1381009738,1381009788,1381009787,1381009786); 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([26469960]) Inside saveOutput : final : False verbose : True original output for save of step final : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ('0.05915489367667772',), 1381009740: ('0.05915489367667772',), 1381009739: ('0.05915489367667772',), 1381009738: ('0.05915489367667772',)} new output for save of step final : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ('0.05915489367667772',), 1381009740: ('0.05915489367667772',), 1381009739: ('0.05915489367667772',), 1381009738: ('0.05915489367667772',)} [1381009788, 1381009787, 1381009786, 1381009740, 1381009739, 1381009738] map_info['map_portfolio_photo'] : {26469960: [1381009788, 1381009787, 1381009786, 1381009740, 1381009739, 1381009738, 1381009701, 1381009700, 1381009699, 1381009698, 1381009697, 1381009630, 1381009622, 1381009621, 1381009620, 1381009619, 1381009618, 1381009616, 1381009579, 1381009578, 1381009577, 1381009534, 1381009533, 1381009532, 1381009531, 1381009491, 1381009490, 1381009489, 1381009488, 1381009450, 1381009449, 1381009448, 1381009405, 1381009401, 1381009398, 1381009397, 1381009356, 1381009355, 1381009354, 1381009353, 1381009309, 1381009308, 1381009307, 1381009306, 1381009305, 1381009264, 1381009263, 1381009262, 1381009261, 1381009202, 1381009201, 1381009150, 1381009146, 1381009145, 1381009144, 1381009143, 1381009142, 1381009141, 1381009107, 1381009106]} final : False mtd_id 4302 list_pids : [1381009788, 1381009787, 1381009786, 1381009740, 1381009739, 1381009738] Looping around the photos to save general results len do output : 6 /1381009788.Didn't retrieve data . /1381009787.Didn't retrieve data . /1381009786.Didn't retrieve data . /1381009740.Didn't retrieve data . /1381009739.Didn't retrieve data . /1381009738.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, '3656012') ('4302', '26469960', '1381009788', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009787', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009786', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009740', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009739', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009738', None, None, None, None, None, '3656012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '26469960', '1381009788', '0.05915489367667772', None, None, None, None, '3656012'), ('4302', '26469960', '1381009787', '0.05915489367667772', None, None, None, None, '3656012'), ('4302', '26469960', '1381009786', '0.05915489367667772', None, None, None, None, '3656012'), ('4302', '26469960', '1381009740', '0.05915489367667772', None, None, None, None, '3656012'), ('4302', '26469960', '1381009739', '0.05915489367667772', None, None, None, None, '3656012'), ('4302', '26469960', '1381009738', '0.05915489367667772', None, None, None, None, '3656012')] time used for this insertion : 0.0136566162109375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06579256057739258 time spend to save output : 0.013996601104736328 total time spend for step 2 : 0.0797891616821289 step3:velours_tree Wed Sep 3 03:30: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 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 : {26469960: [{'autre_refus': 26469971, 'Carton_gris': 26469972, 'Carton_brun': 26469973, 'Teint_Dans_La_Masse': 26469974, 'plastique': 26469975, 'flou': 26469976, 'cartonnette': 26469977, 'mal_croppe': 26469978, 'kraft': 26469979, 'metal': 26469980, 'papier': 26469981, 'environnement': 26469982}]} input_args_next_step : {26469960: ()} output_args : {26469960: [{'autre_refus': 26469971, 'Carton_gris': 26469972, 'Carton_brun': 26469973, 'Teint_Dans_La_Masse': 26469974, 'plastique': 26469975, 'flou': 26469976, 'cartonnette': 26469977, 'mal_croppe': 26469978, 'kraft': 26469979, 'metal': 26469980, 'papier': 26469981, 'environnement': 26469982}]} args : 26469960 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 : ({'autre_refus': 26469971, 'Carton_gris': 26469972, 'Carton_brun': 26469973, 'Teint_Dans_La_Masse': 26469974, 'plastique': 26469975, 'flou': 26469976, 'cartonnette': 26469977, 'mal_croppe': 26469978, 'kraft': 26469979, 'metal': 26469980, 'papier': 26469981, 'environnement': 26469982},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26469960) 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([26469960]) 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.28437018394470215 time spend to save output : 4.935264587402344e-05 total time spend for step 3 : 0.28441953659057617 step4:send_mail_cod Wed Sep 3 03:30: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 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 : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ('0.05915489367667772',), 1381009740: ('0.05915489367667772',), 1381009739: ('0.05915489367667772',), 1381009738: ('0.05915489367667772',)} input_args_next_step : {1381009788: ()} output_args : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ('0.05915489367667772',), 1381009740: ('0.05915489367667772',), 1381009739: ('0.05915489367667772',), 1381009738: ('0.05915489367667772',)} args : 1381009788 depend.output_id : 0 input_args_next_step : {1381009788: ('0.05915489367667772',), 1381009787: ()} output_args : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ('0.05915489367667772',), 1381009740: ('0.05915489367667772',), 1381009739: ('0.05915489367667772',), 1381009738: ('0.05915489367667772',)} args : 1381009787 depend.output_id : 0 input_args_next_step : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ()} output_args : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ('0.05915489367667772',), 1381009740: ('0.05915489367667772',), 1381009739: ('0.05915489367667772',), 1381009738: ('0.05915489367667772',)} args : 1381009786 depend.output_id : 0 input_args_next_step : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ('0.05915489367667772',), 1381009740: ()} output_args : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ('0.05915489367667772',), 1381009740: ('0.05915489367667772',), 1381009739: ('0.05915489367667772',), 1381009738: ('0.05915489367667772',)} args : 1381009740 depend.output_id : 0 input_args_next_step : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ('0.05915489367667772',), 1381009740: ('0.05915489367667772',), 1381009739: ()} output_args : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ('0.05915489367667772',), 1381009740: ('0.05915489367667772',), 1381009739: ('0.05915489367667772',), 1381009738: ('0.05915489367667772',)} args : 1381009739 depend.output_id : 0 input_args_next_step : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ('0.05915489367667772',), 1381009740: ('0.05915489367667772',), 1381009739: ('0.05915489367667772',), 1381009738: ()} output_args : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ('0.05915489367667772',), 1381009740: ('0.05915489367667772',), 1381009739: ('0.05915489367667772',), 1381009738: ('0.05915489367667772',)} args : 1381009738 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 : {26469960: [{'autre_refus': 26469971, 'Carton_gris': 26469972, 'Carton_brun': 26469973, 'Teint_Dans_La_Masse': 26469974, 'plastique': 26469975, 'flou': 26469976, 'cartonnette': 26469977, 'mal_croppe': 26469978, 'kraft': 26469979, 'metal': 26469980, 'papier': 26469981, 'environnement': 26469982}]} input_args_next_step : {1381009788: ('0.05915489367667772',), 1381009787: ('0.05915489367667772',), 1381009786: ('0.05915489367667772',), 1381009740: ('0.05915489367667772',), 1381009739: ('0.05915489367667772',), 1381009738: ('0.05915489367667772',), 26469960: ()} output_args : {26469960: [{'autre_refus': 26469971, 'Carton_gris': 26469972, 'Carton_brun': 26469973, 'Teint_Dans_La_Masse': 26469974, 'plastique': 26469975, 'flou': 26469976, 'cartonnette': 26469977, 'mal_croppe': 26469978, 'kraft': 26469979, 'metal': 26469980, 'papier': 26469981, 'environnement': 26469982}]} args : 26469960 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 :7, first value : ('0.05915489367667772',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26469960) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1381009788,1381009787,1381009786,1381009740,1381009739,1381009738) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1381009738 begin to download photo : 1381009740 begin to download photo : 1381009787 download finish for photo 1381009787 begin to download photo : 1381009788 download finish for photo 1381009738 begin to download photo : 1381009739 download finish for photo 1381009740 begin to download photo : 1381009786 download finish for photo 1381009739 download finish for photo 1381009788 download finish for photo 1381009786 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P26469960_03-09-2025_03_30_57.pdf 26469971 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26469971 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381009481: '1756862606_1826224_1381009309_ed83a20099eeed64f0a6e0507731d224_76796386_rle_crop_3941600582_0.png'} change filename to text .imagette264699711756863057/ imagette264699711756863057/1756862606_1826224_1381009309_ed83a20099eeed64f0a6e0507731d224_76796386_rle_crop_3941600582_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/9c94a664cbed4d5ed46200b0ff1de93d_44792611.png imagette264699711756863057 26469975 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26469975 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381009293: '1756862347_1815713_1381009107_bcca438b7cce8c63caed7f9a8ea221a6_59352367_rle_crop_3941599813_0.png', 1381009441: '1756862545_1824000_1381009305_ec7d37138fa6f4ba4e968be3b63045ef_13700473_rle_crop_3941600390_0.png', 1381009567: '1756862725_1832132_1381009150_bcca438b7cce8c63caed7f9a8ea221a6_85657912_rle_crop_3941600865_0.png', 1381009766: '1756862947_1844741_1381009405_d78783e07476fb12c04166c6c74aeaa8_97877270_rle_crop_3941601516_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/4f60704d453238e9c26b9419df4db9d1_47245251.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/377709be750337ac6fac07da9100c710_99648164.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/4f60704d453238e9c26b9419df4db9d1_39848203.png change filename to text .imagette264699751756863057/ imagette264699751756863057/1756862545_1824000_1381009305_ec7d37138fa6f4ba4e968be3b63045ef_13700473_rle_crop_3941600390_0.png.png imagette264699751756863057/1756862347_1815713_1381009107_bcca438b7cce8c63caed7f9a8ea221a6_59352367_rle_crop_3941599813_0.png.png imagette264699751756863057/1756862947_1844741_1381009405_d78783e07476fb12c04166c6c74aeaa8_97877270_rle_crop_3941601516_0.png.png imagette264699751756863057/1756862725_1832132_1381009150_bcca438b7cce8c63caed7f9a8ea221a6_85657912_rle_crop_3941600865_0.png.png imagette264699761756863057/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/e92fce53aab8fe113c9fa7f1d3b3aa5b_98551485.png imagette264699751756863057 26469976 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26469976 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264699761756863057 26469977 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26469977 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381009291: '1756862347_1815713_1381009107_bcca438b7cce8c63caed7f9a8ea221a6_59352367_rle_crop_3941599812_0.png', 1381009565: '1756862725_1832132_1381009150_bcca438b7cce8c63caed7f9a8ea221a6_85657912_rle_crop_3941600864_0.png', 1381009566: '1756862725_1832132_1381009145_b7b30d2230f91baab781e7b0221953f0_73953057_rle_crop_3941600893_0.png', 1381009762: '1756862947_1844741_1381009355_c530b19d1c08a01815fa5fa9b4b77278_39094772_rle_crop_3941601523_0.png', 1381009763: '1756862947_1844741_1381009355_c530b19d1c08a01815fa5fa9b4b77278_39094772_rle_crop_3941601531_0.png', 1381009764: '1756862947_1844741_1381009353_b74f526e88abd16380784ba5e0970913_30756357_rle_crop_3941601560_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/76355d1ea10be156f8b0876c5f3e0c8b_40871877.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/76355d1ea10be156f8b0876c5f3e0c8b_15773237.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/edaa71872f672b6cbee289e54ca05f41_59291148.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/fa4747ca7090e971a094fb8d1b071463_7066471.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/d1bc6e24cafff1e35698f33f6f61fa4b_10895595.png change filename to text .imagette264699771756863057/ imagette264699771756863057/1756862347_1815713_1381009107_bcca438b7cce8c63caed7f9a8ea221a6_59352367_rle_crop_3941599812_0.png.png imagette264699771756863057/1756862947_1844741_1381009355_c530b19d1c08a01815fa5fa9b4b77278_39094772_rle_crop_3941601523_0.png.png imagette264699771756863057/1756862725_1832132_1381009145_b7b30d2230f91baab781e7b0221953f0_73953057_rle_crop_3941600893_0.png.png imagette264699771756863057/1756862947_1844741_1381009355_c530b19d1c08a01815fa5fa9b4b77278_39094772_rle_crop_3941601531_0.png.png imagette264699771756863057/1756862947_1844741_1381009353_b74f526e88abd16380784ba5e0970913_30756357_rle_crop_3941601560_0.png.png imagette264699771756863057/1756862725_1832132_1381009150_bcca438b7cce8c63caed7f9a8ea221a6_85657912_rle_crop_3941600864_0.png.png imagette264699781756863058/ imagette264699791756863058/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/8d376f9bb6c2d9d45a1b74ad93f5883a_60152729.png imagette264699771756863057 26469978 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26469978 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264699781756863058 26469979 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26469979 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264699791756863058 26469980 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26469980 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381009294: '1756862347_1815713_1381009106_bc37a62fdce16a71baf3b36742f40ef6_75135246_rle_crop_3941599825_0.png', 1381009569: '1756862725_1832132_1381009146_bc37a62fdce16a71baf3b36742f40ef6_17640093_rle_crop_3941600877_0.png', 1381009767: '1756862947_1844741_1381009354_7c4edc0457bcbfadad071d789e80d6ae_48104770_rle_crop_3941601547_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/4149264429ec323bc0544a339fe9e971_76196214.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/4149264429ec323bc0544a339fe9e971_20444507.png change filename to text .imagette264699801756863058/ imagette264699801756863058/1756862347_1815713_1381009106_bc37a62fdce16a71baf3b36742f40ef6_75135246_rle_crop_3941599825_0.png.png imagette264699801756863058/1756862725_1832132_1381009146_bc37a62fdce16a71baf3b36742f40ef6_17640093_rle_crop_3941600877_0.png.png imagette264699801756863058/1756862947_1844741_1381009354_7c4edc0457bcbfadad071d789e80d6ae_48104770_rle_crop_3941601547_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/144747a61337588c9fd7c8cefaa5f1e0_87645867.png imagette264699801756863058 26469972 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26469972 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381009286: '1756862347_1815713_1381009106_bc37a62fdce16a71baf3b36742f40ef6_75135246_rle_crop_3941599822_0.png', 1381009438: '1756862545_1824000_1381009307_efab042b909592c1b650403d67d35141_57406028_rle_crop_3941600366_0.png', 1381009439: '1756862545_1824000_1381009305_ec7d37138fa6f4ba4e968be3b63045ef_13700473_rle_crop_3941600401_0.png', 1381009551: '1756862706_1831742_1381009143_c886a3d814d658a91a7cfb5974498f8a_26917341_rle_crop_3941600739_0.png', 1381009564: '1756862725_1832132_1381009146_bc37a62fdce16a71baf3b36742f40ef6_17640093_rle_crop_3941600874_0.png', 1381009666: '1756862827_1837435_1381009398_b50d965b3b452fb6f638b67c35786b77_42398931_rle_crop_3941601337_0.png', 1381009689: '1756862846_1839266_1381009449_ca9ada0cdcdd1762480cad4200b0c765_84373105_rle_crop_3941601393_0.png', 1381009690: '1756862846_1839266_1381009449_ca9ada0cdcdd1762480cad4200b0c765_84373105_rle_crop_3941601395_0.png', 1381009759: '1756862947_1844741_1381009354_7c4edc0457bcbfadad071d789e80d6ae_48104770_rle_crop_3941601545_0.png', 1381009760: '1756862947_1844741_1381009354_7c4edc0457bcbfadad071d789e80d6ae_48104770_rle_crop_3941601542_0.png', 1381009769: '1756862965_1845096_1381009356_fe84e198e28117b037676916f36abf47_31325577_rle_crop_3941601598_0.png', 1381009770: '1756862965_1845096_1381009356_fe84e198e28117b037676916f36abf47_31325577_rle_crop_3941601597_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/53bbc4ab527191d3486e2a2dad59231f_62156190.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/fc6ee6d6053728445b57ae124b216ef9_17922398.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/d7c553034919b91f3089b679051a166c_61871828.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/37ced0c1bd72d0b58e488b9ef2c2f913_9470425.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/53bbc4ab527191d3486e2a2dad59231f_49862298.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/07bd94b85fdfb42d27cc0f601d3040ed_75532721.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/69554a22c16b456d85ac02b606317275_39194387.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/ecd716c3c56d62c7c705387d5d8ec02b_75465041.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/77fd5468d70e55c6b7b90d4e706cc70c_99529700.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/e2968e6c479ac8d8536ef9fee170d751_88008530.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/95be2c77c79e9071eab209bc6bed5796_89276872.png change filename to text .imagette264699721756863058/ imagette264699721756863058/1756862827_1837435_1381009398_b50d965b3b452fb6f638b67c35786b77_42398931_rle_crop_3941601337_0.png.png imagette264699721756863058/1756862965_1845096_1381009356_fe84e198e28117b037676916f36abf47_31325577_rle_crop_3941601597_0.png.png imagette264699721756863058/1756862846_1839266_1381009449_ca9ada0cdcdd1762480cad4200b0c765_84373105_rle_crop_3941601395_0.png.png imagette264699721756863058/1756862947_1844741_1381009354_7c4edc0457bcbfadad071d789e80d6ae_48104770_rle_crop_3941601542_0.png.png imagette264699721756863058/1756862725_1832132_1381009146_bc37a62fdce16a71baf3b36742f40ef6_17640093_rle_crop_3941600874_0.png.png imagette264699721756863058/1756862706_1831742_1381009143_c886a3d814d658a91a7cfb5974498f8a_26917341_rle_crop_3941600739_0.png.png imagette264699721756863058/1756862545_1824000_1381009307_efab042b909592c1b650403d67d35141_57406028_rle_crop_3941600366_0.png.png imagette264699721756863058/1756862846_1839266_1381009449_ca9ada0cdcdd1762480cad4200b0c765_84373105_rle_crop_3941601393_0.png.png imagette264699721756863058/1756862545_1824000_1381009305_ec7d37138fa6f4ba4e968be3b63045ef_13700473_rle_crop_3941600401_0.png.png imagette264699721756863058/1756862347_1815713_1381009106_bc37a62fdce16a71baf3b36742f40ef6_75135246_rle_crop_3941599822_0.png.png imagette264699721756863058/1756862965_1845096_1381009356_fe84e198e28117b037676916f36abf47_31325577_rle_crop_3941601598_0.png.png imagette264699721756863058/1756862947_1844741_1381009354_7c4edc0457bcbfadad071d789e80d6ae_48104770_rle_crop_3941601545_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/627c073942ceecc1abe7a27571d6715f_22621661.png imagette264699721756863058 26469973 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26469973 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381009440: '1756862545_1824000_1381009305_ec7d37138fa6f4ba4e968be3b63045ef_13700473_rle_crop_3941600399_0.png'} change filename to text .imagette264699731756863059/ imagette264699731756863059/1756862545_1824000_1381009305_ec7d37138fa6f4ba4e968be3b63045ef_13700473_rle_crop_3941600399_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/356a4f4cfdd4b7ad6dbcda1385abb923_88966872.png imagette264699731756863059 26469974 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26469974 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381009561: '1756862725_1832132_1381009146_bc37a62fdce16a71baf3b36742f40ef6_17640093_rle_crop_3941600882_0.png', 1381009757: '1756862947_1844741_1381009405_d78783e07476fb12c04166c6c74aeaa8_97877270_rle_crop_3941601514_0.png', 1381009665: '1756862827_1837435_1381009397_a3fc9fda785699a5815af037515cb87f_68903122_rle_crop_3941601353_0.png', 1381009664: '1756862827_1837435_1381009398_b50d965b3b452fb6f638b67c35786b77_42398931_rle_crop_3941601341_0.png', 1381009663: '1756862827_1837435_1381009401_0350c8f7861c86df00a5d09e30c62f45_10669247_rle_crop_3941601327_0.png', 1381009662: '1756862827_1837435_1381009450_9ba220c578dce80cfa5e7c91a7b972bd_97863542_rle_crop_3941601313_0.png', 1381009609: '1756862786_1836240_1381009488_5c03444f238ba62759bd7c946695b45f_38284333_rle_crop_3941601133_0.png', 1381009608: '1756862786_1836240_1381009489_1f95ffee7b0b7696db4802fa73c6afb8_6810003_rle_crop_3941601121_0.png', 1381009563: '1756862725_1832132_1381009145_b7b30d2230f91baab781e7b0221953f0_73953057_rle_crop_3941600896_0.png', 1381009562: '1756862725_1832132_1381009146_bc37a62fdce16a71baf3b36742f40ef6_17640093_rle_crop_3941600879_0.png', 1381009280: '1756862347_1815713_1381009107_bcca438b7cce8c63caed7f9a8ea221a6_59352367_rle_crop_3941599816_0.png', 1381009560: '1756862725_1832132_1381009150_bcca438b7cce8c63caed7f9a8ea221a6_85657912_rle_crop_3941600868_0.png', 1381009550: '1756862706_1831742_1381009143_c886a3d814d658a91a7cfb5974498f8a_26917341_rle_crop_3941600736_0.png', 1381009549: '1756862706_1831742_1381009144_1ef6dac06a99b10f6bfb5b6d7741308d_80685004_rle_crop_3941600729_0.png', 1381009480: '1756862606_1826224_1381009261_552867266b4db4395526d0bb3f966ae7_28507202_rle_crop_3941600623_0.png', 1381009479: '1756862606_1826224_1381009263_8c35e100d6bd4f9633af13ad36534428_99435058_rle_crop_3941600592_0.png', 1381009478: '1756862606_1826224_1381009309_ed83a20099eeed64f0a6e0507731d224_76796386_rle_crop_3941600580_0.png', 1381009437: '1756862545_1824000_1381009308_9d836ff9b39e150bbb330f3bd386220b_61049531_rle_crop_3941600358_0.png', 1381009282: '1756862347_1815713_1381009106_bc37a62fdce16a71baf3b36742f40ef6_75135246_rle_crop_3941599827_0.png', 1381009281: '1756862347_1815713_1381009106_bc37a62fdce16a71baf3b36742f40ef6_75135246_rle_crop_3941599830_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/7ea8356ba6769c2f2d7cbb24d84d76c9_91106087.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/e30a677ba58607a4108273bff80e20fa_38461900.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/7bd59b01a53646ec00334fc631672375_89464838.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/a4aded7a83116c07231a196c84449df3_22624994.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/9271c9468963ba2a13b1a000ad5b8890_81306785.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/68839ee23b5a005be00fa99e05893624_16858471.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/7ed8aa3e65b8f3bb419ef158f83e6b50_39618882.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/65b71b0c1e4260cad49a0c597ec2d76b_35903680.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/5957e934de78a8f20a9d985289773cf5_21047685.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/7e4ace7dbbec3d7885bf09820346ace7_10095568.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/4622b372f7a334b9ae805c08f341c469_45815000.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/4622b372f7a334b9ae805c08f341c469_74326198.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/12f0258c667352e1544683f94dcf2aff_4977748.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/048ee3325d80ac4e38cc5125dd8376e2_24775768.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/a7a37e331c4f140d469f95c98a67cf47_89202164.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/f128c08222a0f29cd31af5de0938b761_99972318.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/b0db638f5ca0d13e2e75770ec499d6dd_57826256.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/460cc40e67db187e73aa94cc49c9817b_42511653.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/7e4ace7dbbec3d7885bf09820346ace7_42512735.png change filename to text .imagette264699741756863059/ imagette264699741756863059/1756862786_1836240_1381009488_5c03444f238ba62759bd7c946695b45f_38284333_rle_crop_3941601133_0.png.png imagette264699741756863059/1756862725_1832132_1381009145_b7b30d2230f91baab781e7b0221953f0_73953057_rle_crop_3941600896_0.png.png imagette264699741756863059/1756862725_1832132_1381009146_bc37a62fdce16a71baf3b36742f40ef6_17640093_rle_crop_3941600879_0.png.png imagette264699741756863059/1756862706_1831742_1381009143_c886a3d814d658a91a7cfb5974498f8a_26917341_rle_crop_3941600736_0.png.png imagette264699741756863059/1756862786_1836240_1381009489_1f95ffee7b0b7696db4802fa73c6afb8_6810003_rle_crop_3941601121_0.png.png imagette264699741756863059/1756862347_1815713_1381009107_bcca438b7cce8c63caed7f9a8ea221a6_59352367_rle_crop_3941599816_0.png.png imagette264699741756863059/1756862347_1815713_1381009106_bc37a62fdce16a71baf3b36742f40ef6_75135246_rle_crop_3941599827_0.png.png imagette264699741756863059/1756862827_1837435_1381009397_a3fc9fda785699a5815af037515cb87f_68903122_rle_crop_3941601353_0.png.png imagette264699741756863059/1756862947_1844741_1381009405_d78783e07476fb12c04166c6c74aeaa8_97877270_rle_crop_3941601514_0.png.png imagette264699741756863059/1756862606_1826224_1381009263_8c35e100d6bd4f9633af13ad36534428_99435058_rle_crop_3941600592_0.png.png imagette264699741756863059/1756862545_1824000_1381009308_9d836ff9b39e150bbb330f3bd386220b_61049531_rle_crop_3941600358_0.png.png imagette264699741756863059/1756862725_1832132_1381009150_bcca438b7cce8c63caed7f9a8ea221a6_85657912_rle_crop_3941600868_0.png.png imagette264699741756863059/1756862606_1826224_1381009309_ed83a20099eeed64f0a6e0507731d224_76796386_rle_crop_3941600580_0.png.png imagette264699741756863059/1756862706_1831742_1381009144_1ef6dac06a99b10f6bfb5b6d7741308d_80685004_rle_crop_3941600729_0.png.png imagette264699741756863059/1756862347_1815713_1381009106_bc37a62fdce16a71baf3b36742f40ef6_75135246_rle_crop_3941599830_0.png.png imagette264699741756863059/1756862827_1837435_1381009450_9ba220c578dce80cfa5e7c91a7b972bd_97863542_rle_crop_3941601313_0.png.png imagette264699741756863059/1756862725_1832132_1381009146_bc37a62fdce16a71baf3b36742f40ef6_17640093_rle_crop_3941600882_0.png.png imagette264699741756863059/1756862827_1837435_1381009398_b50d965b3b452fb6f638b67c35786b77_42398931_rle_crop_3941601341_0.png.png imagette264699741756863059/1756862606_1826224_1381009261_552867266b4db4395526d0bb3f966ae7_28507202_rle_crop_3941600623_0.png.png imagette264699741756863059/1756862827_1837435_1381009401_0350c8f7861c86df00a5d09e30c62f45_10669247_rle_crop_3941601327_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/7ea8356ba6769c2f2d7cbb24d84d76c9_28027252.png imagette264699741756863059 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26469960 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26469984,26469985,26469986,26469987,26469988,26469989,26469990,26469991,26469992,26469993,26469994,26469995?tags=autre_refus,Carton_gris,Carton_brun,Teint_Dans_La_Masse,plastique,flou,cartonnette,mal_croppe,kraft,metal,papier,environnement your option no_mail is active, we will not send the real mail to your client args[1381009788] : ('0.05915489367667772',) no score found for photo 1381009788 We are sending mail with results at report@fotonower.com args[1381009787] : ('0.05915489367667772',) no score found for photo 1381009787 We are sending mail with results at report@fotonower.com args[1381009786] : ('0.05915489367667772',) no score found for photo 1381009786 We are sending mail with results at report@fotonower.com args[1381009740] : ('0.05915489367667772',) no score found for photo 1381009740 We are sending mail with results at report@fotonower.com args[1381009739] : ('0.05915489367667772',) no score found for photo 1381009739 We are sending mail with results at report@fotonower.com args[1381009738] : ('0.05915489367667772',) no score found for photo 1381009738 We are sending mail with results at report@fotonower.com refus_total : 0.05915489367667772 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26469960 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_P26469960_03-09-2025_03_30_57.pdf results_Auto_P26469960_03-09-2025_03_30_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26469960_03-09-2025_03_30_57.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','26469960','results_Auto_P26469960_03-09-2025_03_30_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26469960_03-09-2025_03_30_57.pdf','pdf','','0.21','0.05915489367667772') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26469960]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1381009788, 1381009787, 1381009786, 1381009740, 1381009739, 1381009738] map_info['map_portfolio_photo'] : {26469960: [1381009788, 1381009787, 1381009786, 1381009740, 1381009739, 1381009738, 1381009701, 1381009700, 1381009699, 1381009698, 1381009697, 1381009630, 1381009622, 1381009621, 1381009620, 1381009619, 1381009618, 1381009616, 1381009579, 1381009578, 1381009577, 1381009534, 1381009533, 1381009532, 1381009531, 1381009491, 1381009490, 1381009489, 1381009488, 1381009450, 1381009449, 1381009448, 1381009405, 1381009401, 1381009398, 1381009397, 1381009356, 1381009355, 1381009354, 1381009353, 1381009309, 1381009308, 1381009307, 1381009306, 1381009305, 1381009264, 1381009263, 1381009262, 1381009261, 1381009202, 1381009201, 1381009150, 1381009146, 1381009145, 1381009144, 1381009143, 1381009142, 1381009141, 1381009107, 1381009106]} final : False mtd_id 4302 list_pids : [1381009788, 1381009787, 1381009786, 1381009740, 1381009739, 1381009738] 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, '3656012') ('4302', '26469960', '1381009788', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009787', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009786', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009740', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009739', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009738', None, None, None, None, None, '3656012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '26469960', '1381009788', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009787', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009786', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009740', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009739', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009738', None, None, None, None, None, '3656012')] time used for this insertion : 0.016098737716674805 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.4035115242004395 time spend to save output : 0.01634836196899414 total time spend for step 4 : 4.419859886169434 step5:split_time_score Wed Sep 3 03:31:01 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 : ['26469960'] 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 : [('26469960',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26469960) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1381009738: {'path': 'temp/1756863057_787522_1381009738_f39f60a4a9a62df5468940345a497464_38502230.jpg', 'extension': 'jpg'}, 1381009739: {'path': 'temp/1756863057_787522_1381009739_ba08b8818cc480880977c5b777227de1_48726512.jpg', 'extension': 'jpg'}, 1381009787: {'path': 'temp/1756863057_787522_1381009787_4392d3ae0824f04f7206de53d18aa3d6_72707307.jpg', 'extension': 'jpg'}, 1381009788: {'path': 'temp/1756863057_787522_1381009788_4d0169e19f6652125bc95c6727151793_44340534.jpg', 'extension': 'jpg'}, 1381009740: {'path': 'temp/1756863057_787522_1381009740_e6d9db0d2bc96cb860960dbbf418299f_62295695.jpg', 'extension': 'jpg'}, 1381009786: {'path': 'temp/1756863057_787522_1381009786_349cbaba1c2feb1e9230b8d983d246fd_19239683.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 = 26469960; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26469960 group by h (('03', 60),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26469960 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 (26469960) 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 (26469960) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03092025 26469960 Nombre de photos uploadées : 60 / 23040 (0%) 03092025 26469960 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 03092025 26469960 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1381009107, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/bcca438b7cce8c63caed7f9a8ea221a6_59352367.jpg', 'username': None, 'uploaded_at': 1756862172, 'text': 'image_03092025_03_15_14_010135m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1381009150, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/bcca438b7cce8c63caed7f9a8ea221a6_85657912.jpg', 'username': None, 'uploaded_at': 1756862247, 'text': 'image_03092025_03_15_14_10135.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1381009106, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/bc37a62fdce16a71baf3b36742f40ef6_75135246.jpg', 'username': None, 'uploaded_at': 1756862172, 'text': 'image_03092025_03_15_34_010151m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1381009146, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/bc37a62fdce16a71baf3b36742f40ef6_17640093.jpg', 'username': None, 'uploaded_at': 1756862238, 'text': 'image_03092025_03_15_34_10151.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025398731231689453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26469960, '2025-09-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2220819,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2152233123779297 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= 2220819 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2220819, 'dashboard_run_id': 2228849, 'mtr_portfolio_id': 26464090, 'dashboard_result_id': 14642436, '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_P26464090_03-09-2025_00_19_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26464093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26464094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26464095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26464096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26464097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26464098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26464099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26464100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26464101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26464102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26464103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26464104, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2228849, 'mtr_portfolio_id': 26464620, 'dashboard_result_id': 14642437, '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_P26464620_03-09-2025_00_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26464624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26464625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26464626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26464627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26464628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26464629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26464630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26464631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26464632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26464633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26464634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26464635, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2228849, 'mtr_portfolio_id': 26465056, 'dashboard_result_id': 14642438, '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_P26465056_03-09-2025_00_48_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26465061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26465062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26465063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26465064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26465065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26465066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26465067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26465068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26465069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26465070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26465071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26465072, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2228849, 'mtr_portfolio_id': 26465555, 'dashboard_result_id': 14642439, '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_P26465555_03-09-2025_01_32_56.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26465561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26465562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26465563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26465564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26465565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26465566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26465567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26465568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26465569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26465570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26465571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26465572, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2228849, 'mtr_portfolio_id': 26466677, 'dashboard_result_id': 14642440, '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_P26466677_03-09-2025_02_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26466679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26466680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26466681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26466682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26466683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26466684, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26466685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26466686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26466687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26466688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26466689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26466690, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2228849, 'mtr_portfolio_id': 26467330, 'dashboard_result_id': 14642441, '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_P26467330_03-09-2025_03_01_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26467336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26467337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26467338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26467339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26467340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26467341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26467342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26467343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26467344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26467345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26467346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26467347, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2228849, 'mtr_portfolio_id': 26468904, 'dashboard_result_id': 14642442, '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_P26468904_03-09-2025_02_48_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26469016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469027, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2228849, 'mtr_portfolio_id': 26468907, 'dashboard_result_id': 14642443, '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_P26468907_03-09-2025_02_47_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468966, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2228849, 'mtr_portfolio_id': 26468909, 'dashboard_result_id': 14642444, '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_P26468909_03-09-2025_02_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468954, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2228849, 'mtr_portfolio_id': 26468911, 'dashboard_result_id': 14642445, '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_P26468911_03-09-2025_03_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468913, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468924, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2228849, 'mtr_portfolio_id': 26469413, 'dashboard_result_id': 14642446, '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_P26469413_03-09-2025_03_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26469447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469451, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2228849, 'mtr_portfolio_id': 26469960, 'dashboard_result_id': 14642447, '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_P26469960_03-09-2025_03_28_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26469981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469982, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26464090 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': 3655250, 'mtr_portfolio_id': 26464090, 'created_at': datetime.datetime(2025, 9, 3, 0, 19, 30), 'result': '0.03898042089272548', 'result_long': None, 'result_double': None}] Qualite : 0.03898042089272548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26464090 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26464090_03-09-2025_00_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26464090 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_P26464090_03-09-2025_00_19_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26464093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26464094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26464095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26464096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26464097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26464098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26464099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26464100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26464101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26464102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26464103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26464104, 'pht': 3726}}" where mtr_portfolio_id = 26464090 and dashboard_run_id = 2228849 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`=26464090 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14642436, 0.03898042089272548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26464090_03-09-2025_00_19_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26464093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26464094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26464095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26464096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26464097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26464098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26464099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26464100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26464101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26464102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26464103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26464104, '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 = 26464620 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': 3655288, 'mtr_portfolio_id': 26464620, 'created_at': datetime.datetime(2025, 9, 3, 0, 32, 59), 'result': '0.05931152014472272', 'result_long': None, 'result_double': None}] Qualite : 0.05931152014472272 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26464620 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26464620_03-09-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26464620 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_P26464620_03-09-2025_00_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26464624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26464625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26464626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26464627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26464628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26464629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26464630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26464631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26464632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26464633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26464634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26464635, 'pht': 3726}}" where mtr_portfolio_id = 26464620 and dashboard_run_id = 2228849 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`=26464620 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14642437, 0.05931152014472272, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26464620_03-09-2025_00_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26464624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26464625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26464626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26464627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26464628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26464629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26464630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26464631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26464632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26464633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26464634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26464635, '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 = 26465056 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': 3655341, 'mtr_portfolio_id': 26465056, 'created_at': datetime.datetime(2025, 9, 3, 0, 48, 57), 'result': '0.05317363739670723', 'result_long': None, 'result_double': None}] Qualite : 0.05317363739670723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26465056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26465056_03-09-2025_00_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26465056 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_P26465056_03-09-2025_00_48_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26465061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26465062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26465063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26465064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26465065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26465066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26465067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26465068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26465069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26465070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26465071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26465072, 'pht': 3726}}" where mtr_portfolio_id = 26465056 and dashboard_run_id = 2228849 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`=26465056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14642438, 0.05317363739670723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26465056_03-09-2025_00_48_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26465061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26465062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26465063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26465064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26465065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26465066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26465067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26465068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26465069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26465070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26465071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26465072, '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 = 26465555 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': 3655391, 'mtr_portfolio_id': 26465555, 'created_at': datetime.datetime(2025, 9, 3, 1, 32, 56), 'result': '0.03477925013156714', 'result_long': None, 'result_double': None}] Qualite : 0.03477925013156714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26465555 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26465555_03-09-2025_01_32_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26465555 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_P26465555_03-09-2025_01_32_56.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26465561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26465562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26465563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26465564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26465565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26465566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26465567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26465568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26465569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26465570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26465571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26465572, 'pht': 3726}}" where mtr_portfolio_id = 26465555 and dashboard_run_id = 2228849 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`=26465555 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14642439, 0.03477925013156714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26465555_03-09-2025_01_32_56.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26465561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26465562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26465563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26465564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26465565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26465566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26465567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26465568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26465569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26465570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26465571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26465572, '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 = 26466677 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': 3655535, 'mtr_portfolio_id': 26466677, 'created_at': datetime.datetime(2025, 9, 3, 2, 0, 58), 'result': '0.04661632280113114', 'result_long': None, 'result_double': None}] Qualite : 0.04661632280113114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26466677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26466677_03-09-2025_02_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26466677 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_P26466677_03-09-2025_02_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26466679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26466680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26466681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26466682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26466683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26466684, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26466685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26466686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26466687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26466688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26466689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26466690, 'pht': 3726}}" where mtr_portfolio_id = 26466677 and dashboard_run_id = 2228849 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`=26466677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14642440, 0.04661632280113114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26466677_03-09-2025_02_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26466679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26466680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26466681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26466682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26466683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26466684, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26466685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26466686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26466687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26466688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26466689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26466690, '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 = 26467330 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': 3655636, 'mtr_portfolio_id': 26467330, 'created_at': datetime.datetime(2025, 9, 3, 3, 1, 1), 'result': '0.056438332049679574', 'result_long': None, 'result_double': None}] Qualite : 0.056438332049679574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26467330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26467330_03-09-2025_03_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26467330 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_P26467330_03-09-2025_03_01_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26467336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26467337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26467338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26467339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26467340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26467341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26467342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26467343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26467344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26467345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26467346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26467347, 'pht': 3726}}" where mtr_portfolio_id = 26467330 and dashboard_run_id = 2228849 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`=26467330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14642441, 0.056438332049679574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26467330_03-09-2025_03_01_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26467336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26467337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26467338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26467339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26467340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26467341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26467342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26467343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26467344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26467345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26467346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26467347, '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 = 26468904 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': 3655844, 'mtr_portfolio_id': 26468904, 'created_at': datetime.datetime(2025, 9, 3, 2, 47, 58), 'result': '0.0405371776671153', 'result_long': None, 'result_double': None}] Qualite : 0.0405371776671153 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26468904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468904_03-09-2025_02_48_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26468904 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_P26468904_03-09-2025_02_48_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26469016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469027, 'pht': 3726}}" where mtr_portfolio_id = 26468904 and dashboard_run_id = 2228849 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`=26468904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14642442, 0.0405371776671153, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468904_03-09-2025_02_48_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26469016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469027, '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 = 26468907 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': 3655845, 'mtr_portfolio_id': 26468907, 'created_at': datetime.datetime(2025, 9, 3, 2, 47, 30), 'result': '0.05652622226708903', 'result_long': None, 'result_double': None}] Qualite : 0.05652622226708903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26468907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468907_03-09-2025_02_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26468907 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_P26468907_03-09-2025_02_47_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468966, 'pht': 3726}}" where mtr_portfolio_id = 26468907 and dashboard_run_id = 2228849 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`=26468907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14642443, 0.05652622226708903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468907_03-09-2025_02_47_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468966, '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 = 26468909 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': 3655846, 'mtr_portfolio_id': 26468909, 'created_at': datetime.datetime(2025, 9, 3, 2, 48, 57), 'result': '0.07203313851085948', 'result_long': None, 'result_double': None}] Qualite : 0.07203313851085948 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26468909 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468909_03-09-2025_02_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26468909 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_P26468909_03-09-2025_02_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468954, 'pht': 3726}}" where mtr_portfolio_id = 26468909 and dashboard_run_id = 2228849 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`=26468909 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14642444, 0.07203313851085948, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468909_03-09-2025_02_48_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468954, '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 = 26468911 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': 3655847, 'mtr_portfolio_id': 26468911, 'created_at': datetime.datetime(2025, 9, 3, 3, 3), 'result': '0.06660093360225054', 'result_long': None, 'result_double': None}] Qualite : 0.06660093360225054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26468911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468911_03-09-2025_03_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26468911 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_P26468911_03-09-2025_03_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468913, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468924, 'pht': 3726}}" where mtr_portfolio_id = 26468911 and dashboard_run_id = 2228851 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`=26468911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14642445, 0.06660093360225054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468911_03-09-2025_03_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468913, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468924, '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 = 26469413 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': 3655941, 'mtr_portfolio_id': 26469413, 'created_at': datetime.datetime(2025, 9, 3, 3, 19, 1), 'result': '0.05155589026050114', 'result_long': None, 'result_double': None}] Qualite : 0.05155589026050114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26469413 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26469413_03-09-2025_03_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26469413 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_P26469413_03-09-2025_03_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26469447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469451, 'pht': 3726}}" where mtr_portfolio_id = 26469413 and dashboard_run_id = 2228851 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`=26469413 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14642446, 0.05155589026050114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26469413_03-09-2025_03_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26469447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469451, '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 = 26469960 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': 3656012, 'mtr_portfolio_id': 26469960, 'created_at': datetime.datetime(2025, 9, 3, 3, 30, 57), 'result': '0.05915489367667772', 'result_long': None, 'result_double': None}] Qualite : 0.05915489367667772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26469960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26469960_03-09-2025_03_30_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26469960 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_P26469960_03-09-2025_03_30_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26469981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469982, 'pht': 3726}}" where mtr_portfolio_id = 26469960 and dashboard_run_id = 2228851 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`=26469960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14642447, 0.05915489367667772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26469960_03-09-2025_03_30_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26469981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469982, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26464090,26464620,26465056,26465555,26466677,26467330,26468904,26468907,26468909,26468911,26469413,26469960) result : ((1380975200,), (1380975202,), (1380975204,), (1380975678,), (1380975681,), (1380975684,), (1380975687,), (1380976910,), (1380976913,), (1380976916,), (1380976920,), (1380977535,), (1380977727,), (1380977730,), (1380977733,), (1380977736,), (1380977739,), (1380977935,), (1380977937,), (1380977939,), (1380977941,), (1380977943,), (1380978430,), (1380978431,), (1380978432,), (1380978488,), (1380978490,), (1380978491,), (1380978492,), (1380978493,), (1380978494,), (1380978497,), (1380978569,), (1380978570,), (1380978572,), (1380978642,), (1380978643,), (1380978644,), (1380978645,), (1380978685,), (1380978686,), (1380978687,), (1380978739,), (1380978740,), (1380978741,), (1380978742,), (1380978743,), (1380978744,), (1380978793,), (1380978795,), (1380978797,), (1380978799,), (1380979070,), (1380979072,), (1380979074,), (1380979076,), (1380979078,), (1380979132,), (1380979133,), (1380979134,), (1380979135,), (1380979136,), (1380979137,), (1380979172,), (1380979173,), (1380979174,), (1380979225,), (1380979276,), (1380979221,), (1380979222,), (1380979223,), (1380979224,), (1380979263,), (1380979264,), (1380979265,), (1380979266,), (1380979267,), (1380979269,), (1380979273,), (1380979274,), (1380979275,), (1380979321,), (1380979322,), (1380979323,), (1380979324,), (1380979325,), (1380979407,), (1380979408,), (1380979409,), (1380979410,), (1380979603,), (1380979605,), (1380979607,), (1380979609,), (1380979611,), (1380979613,), (1380980009,), (1380980011,), (1380980013,), (1380980015,), (1380980017,), (1380980019,), (1380980309,), (1380980310,), (1380980311,), (1380980451,), (1380980453,), (1380980455,), (1380980457,), (1380980459,), (1380980776,), (1380980777,), (1380980778,), (1380980779,), (1380980781,), (1380981118,), (1380981120,), (1380981122,), (1380981124,), (1380981125,), (1380981532,), (1380981534,), (1380981536,), (1380981538,), (1380981923,), (1380981926,), (1380981928,), (1380981930,), (1380981932,), (1380981934,), (1380981989,), (1380981991,), (1380982105,), (1380982106,), (1380982107,), (1380982108,), (1380982568,), (1380982570,), (1380982572,), (1380982824,), (1380982820,), (1380982821,), (1380982822,), (1380982823,), (1380982861,), (1380982862,), (1380982863,), (1380982898,), (1380982899,), (1380982900,), (1380982901,), (1380982951,), (1380982952,), (1380982953,), (1380982954,), (1380982990,), (1380982991,), (1380982992,), (1380982993,), (1380982994,), (1380983044,), (1380983045,), (1380983046,), (1380983047,), (1380983084,), (1380983085,), (1380983087,), (1380983088,), (1380983089,), (1380983090,), (1380983094,), (1380983095,), (1380983157,), (1380983158,), (1380983159,), (1380983160,), (1380983161,), (1380983193,), (1380983194,), (1380983195,), (1380983238,), (1380983239,), (1380983240,), (1380983309,), (1380983310,), (1380983311,), (1380983312,), (1380983354,), (1380983355,), (1380983356,), (1380983357,), (1380983417,), (1380983418,), (1380983419,), (1380983420,), (1380983461,), (1380983462,), (1380983463,), (1380983464,), (1380983465,), (1380983497,), (1380983498,), (1380983499,), (1380983500,), (1380983547,), (1380983605,), (1380983544,), (1380983545,), (1380983546,), (1380983586,), (1380983587,), (1380983589,), (1380983590,), (1380983591,), (1380983592,), (1380983604,), (1380983660,), (1380983661,), (1380983662,), (1380983663,), (1380983691,), (1380983692,), (1380983693,), (1380983733,), (1380983734,), (1380983735,), (1380983736,), (1380983758,), (1380983759,), (1380983792,), (1380983793,), (1380983794,), (1380983795,), (1380983796,), (1380983846,), (1380983847,), (1380983848,), (1380983935,), (1380983936,), (1380983937,), (1380983971,), (1380983972,), (1380983973,), (1380983974,), (1380984006,), (1380984007,), (1380984008,), (1380984046,), (1380984047,), (1380984048,), (1380984049,), (1380984050,), (1380984052,), (1380984098,), (1380984100,), (1380984102,), (1380989879,), (1380989919,), (1380989920,), (1380989921,), (1380989922,), (1380989992,), (1380989994,), (1380989995,), (1380989996,), (1380990053,), (1380990054,), (1380990091,), (1380990092,), (1380990093,), (1380990094,), (1380990095,), (1380990096,), (1380990134,), (1380990135,), (1380990192,), (1380990196,), (1380990199,), (1380990203,), (1380990206,), (1380990210,), (1380990297,), (1380990298,), (1380990299,), (1380990300,), (1380990326,), (1380990327,), (1380990328,), (1380990378,), (1380990379,), (1380990444,), (1380990445,), (1380990446,), (1380990447,), (1380990539,), (1380990541,), (1380990543,), (1380990545,), (1380990547,), (1380990725,), (1380990726,), (1380990727,), (1380990728,), (1380990729,), (1380990777,), (1380990778,), (1380990779,), (1380990780,), (1380990781,), (1380990782,), (1380990818,), (1380990819,), (1380990820,), (1380990821,), (1380990822,), (1380990823,), (1380990861,), (1380990919,), (1380990858,), (1380990859,), (1380990860,), (1380990907,), (1380990908,), (1380990909,), (1380990910,), (1380990911,), (1380990912,), (1380990918,), (1380990993,), (1380990994,), (1380990995,), (1380990996,), (1380991028,), (1380991029,), (1380991030,), (1380991070,), (1380991071,), (1380991072,), (1380991073,), (1380991110,), (1380991111,), (1380991112,), (1380991113,), (1380991153,), (1380991154,), (1380991155,), (1380991156,), (1380991506,), (1380991508,), (1380991510,), (1380991512,), (1380991874,), (1380991876,), (1380991878,), (1380992242,), (1380992244,), (1380992246,), (1380992248,), (1380992558,), (1380992559,), (1380992560,), (1380992561,), (1380992562,), (1380992563,), (1380992773,), (1380992775,), (1380992777,), (1380992779,), (1380992781,), (1380992783,), (1380992821,), (1380992822,), (1380993019,), (1380993022,), (1380993026,), (1380993030,), (1380993742,), (1380993746,), (1380993749,), (1380993863,), (1380993866,), (1380993869,), (1380993874,), (1380993878,), (1380994290,), (1380994280,), (1380994282,), (1380994284,), (1380994286,), (1380994288,), (1380994591,), (1380994594,), (1380994597,), (1380994600,), (1380994603,), (1380995117,), (1380995118,), (1380995120,), (1380995122,), (1380995365,), (1380995367,), (1380995369,), (1380995618,), (1380995620,), (1380995622,), (1380995624,), (1380995808,), (1380995809,), (1380995810,), (1380996061,), (1380996064,), (1380996066,), (1380996069,), (1380996071,), (1380996410,), (1380996412,), (1380996414,), (1380996416,), (1380996418,), (1380996784,), (1380996786,), (1380996788,), (1380996955,), (1380996957,), (1380996959,), (1380997132,), (1380997133,), (1380997134,), (1380997136,), (1380997189,), (1380997190,), (1380997191,), (1380997192,), (1380997193,), (1380997227,), (1380997228,), (1380997229,), (1380997231,), (1380997269,), (1380997270,), (1380997271,), (1380997305,), (1380997306,), (1380997307,), (1380997396,), (1380997485,), (1380997392,), (1380997393,), (1380997394,), (1380997395,), (1380997476,), (1380997477,), (1380997478,), (1380997479,), (1380997480,), (1380997481,), (1380997630,), (1380997632,), (1380998135,), (1380998138,), (1380998141,), (1380998827,), (1380998831,), (1380999938,), (1380999942,), (1380999946,), (1380999950,), (1381000864,), (1381000868,), (1381000871,), (1381000875,), (1381000879,), (1381001588,), (1381001590,), (1381001592,), (1381001594,), (1381001596,), (1381002131,), (1381002132,), (1381002133,), (1381002268,), (1381002269,), (1381002270,), (1381002271,), (1381002272,), (1381002652,), (1381002654,), (1381002656,), (1381002658,), (1381002660,), (1381002852,), (1381002854,), (1381002856,), (1381002858,), (1381002861,), (1381002863,), (1381002896,), (1381002897,), (1381002898,), (1381002899,), (1381002900,), (1381002981,), (1381002982,), (1381002983,), (1381003297,), (1381003298,), (1381003299,), (1381003300,), (1381003347,), (1381003348,), (1381003349,), (1381003350,), (1381003399,), (1381003396,), (1381003397,), (1381003398,), (1381003451,), (1381003452,), (1381003453,), (1381003454,), (1381003455,), (1381003456,), (1381003488,), (1381003489,), (1381003490,), (1381003533,), (1381003534,), (1381003535,), (1381003586,), (1381003587,), (1381003588,), (1381003627,), (1381003628,), (1381003629,), (1381003661,), (1381003662,), (1381003663,), (1381003664,), (1381003665,), (1381003666,), (1381003670,), (1381003671,), (1381003698,), (1381003699,), (1381003700,), (1381003701,), (1381003702,), (1381003703,), (1381003744,), (1381003751,), (1381003752,), (1381003753,), (1381003803,), (1381003804,), (1381003845,), (1381003846,), (1381003847,), (1381003848,), (1381003849,), (1381003903,), (1381003905,), (1381003906,), (1381003907,), (1381003908,), (1381003909,), (1381003969,), (1381003970,), (1381003971,), (1381004017,), (1381004018,), (1381004019,), (1381004020,), (1381004021,), (1381004022,), (1381004252,), (1381004254,), (1381004256,), (1381004258,), (1381004261,), (1381004452,), (1381004565,), (1381004450,), (1381004451,), (1381004560,), (1381004561,), (1381004562,), (1381004563,), (1381004564,), (1381004623,), (1381004630,), (1381004631,), (1381004632,), (1381004667,), (1381004668,), (1381004669,), (1381004670,), (1381004671,), (1381004672,), (1381004704,), (1381004705,), (1381004706,), (1381004707,), (1381004708,), (1381004709,), (1381004747,), (1381004992,), (1381005018,), (1381005025,), (1381005026,), (1381005027,), (1381005131,), (1381005133,), (1381005711,), (1381005713,), (1381005715,), (1381005717,), (1381005782,), (1381005784,), (1381005786,), (1381005788,), (1381005924,), (1381005919,), (1381005920,), (1381005922,), (1381005923,), (1381006249,), (1381006252,), (1381006255,), (1381006258,), (1381007053,), (1381007056,), (1381007060,), (1381007063,), (1381007823,), (1381007826,), (1381007829,), (1381007832,), (1381008039,), (1381008041,), (1381008043,), (1381008045,), (1381008047,), (1381008465,), (1381008466,), (1381008469,), (1381008471,), (1381008626,), (1381008627,), (1381008628,), (1381008629,), (1381008630,), (1381008631,), (1381008724,), (1381008725,), (1381008726,), (1381008756,), (1381008757,), (1381008759,), (1381008760,), (1381008761,), (1381008811,), (1381008812,), (1381008813,), (1381008814,), (1381008848,), (1381008849,), (1381008850,), (1381008883,), (1381008884,), (1381008885,), (1381008886,), (1381008964,), (1381008965,), (1381008966,), (1381009016,), (1381009017,), (1381009018,), (1381009019,), (1381009055,), (1381009056,), (1381009057,), (1381009058,), (1381009108,), (1381009151,), (1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03092025': {'nb_upload': 60, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26469960]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1381009788, 1381009787, 1381009786, 1381009740, 1381009739, 1381009738] map_info['map_portfolio_photo'] : {26469960: [1381009788, 1381009787, 1381009786, 1381009740, 1381009739, 1381009738, 1381009701, 1381009700, 1381009699, 1381009698, 1381009697, 1381009630, 1381009622, 1381009621, 1381009620, 1381009619, 1381009618, 1381009616, 1381009579, 1381009578, 1381009577, 1381009534, 1381009533, 1381009532, 1381009531, 1381009491, 1381009490, 1381009489, 1381009488, 1381009450, 1381009449, 1381009448, 1381009405, 1381009401, 1381009398, 1381009397, 1381009356, 1381009355, 1381009354, 1381009353, 1381009309, 1381009308, 1381009307, 1381009306, 1381009305, 1381009264, 1381009263, 1381009262, 1381009261, 1381009202, 1381009201, 1381009150, 1381009146, 1381009145, 1381009144, 1381009143, 1381009142, 1381009141, 1381009107, 1381009106]} final : True mtd_id 4302 list_pids : [1381009788, 1381009787, 1381009786, 1381009740, 1381009739, 1381009738] Looping around the photos to save general results len do output : 1 /26469960Didn'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, '3656012') ('4302', '26469960', '1381009788', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009787', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009786', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009740', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009739', None, None, None, None, None, '3656012') ('4302', None, None, None, None, None, None, None, '3656012') ('4302', '26469960', '1381009738', None, None, None, None, None, '3656012') 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', None, '26469960', 'None', None, None, None, None, '3656012'), ('4302', '26469960', '1381009788', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009787', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009786', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009740', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009739', None, None, None, None, None, '3656012'), ('4302', '26469960', '1381009738', None, None, None, None, None, '3656012')] time used for this insertion : 0.013142585754394531 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9984109401702881 time spend to save output : 0.013318300247192383 total time spend for step 5 : 1.0117292404174805 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 (3656012) 2.04user 2.42system 0:08.15elapsed 54%CPU (0avgtext+0avgdata 159616maxresident)k 280inputs+10936outputs (19major+63887minor)pagefaults 0swaps