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 : 3431306 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 (4132510) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4132510) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28981438 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4132510'] with mtr_portfolio_ids : ['28981438'] and first list_photo_ids : [] new path : /proc/3431306/ Name: python3 Umask: 0002 State: R (running) Tgid: 3431306 Ngid: 0 Pid: 3431306 PPid: 3431305 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3431306 NSpid: 3431306 NSpgid: 3429539 NSsid: 3429539 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97952 kB VmRSS: 97952 kB RssAnon: 59896 kB RssFile: 38056 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3431306', 'Ngid': '0', 'Pid': '3431306', 'PPid': '3431305', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3431306', 'NSpid': '3431306', 'NSpgid': '3429539', 'NSsid': '3429539', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97952 kB', 'VmRSS': '97952 kB', 'RssAnon': '59896 kB', 'RssFile': '38056 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '3431306', '1106908', '0', '1106884', '865636', '97952', b'', 'marlene', '4132510') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28981438) 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 (4132510 ) ) 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 (28981438) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1396542509, 'portfolio_id': 28981438}, {'photo_id': 1396542505, 'portfolio_id': 28981438}, {'photo_id': 1396542501, 'portfolio_id': 28981438}, {'photo_id': 1396542497, 'portfolio_id': 28981438}, {'photo_id': 1396542495, 'portfolio_id': 28981438}, {'photo_id': 1396542493, 'portfolio_id': 28981438}, {'photo_id': 1396542460, 'portfolio_id': 28981438}, {'photo_id': 1396542457, 'portfolio_id': 28981438}, {'photo_id': 1396542454, 'portfolio_id': 28981438}, {'photo_id': 1396542407, 'portfolio_id': 28981438}, {'photo_id': 1396542404, 'portfolio_id': 28981438}, {'photo_id': 1396542400, 'portfolio_id': 28981438}, {'photo_id': 1396542397, 'portfolio_id': 28981438}, {'photo_id': 1396542395, 'portfolio_id': 28981438}, {'photo_id': 1396542394, 'portfolio_id': 28981438}, {'photo_id': 1396542375, 'portfolio_id': 28981438}, {'photo_id': 1396542372, 'portfolio_id': 28981438}, {'photo_id': 1396542370, 'portfolio_id': 28981438}, {'photo_id': 1396542354, 'portfolio_id': 28981438}, {'photo_id': 1396542324, 'portfolio_id': 28981438}, {'photo_id': 1396542322, 'portfolio_id': 28981438}, {'photo_id': 1396542318, 'portfolio_id': 28981438}, {'photo_id': 1396542316, 'portfolio_id': 28981438}, {'photo_id': 1396542314, 'portfolio_id': 28981438}, {'photo_id': 1396542312, 'portfolio_id': 28981438}, {'photo_id': 1396542283, 'portfolio_id': 28981438}, {'photo_id': 1396542279, 'portfolio_id': 28981438}, {'photo_id': 1396542277, 'portfolio_id': 28981438}, {'photo_id': 1396542274, 'portfolio_id': 28981438}, {'photo_id': 1396542255, 'portfolio_id': 28981438}, {'photo_id': 1396542251, 'portfolio_id': 28981438}, {'photo_id': 1396542248, 'portfolio_id': 28981438}, {'photo_id': 1396542245, 'portfolio_id': 28981438}, {'photo_id': 1396542242, 'portfolio_id': 28981438}, {'photo_id': 1396542240, 'portfolio_id': 28981438}, {'photo_id': 1396542213, 'portfolio_id': 28981438}, {'photo_id': 1396542210, 'portfolio_id': 28981438}, {'photo_id': 1396542203, 'portfolio_id': 28981438}, {'photo_id': 1396542183, 'portfolio_id': 28981438}, {'photo_id': 1396542179, 'portfolio_id': 28981438}, {'photo_id': 1396542174, 'portfolio_id': 28981438}, {'photo_id': 1396542170, 'portfolio_id': 28981438}, {'photo_id': 1396542166, 'portfolio_id': 28981438}, {'photo_id': 1396542147, 'portfolio_id': 28981438}, {'photo_id': 1396542094, 'portfolio_id': 28981438}, {'photo_id': 1396542092, 'portfolio_id': 28981438}] map_portfolio_id_photo_id: {28981438: [1396542509, 1396542505, 1396542501, 1396542497, 1396542495, 1396542493, 1396542460, 1396542457, 1396542454, 1396542407, 1396542404, 1396542400, 1396542397, 1396542395, 1396542394, 1396542375, 1396542372, 1396542370, 1396542354, 1396542324, 1396542322, 1396542318, 1396542316, 1396542314, 1396542312, 1396542283, 1396542279, 1396542277, 1396542274, 1396542255, 1396542251, 1396542248, 1396542245, 1396542242, 1396542240, 1396542213, 1396542210, 1396542203, 1396542183, 1396542179, 1396542174, 1396542170, 1396542166, 1396542147, 1396542094, 1396542092]} ##### 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.018236160278320312 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Nov 28 03:26:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28981438) 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 : 28981438 get user id for portfolio 28981438 get sub ptf for main ptf 28981438, type 3726 and hashtags ['plastique', 'cartonnette', 'Carton_brun', 'Teint_Dans_La_Masse', 'autre_refus', 'mal_croppe', 'flou', 'Carton_gris', 'environnement', 'kraft', 'papier', 'metal'] 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`=28981438 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','Carton_brun','Teint_Dans_La_Masse','autre_refus','mal_croppe','flou','Carton_gris','environnement','kraft','papier','metal')) 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`=28981438 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','Carton_brun','Teint_Dans_La_Masse','autre_refus','mal_croppe','flou','Carton_gris','environnement','kraft','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 28981438, 'sub_port_id': 28981464, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688453, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 29)}, 'flou': {'main_port_id': 28981438, 'sub_port_id': 28981465, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688454, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 29)}, 'Carton_gris': {'main_port_id': 28981438, 'sub_port_id': 28981466, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688455, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 28981438, 'sub_port_id': 28981467, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688456, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 29)}, 'Carton_brun': {'main_port_id': 28981438, 'sub_port_id': 28981468, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688457, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 29)}, 'autre_refus': {'main_port_id': 28981438, 'sub_port_id': 28981469, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688458, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 29)}, 'environnement': {'main_port_id': 28981438, 'sub_port_id': 28981470, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688459, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 29)}, 'cartonnette': {'main_port_id': 28981438, 'sub_port_id': 28981471, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688460, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 29)}, 'kraft': {'main_port_id': 28981438, 'sub_port_id': 28981472, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688461, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 29)}, 'mal_croppe': {'main_port_id': 28981438, 'sub_port_id': 28981473, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688462, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 29)}, 'metal': {'main_port_id': 28981438, 'sub_port_id': 28981474, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688463, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 29)}, 'papier': {'main_port_id': 28981438, 'sub_port_id': 28981475, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688464, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28981464 , 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=28981438 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 (28981464) result : ((1396542366,), (1396542367,), (1396542368,), (1396542435,), (1396542451,), (1396542452,), (1396542453,), (1396542488,), (1396542536,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28981438) result : ((1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,)) 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 (1396542400) 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 28981465 , 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=28981438 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 (28981465) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28981438) result : ((1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,)) 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 (1396542400) 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 28981466 , 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=28981438 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 (28981466) result : ((1396542359,), (1396542360,), (1396542425,), (1396542426,), (1396542443,), (1396542444,), (1396542486,), (1396542525,), (1396542526,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28981438) result : ((1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,)) 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 (1396542400) 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 28981467 , 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=28981438 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 (28981467) result : ((1396542327,), (1396542328,), (1396542352,), (1396542353,), (1396542356,), (1396542417,), (1396542418,), (1396542419,), (1396542420,), (1396542421,), (1396542422,), (1396542439,), (1396542441,), (1396542442,), (1396542480,), (1396542481,), (1396542518,), (1396542519,), (1396542520,), (1396542521,), (1396542522,), (1396542523,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28981438) result : ((1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,)) 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 (1396542400) 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 28981468 , 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=28981438 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 (28981468) result : ((1396542329,), (1396542362,), (1396542363,), (1396542431,), (1396542432,), (1396542433,), (1396542447,), (1396542448,), (1396542532,), (1396542533,), (1396542534,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28981438) result : ((1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,)) 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 (1396542400) 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 28981469 , 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=28981438 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 (28981469) result : ((1396542423,), (1396542482,), (1396542483,), (1396542524,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28981438) result : ((1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,)) 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 (1396542400) 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 28981470 , 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=28981438 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 (28981470) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28981438) result : ((1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,)) 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 (1396542400) 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 28981471 , 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=28981438 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 (28981471) result : ((1396542361,), (1396542427,), (1396542428,), (1396542429,), (1396542430,), (1396542445,), (1396542487,), (1396542528,), (1396542529,), (1396542530,), (1396542531,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28981438) result : ((1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,)) 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 (1396542400) 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 28981472 , 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=28981438 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 (28981472) result : ((1396542330,), (1396542436,), (1396542437,), (1396542537,), (1396542538,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28981438) result : ((1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,)) 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 (1396542400) 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 28981473 , 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=28981438 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 (28981473) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28981438) result : ((1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,)) 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 (1396542400) 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 28981474 , 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=28981438 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 (28981474) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28981438) result : ((1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,)) 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 (1396542400) 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 28981475 , 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=28981438 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 (28981475) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28981438) result : ((1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,)) 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 (1396542400) 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`=28981438 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','Carton_brun','Teint_Dans_La_Masse','autre_refus','mal_croppe','flou','Carton_gris','environnement','kraft','papier','metal')) 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`=28981438 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','Carton_brun','Teint_Dans_La_Masse','autre_refus','mal_croppe','flou','Carton_gris','environnement','kraft','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 28981438, 'sub_port_id': 28981476, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688465, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 35)}, 'flou': {'main_port_id': 28981438, 'sub_port_id': 28981477, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688466, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 35)}, 'Carton_gris': {'main_port_id': 28981438, 'sub_port_id': 28981478, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688467, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 28981438, 'sub_port_id': 28981479, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688468, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 35)}, 'Carton_brun': {'main_port_id': 28981438, 'sub_port_id': 28981480, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688469, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 35)}, 'autre_refus': {'main_port_id': 28981438, 'sub_port_id': 28981481, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688470, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 35)}, 'environnement': {'main_port_id': 28981438, 'sub_port_id': 28981482, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688471, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 35)}, 'cartonnette': {'main_port_id': 28981438, 'sub_port_id': 28981483, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688472, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 35)}, 'kraft': {'main_port_id': 28981438, 'sub_port_id': 28981484, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688473, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 35)}, 'mal_croppe': {'main_port_id': 28981438, 'sub_port_id': 28981485, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688474, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 35)}, 'metal': {'main_port_id': 28981438, 'sub_port_id': 28981486, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688475, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 35)}, 'papier': {'main_port_id': 28981438, 'sub_port_id': 28981487, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19688476, 'last_updated_at': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 3, 17, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28981476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28981464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28981477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28981465 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28981478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28981466 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28981479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28981467 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28981480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28981468 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28981481,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28981469 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28981482,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28981470 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28981483,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28981471 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28981484,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28981472 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28981485,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28981473 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28981486,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28981474 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28981487,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28981475 lien utilise dans velours : https://marlene.fotonower.com/velours/28981476,28981477,28981478,28981479,28981480,28981481,28981482,28981483,28981484,28981485,28981486,28981487?tags=plastique,flou,Carton_gris,Teint_Dans_La_Masse,Carton_brun,autre_refus,environnement,cartonnette,kraft,mal_croppe,metal,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28981438]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1396542509, 1396542505, 1396542501, 1396542497, 1396542495, 1396542493] map_info['map_portfolio_photo'] : {28981438: [1396542509, 1396542505, 1396542501, 1396542497, 1396542495, 1396542493, 1396542460, 1396542457, 1396542454, 1396542407, 1396542404, 1396542400, 1396542397, 1396542395, 1396542394, 1396542375, 1396542372, 1396542370, 1396542354, 1396542324, 1396542322, 1396542318, 1396542316, 1396542314, 1396542312, 1396542283, 1396542279, 1396542277, 1396542274, 1396542255, 1396542251, 1396542248, 1396542245, 1396542242, 1396542240, 1396542213, 1396542210, 1396542203, 1396542183, 1396542179, 1396542174, 1396542170, 1396542166, 1396542147, 1396542094, 1396542092]} final : False mtd_id 4302 list_pids : [1396542509, 1396542505, 1396542501, 1396542497, 1396542495, 1396542493] Looping around the photos to save general results len do output : 1 /28981438. 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, '4132510') ('4302', '28981438', '1396542509', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542505', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542501', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542497', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542495', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542493', None, None, None, None, None, '4132510') 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, '28981438', "{'plastique': 28981464, 'flou': 28981465, 'Carton_gris': 28981466, 'Teint_Dans_La_Masse': 28981467, 'Carton_brun': 28981468, 'autre_refus': 28981469, 'environnement': 28981470, 'cartonnette': 28981471, 'kraft': 28981472, 'mal_croppe': 28981473, 'metal': 28981474, 'papier': 28981475}", None, None, None, None, '4132510'), ('4302', '28981438', '1396542509', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542505', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542501', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542497', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542495', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542493', None, None, None, None, None, '4132510')] time used for this insertion : 0.015855073928833008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5534746646881104 time spend to save output : 0.016139745712280273 total time spend for step 1 : 0.5696144104003906 step2:final Fri Nov 28 03:26:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28981438) 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 28981438 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1396542094,1396542092,1396542183,1396542179,1396542174,1396542170,1396542166,1396542147,1396542213,1396542210,1396542203,1396542255,1396542251,1396542248,1396542245,1396542242,1396542240,1396542283,1396542279,1396542277,1396542274,1396542324,1396542322,1396542318,1396542316,1396542314,1396542312,1396542375,1396542372,1396542354,1396542370,1396542407,1396542404,1396542400,1396542397,1396542395,1396542394,1396542460,1396542457,1396542454,1396542509,1396542505,1396542501,1396542497,1396542495,1396542493); 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([28981438]) Inside saveOutput : final : False verbose : True original output for save of step final : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ('0.04791296693479862',), 1396542497: ('0.04791296693479862',), 1396542495: ('0.04791296693479862',), 1396542493: ('0.04791296693479862',)} new output for save of step final : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ('0.04791296693479862',), 1396542497: ('0.04791296693479862',), 1396542495: ('0.04791296693479862',), 1396542493: ('0.04791296693479862',)} [1396542509, 1396542505, 1396542501, 1396542497, 1396542495, 1396542493] map_info['map_portfolio_photo'] : {28981438: [1396542509, 1396542505, 1396542501, 1396542497, 1396542495, 1396542493, 1396542460, 1396542457, 1396542454, 1396542407, 1396542404, 1396542400, 1396542397, 1396542395, 1396542394, 1396542375, 1396542372, 1396542370, 1396542354, 1396542324, 1396542322, 1396542318, 1396542316, 1396542314, 1396542312, 1396542283, 1396542279, 1396542277, 1396542274, 1396542255, 1396542251, 1396542248, 1396542245, 1396542242, 1396542240, 1396542213, 1396542210, 1396542203, 1396542183, 1396542179, 1396542174, 1396542170, 1396542166, 1396542147, 1396542094, 1396542092]} final : False mtd_id 4302 list_pids : [1396542509, 1396542505, 1396542501, 1396542497, 1396542495, 1396542493] Looping around the photos to save general results len do output : 6 /1396542509.Didn't retrieve data . /1396542505.Didn't retrieve data . /1396542501.Didn't retrieve data . /1396542497.Didn't retrieve data . /1396542495.Didn't retrieve data . /1396542493.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, '4132510') ('4302', '28981438', '1396542509', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542505', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542501', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542497', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542495', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542493', None, None, None, None, None, '4132510') 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', '28981438', '1396542509', '0.04791296693479862', None, None, None, None, '4132510'), ('4302', '28981438', '1396542505', '0.04791296693479862', None, None, None, None, '4132510'), ('4302', '28981438', '1396542501', '0.04791296693479862', None, None, None, None, '4132510'), ('4302', '28981438', '1396542497', '0.04791296693479862', None, None, None, None, '4132510'), ('4302', '28981438', '1396542495', '0.04791296693479862', None, None, None, None, '4132510'), ('4302', '28981438', '1396542493', '0.04791296693479862', None, None, None, None, '4132510')] time used for this insertion : 0.013873815536499023 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07892155647277832 time spend to save output : 0.014188528060913086 total time spend for step 2 : 0.0931100845336914 step3:velours_tree Fri Nov 28 03:26:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28981438: [{'plastique': 28981464, 'flou': 28981465, 'Carton_gris': 28981466, 'Teint_Dans_La_Masse': 28981467, 'Carton_brun': 28981468, 'autre_refus': 28981469, 'environnement': 28981470, 'cartonnette': 28981471, 'kraft': 28981472, 'mal_croppe': 28981473, 'metal': 28981474, 'papier': 28981475}]} input_args_next_step : {28981438: ()} output_args : {28981438: [{'plastique': 28981464, 'flou': 28981465, 'Carton_gris': 28981466, 'Teint_Dans_La_Masse': 28981467, 'Carton_brun': 28981468, 'autre_refus': 28981469, 'environnement': 28981470, 'cartonnette': 28981471, 'kraft': 28981472, 'mal_croppe': 28981473, 'metal': 28981474, 'papier': 28981475}]} args : 28981438 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 : ({'plastique': 28981464, 'flou': 28981465, 'Carton_gris': 28981466, 'Teint_Dans_La_Masse': 28981467, 'Carton_brun': 28981468, 'autre_refus': 28981469, 'environnement': 28981470, 'cartonnette': 28981471, 'kraft': 28981472, 'mal_croppe': 28981473, 'metal': 28981474, 'papier': 28981475},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28981438) 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([28981438]) 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.3543710708618164 time spend to save output : 5.6743621826171875e-05 total time spend for step 3 : 0.3544278144836426 step4:send_mail_cod Fri Nov 28 03:26:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ('0.04791296693479862',), 1396542497: ('0.04791296693479862',), 1396542495: ('0.04791296693479862',), 1396542493: ('0.04791296693479862',)} input_args_next_step : {1396542509: ()} output_args : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ('0.04791296693479862',), 1396542497: ('0.04791296693479862',), 1396542495: ('0.04791296693479862',), 1396542493: ('0.04791296693479862',)} args : 1396542509 depend.output_id : 0 input_args_next_step : {1396542509: ('0.04791296693479862',), 1396542505: ()} output_args : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ('0.04791296693479862',), 1396542497: ('0.04791296693479862',), 1396542495: ('0.04791296693479862',), 1396542493: ('0.04791296693479862',)} args : 1396542505 depend.output_id : 0 input_args_next_step : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ()} output_args : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ('0.04791296693479862',), 1396542497: ('0.04791296693479862',), 1396542495: ('0.04791296693479862',), 1396542493: ('0.04791296693479862',)} args : 1396542501 depend.output_id : 0 input_args_next_step : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ('0.04791296693479862',), 1396542497: ()} output_args : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ('0.04791296693479862',), 1396542497: ('0.04791296693479862',), 1396542495: ('0.04791296693479862',), 1396542493: ('0.04791296693479862',)} args : 1396542497 depend.output_id : 0 input_args_next_step : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ('0.04791296693479862',), 1396542497: ('0.04791296693479862',), 1396542495: ()} output_args : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ('0.04791296693479862',), 1396542497: ('0.04791296693479862',), 1396542495: ('0.04791296693479862',), 1396542493: ('0.04791296693479862',)} args : 1396542495 depend.output_id : 0 input_args_next_step : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ('0.04791296693479862',), 1396542497: ('0.04791296693479862',), 1396542495: ('0.04791296693479862',), 1396542493: ()} output_args : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ('0.04791296693479862',), 1396542497: ('0.04791296693479862',), 1396542495: ('0.04791296693479862',), 1396542493: ('0.04791296693479862',)} args : 1396542493 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 : {28981438: [{'plastique': 28981464, 'flou': 28981465, 'Carton_gris': 28981466, 'Teint_Dans_La_Masse': 28981467, 'Carton_brun': 28981468, 'autre_refus': 28981469, 'environnement': 28981470, 'cartonnette': 28981471, 'kraft': 28981472, 'mal_croppe': 28981473, 'metal': 28981474, 'papier': 28981475}]} input_args_next_step : {1396542509: ('0.04791296693479862',), 1396542505: ('0.04791296693479862',), 1396542501: ('0.04791296693479862',), 1396542497: ('0.04791296693479862',), 1396542495: ('0.04791296693479862',), 1396542493: ('0.04791296693479862',), 28981438: ()} output_args : {28981438: [{'plastique': 28981464, 'flou': 28981465, 'Carton_gris': 28981466, 'Teint_Dans_La_Masse': 28981467, 'Carton_brun': 28981468, 'autre_refus': 28981469, 'environnement': 28981470, 'cartonnette': 28981471, 'kraft': 28981472, 'mal_croppe': 28981473, 'metal': 28981474, 'papier': 28981475}]} args : 28981438 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.04791296693479862',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28981438) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1396542509,1396542505,1396542501,1396542497,1396542495,1396542493) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1396542493 begin to download photo : 1396542497 begin to download photo : 1396542505 download finish for photo 1396542497 begin to download photo : 1396542501 download finish for photo 1396542505 begin to download photo : 1396542509 download finish for photo 1396542493 begin to download photo : 1396542495 download finish for photo 1396542501 download finish for photo 1396542509 download finish for photo 1396542495 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_P28981438_28-11-2025_03_26_59.pdf 28981464 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28981464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396542366: '1764296487_663232_1396542213_c68c16190b5c6e8073a7dba43cab8956_rle_crop_4048446335_0.png', 1396542367: '1764296487_663232_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446389_0.png', 1396542368: '1764296487_663232_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446386_0.png', 1396542435: '1764296587_667971_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446902_0.png', 1396542451: '1764296605_668308_1396542213_c68c16190b5c6e8073a7dba43cab8956_rle_crop_4048446335_0.png', 1396542452: '1764296605_668308_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446389_0.png', 1396542453: '1764296605_668308_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446386_0.png', 1396542488: '1764296666_670994_1396542316_bda3278d3bfdc3c7fb84b54f46703cde_rle_crop_4048447142_0.png', 1396542536: '1764296708_671961_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446902_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/7cb048f253079ffb9b033547c2cfc02d_52217644.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/72b42401cc61c0489395c81048922217_82201009.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/f378a1fc39fefcd053cd45c26632f9cd_7657698.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/ed9d9f2726fc933f5a9c845fee10a32c_11398268.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/7cb048f253079ffb9b033547c2cfc02d_85128330.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/72b42401cc61c0489395c81048922217_53209744.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/f378a1fc39fefcd053cd45c26632f9cd_45749042.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/7fadf67efaa086623139d391c7d5c80a_41034745.png change filename to text .imagette289814641764296819/ imagette289814641764296819/1764296587_667971_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446902_0.png.png imagette289814641764296819/1764296487_663232_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446386_0.png.png imagette289814641764296819/1764296605_668308_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446386_0.png.png imagette289814641764296819/1764296708_671961_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446902_0.png.png imagette289814641764296819/1764296605_668308_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446389_0.png.png imagette289814641764296819/1764296605_668308_1396542213_c68c16190b5c6e8073a7dba43cab8956_rle_crop_4048446335_0.png.png imagette289814641764296819/1764296666_670994_1396542316_bda3278d3bfdc3c7fb84b54f46703cde_rle_crop_4048447142_0.png.png imagette289814641764296819/1764296487_663232_1396542213_c68c16190b5c6e8073a7dba43cab8956_rle_crop_4048446335_0.png.png imagette289814641764296819/1764296487_663232_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446389_0.png.png imagette289814651764296819/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/ed9d9f2726fc933f5a9c845fee10a32c_80492170.png imagette289814641764296819 28981465 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28981465 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289814651764296819 28981469 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28981469 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396542423: '1764296587_667971_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446885_0.png', 1396542482: '1764296666_670994_1396542318_dd5160417abeb6a6aa433b250aa9d918_rle_crop_4048447130_0.png', 1396542483: '1764296666_670994_1396542316_bda3278d3bfdc3c7fb84b54f46703cde_rle_crop_4048447138_0.png', 1396542524: '1764296708_671961_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446885_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/35feaa0557b621c221db19cd05ab8a09_97792398.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/ee6860f9453e6c792c89970437e5c216_3957152.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/0cb9114a54b8eb31c032ecd5f5890438_44562990.png change filename to text .imagette289814691764296819/ imagette289814691764296819/1764296587_667971_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446885_0.png.png imagette289814691764296819/1764296666_670994_1396542316_bda3278d3bfdc3c7fb84b54f46703cde_rle_crop_4048447138_0.png.png imagette289814691764296819/1764296666_670994_1396542318_dd5160417abeb6a6aa433b250aa9d918_rle_crop_4048447130_0.png.png imagette289814691764296819/1764296708_671961_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446885_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/35feaa0557b621c221db19cd05ab8a09_49819403.png imagette289814691764296819 28981471 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28981471 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396542361: '1764296487_663232_1396542179_efa0c14d87b301bae93ba38013f3f3b9_rle_crop_4048446348_0.png', 1396542427: '1764296587_667971_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446669_0.png', 1396542428: '1764296587_667971_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446687_0.png', 1396542429: '1764296587_667971_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446686_0.png', 1396542430: '1764296587_667971_1396542245_f32515d27d130ba7f042fa9bd223e843_rle_crop_4048446867_0.png', 1396542445: '1764296605_668308_1396542179_efa0c14d87b301bae93ba38013f3f3b9_rle_crop_4048446348_0.png', 1396542487: '1764296666_670994_1396542318_dd5160417abeb6a6aa433b250aa9d918_rle_crop_4048447131_0.png', 1396542528: '1764296708_671961_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446669_0.png', 1396542529: '1764296708_671961_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446687_0.png', 1396542530: '1764296708_671961_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446686_0.png', 1396542531: '1764296708_671961_1396542245_f32515d27d130ba7f042fa9bd223e843_rle_crop_4048446867_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e01f4caac14cea5f766f556ffac4561c_68091689.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/1951fc0d0e6b8a61101006e310374b09_8455258.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/0ad9d84652a54e6338d6a38b6b12b5a0_36204590.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/024fefa5df4bb8d50b923dbf2897ed5f_75525977.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/cd004cf74be799afdd840e15c213a3cf_19878325.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e01f4caac14cea5f766f556ffac4561c_94709063.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/be0b30414e416467c9a0e361ba3f950e_89266020.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/1951fc0d0e6b8a61101006e310374b09_56079298.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/0ad9d84652a54e6338d6a38b6b12b5a0_27389801.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/024fefa5df4bb8d50b923dbf2897ed5f_77749701.png change filename to text .imagette289814711764296820/ imagette289814711764296820/1764296487_663232_1396542179_efa0c14d87b301bae93ba38013f3f3b9_rle_crop_4048446348_0.png.png imagette289814711764296820/1764296708_671961_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446669_0.png.png imagette289814711764296820/1764296587_667971_1396542245_f32515d27d130ba7f042fa9bd223e843_rle_crop_4048446867_0.png.png imagette289814711764296820/1764296708_671961_1396542245_f32515d27d130ba7f042fa9bd223e843_rle_crop_4048446867_0.png.png imagette289814711764296820/1764296587_667971_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446686_0.png.png imagette289814711764296820/1764296708_671961_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446686_0.png.png imagette289814711764296820/1764296708_671961_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446687_0.png.png imagette289814711764296820/1764296587_667971_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446687_0.png.png imagette289814711764296820/1764296666_670994_1396542318_dd5160417abeb6a6aa433b250aa9d918_rle_crop_4048447131_0.png.png imagette289814711764296820/1764296605_668308_1396542179_efa0c14d87b301bae93ba38013f3f3b9_rle_crop_4048446348_0.png.png imagette289814711764296820/1764296587_667971_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446669_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/cd004cf74be799afdd840e15c213a3cf_28765909.png imagette289814711764296820 28981472 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28981472 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396542330: '1764296466_662725_1396542203_b26d4664ec875be9efa6abecb3d98f24_rle_crop_4048446148_0.png', 1396542436: '1764296587_667971_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446891_0.png', 1396542437: '1764296587_667971_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446909_0.png', 1396542537: '1764296708_671961_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446891_0.png', 1396542538: '1764296708_671961_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446909_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/f65cc7fe85175ee1da9edfeb3be07f86_80671462.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/eaaac9642fd72eab2c5a46382b4ce40b_47103381.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/399ba1056dd0cbff90f75ecb63bb6da0_71810463.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/eaaac9642fd72eab2c5a46382b4ce40b_44147505.png change filename to text .imagette289814721764296820/ imagette289814721764296820/1764296708_671961_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446891_0.png.png imagette289814721764296820/1764296708_671961_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446909_0.png.png imagette289814721764296820/1764296587_667971_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446909_0.png.png imagette289814721764296820/1764296466_662725_1396542203_b26d4664ec875be9efa6abecb3d98f24_rle_crop_4048446148_0.png.png imagette289814721764296820/1764296587_667971_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446891_0.png.png imagette289814731764296821/ imagette289814741764296821/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/399ba1056dd0cbff90f75ecb63bb6da0_68696830.png imagette289814721764296820 28981473 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28981473 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289814731764296821 28981474 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28981474 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289814741764296821 28981466 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28981466 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396542359: '1764296487_663232_1396542174_bad011f029fffd76c261299b5db6ae8c_rle_crop_4048446359_0.png', 1396542360: '1764296487_663232_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446384_0.png', 1396542425: '1764296587_667971_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446661_0.png', 1396542426: '1764296587_667971_1396542245_f32515d27d130ba7f042fa9bd223e843_rle_crop_4048446871_0.png', 1396542443: '1764296605_668308_1396542174_bad011f029fffd76c261299b5db6ae8c_rle_crop_4048446359_0.png', 1396542444: '1764296605_668308_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446384_0.png', 1396542486: '1764296666_670994_1396542312_2b09468737b21612f9a1778866c7942b_rle_crop_4048447164_0.png', 1396542525: '1764296708_671961_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446661_0.png', 1396542526: '1764296708_671961_1396542245_f32515d27d130ba7f042fa9bd223e843_rle_crop_4048446871_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/8eba4478858ccf9bc256306bdbb100d1_75566448.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/53afc0610312b4842a72e39bb8402352_92202416.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e34e0bc11ef01739bf6d827820ae43ba_36885109.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/278d9cfdebc985c5ee1764e97367c6bc_9310655.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/8eba4478858ccf9bc256306bdbb100d1_32096422.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/53afc0610312b4842a72e39bb8402352_57420010.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e0105b21b18c410c3c8afca84d0f2266_94206883.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e34e0bc11ef01739bf6d827820ae43ba_77610849.png change filename to text .imagette289814661764296821/ imagette289814661764296821/1764296708_671961_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446661_0.png.png imagette289814661764296821/1764296487_663232_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446384_0.png.png imagette289814661764296821/1764296487_663232_1396542174_bad011f029fffd76c261299b5db6ae8c_rle_crop_4048446359_0.png.png imagette289814661764296821/1764296666_670994_1396542312_2b09468737b21612f9a1778866c7942b_rle_crop_4048447164_0.png.png imagette289814661764296821/1764296708_671961_1396542245_f32515d27d130ba7f042fa9bd223e843_rle_crop_4048446871_0.png.png imagette289814661764296821/1764296605_668308_1396542174_bad011f029fffd76c261299b5db6ae8c_rle_crop_4048446359_0.png.png imagette289814661764296821/1764296587_667971_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446661_0.png.png imagette289814661764296821/1764296605_668308_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446384_0.png.png imagette289814661764296821/1764296587_667971_1396542245_f32515d27d130ba7f042fa9bd223e843_rle_crop_4048446871_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/278d9cfdebc985c5ee1764e97367c6bc_3440020.png imagette289814661764296821 28981467 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28981467 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396542439: '1764296605_668308_1396542174_bad011f029fffd76c261299b5db6ae8c_rle_crop_4048446363_0.png', 1396542523: '1764296708_671961_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446905_0.png', 1396542522: '1764296708_671961_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446887_0.png', 1396542521: '1764296708_671961_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446697_0.png', 1396542520: '1764296708_671961_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446692_0.png', 1396542519: '1764296708_671961_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446671_0.png', 1396542518: '1764296708_671961_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446670_0.png', 1396542481: '1764296666_670994_1396542312_2b09468737b21612f9a1778866c7942b_rle_crop_4048447170_0.png', 1396542480: '1764296666_670994_1396542314_448fc2ffa6ee9e5b458eabbb8bbf3a15_rle_crop_4048447156_0.png', 1396542442: '1764296605_668308_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446394_0.png', 1396542441: '1764296605_668308_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446391_0.png', 1396542327: '1764296466_662725_1396542203_b26d4664ec875be9efa6abecb3d98f24_rle_crop_4048446156_0.png', 1396542422: '1764296587_667971_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446905_0.png', 1396542421: '1764296587_667971_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446887_0.png', 1396542420: '1764296587_667971_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446697_0.png', 1396542419: '1764296587_667971_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446692_0.png', 1396542418: '1764296587_667971_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446671_0.png', 1396542417: '1764296587_667971_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446670_0.png', 1396542356: '1764296487_663232_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446394_0.png', 1396542353: '1764296487_663232_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446391_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/72f13e5352c9e16ecf5917b65f972ad3_94424798.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/d12d0df45290f5c58b12b02ba843321e_31283933.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/d7f452fb14b3dc4a3197a9a12bbc7fcf_50812973.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e5dbf52e7d7e79b925fe0e52253842e0_98075395.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/278d98e818b8719f1f5f6a5828a31360_24272103.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/a6a4c7651f027c6b78d9edf871dead77_22291763.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/b29edc1b28ab3f40ef8931a142b06333_97587774.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/9fdb4dfdea225f4c143b8e01c3ee6ca2_88008759.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/0f9c0b37f750a791699887c564ae2374_12120127.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/2dfbfc0192323e01111381e6262e1a00_60055041.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/ae56b78c320d7f82daf33c20de5d9e68_12893965.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/a16665b8aff34d86b5685baaed8bd0b4_18022623.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/d12d0df45290f5c58b12b02ba843321e_25067079.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/d7f452fb14b3dc4a3197a9a12bbc7fcf_90842062.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e5dbf52e7d7e79b925fe0e52253842e0_89616418.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/278d98e818b8719f1f5f6a5828a31360_5415945.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/a6a4c7651f027c6b78d9edf871dead77_22716247.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/b29edc1b28ab3f40ef8931a142b06333_14600580.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/2dfbfc0192323e01111381e6262e1a00_10834713.png change filename to text .imagette289814671764296822/ imagette289814671764296822/1764296587_667971_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446692_0.png.png imagette289814671764296822/1764296708_671961_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446905_0.png.png imagette289814671764296822/1764296587_667971_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446905_0.png.png imagette289814671764296822/1764296587_667971_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446670_0.png.png imagette289814671764296822/1764296605_668308_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446391_0.png.png imagette289814671764296822/1764296708_671961_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446671_0.png.png imagette289814671764296822/1764296708_671961_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446692_0.png.png imagette289814671764296822/1764296605_668308_1396542174_bad011f029fffd76c261299b5db6ae8c_rle_crop_4048446363_0.png.png imagette289814671764296822/1764296708_671961_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446887_0.png.png imagette289814671764296822/1764296487_663232_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446391_0.png.png imagette289814671764296822/1764296587_667971_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446697_0.png.png imagette289814671764296822/1764296605_668308_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446394_0.png.png imagette289814671764296822/1764296587_667971_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446671_0.png.png imagette289814671764296822/1764296487_663232_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446394_0.png.png imagette289814671764296822/1764296708_671961_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446670_0.png.png imagette289814671764296822/1764296666_670994_1396542314_448fc2ffa6ee9e5b458eabbb8bbf3a15_rle_crop_4048447156_0.png.png imagette289814671764296822/1764296466_662725_1396542203_b26d4664ec875be9efa6abecb3d98f24_rle_crop_4048446156_0.png.png imagette289814671764296822/1764296587_667971_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446887_0.png.png imagette289814671764296822/1764296666_670994_1396542312_2b09468737b21612f9a1778866c7942b_rle_crop_4048447170_0.png.png imagette289814671764296822/1764296708_671961_1396542248_cedd65ac8151cd5ace666bfd4fda6ca2_rle_crop_4048446697_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/ae56b78c320d7f82daf33c20de5d9e68_72105585.png imagette289814671764296822 28981468 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28981468 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396542329: '1764296466_662725_1396542203_b26d4664ec875be9efa6abecb3d98f24_rle_crop_4048446150_0.png', 1396542362: '1764296487_663232_1396542170_f5937edf45682a61344038e23d95cf7d_rle_crop_4048446373_0.png', 1396542363: '1764296487_663232_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446388_0.png', 1396542431: '1764296587_667971_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446666_0.png', 1396542432: '1764296587_667971_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446889_0.png', 1396542433: '1764296587_667971_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446908_0.png', 1396542447: '1764296605_668308_1396542170_f5937edf45682a61344038e23d95cf7d_rle_crop_4048446373_0.png', 1396542448: '1764296605_668308_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446388_0.png', 1396542532: '1764296708_671961_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446666_0.png', 1396542533: '1764296708_671961_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446889_0.png', 1396542534: '1764296708_671961_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446908_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e43b3c129b37e7f532c7d3dd9ba7f024_7928070.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/2de27edd468cf65f4e4e757c5123db68_22799998.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e61ddec57783c4e5f265803dc78088b3_2169872.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e01f985f6aa2bb5a458050d880ad766c_85012945.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/65ab18f1804d7b55eb752471055e2e27_29272533.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/7782ebbf4966bcfd54630b17a893ab4f_88101212.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/2de27edd468cf65f4e4e757c5123db68_71608417.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e61ddec57783c4e5f265803dc78088b3_4391378.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e01f985f6aa2bb5a458050d880ad766c_47888558.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/65ab18f1804d7b55eb752471055e2e27_69527985.png change filename to text .imagette289814681764296823/ imagette289814681764296823/1764296487_663232_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446388_0.png.png imagette289814681764296823/1764296487_663232_1396542170_f5937edf45682a61344038e23d95cf7d_rle_crop_4048446373_0.png.png imagette289814681764296823/1764296587_667971_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446666_0.png.png imagette289814681764296823/1764296466_662725_1396542203_b26d4664ec875be9efa6abecb3d98f24_rle_crop_4048446150_0.png.png imagette289814681764296823/1764296587_667971_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446889_0.png.png imagette289814681764296823/1764296605_668308_1396542170_f5937edf45682a61344038e23d95cf7d_rle_crop_4048446373_0.png.png imagette289814681764296823/1764296708_671961_1396542242_6ea9a1543900c86e02664905f9982b4a_rle_crop_4048446889_0.png.png imagette289814681764296823/1764296605_668308_1396542166_449f480974254432a27575281d1ff414_rle_crop_4048446388_0.png.png imagette289814681764296823/1764296708_671961_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446908_0.png.png imagette289814681764296823/1764296587_667971_1396542240_ad0138ffde5238bab02763fa661058ab_rle_crop_4048446908_0.png.png imagette289814681764296823/1764296708_671961_1396542251_eb90005a6c209932e31d0815ac465989_rle_crop_4048446666_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/7782ebbf4966bcfd54630b17a893ab4f_21548060.png imagette289814681764296823 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28981438 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28981476,28981477,28981478,28981479,28981480,28981481,28981482,28981483,28981484,28981485,28981486,28981487?tags=plastique,flou,Carton_gris,Teint_Dans_La_Masse,Carton_brun,autre_refus,environnement,cartonnette,kraft,mal_croppe,metal,papier your option no_mail is active, we will not send the real mail to your client args[1396542509] : ('0.04791296693479862',) no score found for photo 1396542509 We are sending mail with results at report@fotonower.com args[1396542505] : ('0.04791296693479862',) no score found for photo 1396542505 We are sending mail with results at report@fotonower.com args[1396542501] : ('0.04791296693479862',) no score found for photo 1396542501 We are sending mail with results at report@fotonower.com args[1396542497] : ('0.04791296693479862',) no score found for photo 1396542497 We are sending mail with results at report@fotonower.com args[1396542495] : ('0.04791296693479862',) no score found for photo 1396542495 We are sending mail with results at report@fotonower.com args[1396542493] : ('0.04791296693479862',) no score found for photo 1396542493 We are sending mail with results at report@fotonower.com refus_total : 0.04791296693479862 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28981438 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_P28981438_28-11-2025_03_26_59.pdf results_Auto_P28981438_28-11-2025_03_26_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28981438_28-11-2025_03_26_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28981438','results_Auto_P28981438_28-11-2025_03_26_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28981438_28-11-2025_03_26_59.pdf','pdf','','0.17','0.04791296693479862') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28981438]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1396542509, 1396542505, 1396542501, 1396542497, 1396542495, 1396542493] map_info['map_portfolio_photo'] : {28981438: [1396542509, 1396542505, 1396542501, 1396542497, 1396542495, 1396542493, 1396542460, 1396542457, 1396542454, 1396542407, 1396542404, 1396542400, 1396542397, 1396542395, 1396542394, 1396542375, 1396542372, 1396542370, 1396542354, 1396542324, 1396542322, 1396542318, 1396542316, 1396542314, 1396542312, 1396542283, 1396542279, 1396542277, 1396542274, 1396542255, 1396542251, 1396542248, 1396542245, 1396542242, 1396542240, 1396542213, 1396542210, 1396542203, 1396542183, 1396542179, 1396542174, 1396542170, 1396542166, 1396542147, 1396542094, 1396542092]} final : False mtd_id 4302 list_pids : [1396542509, 1396542505, 1396542501, 1396542497, 1396542495, 1396542493] 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, '4132510') ('4302', '28981438', '1396542509', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542505', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542501', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542497', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542495', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542493', None, None, None, None, None, '4132510') 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', '28981438', '1396542509', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542505', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542501', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542497', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542495', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542493', None, None, None, None, None, '4132510')] time used for this insertion : 0.01403188705444336 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.590306043624878 time spend to save output : 0.014208078384399414 total time spend for step 4 : 6.604514122009277 step5:split_time_score Fri Nov 28 03:27:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28981438'] 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 : [('28981438',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28981438) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1396542497: {'path': 'temp/1764296818_3431306_1396542497_8086f7750cf7ad79a18a1c548d1b7430.jpg', 'extension': 'jpg'}, 1396542501: {'path': 'temp/1764296818_3431306_1396542501_c4494a389d2333569119b47ab1568719.jpg', 'extension': 'jpg'}, 1396542505: {'path': 'temp/1764296818_3431306_1396542505_a5d807129faaa440048e3d89038116d3.jpg', 'extension': 'jpg'}, 1396542509: {'path': 'temp/1764296818_3431306_1396542509_3590b0adcdbe9a40c6d148e32befc323.jpg', 'extension': 'jpg'}, 1396542493: {'path': 'temp/1764296818_3431306_1396542493_f3e10c19618a69955278ab140f029308.jpg', 'extension': 'jpg'}, 1396542495: {'path': 'temp/1764296818_3431306_1396542495_2d59108b29bb175a8a20ea958ce2fcf0.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 = 28981438; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28981438 group by h (('03', 46),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28981438 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 (28981438) 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 (28981438) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28112025 28981438 Nombre de photos uploadées : 46 / 23040 (0%) 28112025 28981438 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 28112025 28981438 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1396542094, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/a271fb113c9afcbbb7f97b5152c3848a.jpg', 'username': None, 'uploaded_at': 1764296168, 'text': 'image_28112025_03_15_03_10145.jpg'}, {'photo_id': 1396542092, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/949e3373d3b56881da9235c92bd3fffc.jpg', 'username': None, 'uploaded_at': 1764296168, 'text': 'image_28112025_03_15_44_10134.jpg'}, {'photo_id': 1396542183, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/45029479ef2b88b865a6f62dac4c8cf3.jpg', 'username': None, 'uploaded_at': 1764296227, 'text': 'image_28112025_03_15_53_9126.jpg'}, {'photo_id': 1396542179, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/efa0c14d87b301bae93ba38013f3f3b9.jpg', 'username': None, 'uploaded_at': 1764296227, 'text': 'image_28112025_03_16_03_010153m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002361297607421875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28981438, '2025-11-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-28' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2658013,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.23970627784729004 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= 2658013 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665627, 'mtr_portfolio_id': 28975051, 'dashboard_result_id': 17829204, '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_P28975051_28-11-2025_00_25_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665627, 'mtr_portfolio_id': 28975640, 'dashboard_result_id': 17829205, '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_P28975640_28-11-2025_02_01_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665627, 'mtr_portfolio_id': 28976061, 'dashboard_result_id': 17829206, '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_P28976061_28-11-2025_00_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665627, 'mtr_portfolio_id': 28976505, 'dashboard_result_id': 17829207, '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_P28976505_28-11-2025_01_07_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665627, 'mtr_portfolio_id': 28978093, 'dashboard_result_id': 17829208, '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_P28978093_28-11-2025_01_47_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665627, 'mtr_portfolio_id': 28978470, 'dashboard_result_id': 17829209, '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_P28978470_28-11-2025_02_03_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665627, 'mtr_portfolio_id': 28978907, 'dashboard_result_id': 17829210, '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_P28978907_28-11-2025_02_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665627, 'mtr_portfolio_id': 28979483, 'dashboard_result_id': 17829211, '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_P28979483_28-11-2025_02_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665627, 'mtr_portfolio_id': 28979969, 'dashboard_result_id': 17829212, '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_P28979969_28-11-2025_02_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665627, 'mtr_portfolio_id': 28980449, 'dashboard_result_id': 17829213, '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_P28980449_28-11-2025_03_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28980500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980510, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665627, 'mtr_portfolio_id': 28980831, 'dashboard_result_id': 17829214, '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_P28980831_28-11-2025_03_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28980835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980846, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665627, 'mtr_portfolio_id': 28981438, 'dashboard_result_id': 17829215, '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_P28981438_28-11-2025_03_23_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28981464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28981465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28981466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28981467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28981468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28981469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28981470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28981471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28981472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28981473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28981474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28981475, '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 = 28975051 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': 4131633, 'mtr_portfolio_id': 28975051, 'created_at': datetime.datetime(2025, 11, 28, 0, 25, 4), 'result': '0.041448810976491474', 'result_long': None, 'result_double': None}] Qualite : 0.041448810976491474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28975051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_00_25_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28975051 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_P28975051_28-11-2025_00_25_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, 'pht': 3726}}" where mtr_portfolio_id = 28975051 and dashboard_run_id = 2665627 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`=28975051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17829204, 0.041448810976491474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_00_25_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, '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 = 28975640 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': 4131681, 'mtr_portfolio_id': 28975640, 'created_at': datetime.datetime(2025, 11, 28, 2, 1, 5), 'result': '0.028260757334550402', 'result_long': None, 'result_double': None}] Qualite : 0.028260757334550402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28975640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_02_01_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28975640 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_P28975640_28-11-2025_02_01_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, 'pht': 3726}}" where mtr_portfolio_id = 28975640 and dashboard_run_id = 2665627 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`=28975640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17829205, 0.028260757334550402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_02_01_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, '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 = 28976061 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': 4131718, 'mtr_portfolio_id': 28976061, 'created_at': datetime.datetime(2025, 11, 28, 0, 47), 'result': '0.042472336458363125', 'result_long': None, 'result_double': None}] Qualite : 0.042472336458363125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28976061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_00_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28976061 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_P28976061_28-11-2025_00_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, 'pht': 3726}}" where mtr_portfolio_id = 28976061 and dashboard_run_id = 2665627 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`=28976061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17829206, 0.042472336458363125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_00_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, '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 = 28976505 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': 4131750, 'mtr_portfolio_id': 28976505, 'created_at': datetime.datetime(2025, 11, 28, 1, 6, 59), 'result': '0.06412778247717851', 'result_long': None, 'result_double': None}] Qualite : 0.06412778247717851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28976505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976505_28-11-2025_01_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28976505 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_P28976505_28-11-2025_01_07_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, 'pht': 3726}}" where mtr_portfolio_id = 28976505 and dashboard_run_id = 2665627 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`=28976505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17829207, 0.06412778247717851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976505_28-11-2025_01_07_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, '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 = 28978093 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': 4131962, 'mtr_portfolio_id': 28978093, 'created_at': datetime.datetime(2025, 11, 28, 1, 47, 2), 'result': '0.04418266088507693', 'result_long': None, 'result_double': None}] Qualite : 0.04418266088507693 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978093_28-11-2025_01_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978093 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_P28978093_28-11-2025_01_47_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, 'pht': 3726}}" where mtr_portfolio_id = 28978093 and dashboard_run_id = 2665627 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`=28978093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17829208, 0.04418266088507693, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978093_28-11-2025_01_47_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, '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 = 28978470 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': 4132016, 'mtr_portfolio_id': 28978470, 'created_at': datetime.datetime(2025, 11, 28, 2, 3, 8), 'result': '0.035581685613606896', 'result_long': None, 'result_double': None}] Qualite : 0.035581685613606896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978470_28-11-2025_02_03_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978470 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_P28978470_28-11-2025_02_03_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, 'pht': 3726}}" where mtr_portfolio_id = 28978470 and dashboard_run_id = 2665627 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`=28978470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17829209, 0.035581685613606896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978470_28-11-2025_02_03_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, '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 = 28978907 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': 4132106, 'mtr_portfolio_id': 28978907, 'created_at': datetime.datetime(2025, 11, 28, 2, 19), 'result': '0.047752980846563486', 'result_long': None, 'result_double': None}] Qualite : 0.047752980846563486 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978907_28-11-2025_02_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978907 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_P28978907_28-11-2025_02_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, 'pht': 3726}}" where mtr_portfolio_id = 28978907 and dashboard_run_id = 2665627 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`=28978907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17829210, 0.047752980846563486, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978907_28-11-2025_02_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, '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 = 28979483 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': 4132195, 'mtr_portfolio_id': 28979483, 'created_at': datetime.datetime(2025, 11, 28, 2, 32, 58), 'result': '0.047112039521059176', 'result_long': None, 'result_double': None}] Qualite : 0.047112039521059176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28979483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979483_28-11-2025_02_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28979483 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_P28979483_28-11-2025_02_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, 'pht': 3726}}" where mtr_portfolio_id = 28979483 and dashboard_run_id = 2665627 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`=28979483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17829211, 0.047112039521059176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979483_28-11-2025_02_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, '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 = 28979969 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': 4132258, 'mtr_portfolio_id': 28979969, 'created_at': datetime.datetime(2025, 11, 28, 2, 46, 59), 'result': '0.03658949896084557', 'result_long': None, 'result_double': None}] Qualite : 0.03658949896084557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28979969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_02_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28979969 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_P28979969_28-11-2025_02_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, 'pht': 3726}}" where mtr_portfolio_id = 28979969 and dashboard_run_id = 2665627 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`=28979969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17829212, 0.03658949896084557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_02_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, '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 = 28980449 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': 4132350, 'mtr_portfolio_id': 28980449, 'created_at': datetime.datetime(2025, 11, 28, 3, 2, 58), 'result': '0.0492855798734685', 'result_long': None, 'result_double': None}] Qualite : 0.0492855798734685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28980449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980449_28-11-2025_03_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28980449 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_P28980449_28-11-2025_03_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28980500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980510, 'pht': 3726}}" where mtr_portfolio_id = 28980449 and dashboard_run_id = 2665627 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`=28980449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17829213, 0.0492855798734685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980449_28-11-2025_03_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28980500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980510, '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 = 28980831 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': 4132418, 'mtr_portfolio_id': 28980831, 'created_at': datetime.datetime(2025, 11, 28, 3, 17), 'result': '0.05675350189756771', 'result_long': None, 'result_double': None}] Qualite : 0.05675350189756771 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28980831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980831_28-11-2025_03_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28980831 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_P28980831_28-11-2025_03_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28980835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980846, 'pht': 3726}}" where mtr_portfolio_id = 28980831 and dashboard_run_id = 2665627 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`=28980831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17829214, 0.05675350189756771, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980831_28-11-2025_03_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28980835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980846, '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 = 28981438 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': 4132510, 'mtr_portfolio_id': 28981438, 'created_at': datetime.datetime(2025, 11, 28, 3, 26, 58), 'result': '0.04791296693479862', 'result_long': None, 'result_double': None}] Qualite : 0.04791296693479862 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28981438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28981438_28-11-2025_03_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28981438 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_P28981438_28-11-2025_03_26_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28981464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28981465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28981466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28981467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28981468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28981469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28981470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28981471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28981472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28981473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28981474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28981475, 'pht': 3726}}" where mtr_portfolio_id = 28981438 and dashboard_run_id = 2665625 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`=28981438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17829215, 0.04791296693479862, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28981438_28-11-2025_03_26_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28981464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28981465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28981466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28981467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28981468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28981469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28981470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28981471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28981472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28981473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28981474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28981475, '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 (28975051,28975640,28976061,28976505,28978093,28978470,28978907,28979483,28979969,28980449,28980831,28981438) result : ((1396500799,), (1396500876,), (1396500951,), (1396501028,), (1396501825,), (1396501895,), (1396501965,), (1396502025,), (1396502595,), (1396502695,), (1396502783,), (1396502874,), (1396503635,), (1396503685,), (1396504251,), (1396504299,), (1396506218,), (1396506261,), (1396506283,), (1396506995,), (1396506650,), (1396506943,), (1396506969,), (1396507382,), (1396507407,), (1396507434,), (1396507465,), (1396507752,), (1396507766,), (1396507771,), (1396507776,), (1396507780,), (1396507960,), (1396508009,), (1396508055,), (1396508106,), (1396508153,), (1396508624,), (1396508674,), (1396508721,), (1396508781,), (1396509060,), (1396509552,), (1396509595,), (1396509654,), (1396509708,), (1396509755,), (1396509793,), (1396509870,), (1396509895,), (1396509907,), (1396509911,), (1396509950,), (1396509953,), (1396509956,), (1396509959,), (1396509962,), (1396509972,), (1396510041,), (1396510048,), (1396510052,), (1396510212,), (1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,), (1396512851,), (1396512854,), (1396512857,), (1396512860,), (1396512878,), (1396512881,), (1396512883,), (1396512886,), (1396512892,), (1396512897,), (1396512925,), (1396512918,), (1396512921,), (1396512923,), (1396512947,), (1396512972,), (1396512995,), (1396513030,), (1396513055,), (1396513082,), (1396513467,), (1396513539,), (1396513616,), (1396513678,), (1396514499,), (1396514526,), (1396514557,), (1396514588,), (1396514614,), (1396514620,), (1396514629,), (1396514657,), (1396514703,), (1396514746,), (1396514898,), (1396514950,), (1396515016,), (1396515077,), (1396515689,), (1396515767,), (1396515833,), (1396515878,), (1396515921,), (1396515946,), (1396516109,), (1396516158,), (1396516214,), (1396516300,), (1396516469,), (1396516473,), (1396516475,), (1396516476,), (1396516477,), (1396516501,), (1396516508,), (1396516509,), (1396516511,), (1396516528,), (1396516536,), (1396516540,), (1396516543,), (1396516547,), (1396516564,), (1396516567,), (1396516571,), (1396516575,), (1396516577,), (1396516590,), (1396516637,), (1396516681,), (1396517150,), (1396517204,), (1396517247,), (1396517288,), (1396517460,), (1396518172,), (1396518210,), (1396518212,), (1396518244,), (1396518264,), (1396518268,), (1396518391,), (1396518425,), (1396518434,), (1396518458,), (1396518489,), (1396518603,), (1396518668,), (1396518701,), (1396519242,), (1396528127,), (1396528128,), (1396528141,), (1396528145,), (1396528148,), (1396528151,), (1396528165,), (1396528169,), (1396528172,), (1396528175,), (1396528234,), (1396528237,), (1396528239,), (1396528243,), (1396528247,), (1396528251,), (1396528417,), (1396528447,), (1396528473,), (1396528621,), (1396528624,), (1396528628,), (1396528631,), (1396528633,), (1396528635,), (1396528649,), (1396528652,), (1396528654,), (1396528656,), (1396528657,), (1396528699,), (1396528705,), (1396528713,), (1396528714,), (1396528857,), (1396528888,), (1396528923,), (1396528951,), (1396528976,), (1396529152,), (1396529180,), (1396529208,), (1396529235,), (1396529254,), (1396529282,), (1396529396,), (1396529399,), (1396529409,), (1396529414,), (1396529419,), (1396529479,), (1396529480,), (1396529482,), (1396529535,), (1396529537,), (1396529539,), (1396529541,), (1396529545,), (1396529562,), (1396529564,), (1396529566,), (1396529568,), (1396529586,), (1396529588,), (1396529592,), (1396529596,), (1396529599,), (1396529603,), (1396529627,), (1396529618,), (1396529621,), (1396529624,), (1396529652,), (1396529656,), (1396529659,), (1396529662,), (1396529676,), (1396529679,), (1396529682,), (1396529686,), (1396529690,), (1396529694,), (1396529717,), (1396529721,), (1396529724,), (1396529726,), (1396529730,), (1396529751,), (1396529761,), (1396529770,), (1396529778,), (1396529801,), (1396529805,), (1396529809,), (1396529812,), (1396529815,), (1396529820,), (1396529844,), (1396529846,), (1396529848,), (1396529883,), (1396529886,), (1396529890,), (1396529895,), (1396529899,), (1396529902,), (1396529929,), (1396529945,), (1396529981,), (1396530011,), (1396530045,), (1396530077,), (1396530285,), (1396530287,), (1396530290,), (1396530294,), (1396530320,), (1396530322,), (1396530323,), (1396530324,), (1396530327,), (1396530330,), (1396530347,), (1396530350,), (1396530353,), (1396530388,), (1396530390,), (1396530392,), (1396530394,), (1396530396,), (1396530399,), (1396530705,), (1396530708,), (1396530711,), (1396530765,), (1396530760,), (1396530763,), (1396530796,), (1396530799,), (1396530802,), (1396530806,), (1396530810,), (1396530813,), (1396530829,), (1396530832,), (1396530835,), (1396530837,), (1396530839,), (1396530878,), (1396530880,), (1396530882,), (1396530885,), (1396530888,), (1396530892,), (1396530909,), (1396530912,), (1396530915,), (1396530918,), (1396531076,), (1396531106,), (1396531108,), (1396531110,), (1396531111,), (1396531128,), (1396531472,), (1396531504,), (1396531551,), (1396531612,), (1396531786,), (1396532382,), (1396532442,), (1396532502,), (1396532563,), (1396532628,), (1396532718,), (1396533069,), (1396533073,), (1396533077,), (1396533090,), (1396533125,), (1396533383,), (1396533385,), (1396533387,), (1396533413,), (1396533449,), (1396533494,), (1396534153,), (1396534222,), (1396534290,), (1396534357,), (1396534797,), (1396534800,), (1396534807,), (1396534840,), (1396534856,), (1396535151,), (1396535183,), (1396535215,), (1396535220,), (1396535222,), (1396535531,), (1396535567,), (1396535600,), (1396535639,), (1396535676,), (1396536024,), (1396536045,), (1396536047,), (1396536050,), (1396536054,), (1396536407,), (1396536322,), (1396536354,), (1396536388,), (1396536404,), (1396536543,), (1396536551,), (1396536584,), (1396536634,), (1396536670,), (1396537002,), (1396537129,), (1396537165,), (1396537203,), (1396537567,), (1396537595,), (1396537597,), (1396537599,), (1396537804,), (1396537819,), (1396537821,), (1396537844,), (1396537880,), (1396537883,), (1396537929,), (1396537932,), (1396537935,), (1396537938,), (1396537941,), (1396537944,), (1396537962,), (1396537964,), (1396537969,), (1396537975,), (1396538001,), (1396538004,), (1396538007,), (1396538010,), (1396538013,), (1396538015,), (1396538024,), (1396538028,), (1396538035,), (1396538196,), (1396538203,), (1396538207,), (1396538257,), (1396538287,), (1396538288,), (1396538362,), (1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,), (1396538955,), (1396538959,), (1396538961,), (1396538964,), (1396538967,), (1396538971,), (1396539020,), (1396539012,), (1396539014,), (1396539017,), (1396539054,), (1396539058,), (1396539070,), (1396539076,), (1396539096,), (1396539099,), (1396539113,), (1396539116,), (1396539119,), (1396539122,), (1396539126,), (1396539130,), (1396539148,), (1396539149,), (1396539150,), (1396539151,), (1396539195,), (1396539197,), (1396539199,), (1396539202,), (1396539206,), (1396539209,), (1396539224,), (1396539227,), (1396539271,), (1396539275,), (1396539278,), (1396539281,), (1396539284,), (1396539304,), (1396539305,), (1396539306,), (1396539308,), (1396539312,), (1396539316,), (1396539348,), (1396539358,), (1396539362,), (1396539366,), (1396539390,), (1396539391,), (1396539393,), (1396539395,), (1396539398,), (1396539401,), (1396539417,), (1396539420,), (1396539423,), (1396539461,), (1396539463,), (1396539465,), (1396539467,), (1396539472,), (1396539475,), (1396539500,), (1396539509,), (1396539517,), (1396539520,), (1396539523,), (1396539526,), (1396539667,), (1396539703,), (1396539738,), (1396539775,), (1396539929,), (1396539930,), (1396539962,), (1396539963,), (1396539995,), (1396540001,), (1396540030,), (1396540034,), (1396540393,), (1396540310,), (1396540357,), (1396541002,), (1396541059,), (1396541096,), (1396541126,), (1396541134,), (1396541440,), (1396541466,), (1396541488,), (1396541490,), (1396541510,), (1396541537,), (1396541564,), (1396541566,), (1396541568,), (1396541594,), (1396541597,), (1396541599,), (1396541601,), (1396541604,), (1396541607,), (1396541637,), (1396541640,), (1396541642,), (1396541644,), (1396541647,), (1396541668,), (1396541670,), (1396541672,), (1396541675,), (1396541678,), (1396541731,), (1396541735,), (1396541739,), (1396541743,), (1396541747,), (1396541776,), (1396541777,), (1396541911,), (1396541919,), (1396541921,), (1396541923,), (1396541926,), (1396541929,), (1396541946,), (1396541949,), (1396541952,), (1396541959,), (1396541998,), (1396542010,), (1396542017,), (1396542023,), (1396542026,), (1396542028,), (1396542047,), (1396542050,), (1396542053,), (1396542057,), (1396542061,), (1396542065,), (1396542096,), (1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28112025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28981438]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1396542509, 1396542505, 1396542501, 1396542497, 1396542495, 1396542493] map_info['map_portfolio_photo'] : {28981438: [1396542509, 1396542505, 1396542501, 1396542497, 1396542495, 1396542493, 1396542460, 1396542457, 1396542454, 1396542407, 1396542404, 1396542400, 1396542397, 1396542395, 1396542394, 1396542375, 1396542372, 1396542370, 1396542354, 1396542324, 1396542322, 1396542318, 1396542316, 1396542314, 1396542312, 1396542283, 1396542279, 1396542277, 1396542274, 1396542255, 1396542251, 1396542248, 1396542245, 1396542242, 1396542240, 1396542213, 1396542210, 1396542203, 1396542183, 1396542179, 1396542174, 1396542170, 1396542166, 1396542147, 1396542094, 1396542092]} final : True mtd_id 4302 list_pids : [1396542509, 1396542505, 1396542501, 1396542497, 1396542495, 1396542493] Looping around the photos to save general results len do output : 1 /28981438Didn'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, '4132510') ('4302', '28981438', '1396542509', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542505', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542501', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542497', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542495', None, None, None, None, None, '4132510') ('4302', None, None, None, None, None, None, None, '4132510') ('4302', '28981438', '1396542493', None, None, None, None, None, '4132510') 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, '28981438', 'None', None, None, None, None, '4132510'), ('4302', '28981438', '1396542509', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542505', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542501', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542497', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542495', None, None, None, None, None, '4132510'), ('4302', '28981438', '1396542493', None, None, None, None, None, '4132510')] time used for this insertion : 0.015587091445922852 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1460156440734863 time spend to save output : 0.01575016975402832 total time spend for step 5 : 1.1617658138275146 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 (4132510) 2.06user 2.39system 0:10.70elapsed 41%CPU (0avgtext+0avgdata 159132maxresident)k 192inputs+11624outputs (3major+64051minor)pagefaults 0swaps