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 : 3540783 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 (4201767) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4201767) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29287284 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4201767'] with mtr_portfolio_ids : ['29287284'] and first list_photo_ids : [] new path : /proc/3540783/ Name: python3 Umask: 0002 State: R (running) Tgid: 3540783 Ngid: 0 Pid: 3540783 PPid: 3540782 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3540783 NSpid: 3540783 NSpgid: 3539633 NSsid: 3539633 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105172 kB VmRSS: 105172 kB RssAnon: 66288 kB RssFile: 38884 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 612 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: 50 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3540783', 'Ngid': '0', 'Pid': '3540783', 'PPid': '3540782', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3540783', 'NSpid': '3540783', 'NSpgid': '3539633', 'NSsid': '3539633', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105172 kB', 'VmRSS': '105172 kB', 'RssAnon': '66288 kB', 'RssFile': '38884 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '612 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': '50', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '3540783', '1113364', '0', '1113364', '872092', '105172', b'', 'marlene', '4201767') 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 (29287284) 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 (4201767 ) ) 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 (29287284) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398606438, 'portfolio_id': 29287284}, {'photo_id': 1398606414, 'portfolio_id': 29287284}, {'photo_id': 1398606411, 'portfolio_id': 29287284}, {'photo_id': 1398606408, 'portfolio_id': 29287284}, {'photo_id': 1398606405, 'portfolio_id': 29287284}, {'photo_id': 1398606402, 'portfolio_id': 29287284}, {'photo_id': 1398606388, 'portfolio_id': 29287284}, {'photo_id': 1398606385, 'portfolio_id': 29287284}, {'photo_id': 1398606382, 'portfolio_id': 29287284}, {'photo_id': 1398606380, 'portfolio_id': 29287284}, {'photo_id': 1398606378, 'portfolio_id': 29287284}, {'photo_id': 1398606377, 'portfolio_id': 29287284}, {'photo_id': 1398606350, 'portfolio_id': 29287284}, {'photo_id': 1398606348, 'portfolio_id': 29287284}, {'photo_id': 1398606336, 'portfolio_id': 29287284}, {'photo_id': 1398606327, 'portfolio_id': 29287284}, {'photo_id': 1398606300, 'portfolio_id': 29287284}, {'photo_id': 1398606297, 'portfolio_id': 29287284}, {'photo_id': 1398606294, 'portfolio_id': 29287284}, {'photo_id': 1398606292, 'portfolio_id': 29287284}, {'photo_id': 1398606290, 'portfolio_id': 29287284}, {'photo_id': 1398606288, 'portfolio_id': 29287284}, {'photo_id': 1398606273, 'portfolio_id': 29287284}, {'photo_id': 1398606270, 'portfolio_id': 29287284}, {'photo_id': 1398606268, 'portfolio_id': 29287284}, {'photo_id': 1398606266, 'portfolio_id': 29287284}, {'photo_id': 1398606263, 'portfolio_id': 29287284}, {'photo_id': 1398606238, 'portfolio_id': 29287284}, {'photo_id': 1398606235, 'portfolio_id': 29287284}, {'photo_id': 1398606233, 'portfolio_id': 29287284}, {'photo_id': 1398606231, 'portfolio_id': 29287284}, {'photo_id': 1398606230, 'portfolio_id': 29287284}, {'photo_id': 1398606206, 'portfolio_id': 29287284}, {'photo_id': 1398606204, 'portfolio_id': 29287284}, {'photo_id': 1398606172, 'portfolio_id': 29287284}, {'photo_id': 1398606170, 'portfolio_id': 29287284}, {'photo_id': 1398606168, 'portfolio_id': 29287284}, {'photo_id': 1398606166, 'portfolio_id': 29287284}, {'photo_id': 1398606150, 'portfolio_id': 29287284}, {'photo_id': 1398606112, 'portfolio_id': 29287284}, {'photo_id': 1398606109, 'portfolio_id': 29287284}, {'photo_id': 1398606107, 'portfolio_id': 29287284}, {'photo_id': 1398606105, 'portfolio_id': 29287284}, {'photo_id': 1398605847, 'portfolio_id': 29287284}, {'photo_id': 1398605741, 'portfolio_id': 29287284}, {'photo_id': 1398605646, 'portfolio_id': 29287284}, {'photo_id': 1398605377, 'portfolio_id': 29287284}, {'photo_id': 1398605375, 'portfolio_id': 29287284}, {'photo_id': 1398605374, 'portfolio_id': 29287284}, {'photo_id': 1398605373, 'portfolio_id': 29287284}, {'photo_id': 1398605366, 'portfolio_id': 29287284}, {'photo_id': 1398605359, 'portfolio_id': 29287284}, {'photo_id': 1398605356, 'portfolio_id': 29287284}, {'photo_id': 1398605353, 'portfolio_id': 29287284}, {'photo_id': 1398605352, 'portfolio_id': 29287284}, {'photo_id': 1398605350, 'portfolio_id': 29287284}, {'photo_id': 1398605349, 'portfolio_id': 29287284}, {'photo_id': 1398605347, 'portfolio_id': 29287284}, {'photo_id': 1398605344, 'portfolio_id': 29287284}, {'photo_id': 1398605341, 'portfolio_id': 29287284}, {'photo_id': 1398605339, 'portfolio_id': 29287284}, {'photo_id': 1398605322, 'portfolio_id': 29287284}, {'photo_id': 1398605314, 'portfolio_id': 29287284}, {'photo_id': 1398605311, 'portfolio_id': 29287284}, {'photo_id': 1398605309, 'portfolio_id': 29287284}, {'photo_id': 1398605307, 'portfolio_id': 29287284}, {'photo_id': 1398605301, 'portfolio_id': 29287284}, {'photo_id': 1398605271, 'portfolio_id': 29287284}, {'photo_id': 1398605269, 'portfolio_id': 29287284}, {'photo_id': 1398605267, 'portfolio_id': 29287284}, {'photo_id': 1398605265, 'portfolio_id': 29287284}] map_portfolio_id_photo_id: {29287284: [1398606438, 1398606414, 1398606411, 1398606408, 1398606405, 1398606402, 1398606388, 1398606385, 1398606382, 1398606380, 1398606378, 1398606377, 1398606350, 1398606348, 1398606336, 1398606327, 1398606300, 1398606297, 1398606294, 1398606292, 1398606290, 1398606288, 1398606273, 1398606270, 1398606268, 1398606266, 1398606263, 1398606238, 1398606235, 1398606233, 1398606231, 1398606230, 1398606206, 1398606204, 1398606172, 1398606170, 1398606168, 1398606166, 1398606150, 1398606112, 1398606109, 1398606107, 1398606105, 1398605847, 1398605741, 1398605646, 1398605377, 1398605375, 1398605374, 1398605373, 1398605366, 1398605359, 1398605356, 1398605353, 1398605352, 1398605350, 1398605349, 1398605347, 1398605344, 1398605341, 1398605339, 1398605322, 1398605314, 1398605311, 1398605309, 1398605307, 1398605301, 1398605271, 1398605269, 1398605267, 1398605265]} ##### 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.01906418800354004 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Dec 10 06:32: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 (29287284) 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 : 29287284 get user id for portfolio 29287284 get sub ptf for main ptf 29287284, type 3726 and hashtags ['cartonnette', 'autre_refus', 'metal', 'Teint_Dans_La_Masse', 'papier', 'environnement', 'Carton_gris', 'kraft', 'Carton_brun', 'flou', 'mal_croppe', 'plastique'] 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`=29287284 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','metal','Teint_Dans_La_Masse','papier','environnement','Carton_gris','kraft','Carton_brun','flou','mal_croppe','plastique')) 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`=29287284 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','metal','Teint_Dans_La_Masse','papier','environnement','Carton_gris','kraft','Carton_brun','flou','mal_croppe','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 29287284, 'sub_port_id': 29287289, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931528, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 18, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 29287284, 'sub_port_id': 29287290, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931529, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 18, 58)}, 'mal_croppe': {'main_port_id': 29287284, 'sub_port_id': 29287291, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931530, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 18, 58)}, 'Carton_brun': {'main_port_id': 29287284, 'sub_port_id': 29287292, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931531, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 18, 58)}, 'metal': {'main_port_id': 29287284, 'sub_port_id': 29287293, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931532, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 18, 58)}, 'autre_refus': {'main_port_id': 29287284, 'sub_port_id': 29287294, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931533, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 18, 58)}, 'cartonnette': {'main_port_id': 29287284, 'sub_port_id': 29287295, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931534, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 18, 58)}, 'kraft': {'main_port_id': 29287284, 'sub_port_id': 29287296, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931535, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 18, 58)}, 'papier': {'main_port_id': 29287284, 'sub_port_id': 29287297, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931536, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 18, 58)}, 'plastique': {'main_port_id': 29287284, 'sub_port_id': 29287298, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931537, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 18, 58)}, 'Carton_gris': {'main_port_id': 29287284, 'sub_port_id': 29287299, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931538, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 18, 58)}, 'flou': {'main_port_id': 29287284, 'sub_port_id': 29287300, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931539, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 18, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29287289 , 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=29287284 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 (29287289) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29287284) result : ((1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,)) 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 (1398606300) 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 29287290 , 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=29287284 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 (29287290) result : ((1398606095,), (1398606120,), (1398606219,), (1398606220,), (1398606221,), (1398606223,), (1398606245,), (1398606246,), (1398606247,), (1398606253,), (1398606303,), (1398606304,), (1398606305,), (1398606322,), (1398606323,), (1398606439,), (1398606456,), (1398606457,), (1398606458,), (1398606459,), (1398606460,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29287284) result : ((1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,)) 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 (1398606300) 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 29287291 , 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=29287284 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 (29287291) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29287284) result : ((1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,)) 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 (1398606300) 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 29287292 , 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=29287284 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 (29287292) result : ((1398606258,), (1398606311,), (1398606373,), (1398606443,), (1398606469,), (1398606470,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29287284) result : ((1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,)) 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 (1398606300) 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 29287293 , 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=29287284 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 (29287293) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29287284) result : ((1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,)) 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 (1398606300) 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 29287294 , 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=29287284 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 (29287294) result : ((1398606096,), (1398606121,), (1398606122,), (1398606225,), (1398606254,), (1398606324,), (1398606326,), (1398606368,), (1398606369,), (1398606370,), (1398606440,), (1398606463,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29287284) result : ((1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,)) 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 (1398606300) 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 29287295 , 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=29287284 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 (29287295) result : ((1398606127,), (1398606128,), (1398606129,), (1398606130,), (1398606131,), (1398606227,), (1398606248,), (1398606256,), (1398606307,), (1398606308,), (1398606309,), (1398606334,), (1398606335,), (1398606337,), (1398606338,), (1398606339,), (1398606340,), (1398606341,), (1398606371,), (1398606397,), (1398606398,), (1398606466,), (1398606467,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29287284) result : ((1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,)) 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 (1398606300) 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 29287296 , 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=29287284 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 (29287296) result : ((1398606103,), (1398606262,), (1398606447,), (1398606472,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29287284) result : ((1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,)) 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 (1398606300) 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 29287297 , 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=29287284 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 (29287297) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29287284) result : ((1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,)) 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 (1398606300) 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 29287298 , 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=29287284 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 (29287298) result : ((1398606132,), (1398606133,), (1398606134,), (1398606135,), (1398606259,), (1398606261,), (1398606312,), (1398606343,), (1398606344,), (1398606345,), (1398606346,), (1398606347,), (1398606374,), (1398606375,), (1398606420,), (1398606421,), (1398606446,), (1398606471,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29287284) result : ((1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,)) 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 (1398606300) 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 29287299 , 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=29287284 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 (29287299) result : ((1398606100,), (1398606102,), (1398606123,), (1398606124,), (1398606126,), (1398606226,), (1398606255,), (1398606306,), (1398606328,), (1398606329,), (1398606330,), (1398606331,), (1398606332,), (1398606419,), (1398606441,), (1398606442,), (1398606464,), (1398606465,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29287284) result : ((1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,)) 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 (1398606300) 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 29287300 , 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=29287284 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 (29287300) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29287284) result : ((1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,)) 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 (1398606300) 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`=29287284 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','metal','Teint_Dans_La_Masse','papier','environnement','Carton_gris','kraft','Carton_brun','flou','mal_croppe','plastique')) 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`=29287284 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','metal','Teint_Dans_La_Masse','papier','environnement','Carton_gris','kraft','Carton_brun','flou','mal_croppe','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 29287284, 'sub_port_id': 29287301, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931540, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 19)}, 'Teint_Dans_La_Masse': {'main_port_id': 29287284, 'sub_port_id': 29287302, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931541, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 19)}, 'mal_croppe': {'main_port_id': 29287284, 'sub_port_id': 29287303, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931542, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 19)}, 'Carton_brun': {'main_port_id': 29287284, 'sub_port_id': 29287304, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931543, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 19)}, 'metal': {'main_port_id': 29287284, 'sub_port_id': 29287305, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931544, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 19)}, 'autre_refus': {'main_port_id': 29287284, 'sub_port_id': 29287306, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931545, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 19)}, 'cartonnette': {'main_port_id': 29287284, 'sub_port_id': 29287307, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931546, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 19)}, 'kraft': {'main_port_id': 29287284, 'sub_port_id': 29287308, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931547, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 19)}, 'papier': {'main_port_id': 29287284, 'sub_port_id': 29287309, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931548, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 19)}, 'plastique': {'main_port_id': 29287284, 'sub_port_id': 29287310, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931549, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 19)}, 'Carton_gris': {'main_port_id': 29287284, 'sub_port_id': 29287311, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931550, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 19)}, 'flou': {'main_port_id': 29287284, 'sub_port_id': 29287312, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19931551, 'last_updated_at': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 6, 30, 38), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 6, 19)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29287301,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29287289 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29287302,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29287290 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29287303,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29287291 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29287304,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29287292 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29287305,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29287293 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29287306,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29287294 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29287307,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29287295 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29287308,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29287296 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29287309,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29287297 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29287310,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29287298 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29287311,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29287299 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29287312,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29287300 lien utilise dans velours : https://marlene.fotonower.com/velours/29287301,29287302,29287303,29287304,29287305,29287306,29287307,29287308,29287309,29287310,29287311,29287312?tags=environnement,Teint_Dans_La_Masse,mal_croppe,Carton_brun,metal,autre_refus,cartonnette,kraft,papier,plastique,Carton_gris,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29287284]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398606438, 1398606414, 1398606411, 1398606408, 1398606405, 1398606402] map_info['map_portfolio_photo'] : {29287284: [1398606438, 1398606414, 1398606411, 1398606408, 1398606405, 1398606402, 1398606388, 1398606385, 1398606382, 1398606380, 1398606378, 1398606377, 1398606350, 1398606348, 1398606336, 1398606327, 1398606300, 1398606297, 1398606294, 1398606292, 1398606290, 1398606288, 1398606273, 1398606270, 1398606268, 1398606266, 1398606263, 1398606238, 1398606235, 1398606233, 1398606231, 1398606230, 1398606206, 1398606204, 1398606172, 1398606170, 1398606168, 1398606166, 1398606150, 1398606112, 1398606109, 1398606107, 1398606105, 1398605847, 1398605741, 1398605646, 1398605377, 1398605375, 1398605374, 1398605373, 1398605366, 1398605359, 1398605356, 1398605353, 1398605352, 1398605350, 1398605349, 1398605347, 1398605344, 1398605341, 1398605339, 1398605322, 1398605314, 1398605311, 1398605309, 1398605307, 1398605301, 1398605271, 1398605269, 1398605267, 1398605265]} final : False mtd_id 4302 list_pids : [1398606438, 1398606414, 1398606411, 1398606408, 1398606405, 1398606402] Looping around the photos to save general results len do output : 1 /29287284. 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, '4201767') ('4302', '29287284', '1398606438', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606414', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606411', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606408', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606405', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606402', None, None, None, None, None, '4201767') 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, '29287284', "{'environnement': 29287289, 'Teint_Dans_La_Masse': 29287290, 'mal_croppe': 29287291, 'Carton_brun': 29287292, 'metal': 29287293, 'autre_refus': 29287294, 'cartonnette': 29287295, 'kraft': 29287296, 'papier': 29287297, 'plastique': 29287298, 'Carton_gris': 29287299, 'flou': 29287300}", None, None, None, None, '4201767'), ('4302', '29287284', '1398606438', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606414', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606411', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606408', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606405', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606402', None, None, None, None, None, '4201767')] time used for this insertion : 0.0156862735748291 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5893368721008301 time spend to save output : 0.015929222106933594 total time spend for step 1 : 0.6052660942077637 step2:final Wed Dec 10 06:32: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 (29287284) 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 29287284 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398605271,1398605269,1398605267,1398605265,1398605359,1398605322,1398605314,1398605356,1398605311,1398605353,1398605309,1398605352,1398605307,1398605350,1398605301,1398605349,1398605347,1398605344,1398605341,1398605339,1398605377,1398605375,1398605374,1398605373,1398605366,1398605847,1398605741,1398605646,1398606112,1398606109,1398606107,1398606105,1398606150,1398606172,1398606170,1398606168,1398606166,1398606206,1398606204,1398606238,1398606235,1398606233,1398606231,1398606230,1398606273,1398606270,1398606268,1398606266,1398606263,1398606300,1398606297,1398606294,1398606292,1398606290,1398606288,1398606350,1398606348,1398606336,1398606327,1398606388,1398606385,1398606382,1398606380,1398606378,1398606377,1398606414,1398606411,1398606408,1398606405,1398606402,1398606438); 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([29287284]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ('0.04863824767530533',), 1398606408: ('0.04863824767530533',), 1398606405: ('0.04863824767530533',), 1398606402: ('0.04863824767530533',)} new output for save of step final : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ('0.04863824767530533',), 1398606408: ('0.04863824767530533',), 1398606405: ('0.04863824767530533',), 1398606402: ('0.04863824767530533',)} [1398606438, 1398606414, 1398606411, 1398606408, 1398606405, 1398606402] map_info['map_portfolio_photo'] : {29287284: [1398606438, 1398606414, 1398606411, 1398606408, 1398606405, 1398606402, 1398606388, 1398606385, 1398606382, 1398606380, 1398606378, 1398606377, 1398606350, 1398606348, 1398606336, 1398606327, 1398606300, 1398606297, 1398606294, 1398606292, 1398606290, 1398606288, 1398606273, 1398606270, 1398606268, 1398606266, 1398606263, 1398606238, 1398606235, 1398606233, 1398606231, 1398606230, 1398606206, 1398606204, 1398606172, 1398606170, 1398606168, 1398606166, 1398606150, 1398606112, 1398606109, 1398606107, 1398606105, 1398605847, 1398605741, 1398605646, 1398605377, 1398605375, 1398605374, 1398605373, 1398605366, 1398605359, 1398605356, 1398605353, 1398605352, 1398605350, 1398605349, 1398605347, 1398605344, 1398605341, 1398605339, 1398605322, 1398605314, 1398605311, 1398605309, 1398605307, 1398605301, 1398605271, 1398605269, 1398605267, 1398605265]} final : False mtd_id 4302 list_pids : [1398606438, 1398606414, 1398606411, 1398606408, 1398606405, 1398606402] Looping around the photos to save general results len do output : 6 /1398606438.Didn't retrieve data . /1398606414.Didn't retrieve data . /1398606411.Didn't retrieve data . /1398606408.Didn't retrieve data . /1398606405.Didn't retrieve data . /1398606402.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, '4201767') ('4302', '29287284', '1398606438', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606414', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606411', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606408', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606405', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606402', None, None, None, None, None, '4201767') 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', '29287284', '1398606438', '0.04863824767530533', None, None, None, None, '4201767'), ('4302', '29287284', '1398606414', '0.04863824767530533', None, None, None, None, '4201767'), ('4302', '29287284', '1398606411', '0.04863824767530533', None, None, None, None, '4201767'), ('4302', '29287284', '1398606408', '0.04863824767530533', None, None, None, None, '4201767'), ('4302', '29287284', '1398606405', '0.04863824767530533', None, None, None, None, '4201767'), ('4302', '29287284', '1398606402', '0.04863824767530533', None, None, None, None, '4201767')] time used for this insertion : 0.015592098236083984 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08803057670593262 time spend to save output : 0.015929222106933594 total time spend for step 2 : 0.10395979881286621 step3:velours_tree Wed Dec 10 06:32: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 : {29287284: [{'environnement': 29287289, 'Teint_Dans_La_Masse': 29287290, 'mal_croppe': 29287291, 'Carton_brun': 29287292, 'metal': 29287293, 'autre_refus': 29287294, 'cartonnette': 29287295, 'kraft': 29287296, 'papier': 29287297, 'plastique': 29287298, 'Carton_gris': 29287299, 'flou': 29287300}]} input_args_next_step : {29287284: ()} output_args : {29287284: [{'environnement': 29287289, 'Teint_Dans_La_Masse': 29287290, 'mal_croppe': 29287291, 'Carton_brun': 29287292, 'metal': 29287293, 'autre_refus': 29287294, 'cartonnette': 29287295, 'kraft': 29287296, 'papier': 29287297, 'plastique': 29287298, 'Carton_gris': 29287299, 'flou': 29287300}]} args : 29287284 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 : ({'environnement': 29287289, 'Teint_Dans_La_Masse': 29287290, 'mal_croppe': 29287291, 'Carton_brun': 29287292, 'metal': 29287293, 'autre_refus': 29287294, 'cartonnette': 29287295, 'kraft': 29287296, 'papier': 29287297, 'plastique': 29287298, 'Carton_gris': 29287299, 'flou': 29287300},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29287284) 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([29287284]) 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.24879908561706543 time spend to save output : 7.104873657226562e-05 total time spend for step 3 : 0.2488701343536377 step4:send_mail_cod Wed Dec 10 06:32: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 : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ('0.04863824767530533',), 1398606408: ('0.04863824767530533',), 1398606405: ('0.04863824767530533',), 1398606402: ('0.04863824767530533',)} input_args_next_step : {1398606438: ()} output_args : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ('0.04863824767530533',), 1398606408: ('0.04863824767530533',), 1398606405: ('0.04863824767530533',), 1398606402: ('0.04863824767530533',)} args : 1398606438 depend.output_id : 0 input_args_next_step : {1398606438: ('0.04863824767530533',), 1398606414: ()} output_args : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ('0.04863824767530533',), 1398606408: ('0.04863824767530533',), 1398606405: ('0.04863824767530533',), 1398606402: ('0.04863824767530533',)} args : 1398606414 depend.output_id : 0 input_args_next_step : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ()} output_args : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ('0.04863824767530533',), 1398606408: ('0.04863824767530533',), 1398606405: ('0.04863824767530533',), 1398606402: ('0.04863824767530533',)} args : 1398606411 depend.output_id : 0 input_args_next_step : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ('0.04863824767530533',), 1398606408: ()} output_args : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ('0.04863824767530533',), 1398606408: ('0.04863824767530533',), 1398606405: ('0.04863824767530533',), 1398606402: ('0.04863824767530533',)} args : 1398606408 depend.output_id : 0 input_args_next_step : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ('0.04863824767530533',), 1398606408: ('0.04863824767530533',), 1398606405: ()} output_args : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ('0.04863824767530533',), 1398606408: ('0.04863824767530533',), 1398606405: ('0.04863824767530533',), 1398606402: ('0.04863824767530533',)} args : 1398606405 depend.output_id : 0 input_args_next_step : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ('0.04863824767530533',), 1398606408: ('0.04863824767530533',), 1398606405: ('0.04863824767530533',), 1398606402: ()} output_args : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ('0.04863824767530533',), 1398606408: ('0.04863824767530533',), 1398606405: ('0.04863824767530533',), 1398606402: ('0.04863824767530533',)} args : 1398606402 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 : {29287284: [{'environnement': 29287289, 'Teint_Dans_La_Masse': 29287290, 'mal_croppe': 29287291, 'Carton_brun': 29287292, 'metal': 29287293, 'autre_refus': 29287294, 'cartonnette': 29287295, 'kraft': 29287296, 'papier': 29287297, 'plastique': 29287298, 'Carton_gris': 29287299, 'flou': 29287300}]} input_args_next_step : {1398606438: ('0.04863824767530533',), 1398606414: ('0.04863824767530533',), 1398606411: ('0.04863824767530533',), 1398606408: ('0.04863824767530533',), 1398606405: ('0.04863824767530533',), 1398606402: ('0.04863824767530533',), 29287284: ()} output_args : {29287284: [{'environnement': 29287289, 'Teint_Dans_La_Masse': 29287290, 'mal_croppe': 29287291, 'Carton_brun': 29287292, 'metal': 29287293, 'autre_refus': 29287294, 'cartonnette': 29287295, 'kraft': 29287296, 'papier': 29287297, 'plastique': 29287298, 'Carton_gris': 29287299, 'flou': 29287300}]} args : 29287284 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.04863824767530533',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29287284) 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 (1398606438,1398606414,1398606411,1398606408,1398606405,1398606402) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398606402 begin to download photo : 1398606408 begin to download photo : 1398606414 download finish for photo 1398606402 begin to download photo : 1398606405 download finish for photo 1398606414 begin to download photo : 1398606438 download finish for photo 1398606408 begin to download photo : 1398606411 download finish for photo 1398606405 download finish for photo 1398606438 download finish for photo 1398606411 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette292872911765344779/ imagette292872931765344779/ length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P29287284_10-12-2025_06_32_59.pdf 29287291 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=29287291 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292872911765344779 29287293 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=29287293 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292872931765344779 29287294 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=29287294 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398606096: '1765344025_1250509_1398605322_06fde5c45a699f8b6d8fdb86fcdc86bf_rle_crop_4064069744_0.png', 1398606121: '1765344066_1252585_1398605311_593129d02281f214f289308c9f9df34a_rle_crop_4064069967_0.png', 1398606122: '1765344066_1252585_1398605309_b5f271d5ac5b7ca2cd014605a63a4128_rle_crop_4064069987_0.png', 1398606225: '1765344266_1266789_1398605741_efb518557a389eaa08d44e01c2c1f13c_rle_crop_4064070699_0.png', 1398606254: '1765344326_1269449_1398605373_1d42f25da8f72231765743939da5f8ad_rle_crop_4064071112_0.png', 1398606324: '1765344446_1276299_1398605353_28367e13177c78005316ed324866c722_rle_crop_4064071478_0.png', 1398606326: '1765344446_1276299_1398605352_967d3041f85bd819c9aa4acfe5cec75d_rle_crop_4064071498_0.png', 1398606368: '1765344507_1279382_1398606231_d3e44da491c58b4a4137ee5da7f77548_rle_crop_4064071694_0.png', 1398606369: '1765344507_1279382_1398606231_d3e44da491c58b4a4137ee5da7f77548_rle_crop_4064071699_0.png', 1398606370: '1765344507_1279382_1398606230_2341a0051273a25926c226cc44035732_rle_crop_4064071713_0.png', 1398606440: '1765344667_1289875_1398606300_10ad6bfc88b0bf5809f00883ce955b70_rle_crop_4064072049_0.png', 1398606463: '1765344688_1293173_1398606290_4eaab713628b1205a775d50814148bb5_rle_crop_4064072336_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/edda63408cd5f7fc1c4a2e27d7d8ce8a_13487450.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9bdaefb85afbbbd97400216c76c99529_71857037.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fd0ea0b5fd5fa12b0fa642c7526653f1_74102487.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e47d4043d18ce6e7e4a12807ad79d6ae_59770293.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/d8db36e671639c12b168565dbaf8f4cc_22274267.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9bdaefb85afbbbd97400216c76c99529_71775502.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fd0ea0b5fd5fa12b0fa642c7526653f1_46055173.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/881a901127b344afb7c2de95cebe1904_58249702.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9e38a9eaa50b37782f322d036cab0515_47166237.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/be0b6c8c8d8091146bbaf1bb89c528fe_95120143.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c48652132b522bdc2b36f8d90339fb68_26943558.png change filename to text .imagette292872941765344779/ imagette292872941765344779/1765344025_1250509_1398605322_06fde5c45a699f8b6d8fdb86fcdc86bf_rle_crop_4064069744_0.png.png imagette292872941765344779/1765344266_1266789_1398605741_efb518557a389eaa08d44e01c2c1f13c_rle_crop_4064070699_0.png.png imagette292872941765344779/1765344326_1269449_1398605373_1d42f25da8f72231765743939da5f8ad_rle_crop_4064071112_0.png.png imagette292872941765344779/1765344446_1276299_1398605352_967d3041f85bd819c9aa4acfe5cec75d_rle_crop_4064071498_0.png.png imagette292872941765344779/1765344066_1252585_1398605309_b5f271d5ac5b7ca2cd014605a63a4128_rle_crop_4064069987_0.png.png imagette292872941765344779/1765344667_1289875_1398606300_10ad6bfc88b0bf5809f00883ce955b70_rle_crop_4064072049_0.png.png imagette292872941765344779/1765344507_1279382_1398606231_d3e44da491c58b4a4137ee5da7f77548_rle_crop_4064071694_0.png.png imagette292872941765344779/1765344446_1276299_1398605353_28367e13177c78005316ed324866c722_rle_crop_4064071478_0.png.png imagette292872941765344779/1765344066_1252585_1398605311_593129d02281f214f289308c9f9df34a_rle_crop_4064069967_0.png.png imagette292872941765344779/1765344507_1279382_1398606231_d3e44da491c58b4a4137ee5da7f77548_rle_crop_4064071699_0.png.png imagette292872941765344779/1765344507_1279382_1398606230_2341a0051273a25926c226cc44035732_rle_crop_4064071713_0.png.png imagette292872941765344779/1765344688_1293173_1398606290_4eaab713628b1205a775d50814148bb5_rle_crop_4064072336_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/eb46ad0b13abf5f1b2ce472d935dd70a_20213510.png imagette292872941765344779 29287295 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=29287295 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398606334: '1765344446_1276299_1398605353_28367e13177c78005316ed324866c722_rle_crop_4064071483_0.png', 1398606467: '1765344688_1293173_1398606292_2b0dae823631b596f685a34dabcf3b95_rle_crop_4064072330_0.png', 1398606466: '1765344688_1293173_1398606297_5a7981e10f3b6bf946a0658308ed2a98_rle_crop_4064072295_0.png', 1398606398: '1765344566_1283031_1398606166_481aabf369e9ddb11d45568c417ebcf3_rle_crop_4064071837_0.png', 1398606397: '1765344566_1283031_1398606206_14c4b23e65429c4af8372f67976d8208_rle_crop_4064071819_0.png', 1398606371: '1765344507_1279382_1398606231_d3e44da491c58b4a4137ee5da7f77548_rle_crop_4064071697_0.png', 1398606341: '1765344446_1276299_1398605347_e6174d6326ff930d72b7d88e14bf954d_rle_crop_4064071548_0.png', 1398606340: '1765344446_1276299_1398605347_e6174d6326ff930d72b7d88e14bf954d_rle_crop_4064071546_0.png', 1398606339: '1765344446_1276299_1398605349_ef9285878ae601be88c9c8b127d7243d_rle_crop_4064071529_0.png', 1398606338: '1765344446_1276299_1398605350_94e847fd913afe3eb809351585182fb2_rle_crop_4064071511_0.png', 1398606337: '1765344446_1276299_1398605350_94e847fd913afe3eb809351585182fb2_rle_crop_4064071513_0.png', 1398606335: '1765344446_1276299_1398605353_28367e13177c78005316ed324866c722_rle_crop_4064071480_0.png', 1398606127: '1765344066_1252585_1398605311_593129d02281f214f289308c9f9df34a_rle_crop_4064069972_0.png', 1398606309: '1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071240_0.png', 1398606308: '1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071246_0.png', 1398606307: '1765344428_1275950_1398605344_9ffed5681c83dd7f2452d3ead2a5e7fc_rle_crop_4064071232_0.png', 1398606256: '1765344326_1269449_1398605373_1d42f25da8f72231765743939da5f8ad_rle_crop_4064071121_0.png', 1398606248: '1765344307_1267681_1398606150_51ceb1638c5a540f22811412e260a3a0_rle_crop_4064070867_0.png', 1398606227: '1765344266_1266789_1398605741_efb518557a389eaa08d44e01c2c1f13c_rle_crop_4064070698_0.png', 1398606131: '1765344066_1252585_1398605301_9814340943714f923ac2864537ff85a2_rle_crop_4064070018_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/cbc1ab37ce30f0cd4fa21d323212a81f_87536387.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/5a32a39e6cb5ffc8149f2b7e4660e27a_7225300.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fb59e05a9ced4ed7734c0dce6ed9b03b_21087786.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/3e008a005f5af2fbe7641534a363e1bc_66160678.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/dc30d83424aa3f199fbfe76aa2b3dfbd_78725121.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9b96596fd0dbf41fcae6bbb6b53ab713_78695269.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/bd8aaa2996309f25d4782c7ad2aee888_98768127.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/6d57ae2e7598033d4dc7af250bd81e0a_98016820.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9f3ffa701cd2fc95835716cae2f6912e_68385160.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/60ef8a7bf173424a7a5941871dd70919_75110085.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/5e56646798e3fc7dce58b0726419a7d0_73303915.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/95db0243595885bd7d95760b9791be14_54457538.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/cbc1ab37ce30f0cd4fa21d323212a81f_88165056.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b5ac0d71ea0c0fc7ec4412afc3a904a2_65386742.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ee8b4a7386e3cbc000d9257715349a50_59286341.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/0ac29a959f88a3dfd89043451229297c_37876311.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9cb69276ae491bb104a0f050168bcc36_8938483.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/cda82f877120e03e02295fceada1789a_27436865.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/78de9e976de7a153b00244da9a1ac401_25931760.png change filename to text .imagette292872951765344780/ imagette292872951765344780/1765344688_1293173_1398606297_5a7981e10f3b6bf946a0658308ed2a98_rle_crop_4064072295_0.png.png imagette292872951765344780/1765344446_1276299_1398605350_94e847fd913afe3eb809351585182fb2_rle_crop_4064071513_0.png.png imagette292872951765344780/1765344326_1269449_1398605373_1d42f25da8f72231765743939da5f8ad_rle_crop_4064071121_0.png.png imagette292872951765344780/1765344566_1283031_1398606206_14c4b23e65429c4af8372f67976d8208_rle_crop_4064071819_0.png.png imagette292872951765344780/1765344446_1276299_1398605347_e6174d6326ff930d72b7d88e14bf954d_rle_crop_4064071546_0.png.png imagette292872951765344780/1765344446_1276299_1398605349_ef9285878ae601be88c9c8b127d7243d_rle_crop_4064071529_0.png.png imagette292872951765344780/1765344446_1276299_1398605353_28367e13177c78005316ed324866c722_rle_crop_4064071480_0.png.png imagette292872951765344780/1765344266_1266789_1398605741_efb518557a389eaa08d44e01c2c1f13c_rle_crop_4064070698_0.png.png imagette292872951765344780/1765344428_1275950_1398605344_9ffed5681c83dd7f2452d3ead2a5e7fc_rle_crop_4064071232_0.png.png imagette292872951765344780/1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071240_0.png.png imagette292872951765344780/1765344566_1283031_1398606166_481aabf369e9ddb11d45568c417ebcf3_rle_crop_4064071837_0.png.png imagette292872951765344780/1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071246_0.png.png imagette292872951765344780/1765344066_1252585_1398605311_593129d02281f214f289308c9f9df34a_rle_crop_4064069972_0.png.png imagette292872951765344780/1765344446_1276299_1398605353_28367e13177c78005316ed324866c722_rle_crop_4064071483_0.png.png imagette292872951765344780/1765344446_1276299_1398605347_e6174d6326ff930d72b7d88e14bf954d_rle_crop_4064071548_0.png.png imagette292872951765344780/1765344446_1276299_1398605350_94e847fd913afe3eb809351585182fb2_rle_crop_4064071511_0.png.png imagette292872951765344780/1765344507_1279382_1398606231_d3e44da491c58b4a4137ee5da7f77548_rle_crop_4064071697_0.png.png imagette292872951765344780/1765344688_1293173_1398606292_2b0dae823631b596f685a34dabcf3b95_rle_crop_4064072330_0.png.png imagette292872951765344780/1765344066_1252585_1398605301_9814340943714f923ac2864537ff85a2_rle_crop_4064070018_0.png.png imagette292872951765344780/1765344307_1267681_1398606150_51ceb1638c5a540f22811412e260a3a0_rle_crop_4064070867_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9f3ffa701cd2fc95835716cae2f6912e_16072463.png imagette292872951765344780 29287296 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=29287296 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398606103: '1765344025_1250509_1398605322_06fde5c45a699f8b6d8fdb86fcdc86bf_rle_crop_4064069740_0.png', 1398606262: '1765344326_1269449_1398605374_c181c897ccc49d613436fc747a56a605_rle_crop_4064071100_0.png', 1398606447: '1765344667_1289875_1398606270_0d88afefbaf967da3a60b27fcd1728e3_rle_crop_4064072060_0.png', 1398606472: '1765344688_1293173_1398606297_5a7981e10f3b6bf946a0658308ed2a98_rle_crop_4064072299_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ae93834824e848c58689f4c175927128_92448596.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/6000c78f77a96713efe791c0d91038cd_30933549.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/14bb35f4b6ef51fdef3cb713f1f40ac6_83424604.png change filename to text .imagette292872961765344781/ imagette292872961765344781/1765344025_1250509_1398605322_06fde5c45a699f8b6d8fdb86fcdc86bf_rle_crop_4064069740_0.png.png imagette292872961765344781/1765344326_1269449_1398605374_c181c897ccc49d613436fc747a56a605_rle_crop_4064071100_0.png.png imagette292872961765344781/1765344667_1289875_1398606270_0d88afefbaf967da3a60b27fcd1728e3_rle_crop_4064072060_0.png.png imagette292872961765344781/1765344688_1293173_1398606297_5a7981e10f3b6bf946a0658308ed2a98_rle_crop_4064072299_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ceb14e71a1415d52c6f6638db678e4b1_81283680.png imagette292872961765344781 29287298 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=29287298 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398606345: '1765344446_1276299_1398605349_ef9285878ae601be88c9c8b127d7243d_rle_crop_4064071540_0.png', 1398606471: '1765344688_1293173_1398606290_4eaab713628b1205a775d50814148bb5_rle_crop_4064072344_0.png', 1398606446: '1765344667_1289875_1398606300_10ad6bfc88b0bf5809f00883ce955b70_rle_crop_4064072042_0.png', 1398606421: '1765344626_1289038_1398606336_3921948d40be62816388001886b38a09_rle_crop_4064071944_0.png', 1398606420: '1765344626_1289038_1398606348_3a389cd95b3fa8cbce8c1f77dcd33b1b_rle_crop_4064071935_0.png', 1398606375: '1765344507_1279382_1398606231_d3e44da491c58b4a4137ee5da7f77548_rle_crop_4064071702_0.png', 1398606374: '1765344507_1279382_1398606231_d3e44da491c58b4a4137ee5da7f77548_rle_crop_4064071700_0.png', 1398606347: '1765344446_1276299_1398605347_e6174d6326ff930d72b7d88e14bf954d_rle_crop_4064071557_0.png', 1398606346: '1765344446_1276299_1398605349_ef9285878ae601be88c9c8b127d7243d_rle_crop_4064071531_0.png', 1398606132: '1765344066_1252585_1398605309_b5f271d5ac5b7ca2cd014605a63a4128_rle_crop_4064069992_0.png', 1398606344: '1765344446_1276299_1398605350_94e847fd913afe3eb809351585182fb2_rle_crop_4064071515_0.png', 1398606343: '1765344446_1276299_1398605352_967d3041f85bd819c9aa4acfe5cec75d_rle_crop_4064071503_0.png', 1398606312: '1765344428_1275950_1398605344_9ffed5681c83dd7f2452d3ead2a5e7fc_rle_crop_4064071233_0.png', 1398606261: '1765344326_1269449_1398605374_c181c897ccc49d613436fc747a56a605_rle_crop_4064071103_0.png', 1398606259: '1765344326_1269449_1398605847_6468dccce969fba52bea420dcfd38d1c_rle_crop_4064071073_0.png', 1398606135: '1765344066_1252585_1398605301_9814340943714f923ac2864537ff85a2_rle_crop_4064070020_0.png', 1398606134: '1765344066_1252585_1398605301_9814340943714f923ac2864537ff85a2_rle_crop_4064070029_0.png', 1398606133: '1765344066_1252585_1398605307_d750d73b7f854ac1c5ca3b5ff10eb026_rle_crop_4064070004_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9a7bcfa2a57227b6543ae927cd29fc0a_98448527.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/1b406cd0ce12e4684c64e5cc10a38155_97429718.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/07c1932f47b5c40e6376d5e24ee60a33_20557291.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/03e03b06ee5b6dad7618618b694c520a_1912948.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/23b90867f6881bcf849a29d48358f177_76075966.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/51001702d77ff06e0cdf80ba422abdf5_10213240.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/2c9674846bc688b2fd9c1bda0cd33d13_72388124.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ca0f4528be4fb780e528274cf236bf72_26164814.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b7ff684dd7baba9562140fce9b4a24ff_5215364.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/99f1b762759b4a7967daf741bb44ff02_18402367.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/cc405b5b4dfd36586193e4e42cc8b16e_13225662.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/99f1b762759b4a7967daf741bb44ff02_673034.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/62395be3ad5fc7769e6916176684363b_42491559.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/332b3ccb834a3f30cb41c524d7a004f0_36774405.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/7341f84830ebbf7f80645fb81fcc8146_44216982.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b7ff684dd7baba9562140fce9b4a24ff_32942405.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9a7bcfa2a57227b6543ae927cd29fc0a_52423641.png change filename to text .imagette292872981765344782/ imagette292872981765344782/1765344428_1275950_1398605344_9ffed5681c83dd7f2452d3ead2a5e7fc_rle_crop_4064071233_0.png.png imagette292872981765344782/1765344066_1252585_1398605307_d750d73b7f854ac1c5ca3b5ff10eb026_rle_crop_4064070004_0.png.png imagette292872981765344782/1765344066_1252585_1398605301_9814340943714f923ac2864537ff85a2_rle_crop_4064070020_0.png.png imagette292872981765344782/1765344446_1276299_1398605349_ef9285878ae601be88c9c8b127d7243d_rle_crop_4064071531_0.png.png imagette292872981765344782/1765344326_1269449_1398605374_c181c897ccc49d613436fc747a56a605_rle_crop_4064071103_0.png.png imagette292872981765344782/1765344688_1293173_1398606290_4eaab713628b1205a775d50814148bb5_rle_crop_4064072344_0.png.png imagette292872981765344782/1765344626_1289038_1398606336_3921948d40be62816388001886b38a09_rle_crop_4064071944_0.png.png imagette292872981765344782/1765344326_1269449_1398605847_6468dccce969fba52bea420dcfd38d1c_rle_crop_4064071073_0.png.png imagette292872981765344782/1765344507_1279382_1398606231_d3e44da491c58b4a4137ee5da7f77548_rle_crop_4064071702_0.png.png imagette292872981765344782/1765344066_1252585_1398605301_9814340943714f923ac2864537ff85a2_rle_crop_4064070029_0.png.png imagette292872981765344782/1765344446_1276299_1398605350_94e847fd913afe3eb809351585182fb2_rle_crop_4064071515_0.png.png imagette292872981765344782/1765344507_1279382_1398606231_d3e44da491c58b4a4137ee5da7f77548_rle_crop_4064071700_0.png.png imagette292872981765344782/1765344626_1289038_1398606348_3a389cd95b3fa8cbce8c1f77dcd33b1b_rle_crop_4064071935_0.png.png imagette292872981765344782/1765344446_1276299_1398605352_967d3041f85bd819c9aa4acfe5cec75d_rle_crop_4064071503_0.png.png imagette292872981765344782/1765344066_1252585_1398605309_b5f271d5ac5b7ca2cd014605a63a4128_rle_crop_4064069992_0.png.png imagette292872981765344782/1765344446_1276299_1398605349_ef9285878ae601be88c9c8b127d7243d_rle_crop_4064071540_0.png.png imagette292872981765344782/1765344446_1276299_1398605347_e6174d6326ff930d72b7d88e14bf954d_rle_crop_4064071557_0.png.png imagette292872981765344782/1765344667_1289875_1398606300_10ad6bfc88b0bf5809f00883ce955b70_rle_crop_4064072042_0.png.png imagette292873001765344783/ wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/cc405b5b4dfd36586193e4e42cc8b16e_36774803.png imagette292872981765344782 29287300 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=29287300 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292873001765344783 29287290 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=29287290 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398606303: '1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071253_0.png', 1398606460: '1765344688_1293173_1398606288_cac51e35ca5febe9a3d6b80574ae4511_rle_crop_4064072354_0.png', 1398606459: '1765344688_1293173_1398606288_cac51e35ca5febe9a3d6b80574ae4511_rle_crop_4064072358_0.png', 1398606458: '1765344688_1293173_1398606292_2b0dae823631b596f685a34dabcf3b95_rle_crop_4064072327_0.png', 1398606457: '1765344688_1293173_1398606294_dde80a243f636dd4ca35e72d6da13f9c_rle_crop_4064072317_0.png', 1398606456: '1765344688_1293173_1398606297_5a7981e10f3b6bf946a0658308ed2a98_rle_crop_4064072305_0.png', 1398606439: '1765344667_1289875_1398606300_10ad6bfc88b0bf5809f00883ce955b70_rle_crop_4064072051_0.png', 1398606323: '1765344446_1276299_1398605347_e6174d6326ff930d72b7d88e14bf954d_rle_crop_4064071554_0.png', 1398606322: '1765344446_1276299_1398605350_94e847fd913afe3eb809351585182fb2_rle_crop_4064071514_0.png', 1398606305: '1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071244_0.png', 1398606304: '1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071242_0.png', 1398606095: '1765344025_1250509_1398605265_993ca86e9d3a5585861dd376a4968a38_rle_crop_4064069775_0.png', 1398606253: '1765344326_1269449_1398605366_075f9ad1870025ba390803691b3dd26f_rle_crop_4064071132_0.png', 1398606247: '1765344307_1267681_1398606107_3525fe3e60749d433b3624a1a5dd450a_rle_crop_4064070893_0.png', 1398606246: '1765344307_1267681_1398606107_3525fe3e60749d433b3624a1a5dd450a_rle_crop_4064070902_0.png', 1398606245: '1765344307_1267681_1398606109_b951be6b329b170dae9b0ecc751e9886_rle_crop_4064070888_0.png', 1398606223: '1765344266_1266789_1398605646_6a1d5f1463355bf85c9ded37e947edca_rle_crop_4064070717_0.png', 1398606221: '1765344266_1266789_1398606112_749fb078409444260f3a98a079e87c16_rle_crop_4064070686_0.png', 1398606220: '1765344266_1266789_1398606112_749fb078409444260f3a98a079e87c16_rle_crop_4064070691_0.png', 1398606219: '1765344266_1266789_1398606112_749fb078409444260f3a98a079e87c16_rle_crop_4064070687_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/d92465db62cb1d9dcb2fc96d71faf229_86288402.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/1e356e0d01da2397d864d5fa72d35117_41371906.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/967ab61715659c31be05a540c2fc4adc_12441720.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c9b8f3943d6a7bde0687a96f74124759_16746098.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/f914a2bd1cde6538ded0c889a3a6471f_96928154.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/f6c96234f694a2694b1b0f31357e875c_43950950.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b83a2eb15e5e0565cab472d01a6ffe65_23915357.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e5aad7cb99afedd0d35e386c7af10efa_88594488.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/8b4d0b1584a4deb3617a6d427833f9d0_20180951.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/1fdf76566342e09d18e7294aa8800c47_51484618.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/674343a58d403f95e0b129581b4541a7_40112414.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/07ed5b38fbf308bd6cbc2150a475c1d7_5032531.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b878c6d94e5f328ed57a9882e03bcddd_57821333.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/3aacbfb99adbf309669b2c8d4ad25e73_24734145.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/aeda4b7c8a89a1101a849d5b2d679a72_23774653.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/0a778529f8e331b0f92c668a078dc158_29107165.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/26f25d587d61e935678a43878deb3d0e_28417555.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/03f1baa5c0ee68d7ba68b863602bf412_40805572.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9ad9ccb86a05cb86b5e25d81de0733a9_19854217.png change filename to text .imagette292872901765344783/ imagette292872901765344783/1765344266_1266789_1398606112_749fb078409444260f3a98a079e87c16_rle_crop_4064070691_0.png.png imagette292872901765344783/1765344688_1293173_1398606288_cac51e35ca5febe9a3d6b80574ae4511_rle_crop_4064072358_0.png.png imagette292872901765344783/1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071244_0.png.png imagette292872901765344783/1765344688_1293173_1398606288_cac51e35ca5febe9a3d6b80574ae4511_rle_crop_4064072354_0.png.png imagette292872901765344783/1765344688_1293173_1398606292_2b0dae823631b596f685a34dabcf3b95_rle_crop_4064072327_0.png.png imagette292872901765344783/1765344025_1250509_1398605265_993ca86e9d3a5585861dd376a4968a38_rle_crop_4064069775_0.png.png imagette292872901765344783/1765344326_1269449_1398605366_075f9ad1870025ba390803691b3dd26f_rle_crop_4064071132_0.png.png imagette292872901765344783/1765344446_1276299_1398605350_94e847fd913afe3eb809351585182fb2_rle_crop_4064071514_0.png.png imagette292872901765344783/1765344266_1266789_1398606112_749fb078409444260f3a98a079e87c16_rle_crop_4064070686_0.png.png imagette292872901765344783/1765344307_1267681_1398606107_3525fe3e60749d433b3624a1a5dd450a_rle_crop_4064070893_0.png.png imagette292872901765344783/1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071253_0.png.png imagette292872901765344783/1765344688_1293173_1398606294_dde80a243f636dd4ca35e72d6da13f9c_rle_crop_4064072317_0.png.png imagette292872901765344783/1765344307_1267681_1398606107_3525fe3e60749d433b3624a1a5dd450a_rle_crop_4064070902_0.png.png imagette292872901765344783/1765344446_1276299_1398605347_e6174d6326ff930d72b7d88e14bf954d_rle_crop_4064071554_0.png.png imagette292872901765344783/1765344688_1293173_1398606297_5a7981e10f3b6bf946a0658308ed2a98_rle_crop_4064072305_0.png.png imagette292872901765344783/1765344307_1267681_1398606109_b951be6b329b170dae9b0ecc751e9886_rle_crop_4064070888_0.png.png imagette292872901765344783/1765344266_1266789_1398605646_6a1d5f1463355bf85c9ded37e947edca_rle_crop_4064070717_0.png.png imagette292872901765344783/1765344667_1289875_1398606300_10ad6bfc88b0bf5809f00883ce955b70_rle_crop_4064072051_0.png.png imagette292872901765344783/1765344266_1266789_1398606112_749fb078409444260f3a98a079e87c16_rle_crop_4064070687_0.png.png imagette292872901765344783/1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071242_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/bb253ce805be14613615518064203de0_42202025.png imagette292872901765344783 29287292 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=29287292 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398606258: '1765344326_1269449_1398605373_1d42f25da8f72231765743939da5f8ad_rle_crop_4064071114_0.png', 1398606311: '1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071243_0.png', 1398606373: '1765344507_1279382_1398606231_d3e44da491c58b4a4137ee5da7f77548_rle_crop_4064071703_0.png', 1398606443: '1765344667_1289875_1398606270_0d88afefbaf967da3a60b27fcd1728e3_rle_crop_4064072069_0.png', 1398606469: '1765344688_1293173_1398606294_dde80a243f636dd4ca35e72d6da13f9c_rle_crop_4064072315_0.png', 1398606470: '1765344688_1293173_1398606288_cac51e35ca5febe9a3d6b80574ae4511_rle_crop_4064072353_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4b5257451a596808157fcfea2c2c7a7c_97037041.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/968f242670608974dbd6307f9c6301a5_68374276.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b9c06ef8768a7c0db40c0525d55fd26b_63609829.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/49bf505db282f5353f238e1fc8460079_85914149.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/691f048e230bed975ce693a0fd180bd4_20313274.png change filename to text .imagette292872921765344784/ imagette292872921765344784/1765344688_1293173_1398606294_dde80a243f636dd4ca35e72d6da13f9c_rle_crop_4064072315_0.png.png imagette292872921765344784/1765344507_1279382_1398606231_d3e44da491c58b4a4137ee5da7f77548_rle_crop_4064071703_0.png.png imagette292872921765344784/1765344326_1269449_1398605373_1d42f25da8f72231765743939da5f8ad_rle_crop_4064071114_0.png.png imagette292872921765344784/1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071243_0.png.png imagette292872921765344784/1765344688_1293173_1398606288_cac51e35ca5febe9a3d6b80574ae4511_rle_crop_4064072353_0.png.png imagette292872921765344784/1765344667_1289875_1398606270_0d88afefbaf967da3a60b27fcd1728e3_rle_crop_4064072069_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9abf8adf560a75d997ec3959a467d2cf_43143275.png imagette292872921765344784 29287299 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=29287299 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398606329: '1765344446_1276299_1398605352_967d3041f85bd819c9aa4acfe5cec75d_rle_crop_4064071500_0.png', 1398606465: '1765344688_1293173_1398606292_2b0dae823631b596f685a34dabcf3b95_rle_crop_4064072322_0.png', 1398606464: '1765344688_1293173_1398606294_dde80a243f636dd4ca35e72d6da13f9c_rle_crop_4064072310_0.png', 1398606442: '1765344667_1289875_1398606300_10ad6bfc88b0bf5809f00883ce955b70_rle_crop_4064072044_0.png', 1398606441: '1765344667_1289875_1398606300_10ad6bfc88b0bf5809f00883ce955b70_rle_crop_4064072043_0.png', 1398606419: '1765344626_1289038_1398606336_3921948d40be62816388001886b38a09_rle_crop_4064071952_0.png', 1398606332: '1765344446_1276299_1398605347_e6174d6326ff930d72b7d88e14bf954d_rle_crop_4064071552_0.png', 1398606331: '1765344446_1276299_1398605347_e6174d6326ff930d72b7d88e14bf954d_rle_crop_4064071553_0.png', 1398606330: '1765344446_1276299_1398605350_94e847fd913afe3eb809351585182fb2_rle_crop_4064071512_0.png', 1398606100: '1765344025_1250509_1398605322_06fde5c45a699f8b6d8fdb86fcdc86bf_rle_crop_4064069742_0.png', 1398606328: '1765344446_1276299_1398605356_d246d26588786959445460903af85a78_rle_crop_4064071466_0.png', 1398606306: '1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071245_0.png', 1398606255: '1765344326_1269449_1398605374_c181c897ccc49d613436fc747a56a605_rle_crop_4064071102_0.png', 1398606226: '1765344266_1266789_1398606112_749fb078409444260f3a98a079e87c16_rle_crop_4064070680_0.png', 1398606126: '1765344066_1252585_1398605307_d750d73b7f854ac1c5ca3b5ff10eb026_rle_crop_4064070001_0.png', 1398606124: '1765344066_1252585_1398605309_b5f271d5ac5b7ca2cd014605a63a4128_rle_crop_4064069989_0.png', 1398606123: '1765344066_1252585_1398605314_4c34ff44deea761ae49101f6b06b735a_rle_crop_4064069955_0.png', 1398606102: '1765344025_1250509_1398605265_993ca86e9d3a5585861dd376a4968a38_rle_crop_4064069774_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/dce59626b4b20ba8ab0dbf041e42253c_74612109.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/48e9fb2d67eb7dec262fa112e647bde3_17002987.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/3cbeabf36880939f3314f2c6a8105283_50411084.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/44aff440044388adca8e057edda96f0e_28712702.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/0140520584df617e6cd35325101700cf_3617143.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/f1aa752e866adab6aab33a81f41c0ab7_69876667.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9edda370825744a7b593a59d17d87f40_27765418.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e2c9584cc8f7a58f51f9c986aa9f80c6_67717848.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/537702455e0db2ecfcf657e313d96667_74893590.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/3e21208a2ee2781c89e367b0de0b878d_30367902.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/153bdee8f9d9029718d8821c2687b543_66200885.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/f2523cae113b7c14701c44866c331736_3784370.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/397bb1ce1154e840e090ad6127a85edc_1817251.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c6122259423479dd268b20bafab61e97_37383818.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/537702455e0db2ecfcf657e313d96667_16119458.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/dce59626b4b20ba8ab0dbf041e42253c_12872942.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/153bdee8f9d9029718d8821c2687b543_70782403.png change filename to text .imagette292872991765344785/ imagette292872991765344785/1765344688_1293173_1398606294_dde80a243f636dd4ca35e72d6da13f9c_rle_crop_4064072310_0.png.png imagette292872991765344785/1765344688_1293173_1398606292_2b0dae823631b596f685a34dabcf3b95_rle_crop_4064072322_0.png.png imagette292872991765344785/1765344266_1266789_1398606112_749fb078409444260f3a98a079e87c16_rle_crop_4064070680_0.png.png imagette292872991765344785/1765344025_1250509_1398605265_993ca86e9d3a5585861dd376a4968a38_rle_crop_4064069774_0.png.png imagette292872991765344785/1765344066_1252585_1398605307_d750d73b7f854ac1c5ca3b5ff10eb026_rle_crop_4064070001_0.png.png imagette292872991765344785/1765344025_1250509_1398605322_06fde5c45a699f8b6d8fdb86fcdc86bf_rle_crop_4064069742_0.png.png imagette292872991765344785/1765344446_1276299_1398605347_e6174d6326ff930d72b7d88e14bf954d_rle_crop_4064071552_0.png.png imagette292872991765344785/1765344326_1269449_1398605374_c181c897ccc49d613436fc747a56a605_rle_crop_4064071102_0.png.png imagette292872991765344785/1765344428_1275950_1398605341_600f34fbb05c43eef6367ebe7e599f78_rle_crop_4064071245_0.png.png imagette292872991765344785/1765344446_1276299_1398605347_e6174d6326ff930d72b7d88e14bf954d_rle_crop_4064071553_0.png.png imagette292872991765344785/1765344446_1276299_1398605356_d246d26588786959445460903af85a78_rle_crop_4064071466_0.png.png imagette292872991765344785/1765344446_1276299_1398605350_94e847fd913afe3eb809351585182fb2_rle_crop_4064071512_0.png.png imagette292872991765344785/1765344626_1289038_1398606336_3921948d40be62816388001886b38a09_rle_crop_4064071952_0.png.png imagette292872991765344785/1765344667_1289875_1398606300_10ad6bfc88b0bf5809f00883ce955b70_rle_crop_4064072043_0.png.png imagette292872991765344785/1765344066_1252585_1398605314_4c34ff44deea761ae49101f6b06b735a_rle_crop_4064069955_0.png.png imagette292872991765344785/1765344446_1276299_1398605352_967d3041f85bd819c9aa4acfe5cec75d_rle_crop_4064071500_0.png.png imagette292872991765344785/1765344066_1252585_1398605309_b5f271d5ac5b7ca2cd014605a63a4128_rle_crop_4064069989_0.png.png imagette292872991765344785/1765344667_1289875_1398606300_10ad6bfc88b0bf5809f00883ce955b70_rle_crop_4064072044_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/cfafd0ed16255b1b4b2bf8d6b90cbf24_94159626.png imagette292872991765344785 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29287284 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29287301,29287302,29287303,29287304,29287305,29287306,29287307,29287308,29287309,29287310,29287311,29287312?tags=environnement,Teint_Dans_La_Masse,mal_croppe,Carton_brun,metal,autre_refus,cartonnette,kraft,papier,plastique,Carton_gris,flou your option no_mail is active, we will not send the real mail to your client args[1398606438] : ('0.04863824767530533',) no score found for photo 1398606438 We are sending mail with results at report@fotonower.com args[1398606414] : ('0.04863824767530533',) no score found for photo 1398606414 We are sending mail with results at report@fotonower.com args[1398606411] : ('0.04863824767530533',) no score found for photo 1398606411 We are sending mail with results at report@fotonower.com args[1398606408] : ('0.04863824767530533',) no score found for photo 1398606408 We are sending mail with results at report@fotonower.com args[1398606405] : ('0.04863824767530533',) no score found for photo 1398606405 We are sending mail with results at report@fotonower.com args[1398606402] : ('0.04863824767530533',) no score found for photo 1398606402 We are sending mail with results at report@fotonower.com refus_total : 0.04863824767530533 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=29287284 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_P29287284_10-12-2025_06_32_59.pdf results_Auto_P29287284_10-12-2025_06_32_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287284_10-12-2025_06_32_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','29287284','results_Auto_P29287284_10-12-2025_06_32_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287284_10-12-2025_06_32_59.pdf','pdf','','0.3','0.04863824767530533') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29287284]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398606438, 1398606414, 1398606411, 1398606408, 1398606405, 1398606402] map_info['map_portfolio_photo'] : {29287284: [1398606438, 1398606414, 1398606411, 1398606408, 1398606405, 1398606402, 1398606388, 1398606385, 1398606382, 1398606380, 1398606378, 1398606377, 1398606350, 1398606348, 1398606336, 1398606327, 1398606300, 1398606297, 1398606294, 1398606292, 1398606290, 1398606288, 1398606273, 1398606270, 1398606268, 1398606266, 1398606263, 1398606238, 1398606235, 1398606233, 1398606231, 1398606230, 1398606206, 1398606204, 1398606172, 1398606170, 1398606168, 1398606166, 1398606150, 1398606112, 1398606109, 1398606107, 1398606105, 1398605847, 1398605741, 1398605646, 1398605377, 1398605375, 1398605374, 1398605373, 1398605366, 1398605359, 1398605356, 1398605353, 1398605352, 1398605350, 1398605349, 1398605347, 1398605344, 1398605341, 1398605339, 1398605322, 1398605314, 1398605311, 1398605309, 1398605307, 1398605301, 1398605271, 1398605269, 1398605267, 1398605265]} final : False mtd_id 4302 list_pids : [1398606438, 1398606414, 1398606411, 1398606408, 1398606405, 1398606402] 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, '4201767') ('4302', '29287284', '1398606438', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606414', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606411', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606408', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606405', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606402', None, None, None, None, None, '4201767') 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', '29287284', '1398606438', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606414', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606411', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606408', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606405', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606402', None, None, None, None, None, '4201767')] time used for this insertion : 0.014728069305419922 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.886866092681885 time spend to save output : 0.014981508255004883 total time spend for step 4 : 8.90184760093689 step5:split_time_score Wed Dec 10 06:33:07 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 : ['29287284'] 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 : [('29287284',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29287284) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398606402: {'path': 'temp/1765344778_3540783_1398606402_a5736d286525bd840da85347a995f253.jpg', 'extension': 'jpg'}, 1398606405: {'path': 'temp/1765344778_3540783_1398606405_ff66805cd066c6e2cd59d072e9a80187.jpg', 'extension': 'jpg'}, 1398606414: {'path': 'temp/1765344778_3540783_1398606414_055595b474eb67342bdb96c872447ce2.jpg', 'extension': 'jpg'}, 1398606438: {'path': 'temp/1765344778_3540783_1398606438_6e8fcb5e5178a967b12af2827f3d0061.jpg', 'extension': 'jpg'}, 1398606408: {'path': 'temp/1765344778_3540783_1398606408_172177df39890b92d5554533a4e95e38.jpg', 'extension': 'jpg'}, 1398606411: {'path': 'temp/1765344778_3540783_1398606411_60c11d9ae224ce72abab76512b09da0c.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 = 29287284; (('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 = 29287284 group by h (('06', 71),) 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=29287284 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 (29287284) 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 (29287284) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10122025 29287284 Nombre de photos uploadées : 71 / 23040 (0%) 10122025 29287284 Nombre de photos taguées (types de déchets): 0 / 71 (0%) 10122025 29287284 Nombre de photos taguées (volume) : 0 / 71 (0%) [{'photo_id': 1398605271, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/60f25c320ac95988560437b8109b4af8.jpg', 'username': None, 'uploaded_at': 1765343767, 'text': 'image_10122025_06_15_05_010148m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398605269, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fd4213e89494a3df2d29ef57e8447824.jpg', 'username': None, 'uploaded_at': 1765343767, 'text': 'image_10122025_06_15_15_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398605267, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/7587e12326f4dfb0b884b5291466c2e9.jpg', 'username': None, 'uploaded_at': 1765343767, 'text': 'image_10122025_06_15_35_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398605265, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/993ca86e9d3a5585861dd376a4968a38.jpg', 'username': None, 'uploaded_at': 1765343767, 'text': 'image_10122025_06_15_45_010138m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ??????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0031316280364990234 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29287284, '2025-12-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2712863,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24705839157104492 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= 2712863 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721123, 'mtr_portfolio_id': 29283133, 'dashboard_result_id': 18194056, '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_P29283133_10-12-2025_00_18_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721123, 'mtr_portfolio_id': 29283507, 'dashboard_result_id': 18194057, '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_P29283507_10-12-2025_00_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721123, 'mtr_portfolio_id': 29283563, 'dashboard_result_id': 18194058, '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_P29283563_10-12-2025_00_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721123, 'mtr_portfolio_id': 29283646, 'dashboard_result_id': 18194059, '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_P29283646_10-12-2025_01_36_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721123, 'mtr_portfolio_id': 29284551, 'dashboard_result_id': 18194060, '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_P29284551_10-12-2025_03_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721123, 'mtr_portfolio_id': 29284712, 'dashboard_result_id': 18194061, '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_P29284712_10-12-2025_03_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721123, 'mtr_portfolio_id': 29285136, 'dashboard_result_id': 18194062, '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_P29285136_10-12-2025_05_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721123, 'mtr_portfolio_id': 29285345, 'dashboard_result_id': 18194063, '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_P29285345_10-12-2025_05_33_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721123, 'mtr_portfolio_id': 29285732, 'dashboard_result_id': 18194064, '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_P29285732_10-12-2025_05_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721123, 'mtr_portfolio_id': 29286087, 'dashboard_result_id': 18194065, '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_P29286087_10-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721123, 'mtr_portfolio_id': 29286524, 'dashboard_result_id': 18194066, '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_P29286524_10-12-2025_06_19_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721123, 'mtr_portfolio_id': 29287284, 'dashboard_result_id': 18194067, '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_P29287284_10-12-2025_06_30_39.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287300, '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 = 29283133 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': 4201514, 'mtr_portfolio_id': 29283133, 'created_at': datetime.datetime(2025, 12, 10, 6, 7, 29), 'result': '0.010678362266960811', 'result_long': None, 'result_double': None}] Qualite : 0.010678362266960811 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283133_10-12-2025_06_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283133 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_P29283133_10-12-2025_06_07_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, 'pht': 3726}}" where mtr_portfolio_id = 29283133 and dashboard_run_id = 2721123 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`=29283133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18194056, 0.010678362266960811, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283133_10-12-2025_06_07_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, '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 = 29283507 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': 4201515, 'mtr_portfolio_id': 29283507, 'created_at': datetime.datetime(2025, 12, 10, 6, 7, 56), 'result': '0.060292920952775546', 'result_long': None, 'result_double': None}] Qualite : 0.060292920952775546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283507_10-12-2025_06_07_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283507 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_P29283507_10-12-2025_06_07_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, 'pht': 3726}}" where mtr_portfolio_id = 29283507 and dashboard_run_id = 2721123 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`=29283507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18194057, 0.060292920952775546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283507_10-12-2025_06_07_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, '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 = 29283563 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': 4201516, 'mtr_portfolio_id': 29283563, 'created_at': datetime.datetime(2025, 12, 10, 6, 8, 29), 'result': '0.05437533202236932', 'result_long': None, 'result_double': None}] Qualite : 0.05437533202236932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283563_10-12-2025_06_08_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283563 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_P29283563_10-12-2025_06_08_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, 'pht': 3726}}" where mtr_portfolio_id = 29283563 and dashboard_run_id = 2721123 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`=29283563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18194058, 0.05437533202236932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283563_10-12-2025_06_08_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, '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 = 29283646 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': 4201517, 'mtr_portfolio_id': 29283646, 'created_at': datetime.datetime(2025, 12, 10, 6, 9, 30), 'result': '0.035229902913867295', 'result_long': None, 'result_double': None}] Qualite : 0.035229902913867295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283646_10-12-2025_06_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283646 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_P29283646_10-12-2025_06_09_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, 'pht': 3726}}" where mtr_portfolio_id = 29283646 and dashboard_run_id = 2721123 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`=29283646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18194059, 0.035229902913867295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283646_10-12-2025_06_09_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, '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 = 29284551 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': 4201518, 'mtr_portfolio_id': 29284551, 'created_at': datetime.datetime(2025, 12, 10, 6, 9, 59), 'result': '0.12040949980131724', 'result_long': None, 'result_double': None}] Qualite : 0.12040949980131724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29284551 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284551_10-12-2025_06_10_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29284551 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_P29284551_10-12-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, 'pht': 3726}}" where mtr_portfolio_id = 29284551 and dashboard_run_id = 2721123 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`=29284551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18194060, 0.12040949980131724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284551_10-12-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, '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 = 29284712 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': 4201519, 'mtr_portfolio_id': 29284712, 'created_at': datetime.datetime(2025, 12, 10, 6, 10, 30), 'result': '0.08618908751612969', 'result_long': None, 'result_double': None}] Qualite : 0.08618908751612969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29284712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284712_10-12-2025_06_10_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29284712 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_P29284712_10-12-2025_06_10_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, 'pht': 3726}}" where mtr_portfolio_id = 29284712 and dashboard_run_id = 2721123 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`=29284712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18194061, 0.08618908751612969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284712_10-12-2025_06_10_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, '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 = 29285136 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': 4201520, 'mtr_portfolio_id': 29285136, 'created_at': datetime.datetime(2025, 12, 10, 6, 10, 38), 'result': '0.061449803204952656', 'result_long': None, 'result_double': None}] Qualite : 0.061449803204952656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285136_10-12-2025_06_10_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285136 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_P29285136_10-12-2025_06_10_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, 'pht': 3726}}" where mtr_portfolio_id = 29285136 and dashboard_run_id = 2721123 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`=29285136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18194062, 0.061449803204952656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285136_10-12-2025_06_10_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, '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 = 29285345 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': 4201521, 'mtr_portfolio_id': 29285345, 'created_at': datetime.datetime(2025, 12, 10, 6, 11, 13), 'result': '0.0449976319961059', 'result_long': None, 'result_double': None}] Qualite : 0.0449976319961059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285345 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285345_10-12-2025_06_11_16.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285345 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_P29285345_10-12-2025_06_11_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, 'pht': 3726}}" where mtr_portfolio_id = 29285345 and dashboard_run_id = 2721123 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`=29285345 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18194063, 0.0449976319961059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285345_10-12-2025_06_11_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, '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 = 29285732 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': 4201445, 'mtr_portfolio_id': 29285732, 'created_at': datetime.datetime(2025, 12, 10, 5, 46, 59), 'result': '0.04341877282480353', 'result_long': None, 'result_double': None}] Qualite : 0.04341877282480353 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285732_10-12-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285732 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_P29285732_10-12-2025_05_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, 'pht': 3726}}" where mtr_portfolio_id = 29285732 and dashboard_run_id = 2721123 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`=29285732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18194064, 0.04341877282480353, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285732_10-12-2025_05_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, '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 = 29286087 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': 4201629, 'mtr_portfolio_id': 29286087, 'created_at': datetime.datetime(2025, 12, 10, 6, 2, 59), 'result': '0.05901750348886181', 'result_long': None, 'result_double': None}] Qualite : 0.05901750348886181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29286087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286087_10-12-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29286087 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_P29286087_10-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, 'pht': 3726}}" where mtr_portfolio_id = 29286087 and dashboard_run_id = 2721125 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`=29286087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18194065, 0.05901750348886181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286087_10-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, '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 = 29286524 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': 4201716, 'mtr_portfolio_id': 29286524, 'created_at': datetime.datetime(2025, 12, 10, 6, 19, 28), 'result': '0.03694767199211665', 'result_long': None, 'result_double': None}] Qualite : 0.03694767199211665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29286524 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286524_10-12-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29286524 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_P29286524_10-12-2025_06_19_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, 'pht': 3726}}" where mtr_portfolio_id = 29286524 and dashboard_run_id = 2721125 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`=29286524 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18194066, 0.03694767199211665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286524_10-12-2025_06_19_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, '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 = 29287284 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': 4201767, 'mtr_portfolio_id': 29287284, 'created_at': datetime.datetime(2025, 12, 10, 6, 32, 58), 'result': '0.04863824767530533', 'result_long': None, 'result_double': None}] Qualite : 0.04863824767530533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29287284 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287284_10-12-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29287284 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_P29287284_10-12-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287300, 'pht': 3726}}" where mtr_portfolio_id = 29287284 and dashboard_run_id = 2721125 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`=29287284 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18194067, 0.04863824767530533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287284_10-12-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287300, '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 (29283133,29283507,29283563,29283646,29284551,29284712,29285136,29285345,29285732,29286087,29286524,29287284) result : ((1398578619,), (1398579570,), (1398579942,), (1398581226,), (1398582557,), (1398582769,), (1398582809,), (1398583350,), (1398583552,), (1398583569,), (1398583937,), (1398583950,), (1398583982,), (1398584042,), (1398584061,), (1398584083,), (1398584100,), (1398584133,), (1398584198,), (1398584213,), (1398584215,), (1398584250,), (1398584252,), (1398584320,), (1398584358,), (1398584471,), (1398584473,), (1398584490,), (1398584510,), (1398584511,), (1398584526,), (1398584529,), (1398584568,), (1398584607,), (1398588536,), (1398592466,), (1398592469,), (1398592472,), (1398592576,), (1398592580,), (1398592633,), (1398593633,), (1398593977,), (1398594020,), (1398594022,), (1398594036,), (1398594038,), (1398594054,), (1398594097,), (1398594165,), (1398594177,), (1398594213,), (1398594264,), (1398596363,), (1398596383,), (1398596385,), (1398596399,), (1398596402,), (1398596418,), (1398596420,), (1398596474,), (1398596490,), (1398596505,), (1398596528,), (1398596530,), (1398596532,), (1398596547,), (1398596549,), (1398596571,), (1398596574,), (1398596576,), (1398596592,), (1398596594,), (1398596596,), (1398596600,), (1398596604,), (1398596609,), (1398596627,), (1398596629,), (1398596686,), (1398596683,), (1398596684,), (1398596685,), (1398596705,), (1398596707,), (1398596709,), (1398596710,), (1398596713,), (1398596716,), (1398596730,), (1398596732,), (1398596734,), (1398596736,), (1398596751,), (1398596754,), (1398596756,), (1398596758,), (1398596761,), (1398596764,), (1398596774,), (1398596777,), (1398596779,), (1398596782,), (1398596784,), (1398596796,), (1398596799,), (1398596801,), (1398596803,), (1398596805,), (1398596830,), (1398596831,), (1398596833,), (1398596835,), (1398596838,), (1398596841,), (1398596863,), (1398596867,), (1398596871,), (1398596877,), (1398596882,), (1398596884,), (1398596892,), (1398596895,), (1398596922,), (1398596927,), (1398596948,), (1398596951,), (1398596954,), (1398596957,), (1398596959,), (1398596960,), (1398596970,), (1398596972,), (1398596974,), (1398596976,), (1398597026,), (1398597029,), (1398597030,), (1398597031,), (1398597034,), (1398597037,), (1398597048,), (1398597050,), (1398597053,), (1398597056,), (1398597060,), (1398597078,), (1398597080,), (1398597082,), (1398597085,), (1398597088,), (1398597091,), (1398597101,), (1398597103,), (1398597105,), (1398597131,), (1398597132,), (1398597134,), (1398597135,), (1398597138,), (1398597142,), (1398597162,), (1398597149,), (1398597156,), (1398597159,), (1398597215,), (1398597219,), (1398597220,), (1398597221,), (1398597224,), (1398597227,), (1398597238,), (1398597241,), (1398597244,), (1398597247,), (1398597275,), (1398597280,), (1398597282,), (1398597284,), (1398597287,), (1398597289,), (1398597300,), (1398597301,), (1398597302,), (1398597323,), (1398597326,), (1398597329,), (1398597332,), (1398597335,), (1398597337,), (1398597346,), (1398597348,), (1398597351,), (1398597352,), (1398597353,), (1398597355,), (1398597366,), (1398597376,), (1398597386,), (1398597393,), (1398597394,), (1398597395,), (1398597398,), (1398597401,), (1398597404,), (1398597412,), (1398597415,), (1398597418,), (1398597421,), (1398597424,), (1398597446,), (1398597448,), (1398597450,), (1398597452,), (1398597463,), (1398597465,), (1398597467,), (1398597469,), (1398597472,), (1398597491,), (1398597492,), (1398597497,), (1398597501,), (1398597515,), (1398597517,), (1398597519,), (1398597523,), (1398597527,), (1398597530,), (1398597541,), (1398597542,), (1398597543,), (1398597544,), (1398597560,), (1398597563,), (1398597566,), (1398597570,), (1398597582,), (1398597584,), (1398597587,), (1398597589,), (1398597592,), (1398597596,), (1398597637,), (1398597627,), (1398597635,), (1398597636,), (1398597653,), (1398597655,), (1398597657,), (1398597659,), (1398597662,), (1398597665,), (1398597688,), (1398597689,), (1398597691,), (1398597693,), (1398597695,), (1398597707,), (1398597709,), (1398597711,), (1398597713,), (1398597716,), (1398597718,), (1398597755,), (1398597757,), (1398597759,), (1398597777,), (1398597778,), (1398597779,), (1398597780,), (1398597783,), (1398597786,), (1398597811,), (1398597814,), (1398597817,), (1398597820,), (1398597823,), (1398597838,), (1398597839,), (1398597840,), (1398597841,), (1398597844,), (1398597847,), (1398597871,), (1398597874,), (1398597877,), (1398597880,), (1398597883,), (1398597899,), (1398597901,), (1398597904,), (1398597907,), (1398597910,), (1398597912,), (1398597940,), (1398597941,), (1398597943,), (1398597945,), (1398597948,), (1398597966,), (1398597969,), (1398597972,), (1398597974,), (1398597998,), (1398598001,), (1398598004,), (1398598007,), (1398598011,), (1398598014,), (1398598034,), (1398598040,), (1398598076,), (1398598112,), (1398598588,), (1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,), (1398604653,), (1398604672,), (1398604709,), (1398604718,), (1398604721,), (1398604749,), (1398604824,), (1398604826,), (1398604827,), (1398604828,), (1398604846,), (1398604848,), (1398604850,), (1398604854,), (1398604859,), (1398604860,), (1398605037,), (1398605073,), (1398605108,), (1398605145,), (1398605168,), (1398605172,), (1398605274,), (1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10122025': {'nb_upload': 71, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29287284]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398606438, 1398606414, 1398606411, 1398606408, 1398606405, 1398606402] map_info['map_portfolio_photo'] : {29287284: [1398606438, 1398606414, 1398606411, 1398606408, 1398606405, 1398606402, 1398606388, 1398606385, 1398606382, 1398606380, 1398606378, 1398606377, 1398606350, 1398606348, 1398606336, 1398606327, 1398606300, 1398606297, 1398606294, 1398606292, 1398606290, 1398606288, 1398606273, 1398606270, 1398606268, 1398606266, 1398606263, 1398606238, 1398606235, 1398606233, 1398606231, 1398606230, 1398606206, 1398606204, 1398606172, 1398606170, 1398606168, 1398606166, 1398606150, 1398606112, 1398606109, 1398606107, 1398606105, 1398605847, 1398605741, 1398605646, 1398605377, 1398605375, 1398605374, 1398605373, 1398605366, 1398605359, 1398605356, 1398605353, 1398605352, 1398605350, 1398605349, 1398605347, 1398605344, 1398605341, 1398605339, 1398605322, 1398605314, 1398605311, 1398605309, 1398605307, 1398605301, 1398605271, 1398605269, 1398605267, 1398605265]} final : True mtd_id 4302 list_pids : [1398606438, 1398606414, 1398606411, 1398606408, 1398606405, 1398606402] Looping around the photos to save general results len do output : 1 /29287284Didn'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, '4201767') ('4302', '29287284', '1398606438', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606414', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606411', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606408', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606405', None, None, None, None, None, '4201767') ('4302', None, None, None, None, None, None, None, '4201767') ('4302', '29287284', '1398606402', None, None, None, None, None, '4201767') 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, '29287284', 'None', None, None, None, None, '4201767'), ('4302', '29287284', '1398606438', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606414', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606411', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606408', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606405', None, None, None, None, None, '4201767'), ('4302', '29287284', '1398606402', None, None, None, None, None, '4201767')] time used for this insertion : 0.015474081039428711 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.231412649154663 time spend to save output : 0.015666723251342773 total time spend for step 5 : 1.2470793724060059 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 (4201767) 2.20user 2.46system 0:13.34elapsed 34%CPU (0avgtext+0avgdata 166448maxresident)k 240inputs+17424outputs (1major+75427minor)pagefaults 0swaps