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 : 1455119 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 (4266482) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4266482) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29673237 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4266482'] with mtr_portfolio_ids : ['29673237'] and first list_photo_ids : [] new path : /proc/1455119/ Name: python3 Umask: 0002 State: R (running) Tgid: 1455119 Ngid: 0 Pid: 1455119 PPid: 1455118 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1455119 NSpid: 1455119 NSpgid: 1453746 NSsid: 1453746 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104928 kB VmRSS: 104928 kB RssAnon: 66292 kB RssFile: 38636 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 600 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: 51 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1455119', 'Ngid': '0', 'Pid': '1455119', 'PPid': '1455118', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1455119', 'NSpid': '1455119', 'NSpgid': '1453746', 'NSsid': '1453746', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104928 kB', 'VmRSS': '104928 kB', 'RssAnon': '66292 kB', 'RssFile': '38636 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '600 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': '51', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '1455119', '1113364', '0', '1113364', '872092', '104928', b'', 'marlene', '4266482') 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 (29673237) 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 (4266482 ) ) 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 (29673237) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1400772064, 'portfolio_id': 29673237}, {'photo_id': 1400772063, 'portfolio_id': 29673237}, {'photo_id': 1400772045, 'portfolio_id': 29673237}, {'photo_id': 1400772029, 'portfolio_id': 29673237}, {'photo_id': 1400772027, 'portfolio_id': 29673237}, {'photo_id': 1400772023, 'portfolio_id': 29673237}, {'photo_id': 1400772020, 'portfolio_id': 29673237}, {'photo_id': 1400772017, 'portfolio_id': 29673237}, {'photo_id': 1400772013, 'portfolio_id': 29673237}, {'photo_id': 1400771999, 'portfolio_id': 29673237}, {'photo_id': 1400771995, 'portfolio_id': 29673237}, {'photo_id': 1400771991, 'portfolio_id': 29673237}, {'photo_id': 1400771986, 'portfolio_id': 29673237}, {'photo_id': 1400771976, 'portfolio_id': 29673237}, {'photo_id': 1400771943, 'portfolio_id': 29673237}, {'photo_id': 1400771941, 'portfolio_id': 29673237}, {'photo_id': 1400771939, 'portfolio_id': 29673237}, {'photo_id': 1400771936, 'portfolio_id': 29673237}, {'photo_id': 1400771911, 'portfolio_id': 29673237}, {'photo_id': 1400771909, 'portfolio_id': 29673237}, {'photo_id': 1400771907, 'portfolio_id': 29673237}, {'photo_id': 1400771904, 'portfolio_id': 29673237}, {'photo_id': 1400771888, 'portfolio_id': 29673237}, {'photo_id': 1400771851, 'portfolio_id': 29673237}, {'photo_id': 1400771848, 'portfolio_id': 29673237}, {'photo_id': 1400771844, 'portfolio_id': 29673237}, {'photo_id': 1400771840, 'portfolio_id': 29673237}, {'photo_id': 1400771836, 'portfolio_id': 29673237}, {'photo_id': 1400771832, 'portfolio_id': 29673237}, {'photo_id': 1400771811, 'portfolio_id': 29673237}, {'photo_id': 1400771809, 'portfolio_id': 29673237}, {'photo_id': 1400771808, 'portfolio_id': 29673237}, {'photo_id': 1400771781, 'portfolio_id': 29673237}, {'photo_id': 1400771778, 'portfolio_id': 29673237}, {'photo_id': 1400771775, 'portfolio_id': 29673237}, {'photo_id': 1400771772, 'portfolio_id': 29673237}, {'photo_id': 1400771769, 'portfolio_id': 29673237}, {'photo_id': 1400771744, 'portfolio_id': 29673237}, {'photo_id': 1400771740, 'portfolio_id': 29673237}, {'photo_id': 1400771736, 'portfolio_id': 29673237}, {'photo_id': 1400771732, 'portfolio_id': 29673237}, {'photo_id': 1400771724, 'portfolio_id': 29673237}, {'photo_id': 1400771719, 'portfolio_id': 29673237}, {'photo_id': 1400771698, 'portfolio_id': 29673237}, {'photo_id': 1400771694, 'portfolio_id': 29673237}, {'photo_id': 1400771691, 'portfolio_id': 29673237}, {'photo_id': 1400771688, 'portfolio_id': 29673237}, {'photo_id': 1400771670, 'portfolio_id': 29673237}, {'photo_id': 1400771668, 'portfolio_id': 29673237}, {'photo_id': 1400771666, 'portfolio_id': 29673237}, {'photo_id': 1400771664, 'portfolio_id': 29673237}, {'photo_id': 1400771662, 'portfolio_id': 29673237}, {'photo_id': 1400771658, 'portfolio_id': 29673237}, {'photo_id': 1400771638, 'portfolio_id': 29673237}, {'photo_id': 1400771633, 'portfolio_id': 29673237}, {'photo_id': 1400771629, 'portfolio_id': 29673237}, {'photo_id': 1400771626, 'portfolio_id': 29673237}, {'photo_id': 1400771622, 'portfolio_id': 29673237}, {'photo_id': 1400771606, 'portfolio_id': 29673237}, {'photo_id': 1400771604, 'portfolio_id': 29673237}, {'photo_id': 1400771601, 'portfolio_id': 29673237}, {'photo_id': 1400771597, 'portfolio_id': 29673237}, {'photo_id': 1400771593, 'portfolio_id': 29673237}, {'photo_id': 1400771560, 'portfolio_id': 29673237}, {'photo_id': 1400771557, 'portfolio_id': 29673237}, {'photo_id': 1400771552, 'portfolio_id': 29673237}] map_portfolio_id_photo_id: {29673237: [1400772064, 1400772063, 1400772045, 1400772029, 1400772027, 1400772023, 1400772020, 1400772017, 1400772013, 1400771999, 1400771995, 1400771991, 1400771986, 1400771976, 1400771943, 1400771941, 1400771939, 1400771936, 1400771911, 1400771909, 1400771907, 1400771904, 1400771888, 1400771851, 1400771848, 1400771844, 1400771840, 1400771836, 1400771832, 1400771811, 1400771809, 1400771808, 1400771781, 1400771778, 1400771775, 1400771772, 1400771769, 1400771744, 1400771740, 1400771736, 1400771732, 1400771724, 1400771719, 1400771698, 1400771694, 1400771691, 1400771688, 1400771670, 1400771668, 1400771666, 1400771664, 1400771662, 1400771658, 1400771638, 1400771633, 1400771629, 1400771626, 1400771622, 1400771606, 1400771604, 1400771601, 1400771597, 1400771593, 1400771560, 1400771557, 1400771552]} ##### 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.020407438278198242 #### 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 24 03:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29673237) 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 : 29673237 get user id for portfolio 29673237 get sub ptf for main ptf 29673237, type 3726 and hashtags ['papier', 'environnement', 'Carton_brun', 'plastique', 'cartonnette', 'kraft', 'Teint_Dans_La_Masse', 'mal_croppe', 'metal', 'Carton_gris', 'flou', 'autre_refus'] 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`=29673237 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','Carton_brun','plastique','cartonnette','kraft','Teint_Dans_La_Masse','mal_croppe','metal','Carton_gris','flou','autre_refus')) 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`=29673237 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','Carton_brun','plastique','cartonnette','kraft','Teint_Dans_La_Masse','mal_croppe','metal','Carton_gris','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29673237, 'sub_port_id': 29673238, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267015, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 57)}, 'papier': {'main_port_id': 29673237, 'sub_port_id': 29673239, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267016, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 57)}, 'mal_croppe': {'main_port_id': 29673237, 'sub_port_id': 29673240, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267017, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 57)}, 'environnement': {'main_port_id': 29673237, 'sub_port_id': 29673241, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267018, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 57)}, 'flou': {'main_port_id': 29673237, 'sub_port_id': 29673242, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267019, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 29673237, 'sub_port_id': 29673243, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267020, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 57)}, 'cartonnette': {'main_port_id': 29673237, 'sub_port_id': 29673244, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267021, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 57)}, 'Carton_gris': {'main_port_id': 29673237, 'sub_port_id': 29673245, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267022, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 57)}, 'metal': {'main_port_id': 29673237, 'sub_port_id': 29673246, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267023, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 57)}, 'plastique': {'main_port_id': 29673237, 'sub_port_id': 29673247, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267024, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 57)}, 'autre_refus': {'main_port_id': 29673237, 'sub_port_id': 29673248, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267025, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 57)}, 'kraft': {'main_port_id': 29673237, 'sub_port_id': 29673249, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267026, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29673238 , 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=29673237 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 (29673238) result : ((1400771791,), (1400771929,), (1400771958,), (1400771959,), (1400771960,), (1400771961,), (1400771962,), (1400771963,), (1400771980,), (1400771981,), (1400771982,), (1400771983,), (1400771984,), (1400771985,), (1400772055,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29673237) result : ((1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29673239 , 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=29673237 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 (29673239) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29673237) result : ((1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29673240 , 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=29673237 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 (29673240) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29673237) result : ((1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29673241 , 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=29673237 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 (29673241) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29673237) result : ((1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29673242 , 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=29673237 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 (29673242) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29673237) result : ((1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29673243 , 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=29673237 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 (29673243) result : ((1400771753,), (1400771754,), (1400771755,), (1400771756,), (1400771786,), (1400771787,), (1400771971,), (1400771972,), (1400772044,), (1400772079,), (1400772080,), (1400772081,), (1400772082,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29673237) result : ((1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29673244 , 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=29673237 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 (29673244) result : ((1400771761,), (1400771927,), (1400772051,), (1400772052,), (1400772053,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29673237) result : ((1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29673245 , 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=29673237 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 (29673245) result : ((1400771757,), (1400771758,), (1400771789,), (1400771924,), (1400771977,), (1400772046,), (1400772047,), (1400772048,), (1400772049,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29673237) result : ((1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29673246 , 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=29673237 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 (29673246) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29673237) result : ((1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29673247 , 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=29673237 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 (29673247) result : ((1400771794,), (1400771804,), (1400771805,), (1400771964,), (1400771987,), (1400771988,), (1400772056,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29673237) result : ((1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29673248 , 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=29673237 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 (29673248) result : ((1400771788,), (1400771954,), (1400771955,), (1400771973,), (1400771974,), (1400771975,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29673237) result : ((1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29673249 , 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=29673237 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 (29673249) result : ((1400771763,), (1400771764,), (1400771765,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29673237) result : ((1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=29673237 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','Carton_brun','plastique','cartonnette','kraft','Teint_Dans_La_Masse','mal_croppe','metal','Carton_gris','flou','autre_refus')) 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`=29673237 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','environnement','Carton_brun','plastique','cartonnette','kraft','Teint_Dans_La_Masse','mal_croppe','metal','Carton_gris','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29673237, 'sub_port_id': 29673250, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267027, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 59)}, 'papier': {'main_port_id': 29673237, 'sub_port_id': 29673251, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267028, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 59)}, 'mal_croppe': {'main_port_id': 29673237, 'sub_port_id': 29673252, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267029, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 59)}, 'environnement': {'main_port_id': 29673237, 'sub_port_id': 29673253, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267030, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 59)}, 'flou': {'main_port_id': 29673237, 'sub_port_id': 29673254, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267031, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29673237, 'sub_port_id': 29673255, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267032, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 59)}, 'cartonnette': {'main_port_id': 29673237, 'sub_port_id': 29673256, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267033, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 59)}, 'Carton_gris': {'main_port_id': 29673237, 'sub_port_id': 29673257, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267034, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 59)}, 'metal': {'main_port_id': 29673237, 'sub_port_id': 29673258, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267035, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 59)}, 'plastique': {'main_port_id': 29673237, 'sub_port_id': 29673259, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267036, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 59)}, 'autre_refus': {'main_port_id': 29673237, 'sub_port_id': 29673260, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267037, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 59)}, 'kraft': {'main_port_id': 29673237, 'sub_port_id': 29673261, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20267038, 'last_updated_at': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 3, 2, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29673250,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29673238 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29673251,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29673239 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29673252,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29673240 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29673253,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29673241 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29673254,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29673242 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29673255,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29673243 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29673256,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29673244 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29673257,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29673245 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29673258,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29673246 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29673259,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29673247 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29673260,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29673248 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29673261,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29673249 lien utilise dans velours : https://marlene.fotonower.com/velours/29673250,29673251,29673252,29673253,29673254,29673255,29673256,29673257,29673258,29673259,29673260,29673261?tags=Carton_brun,papier,mal_croppe,environnement,flou,Teint_Dans_La_Masse,cartonnette,Carton_gris,metal,plastique,autre_refus,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29673237]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1400772064, 1400772063, 1400772045, 1400772029, 1400772027, 1400772023, 1400772020, 1400772017, 1400772013, 1400771999, 1400771995, 1400771991, 1400771986, 1400771976] map_info['map_portfolio_photo'] : {29673237: [1400772064, 1400772063, 1400772045, 1400772029, 1400772027, 1400772023, 1400772020, 1400772017, 1400772013, 1400771999, 1400771995, 1400771991, 1400771986, 1400771976, 1400771943, 1400771941, 1400771939, 1400771936, 1400771911, 1400771909, 1400771907, 1400771904, 1400771888, 1400771851, 1400771848, 1400771844, 1400771840, 1400771836, 1400771832, 1400771811, 1400771809, 1400771808, 1400771781, 1400771778, 1400771775, 1400771772, 1400771769, 1400771744, 1400771740, 1400771736, 1400771732, 1400771724, 1400771719, 1400771698, 1400771694, 1400771691, 1400771688, 1400771670, 1400771668, 1400771666, 1400771664, 1400771662, 1400771658, 1400771638, 1400771633, 1400771629, 1400771626, 1400771622, 1400771606, 1400771604, 1400771601, 1400771597, 1400771593, 1400771560, 1400771557, 1400771552]} final : False mtd_id 4302 list_pids : [1400772064, 1400772063, 1400772045, 1400772029, 1400772027, 1400772023, 1400772020, 1400772017, 1400772013, 1400771999, 1400771995, 1400771991, 1400771986, 1400771976] Looping around the photos to save general results len do output : 1 /29673237. 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, '4266482') ('4302', '29673237', '1400772064', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772063', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772045', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772029', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772027', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772023', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772020', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772017', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772013', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771999', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771995', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771991', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771986', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771976', None, None, None, None, None, '4266482') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '29673237', "{'Carton_brun': 29673238, 'papier': 29673239, 'mal_croppe': 29673240, 'environnement': 29673241, 'flou': 29673242, 'Teint_Dans_La_Masse': 29673243, 'cartonnette': 29673244, 'Carton_gris': 29673245, 'metal': 29673246, 'plastique': 29673247, 'autre_refus': 29673248, 'kraft': 29673249}", None, None, None, None, '4266482'), ('4302', '29673237', '1400772064', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772063', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772045', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772029', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772027', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772023', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772020', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772017', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772013', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771999', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771995', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771991', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771986', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771976', None, None, None, None, None, '4266482')] time used for this insertion : 0.015600204467773438 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8725180625915527 time spend to save output : 0.015956878662109375 total time spend for step 1 : 1.888474941253662 step2:final Wed Dec 24 03:15:00 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 (29673237) 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 29673237 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1400771560,1400771557,1400771552,1400771606,1400771604,1400771601,1400771597,1400771593,1400771638,1400771633,1400771629,1400771626,1400771622,1400771670,1400771668,1400771666,1400771664,1400771662,1400771658,1400771698,1400771694,1400771691,1400771688,1400771744,1400771740,1400771736,1400771732,1400771724,1400771719,1400771781,1400771778,1400771775,1400771772,1400771769,1400771811,1400771809,1400771808,1400771851,1400771848,1400771844,1400771840,1400771836,1400771832,1400771911,1400771909,1400771907,1400771904,1400771888,1400771943,1400771941,1400771939,1400771936,1400771999,1400771995,1400771991,1400771986,1400771976,1400772029,1400772027,1400772023,1400772020,1400772017,1400772013,1400772064,1400772063,1400772045); 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([29673237]) Inside saveOutput : final : False verbose : True original output for save of step final : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} new output for save of step final : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} [1400772064, 1400772063, 1400772045, 1400772029, 1400772027, 1400772023, 1400772020, 1400772017, 1400772013, 1400771999, 1400771995, 1400771991, 1400771986, 1400771976] map_info['map_portfolio_photo'] : {29673237: [1400772064, 1400772063, 1400772045, 1400772029, 1400772027, 1400772023, 1400772020, 1400772017, 1400772013, 1400771999, 1400771995, 1400771991, 1400771986, 1400771976, 1400771943, 1400771941, 1400771939, 1400771936, 1400771911, 1400771909, 1400771907, 1400771904, 1400771888, 1400771851, 1400771848, 1400771844, 1400771840, 1400771836, 1400771832, 1400771811, 1400771809, 1400771808, 1400771781, 1400771778, 1400771775, 1400771772, 1400771769, 1400771744, 1400771740, 1400771736, 1400771732, 1400771724, 1400771719, 1400771698, 1400771694, 1400771691, 1400771688, 1400771670, 1400771668, 1400771666, 1400771664, 1400771662, 1400771658, 1400771638, 1400771633, 1400771629, 1400771626, 1400771622, 1400771606, 1400771604, 1400771601, 1400771597, 1400771593, 1400771560, 1400771557, 1400771552]} final : False mtd_id 4302 list_pids : [1400772064, 1400772063, 1400772045, 1400772029, 1400772027, 1400772023, 1400772020, 1400772017, 1400772013, 1400771999, 1400771995, 1400771991, 1400771986, 1400771976] Looping around the photos to save general results len do output : 14 /1400772064.Didn't retrieve data . /1400772063.Didn't retrieve data . /1400772045.Didn't retrieve data . /1400772029.Didn't retrieve data . /1400772027.Didn't retrieve data . /1400772023.Didn't retrieve data . /1400772020.Didn't retrieve data . /1400772017.Didn't retrieve data . /1400772013.Didn't retrieve data . /1400771999.Didn't retrieve data . /1400771995.Didn't retrieve data . /1400771991.Didn't retrieve data . /1400771986.Didn't retrieve data . /1400771976.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, '4266482') ('4302', '29673237', '1400772064', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772063', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772045', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772029', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772027', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772023', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772020', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772017', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772013', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771999', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771995', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771991', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771986', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771976', None, None, None, None, None, '4266482') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '29673237', '1400772064', '0.04621984448307407', None, None, None, None, '4266482'), ('4302', '29673237', '1400772063', '0.04621984448307407', None, None, None, None, '4266482'), ('4302', '29673237', '1400772045', '0.04621984448307407', None, None, None, None, '4266482'), ('4302', '29673237', '1400772029', '0.04621984448307407', None, None, None, None, '4266482'), ('4302', '29673237', '1400772027', '0.04621984448307407', None, None, None, None, '4266482'), ('4302', '29673237', '1400772023', '0.04621984448307407', None, None, None, None, '4266482'), ('4302', '29673237', '1400772020', '0.04621984448307407', None, None, None, None, '4266482'), ('4302', '29673237', '1400772017', '0.04621984448307407', None, None, None, None, '4266482'), ('4302', '29673237', '1400772013', '0.04621984448307407', None, None, None, None, '4266482'), ('4302', '29673237', '1400771999', '0.04621984448307407', None, None, None, None, '4266482'), ('4302', '29673237', '1400771995', '0.04621984448307407', None, None, None, None, '4266482'), ('4302', '29673237', '1400771991', '0.04621984448307407', None, None, None, None, '4266482'), ('4302', '29673237', '1400771986', '0.04621984448307407', None, None, None, None, '4266482'), ('4302', '29673237', '1400771976', '0.04621984448307407', None, None, None, None, '4266482')] time used for this insertion : 0.016409635543823242 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08111333847045898 time spend to save output : 0.017045974731445312 total time spend for step 2 : 0.0981593132019043 step3:velours_tree Wed Dec 24 03:15:00 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 : {29673237: [{'Carton_brun': 29673238, 'papier': 29673239, 'mal_croppe': 29673240, 'environnement': 29673241, 'flou': 29673242, 'Teint_Dans_La_Masse': 29673243, 'cartonnette': 29673244, 'Carton_gris': 29673245, 'metal': 29673246, 'plastique': 29673247, 'autre_refus': 29673248, 'kraft': 29673249}]} input_args_next_step : {29673237: ()} output_args : {29673237: [{'Carton_brun': 29673238, 'papier': 29673239, 'mal_croppe': 29673240, 'environnement': 29673241, 'flou': 29673242, 'Teint_Dans_La_Masse': 29673243, 'cartonnette': 29673244, 'Carton_gris': 29673245, 'metal': 29673246, 'plastique': 29673247, 'autre_refus': 29673248, 'kraft': 29673249}]} args : 29673237 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 : ({'Carton_brun': 29673238, 'papier': 29673239, 'mal_croppe': 29673240, 'environnement': 29673241, 'flou': 29673242, 'Teint_Dans_La_Masse': 29673243, 'cartonnette': 29673244, 'Carton_gris': 29673245, 'metal': 29673246, 'plastique': 29673247, 'autre_refus': 29673248, 'kraft': 29673249},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29673237) 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([29673237]) 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.2741081714630127 time spend to save output : 4.00543212890625e-05 total time spend for step 3 : 0.27414822578430176 step4:send_mail_cod Wed Dec 24 03:15:00 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 : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} input_args_next_step : {1400772064: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400772064 depend.output_id : 0 input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400772063 depend.output_id : 0 input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400772045 depend.output_id : 0 input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400772029 depend.output_id : 0 input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400772027 depend.output_id : 0 input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400772023 depend.output_id : 0 input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400772020 depend.output_id : 0 input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400772017 depend.output_id : 0 input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400772013 depend.output_id : 0 input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400771999 depend.output_id : 0 input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400771995 depend.output_id : 0 input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400771991 depend.output_id : 0 input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400771986 depend.output_id : 0 input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ()} output_args : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',)} args : 1400771976 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 : {29673237: [{'Carton_brun': 29673238, 'papier': 29673239, 'mal_croppe': 29673240, 'environnement': 29673241, 'flou': 29673242, 'Teint_Dans_La_Masse': 29673243, 'cartonnette': 29673244, 'Carton_gris': 29673245, 'metal': 29673246, 'plastique': 29673247, 'autre_refus': 29673248, 'kraft': 29673249}]} input_args_next_step : {1400772064: ('0.04621984448307407',), 1400772063: ('0.04621984448307407',), 1400772045: ('0.04621984448307407',), 1400772029: ('0.04621984448307407',), 1400772027: ('0.04621984448307407',), 1400772023: ('0.04621984448307407',), 1400772020: ('0.04621984448307407',), 1400772017: ('0.04621984448307407',), 1400772013: ('0.04621984448307407',), 1400771999: ('0.04621984448307407',), 1400771995: ('0.04621984448307407',), 1400771991: ('0.04621984448307407',), 1400771986: ('0.04621984448307407',), 1400771976: ('0.04621984448307407',), 29673237: ()} output_args : {29673237: [{'Carton_brun': 29673238, 'papier': 29673239, 'mal_croppe': 29673240, 'environnement': 29673241, 'flou': 29673242, 'Teint_Dans_La_Masse': 29673243, 'cartonnette': 29673244, 'Carton_gris': 29673245, 'metal': 29673246, 'plastique': 29673247, 'autre_refus': 29673248, 'kraft': 29673249}]} args : 29673237 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 :15, first value : ('0.04621984448307407',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29673237) 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 (1400772064,1400772063,1400772045,1400772029,1400772027,1400772023,1400772020,1400772017,1400772013,1400771999,1400771995,1400771991,1400771986,1400771976) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1400771976 begin to download photo : 1400771995 begin to download photo : 1400772017 begin to download photo : 1400772027 begin to download photo : 1400772063 download finish for photo 1400771995 begin to download photo : 1400771999 download finish for photo 1400771976 begin to download photo : 1400771986 download finish for photo 1400772027 begin to download photo : 1400772029 download finish for photo 1400772063 begin to download photo : 1400772064 download finish for photo 1400772017 begin to download photo : 1400772020 download finish for photo 1400771999 begin to download photo : 1400772013 download finish for photo 1400771986 begin to download photo : 1400771991 download finish for photo 1400772029 begin to download photo : 1400772045 download finish for photo 1400772064 download finish for photo 1400772020 begin to download photo : 1400772023 download finish for photo 1400771991 download finish for photo 1400772013 download finish for photo 1400772045 download finish for photo 1400772023 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette296732401766542501/ imagette296732421766542501/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P29673237_24-12-2025_03_15_01.pdf 29673240 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=29673240 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296732401766542501 29673242 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=29673242 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296732421766542501 29673244 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=29673244 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400771761: '1766541987_3770778_1400771626_cd62c92527fb206f514ffcc9455ad5c7_rle_crop_4079663105_0.png', 1400771927: '1766542228_3782021_1400771808_aa4e3a0e39d36020b7eabc42866b7830_rle_crop_4079664099_0.png', 1400772051: '1766542405_3792543_1400771666_ee98773ba9ded073335ad3e314dc4fd3_rle_crop_4079664853_0.png', 1400772052: '1766542405_3792543_1400771662_468c41eff9a36c6e1372918e9d7b728e_rle_crop_4079664887_0.png', 1400772053: '1766542405_3792543_1400771662_468c41eff9a36c6e1372918e9d7b728e_rle_crop_4079664884_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/85215b9427bbf5dc66f8c60a8ab2d519_48758574.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/a8458684fe95fecb943a2fe744753ab5_1179908.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/f6dfff6f87bc8fe2c19b29f0d9bc02b9_858036.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/45c728b8f68014cae69ee06de799f0c4_77290358.png change filename to text .imagette296732441766542501/ imagette296732441766542501/1766542405_3792543_1400771666_ee98773ba9ded073335ad3e314dc4fd3_rle_crop_4079664853_0.png.png imagette296732441766542501/1766542405_3792543_1400771662_468c41eff9a36c6e1372918e9d7b728e_rle_crop_4079664884_0.png.png imagette296732441766542501/1766542228_3782021_1400771808_aa4e3a0e39d36020b7eabc42866b7830_rle_crop_4079664099_0.png.png imagette296732441766542501/1766541987_3770778_1400771626_cd62c92527fb206f514ffcc9455ad5c7_rle_crop_4079663105_0.png.png imagette296732441766542501/1766542405_3792543_1400771662_468c41eff9a36c6e1372918e9d7b728e_rle_crop_4079664887_0.png.png imagette296732461766542501/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/7db04904130828e4e7708ffbcf73e665_74701088.png imagette296732441766542501 29673246 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=29673246 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296732461766542501 29673247 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=29673247 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400771794: '1766542026_3772305_1400771597_c94176168a91b4f894eada402452f3a2_rle_crop_4079663286_0.png', 1400771804: '1766542047_3772734_1400771557_263e9292fa0cd1a077fa2238563eee6c_rle_crop_4079663451_0.png', 1400771805: '1766542047_3772734_1400771552_cbc0040dcde77b331677cdb808504e4d_rle_crop_4079663466_0.png', 1400771964: '1766542266_3784625_1400771778_56ec6dd149280cb23977e1c0586f7148_rle_crop_4079664272_0.png', 1400771987: '1766542287_3786935_1400771736_c966e04c84e89e5a3ae9f92fa164d912_rle_crop_4079664524_0.png', 1400771988: '1766542287_3786935_1400771724_358d6620b971ae64f9c098e539a86725_rle_crop_4079664562_0.png', 1400772056: '1766542405_3792543_1400771658_2457a9b58be4a38f0b823d321b1e499d_rle_crop_4079664899_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/8a911a5da265e28b648d080e1e6c9aad_95950835.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/309198c1e4d86d926a1b94b27bc09e17_50601685.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/b60a1ba10fc9ba9819a1378cd7c88703_74689435.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/e27c7ce37d044c950f71c69dcea9797e_43459213.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/5cdbf3aac2ced39b217578be3d2e7c5b_15494664.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/fed0674e6d80ce4e6f4652aa8d1b7c21_18732249.png change filename to text .imagette296732471766542501/ imagette296732471766542501/1766542026_3772305_1400771597_c94176168a91b4f894eada402452f3a2_rle_crop_4079663286_0.png.png imagette296732471766542501/1766542287_3786935_1400771736_c966e04c84e89e5a3ae9f92fa164d912_rle_crop_4079664524_0.png.png imagette296732471766542501/1766542047_3772734_1400771557_263e9292fa0cd1a077fa2238563eee6c_rle_crop_4079663451_0.png.png imagette296732471766542501/1766542287_3786935_1400771724_358d6620b971ae64f9c098e539a86725_rle_crop_4079664562_0.png.png imagette296732471766542501/1766542405_3792543_1400771658_2457a9b58be4a38f0b823d321b1e499d_rle_crop_4079664899_0.png.png imagette296732471766542501/1766542047_3772734_1400771552_cbc0040dcde77b331677cdb808504e4d_rle_crop_4079663466_0.png.png imagette296732471766542501/1766542266_3784625_1400771778_56ec6dd149280cb23977e1c0586f7148_rle_crop_4079664272_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/4d50d4161e7b956172b3e0476d3f8a1f_9648627.png imagette296732471766542501 29673248 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=29673248 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400771788: '1766542026_3772305_1400771601_87968bc35bc8ae93d93526ff12074775_rle_crop_4079663274_0.png', 1400771954: '1766542266_3784625_1400771778_56ec6dd149280cb23977e1c0586f7148_rle_crop_4079664270_0.png', 1400771955: '1766542266_3784625_1400771775_b98444e121b460efa7a50d344fd19453_rle_crop_4079664290_0.png', 1400771973: '1766542287_3786935_1400771781_a7fd382c4ff34f05d2ffb1c341607e08_rle_crop_4079664507_0.png', 1400771974: '1766542287_3786935_1400771736_c966e04c84e89e5a3ae9f92fa164d912_rle_crop_4079664534_0.png', 1400771975: '1766542287_3786935_1400771732_c2b4d681fb6771ffdfa7480657e97d7b_rle_crop_4079664549_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/a99e6399d181c1b9a22f2b05899cd21f_23050874.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/d71cc64896088bbe5c7fac9e5c50224c_89233486.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/0baa70056d0884e9e2bf705d221b61fd_53697565.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/2ea6d46b748a39af7e2099374837e60b_85503794.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/990b9c17e21ac58ecf49b03eb297a739_49488675.png change filename to text .imagette296732481766542502/ imagette296732481766542502/1766542287_3786935_1400771732_c2b4d681fb6771ffdfa7480657e97d7b_rle_crop_4079664549_0.png.png imagette296732481766542502/1766542287_3786935_1400771736_c966e04c84e89e5a3ae9f92fa164d912_rle_crop_4079664534_0.png.png imagette296732481766542502/1766542287_3786935_1400771781_a7fd382c4ff34f05d2ffb1c341607e08_rle_crop_4079664507_0.png.png imagette296732481766542502/1766542266_3784625_1400771778_56ec6dd149280cb23977e1c0586f7148_rle_crop_4079664270_0.png.png imagette296732481766542502/1766542266_3784625_1400771775_b98444e121b460efa7a50d344fd19453_rle_crop_4079664290_0.png.png imagette296732481766542502/1766542026_3772305_1400771601_87968bc35bc8ae93d93526ff12074775_rle_crop_4079663274_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/063148598479244d84441a5ee10bd91a_97847291.png imagette296732481766542502 29673249 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=29673249 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400771763: '1766541987_3770778_1400771629_2554d21661167a3f4c4e3dd723722000_rle_crop_4079663095_0.png', 1400771764: '1766541987_3770778_1400771626_cd62c92527fb206f514ffcc9455ad5c7_rle_crop_4079663109_0.png', 1400771765: '1766541987_3770778_1400771622_9535c815728e3d3bbc471123d83c085f_rle_crop_4079663122_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/2d9366f1b806c9778c772ab45b077ec0_72250999.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/b158dc1078d5c6410983955f737ca679_21378801.png change filename to text .imagette296732491766542502/ imagette296732491766542502/1766541987_3770778_1400771626_cd62c92527fb206f514ffcc9455ad5c7_rle_crop_4079663109_0.png.png imagette296732491766542502/1766541987_3770778_1400771622_9535c815728e3d3bbc471123d83c085f_rle_crop_4079663122_0.png.png imagette296732491766542502/1766541987_3770778_1400771629_2554d21661167a3f4c4e3dd723722000_rle_crop_4079663095_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/99e949660ab55f2030243133ced8ca8b_74655763.png imagette296732491766542502 29673238 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=29673238 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400771791: '1766542026_3772305_1400771601_87968bc35bc8ae93d93526ff12074775_rle_crop_4079663276_0.png', 1400771929: '1766542228_3782021_1400771809_abdff3224c069ab171426e85eabf4661_rle_crop_4079664089_0.png', 1400771958: '1766542266_3784625_1400771811_48aeab657b5fe1f06f19ee5ef768e0b5_rle_crop_4079664257_0.png', 1400771959: '1766542266_3784625_1400771778_56ec6dd149280cb23977e1c0586f7148_rle_crop_4079664274_0.png', 1400771960: '1766542266_3784625_1400771778_56ec6dd149280cb23977e1c0586f7148_rle_crop_4079664280_0.png', 1400771961: '1766542266_3784625_1400771775_b98444e121b460efa7a50d344fd19453_rle_crop_4079664291_0.png', 1400771962: '1766542266_3784625_1400771772_4ceb11b5c8a42027256af9d9549d0183_rle_crop_4079664307_0.png', 1400771963: '1766542266_3784625_1400771769_c6fdd333d9a3256e7523985f2e9fd004_rle_crop_4079664319_0.png', 1400771980: '1766542287_3786935_1400771736_c966e04c84e89e5a3ae9f92fa164d912_rle_crop_4079664533_0.png', 1400771981: '1766542287_3786935_1400771736_c966e04c84e89e5a3ae9f92fa164d912_rle_crop_4079664538_0.png', 1400771982: '1766542287_3786935_1400771732_c2b4d681fb6771ffdfa7480657e97d7b_rle_crop_4079664547_0.png', 1400771983: '1766542287_3786935_1400771732_c2b4d681fb6771ffdfa7480657e97d7b_rle_crop_4079664550_0.png', 1400771984: '1766542287_3786935_1400771724_358d6620b971ae64f9c098e539a86725_rle_crop_4079664566_0.png', 1400771985: '1766542287_3786935_1400771719_1e109c054bebaae8f402f9febfbaf33b_rle_crop_4079664581_0.png', 1400772055: '1766542405_3792543_1400771698_e4ee722f29ad3cb3d5886b926ddd734f_rle_crop_4079664824_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/2a2d530fea9e44c3c76dc91d13f432bc_88020217.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/76fe87ae0a74245049a495034f1acaea_29172833.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/064a7bc8b3afec72acc57d54f819a415_14626481.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/08db325274dc0ed849f7d1e930ea4d87_92678504.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/fc1455caa1b2e1a4ca95380ada43a540_13387596.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/1a5c8b074ecd7e60abe8545b059503bd_29597916.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/38f758464732a9bff71a1067a5d9e0c7_59963619.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/839f67dd64f2fe31c957dc1a1a6ac0f4_92483916.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/7fdc91648c3898a60e611d7dd57d4a35_21866426.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/b6d526de84fbfe39cb6af5069cab57d5_15548807.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/476ba38c4a825b28f8ce921116f132fc_48150887.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/21671a7e7314b78ecc69ee790f8636f7_15788009.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/0c3d335fcf2b8d5502743edb830c708d_57215882.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/c7ade648d76584950d42b6aa04025501_89775280.png change filename to text .imagette296732381766542502/ imagette296732381766542502/1766542228_3782021_1400771809_abdff3224c069ab171426e85eabf4661_rle_crop_4079664089_0.png.png imagette296732381766542502/1766542266_3784625_1400771778_56ec6dd149280cb23977e1c0586f7148_rle_crop_4079664274_0.png.png imagette296732381766542502/1766542287_3786935_1400771724_358d6620b971ae64f9c098e539a86725_rle_crop_4079664566_0.png.png imagette296732381766542502/1766542266_3784625_1400771811_48aeab657b5fe1f06f19ee5ef768e0b5_rle_crop_4079664257_0.png.png imagette296732381766542502/1766542266_3784625_1400771778_56ec6dd149280cb23977e1c0586f7148_rle_crop_4079664280_0.png.png imagette296732381766542502/1766542287_3786935_1400771719_1e109c054bebaae8f402f9febfbaf33b_rle_crop_4079664581_0.png.png imagette296732381766542502/1766542266_3784625_1400771769_c6fdd333d9a3256e7523985f2e9fd004_rle_crop_4079664319_0.png.png imagette296732381766542502/1766542266_3784625_1400771772_4ceb11b5c8a42027256af9d9549d0183_rle_crop_4079664307_0.png.png imagette296732381766542502/1766542287_3786935_1400771732_c2b4d681fb6771ffdfa7480657e97d7b_rle_crop_4079664550_0.png.png imagette296732381766542502/1766542026_3772305_1400771601_87968bc35bc8ae93d93526ff12074775_rle_crop_4079663276_0.png.png imagette296732381766542502/1766542266_3784625_1400771775_b98444e121b460efa7a50d344fd19453_rle_crop_4079664291_0.png.png imagette296732381766542502/1766542287_3786935_1400771736_c966e04c84e89e5a3ae9f92fa164d912_rle_crop_4079664533_0.png.png imagette296732381766542502/1766542405_3792543_1400771698_e4ee722f29ad3cb3d5886b926ddd734f_rle_crop_4079664824_0.png.png imagette296732381766542502/1766542287_3786935_1400771732_c2b4d681fb6771ffdfa7480657e97d7b_rle_crop_4079664547_0.png.png imagette296732381766542502/1766542287_3786935_1400771736_c966e04c84e89e5a3ae9f92fa164d912_rle_crop_4079664538_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/f9fd40d1e6880068075e3949d761f307_19835286.png imagette296732381766542502 29673243 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=29673243 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400771753: '1766541987_3770778_1400771626_cd62c92527fb206f514ffcc9455ad5c7_rle_crop_4079663113_0.png', 1400771754: '1766541987_3770778_1400771626_cd62c92527fb206f514ffcc9455ad5c7_rle_crop_4079663114_0.png', 1400771755: '1766541987_3770778_1400771622_9535c815728e3d3bbc471123d83c085f_rle_crop_4079663128_0.png', 1400771756: '1766541987_3770778_1400771622_9535c815728e3d3bbc471123d83c085f_rle_crop_4079663130_0.png', 1400771786: '1766542026_3772305_1400771604_136b386372cf14125af935c2ee2a24e1_rle_crop_4079663259_0.png', 1400771787: '1766542026_3772305_1400771597_c94176168a91b4f894eada402452f3a2_rle_crop_4079663293_0.png', 1400771971: '1766542287_3786935_1400771781_a7fd382c4ff34f05d2ffb1c341607e08_rle_crop_4079664511_0.png', 1400771972: '1766542287_3786935_1400771724_358d6620b971ae64f9c098e539a86725_rle_crop_4079664563_0.png', 1400772044: '1766542405_3792543_1400771666_ee98773ba9ded073335ad3e314dc4fd3_rle_crop_4079664865_0.png', 1400772079: '1766542467_3795883_1400771991_2d49888fec71f9deaac4039722c1b5b4_rle_crop_4079665017_0.png', 1400772080: '1766542467_3795883_1400771991_2d49888fec71f9deaac4039722c1b5b4_rle_crop_4079665018_0.png', 1400772081: '1766542467_3795883_1400771986_b74e9f7654df28e913cd0c8683264e13_rle_crop_4079665029_0.png', 1400772082: '1766542467_3795883_1400771976_904c55b10e531bb7615205911d6be565_rle_crop_4079665045_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/821ffa97bc4dd79369f28328d48d58ba_19093012.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/5ec87bf48928709871bb4f18e1f479b4_18127862.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/48409dbf8047f4929155c56397a80674_40635163.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/b280878c9acc573f08e98bbaececc715_78676706.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/c7d7c113e3cf9229da3cae5db24040ab_4534401.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/be61203ae81c07c0ea9212f6abe9c2c3_59317704.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/aec9488fc5bdf145d5e8ad9dfba03d30_44809233.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/60b4f37e1d96b12f5aaa4100e0421265_94464331.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/2029297a24373bab9d5f74a2b3f74848_9431230.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/ada443d760dc4bee7e1e23d3b122766c_24310297.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/23dcd26cb020189dcab7ad731ddb2263_51154800.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/80486fdcf9791e1fb45bf15f6f46cfd9_57442434.png change filename to text .imagette296732431766542503/ imagette296732431766542503/1766542026_3772305_1400771597_c94176168a91b4f894eada402452f3a2_rle_crop_4079663293_0.png.png imagette296732431766542503/1766542287_3786935_1400771781_a7fd382c4ff34f05d2ffb1c341607e08_rle_crop_4079664511_0.png.png imagette296732431766542503/1766542026_3772305_1400771604_136b386372cf14125af935c2ee2a24e1_rle_crop_4079663259_0.png.png imagette296732431766542503/1766541987_3770778_1400771622_9535c815728e3d3bbc471123d83c085f_rle_crop_4079663128_0.png.png imagette296732431766542503/1766542467_3795883_1400771991_2d49888fec71f9deaac4039722c1b5b4_rle_crop_4079665017_0.png.png imagette296732431766542503/1766541987_3770778_1400771626_cd62c92527fb206f514ffcc9455ad5c7_rle_crop_4079663114_0.png.png imagette296732431766542503/1766541987_3770778_1400771622_9535c815728e3d3bbc471123d83c085f_rle_crop_4079663130_0.png.png imagette296732431766542503/1766542405_3792543_1400771666_ee98773ba9ded073335ad3e314dc4fd3_rle_crop_4079664865_0.png.png imagette296732431766542503/1766542467_3795883_1400771991_2d49888fec71f9deaac4039722c1b5b4_rle_crop_4079665018_0.png.png imagette296732431766542503/1766542467_3795883_1400771976_904c55b10e531bb7615205911d6be565_rle_crop_4079665045_0.png.png imagette296732431766542503/1766542467_3795883_1400771986_b74e9f7654df28e913cd0c8683264e13_rle_crop_4079665029_0.png.png imagette296732431766542503/1766542287_3786935_1400771724_358d6620b971ae64f9c098e539a86725_rle_crop_4079664563_0.png.png imagette296732431766542503/1766541987_3770778_1400771626_cd62c92527fb206f514ffcc9455ad5c7_rle_crop_4079663113_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/af9316a502d286b01716494e4b6050cb_9992293.png imagette296732431766542503 29673245 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=29673245 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400771757: '1766541987_3770778_1400771626_cd62c92527fb206f514ffcc9455ad5c7_rle_crop_4079663104_0.png', 1400771758: '1766541987_3770778_1400771622_9535c815728e3d3bbc471123d83c085f_rle_crop_4079663124_0.png', 1400771789: '1766542026_3772305_1400771597_c94176168a91b4f894eada402452f3a2_rle_crop_4079663288_0.png', 1400771924: '1766542228_3782021_1400771808_aa4e3a0e39d36020b7eabc42866b7830_rle_crop_4079664098_0.png', 1400771977: '1766542287_3786935_1400771781_a7fd382c4ff34f05d2ffb1c341607e08_rle_crop_4079664510_0.png', 1400772046: '1766542405_3792543_1400771698_e4ee722f29ad3cb3d5886b926ddd734f_rle_crop_4079664822_0.png', 1400772047: '1766542405_3792543_1400771666_ee98773ba9ded073335ad3e314dc4fd3_rle_crop_4079664854_0.png', 1400772048: '1766542405_3792543_1400771664_11710a4426af26ff839705332a03ecc7_rle_crop_4079664871_0.png', 1400772049: '1766542405_3792543_1400771662_468c41eff9a36c6e1372918e9d7b728e_rle_crop_4079664883_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/a51aa8229848de40d2ae137c75d1528e_75636661.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/d7fc58c13ba773b3815c5c1c5511e5c4_38201559.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/aa97a9cda83c6706d4c7195e276cc01a_65619738.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/967e6b6be1246283accf5a3eedb780a7_41853642.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/e2c1cb8f086e08645e89a2cc914741ae_29622634.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/32033bc5dc46de5a7d6a991213d4d6cb_98006893.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/b0c1da43978968ab43af53ae4a1d3bb7_99195765.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/56bc6fb0c7b8e5d12c73d435043cefa9_5060398.png change filename to text .imagette296732451766542504/ imagette296732451766542504/1766542405_3792543_1400771666_ee98773ba9ded073335ad3e314dc4fd3_rle_crop_4079664854_0.png.png imagette296732451766542504/1766542405_3792543_1400771662_468c41eff9a36c6e1372918e9d7b728e_rle_crop_4079664883_0.png.png imagette296732451766542504/1766542228_3782021_1400771808_aa4e3a0e39d36020b7eabc42866b7830_rle_crop_4079664098_0.png.png imagette296732451766542504/1766542026_3772305_1400771597_c94176168a91b4f894eada402452f3a2_rle_crop_4079663288_0.png.png imagette296732451766542504/1766541987_3770778_1400771622_9535c815728e3d3bbc471123d83c085f_rle_crop_4079663124_0.png.png imagette296732451766542504/1766542405_3792543_1400771664_11710a4426af26ff839705332a03ecc7_rle_crop_4079664871_0.png.png imagette296732451766542504/1766542287_3786935_1400771781_a7fd382c4ff34f05d2ffb1c341607e08_rle_crop_4079664510_0.png.png imagette296732451766542504/1766542405_3792543_1400771698_e4ee722f29ad3cb3d5886b926ddd734f_rle_crop_4079664822_0.png.png imagette296732451766542504/1766541987_3770778_1400771626_cd62c92527fb206f514ffcc9455ad5c7_rle_crop_4079663104_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/c322e1d70b56cf7210e1790e5f2545a1_12099463.png imagette296732451766542504 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29673237 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29673250,29673251,29673252,29673253,29673254,29673255,29673256,29673257,29673258,29673259,29673260,29673261?tags=Carton_brun,papier,mal_croppe,environnement,flou,Teint_Dans_La_Masse,cartonnette,Carton_gris,metal,plastique,autre_refus,kraft your option no_mail is active, we will not send the real mail to your client args[1400772064] : ('0.04621984448307407',) no score found for photo 1400772064 We are sending mail with results at report@fotonower.com args[1400772063] : ('0.04621984448307407',) no score found for photo 1400772063 We are sending mail with results at report@fotonower.com args[1400772045] : ('0.04621984448307407',) no score found for photo 1400772045 We are sending mail with results at report@fotonower.com args[1400772029] : ('0.04621984448307407',) no score found for photo 1400772029 We are sending mail with results at report@fotonower.com args[1400772027] : ('0.04621984448307407',) no score found for photo 1400772027 We are sending mail with results at report@fotonower.com args[1400772023] : ('0.04621984448307407',) no score found for photo 1400772023 We are sending mail with results at report@fotonower.com args[1400772020] : ('0.04621984448307407',) no score found for photo 1400772020 We are sending mail with results at report@fotonower.com args[1400772017] : ('0.04621984448307407',) no score found for photo 1400772017 We are sending mail with results at report@fotonower.com args[1400772013] : ('0.04621984448307407',) no score found for photo 1400772013 We are sending mail with results at report@fotonower.com args[1400771999] : ('0.04621984448307407',) no score found for photo 1400771999 We are sending mail with results at report@fotonower.com args[1400771995] : ('0.04621984448307407',) no score found for photo 1400771995 We are sending mail with results at report@fotonower.com args[1400771991] : ('0.04621984448307407',) no score found for photo 1400771991 We are sending mail with results at report@fotonower.com args[1400771986] : ('0.04621984448307407',) no score found for photo 1400771986 We are sending mail with results at report@fotonower.com args[1400771976] : ('0.04621984448307407',) no score found for photo 1400771976 We are sending mail with results at report@fotonower.com refus_total : 0.04621984448307407 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=29673237 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_P29673237_24-12-2025_03_15_01.pdf results_Auto_P29673237_24-12-2025_03_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673237_24-12-2025_03_15_01.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','29673237','results_Auto_P29673237_24-12-2025_03_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673237_24-12-2025_03_15_01.pdf','pdf','','0.28','0.04621984448307407') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29673237]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1400772064, 1400772063, 1400772045, 1400772029, 1400772027, 1400772023, 1400772020, 1400772017, 1400772013, 1400771999, 1400771995, 1400771991, 1400771986, 1400771976] map_info['map_portfolio_photo'] : {29673237: [1400772064, 1400772063, 1400772045, 1400772029, 1400772027, 1400772023, 1400772020, 1400772017, 1400772013, 1400771999, 1400771995, 1400771991, 1400771986, 1400771976, 1400771943, 1400771941, 1400771939, 1400771936, 1400771911, 1400771909, 1400771907, 1400771904, 1400771888, 1400771851, 1400771848, 1400771844, 1400771840, 1400771836, 1400771832, 1400771811, 1400771809, 1400771808, 1400771781, 1400771778, 1400771775, 1400771772, 1400771769, 1400771744, 1400771740, 1400771736, 1400771732, 1400771724, 1400771719, 1400771698, 1400771694, 1400771691, 1400771688, 1400771670, 1400771668, 1400771666, 1400771664, 1400771662, 1400771658, 1400771638, 1400771633, 1400771629, 1400771626, 1400771622, 1400771606, 1400771604, 1400771601, 1400771597, 1400771593, 1400771560, 1400771557, 1400771552]} final : False mtd_id 4302 list_pids : [1400772064, 1400772063, 1400772045, 1400772029, 1400772027, 1400772023, 1400772020, 1400772017, 1400772013, 1400771999, 1400771995, 1400771991, 1400771986, 1400771976] 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, '4266482') ('4302', '29673237', '1400772064', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772063', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772045', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772029', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772027', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772023', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772020', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772017', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772013', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771999', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771995', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771991', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771986', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771976', None, None, None, None, None, '4266482') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '29673237', '1400772064', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772063', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772045', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772029', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772027', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772023', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772020', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772017', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772013', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771999', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771995', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771991', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771986', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771976', None, None, None, None, None, '4266482')] time used for this insertion : 0.01829671859741211 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.10787296295166 time spend to save output : 0.01856541633605957 total time spend for step 4 : 6.12643837928772 step5:split_time_score Wed Dec 24 03:15:06 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 : ['29673237'] 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 : [('29673237',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29673237) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1400772063: {'path': 'temp/1766542500_1455119_1400772063_0d3e80a1f4937420bf8c23e25fe3120b.jpg', 'extension': 'jpg'}, 1400772064: {'path': 'temp/1766542500_1455119_1400772064_916265ce4b98ca38a376421deaf6799b.jpg', 'extension': 'jpg'}, 1400771976: {'path': 'temp/1766542500_1455119_1400771976_904c55b10e531bb7615205911d6be565.jpg', 'extension': 'jpg'}, 1400771986: {'path': 'temp/1766542500_1455119_1400771986_b74e9f7654df28e913cd0c8683264e13.jpg', 'extension': 'jpg'}, 1400771991: {'path': 'temp/1766542500_1455119_1400771991_2d49888fec71f9deaac4039722c1b5b4.jpg', 'extension': 'jpg'}, 1400771995: {'path': 'temp/1766542500_1455119_1400771995_549aa36ee933e16dea7a4bd6fa7dd002.jpg', 'extension': 'jpg'}, 1400771999: {'path': 'temp/1766542500_1455119_1400771999_2aab261f86842aae4f448fa6796e4173.jpg', 'extension': 'jpg'}, 1400772013: {'path': 'temp/1766542500_1455119_1400772013_b11b647812cb1f5d4fb15b93a7a896cb.jpg', 'extension': 'jpg'}, 1400772027: {'path': 'temp/1766542500_1455119_1400772027_a85ce5af64d50253ba813c47ee8570fa.jpg', 'extension': 'jpg'}, 1400772029: {'path': 'temp/1766542500_1455119_1400772029_c4c7cfbdf6437d5c0c3db5d6147be5da.jpg', 'extension': 'jpg'}, 1400772045: {'path': 'temp/1766542500_1455119_1400772045_4861d05795b4c88f01be560482a74bf8.jpg', 'extension': 'jpg'}, 1400772017: {'path': 'temp/1766542500_1455119_1400772017_e560726b2c836fed833b29be785ee92b.jpg', 'extension': 'jpg'}, 1400772020: {'path': 'temp/1766542500_1455119_1400772020_413abbff8f8d993058e5d084b10342d6.jpg', 'extension': 'jpg'}, 1400772023: {'path': 'temp/1766542500_1455119_1400772023_7af748747c87be8146ef35ebb2671953.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 = 29673237; (('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 = 29673237 group by h (('03', 66),) 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=29673237 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 (29673237) 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 (29673237) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24122025 29673237 Nombre de photos uploadées : 66 / 23040 (0%) 24122025 29673237 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 24122025 29673237 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1400771560, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/83c86e08a81bc082ed22b7a060548105.jpg', 'username': None, 'uploaded_at': 1766541668, 'text': 'image_24122025_03_00_14_010211m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400771557, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/263e9292fa0cd1a077fa2238563eee6c.jpg', 'username': None, 'uploaded_at': 1766541668, 'text': 'image_24122025_03_00_34_010138m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1400771552, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/cbc0040dcde77b331677cdb808504e4d.jpg', 'username': None, 'uploaded_at': 1766541668, 'text': 'image_24122025_03_00_44_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400771606, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/5324558c420df657e250cae1ced1d6f4.jpg', 'username': None, 'uploaded_at': 1766541738, 'text': 'image_24122025_03_00_54_010136m0.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.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002826690673828125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29673237, '2025-12-24' ) 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 (2781885,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.255756139755249 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= 2781885 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789096, 'mtr_portfolio_id': 29668057, 'dashboard_result_id': 18679758, '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_P29668057_24-12-2025_00_19_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668074, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789096, 'mtr_portfolio_id': 29668522, 'dashboard_result_id': 18679759, '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_P29668522_24-12-2025_00_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668536, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789096, 'mtr_portfolio_id': 29668997, 'dashboard_result_id': 18679760, '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_P29668997_24-12-2025_00_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669015, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789096, 'mtr_portfolio_id': 29669483, 'dashboard_result_id': 18679761, '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_P29669483_24-12-2025_01_03_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669502, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789096, 'mtr_portfolio_id': 29670567, 'dashboard_result_id': 18679762, '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_P29670567_24-12-2025_01_47_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670580, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789096, 'mtr_portfolio_id': 29670856, 'dashboard_result_id': 18679763, '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_P29670856_24-12-2025_02_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670872, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789096, 'mtr_portfolio_id': 29671273, 'dashboard_result_id': 18679764, '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_P29671273_24-12-2025_02_19_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671357, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789096, 'mtr_portfolio_id': 29671897, 'dashboard_result_id': 18679765, '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_P29671897_24-12-2025_02_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671936, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789096, 'mtr_portfolio_id': 29672417, 'dashboard_result_id': 18679766, '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_P29672417_24-12-2025_02_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29672424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672435, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789096, 'mtr_portfolio_id': 29672816, 'dashboard_result_id': 18679767, '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_P29672816_24-12-2025_03_00_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29672850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672852, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789096, 'mtr_portfolio_id': 29673237, 'dashboard_result_id': 18679768, '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_P29673237_24-12-2025_03_12_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673249, '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 = 29668057 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': 4265770, 'mtr_portfolio_id': 29668057, 'created_at': datetime.datetime(2025, 12, 24, 0, 19, 31), 'result': '0.06135353829280031', 'result_long': None, 'result_double': None}] Qualite : 0.06135353829280031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29668057 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668057_24-12-2025_00_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29668057 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_P29668057_24-12-2025_00_19_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668074, 'pht': 3726}}" where mtr_portfolio_id = 29668057 and dashboard_run_id = 2789096 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`=29668057 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18679758, 0.06135353829280031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668057_24-12-2025_00_19_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668074, '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 = 29668522 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': 4265831, 'mtr_portfolio_id': 29668522, 'created_at': datetime.datetime(2025, 12, 24, 0, 33, 3), 'result': '0.05424920509000451', 'result_long': None, 'result_double': None}] Qualite : 0.05424920509000451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29668522 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668522_24-12-2025_00_33_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29668522 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_P29668522_24-12-2025_00_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668536, 'pht': 3726}}" where mtr_portfolio_id = 29668522 and dashboard_run_id = 2789096 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`=29668522 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18679759, 0.05424920509000451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668522_24-12-2025_00_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668536, '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 = 29668997 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': 4265902, 'mtr_portfolio_id': 29668997, 'created_at': datetime.datetime(2025, 12, 24, 0, 49, 2), 'result': '0.028189047341204393', 'result_long': None, 'result_double': None}] Qualite : 0.028189047341204393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29668997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668997_24-12-2025_00_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29668997 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_P29668997_24-12-2025_00_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669015, 'pht': 3726}}" where mtr_portfolio_id = 29668997 and dashboard_run_id = 2789096 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`=29668997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18679760, 0.028189047341204393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668997_24-12-2025_00_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669015, '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 = 29669483 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': 4265972, 'mtr_portfolio_id': 29669483, 'created_at': datetime.datetime(2025, 12, 24, 1, 3, 2), 'result': '0.039287696512471944', 'result_long': None, 'result_double': None}] Qualite : 0.039287696512471944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29669483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29669483_24-12-2025_01_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29669483 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_P29669483_24-12-2025_01_03_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669502, 'pht': 3726}}" where mtr_portfolio_id = 29669483 and dashboard_run_id = 2789096 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`=29669483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18679761, 0.039287696512471944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29669483_24-12-2025_01_03_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669502, '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 = 29670567 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': 4266119, 'mtr_portfolio_id': 29670567, 'created_at': datetime.datetime(2025, 12, 24, 1, 47, 3), 'result': '0.037633975953310125', 'result_long': None, 'result_double': None}] Qualite : 0.037633975953310125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29670567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670567_24-12-2025_01_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29670567 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_P29670567_24-12-2025_01_47_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670580, 'pht': 3726}}" where mtr_portfolio_id = 29670567 and dashboard_run_id = 2789096 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`=29670567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18679762, 0.037633975953310125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670567_24-12-2025_01_47_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670580, '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 = 29670856 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': 4266155, 'mtr_portfolio_id': 29670856, 'created_at': datetime.datetime(2025, 12, 24, 2, 4, 31), 'result': '0.07641640149739097', 'result_long': None, 'result_double': None}] Qualite : 0.07641640149739097 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29670856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670856_24-12-2025_02_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29670856 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_P29670856_24-12-2025_02_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670872, 'pht': 3726}}" where mtr_portfolio_id = 29670856 and dashboard_run_id = 2789096 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`=29670856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18679763, 0.07641640149739097, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670856_24-12-2025_02_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670872, '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 = 29671273 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': 4266240, 'mtr_portfolio_id': 29671273, 'created_at': datetime.datetime(2025, 12, 24, 2, 19, 29), 'result': '0.041436645449697156', 'result_long': None, 'result_double': None}] Qualite : 0.041436645449697156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29671273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671273_24-12-2025_02_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29671273 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_P29671273_24-12-2025_02_19_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671357, 'pht': 3726}}" where mtr_portfolio_id = 29671273 and dashboard_run_id = 2789096 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`=29671273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18679764, 0.041436645449697156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671273_24-12-2025_02_19_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671357, '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 = 29671897 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': 4266310, 'mtr_portfolio_id': 29671897, 'created_at': datetime.datetime(2025, 12, 24, 2, 32, 59), 'result': '0.03722838001781973', 'result_long': None, 'result_double': None}] Qualite : 0.03722838001781973 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29671897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671897_24-12-2025_02_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29671897 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_P29671897_24-12-2025_02_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671936, 'pht': 3726}}" where mtr_portfolio_id = 29671897 and dashboard_run_id = 2789098 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`=29671897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18679765, 0.03722838001781973, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671897_24-12-2025_02_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671936, '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 = 29672417 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': 4266373, 'mtr_portfolio_id': 29672417, 'created_at': datetime.datetime(2025, 12, 24, 2, 48, 58), 'result': '0.053284267866979956', 'result_long': None, 'result_double': None}] Qualite : 0.053284267866979956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29672417 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672417_24-12-2025_02_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29672417 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_P29672417_24-12-2025_02_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29672424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672435, 'pht': 3726}}" where mtr_portfolio_id = 29672417 and dashboard_run_id = 2789098 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`=29672417 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18679766, 0.053284267866979956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672417_24-12-2025_02_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29672424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672435, '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 = 29672816 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': 4266429, 'mtr_portfolio_id': 29672816, 'created_at': datetime.datetime(2025, 12, 24, 3, 0, 38), 'result': '0.03568720601012977', 'result_long': None, 'result_double': None}] Qualite : 0.03568720601012977 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29672816 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672816_24-12-2025_03_00_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29672816 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_P29672816_24-12-2025_03_00_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29672850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672852, 'pht': 3726}}" where mtr_portfolio_id = 29672816 and dashboard_run_id = 2789098 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`=29672816 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18679767, 0.03568720601012977, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672816_24-12-2025_03_00_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29672850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672852, '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 = 29673237 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': 4266482, 'mtr_portfolio_id': 29673237, 'created_at': datetime.datetime(2025, 12, 24, 3, 15), 'result': '0.04621984448307407', 'result_long': None, 'result_double': None}] Qualite : 0.04621984448307407 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29673237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673237_24-12-2025_03_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29673237 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_P29673237_24-12-2025_03_15_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673249, 'pht': 3726}}" where mtr_portfolio_id = 29673237 and dashboard_run_id = 2789098 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`=29673237 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18679768, 0.04621984448307407, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673237_24-12-2025_03_15_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673249, '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 (29668057,29668522,29668997,29669483,29670567,29670856,29671273,29671897,29672417,29672816,29673237) result : ((1400757182,), (1400757200,), (1400757201,), (1400757219,), (1400757222,), (1400757225,), (1400757229,), (1400757233,), (1400757235,), (1400757291,), (1400757316,), (1400757349,), (1400757377,), (1400757746,), (1400757819,), (1400757890,), (1400757967,), (1400758048,), (1400758117,), (1400758458,), (1400758524,), (1400758596,), (1400758705,), (1400758733,), (1400758760,), (1400758785,), (1400759140,), (1400759145,), (1400759284,), (1400759286,), (1400759288,), (1400759291,), (1400759295,), (1400759299,), (1400759375,), (1400759403,), (1400759434,), (1400759459,), (1400759715,), (1400759753,), (1400759789,), (1400759925,), (1400759927,), (1400759938,), (1400759965,), (1400760110,), (1400760118,), (1400760120,), (1400760144,), (1400760148,), (1400760152,), (1400760155,), (1400760368,), (1400760397,), (1400760424,), (1400760451,), (1400760481,), (1400760511,), (1400760514,), (1400760517,), (1400760521,), (1400760525,), (1400760530,), (1400760537,), (1400760539,), (1400760555,), (1400760546,), (1400760549,), (1400760552,), (1400760570,), (1400760573,), (1400760578,), (1400760581,), (1400760587,), (1400760590,), (1400760617,), (1400760620,), (1400760622,), (1400760668,), (1400760698,), (1400760726,), (1400760758,), (1400760868,), (1400760871,), (1400760873,), (1400760876,), (1400760902,), (1400761049,), (1400761051,), (1400761053,), (1400761055,), (1400761057,), (1400761059,), (1400761079,), (1400761085,), (1400761088,), (1400761091,), (1400761101,), (1400761103,), (1400761105,), (1400761107,), (1400761110,), (1400761116,), (1400761119,), (1400761121,), (1400761136,), (1400761138,), (1400761141,), (1400761143,), (1400761147,), (1400761150,), (1400761161,), (1400761164,), (1400761168,), (1400761172,), (1400761178,), (1400761181,), (1400761197,), (1400761201,), (1400761204,), (1400761213,), (1400761218,), (1400761228,), (1400761254,), (1400761281,), (1400761316,), (1400761624,), (1400761628,), (1400761633,), (1400761676,), (1400761703,), (1400761715,), (1400761917,), (1400761949,), (1400761978,), (1400761984,), (1400761987,), (1400762060,), (1400762070,), (1400762540,), (1400762554,), (1400762557,), (1400762466,), (1400762498,), (1400762529,), (1400762534,), (1400762538,), (1400762570,), (1400762581,), (1400762583,), (1400762585,), (1400762587,), (1400762597,), (1400762598,), (1400762601,), (1400762605,), (1400762621,), (1400762623,), (1400762625,), (1400762654,), (1400762675,), (1400762703,), (1400762731,), (1400762761,), (1400762788,), (1400762795,), (1400762797,), (1400762799,), (1400762812,), (1400762815,), (1400762818,), (1400762820,), (1400762822,), (1400762824,), (1400762835,), (1400762838,), (1400762840,), (1400762842,), (1400762864,), (1400762866,), (1400762869,), (1400762876,), (1400762881,), (1400762957,), (1400762961,), (1400762965,), (1400762969,), (1400762973,), (1400762975,), (1400762988,), (1400762997,), (1400763003,), (1400763005,), (1400763021,), (1400763023,), (1400763025,), (1400763027,), (1400763030,), (1400763033,), (1400763051,), (1400763054,), (1400763057,), (1400763059,), (1400763062,), (1400763085,), (1400763088,), (1400763090,), (1400763092,), (1400763095,), (1400763098,), (1400763113,), (1400763120,), (1400763125,), (1400763147,), (1400763152,), (1400763156,), (1400763160,), (1400763163,), (1400763165,), (1400763198,), (1400763201,), (1400763204,), (1400763222,), (1400763239,), (1400763246,), (1400763248,), (1400763250,), (1400763253,), (1400763281,), (1400763190,), (1400763192,), (1400763195,), (1400763263,), (1400763266,), (1400763268,), (1400763276,), (1400763292,), (1400763341,), (1400763403,), (1400763450,), (1400763453,), (1400763474,), (1400763522,), (1400763528,), (1400763617,), (1400763620,), (1400763622,), (1400763626,), (1400763628,), (1400763631,), (1400763649,), (1400763653,), (1400763657,), (1400763663,), (1400763668,), (1400763670,), (1400763687,), (1400763692,), (1400763697,), (1400763728,), (1400763755,), (1400763758,), (1400763784,), (1400763790,), (1400763794,), (1400763798,), (1400763802,), (1400763804,), (1400763807,), (1400763822,), (1400763845,), (1400763848,), (1400763851,), (1400763870,), (1400763880,), (1400763890,), (1400763918,), (1400763922,), (1400763925,), (1400763930,), (1400763934,), (1400763949,), (1400765913,), (1400765916,), (1400765918,), (1400765937,), (1400765940,), (1400765944,), (1400765948,), (1400765972,), (1400765976,), (1400765995,), (1400765999,), (1400766004,), (1400766009,), (1400766026,), (1400766030,), (1400766034,), (1400766038,), (1400766054,), (1400766058,), (1400766061,), (1400766087,), (1400766089,), (1400766091,), (1400766094,), (1400766098,), (1400766102,), (1400766112,), (1400766115,), (1400766118,), (1400766121,), (1400766150,), (1400766154,), (1400766155,), (1400766158,), (1400766160,), (1400766175,), (1400766177,), (1400766178,), (1400766201,), (1400766210,), (1400766213,), (1400766216,), (1400766218,), (1400766220,), (1400766238,), (1400766241,), (1400766244,), (1400766248,), (1400766252,), (1400766256,), (1400766272,), (1400766274,), (1400766276,), (1400766295,), (1400766298,), (1400766301,), (1400766357,), (1400766340,), (1400766347,), (1400766355,), (1400766373,), (1400766375,), (1400766377,), (1400766381,), (1400766402,), (1400766412,), (1400766415,), (1400766441,), (1400766445,), (1400766449,), (1400766453,), (1400766477,), (1400766479,), (1400766481,), (1400766500,), (1400766504,), (1400766509,), (1400766515,), (1400766519,), (1400766521,), (1400766544,), (1400766548,), (1400766551,), (1400766567,), (1400766569,), (1400766571,), (1400766574,), (1400766601,), (1400766604,), (1400766607,), (1400766610,), (1400766632,), (1400766636,), (1400766640,), (1400766644,), (1400766648,), (1400766651,), (1400766654,), (1400766670,), (1400766673,), (1400766676,), (1400766678,), (1400766681,), (1400766684,), (1400766692,), (1400766695,), (1400766698,), (1400766702,), (1400766738,), (1400766741,), (1400766744,), (1400766748,), (1400766752,), (1400766756,), (1400766923,), (1400766958,), (1400766989,), (1400767018,), (1400767143,), (1400767124,), (1400767136,), (1400767140,), (1400767157,), (1400767184,), (1400767211,), (1400767240,), (1400767268,), (1400767486,), (1400768100,), (1400768152,), (1400768180,), (1400768206,), (1400768228,), (1400768428,), (1400768456,), (1400768482,), (1400768529,), (1400768558,), (1400768594,), (1400768660,), (1400768669,), (1400768679,), (1400768706,), (1400768782,), (1400768830,), (1400768898,), (1400768964,), (1400769266,), (1400769304,), (1400769344,), (1400769385,), (1400769568,), (1400769571,), (1400769574,), (1400769617,), (1400769668,), (1400769709,), (1400769846,), (1400769867,), (1400769871,), (1400769875,), (1400769879,), (1400769892,), (1400769896,), (1400769905,), (1400769915,), (1400769930,), (1400769941,), (1400769948,), (1400769960,), (1400769963,), (1400769966,), (1400769973,), (1400769974,), (1400769979,), (1400769993,), (1400769997,), (1400770000,), (1400770001,), (1400770002,), (1400770004,), (1400770007,), (1400770016,), (1400770019,), (1400770041,), (1400770050,), (1400770055,), (1400770058,), (1400770062,), (1400770066,), (1400770082,), (1400770092,), (1400770095,), (1400770097,), (1400770100,), (1400770104,), (1400770141,), (1400770121,), (1400770128,), (1400770134,), (1400770137,), (1400770155,), (1400770159,), (1400770161,), (1400770165,), (1400770168,), (1400770187,), (1400770190,), (1400770192,), (1400770197,), (1400770207,), (1400770216,), (1400770229,), (1400770237,), (1400770241,), (1400770246,), (1400770250,), (1400770266,), (1400770269,), (1400770272,), (1400770275,), (1400770279,), (1400770283,), (1400770300,), (1400770302,), (1400770304,), (1400770307,), (1400770310,), (1400770312,), (1400770319,), (1400770320,), (1400770321,), (1400770324,), (1400770343,), (1400770347,), (1400770351,), (1400770353,), (1400770366,), (1400770369,), (1400770372,), (1400770375,), (1400770378,), (1400770381,), (1400770407,), (1400770409,), (1400770411,), (1400770431,), (1400770433,), (1400770436,), (1400770440,), (1400770444,), (1400770469,), (1400770472,), (1400770474,), (1400770476,), (1400770479,), (1400770500,), (1400770503,), (1400770507,), (1400770512,), (1400770524,), (1400770549,), (1400770553,), (1400770555,), (1400770557,), (1400770559,), (1400770667,), (1400770660,), (1400770661,), (1400770665,), (1400770709,), (1400770734,), (1400770737,), (1400770776,), (1400770805,), (1400770807,), (1400770809,), (1400770812,), (1400770815,), (1400770833,), (1400770837,), (1400770840,), (1400770843,), (1400770846,), (1400770864,), (1400770869,), (1400770877,), (1400770880,), (1400770896,), (1400770900,), (1400770902,), (1400770904,), (1400770906,), (1400770908,), (1400770921,), (1400770932,), (1400770938,), (1400770946,), (1400770952,), (1400770968,), (1400770972,), (1400770975,), (1400770977,), (1400770979,), (1400771002,), (1400771009,), (1400771010,), (1400771011,), (1400771014,), (1400771017,), (1400771032,), (1400771036,), (1400771040,), (1400771045,), (1400771049,), (1400771052,), (1400771056,), (1400771057,), (1400771058,), (1400771064,), (1400771090,), (1400771081,), (1400771083,), (1400771084,), (1400771085,), (1400771087,), (1400771099,), (1400771103,), (1400771105,), (1400771107,), (1400771109,), (1400771137,), (1400771139,), (1400771141,), (1400771144,), (1400771146,), (1400771148,), (1400771166,), (1400771168,), (1400771170,), (1400771173,), (1400771176,), (1400771188,), (1400771200,), (1400771209,), (1400771219,), (1400771239,), (1400771243,), (1400771245,), (1400771247,), (1400771249,), (1400771251,), (1400771279,), (1400771281,), (1400771283,), (1400771286,), (1400771290,), (1400771309,), (1400771315,), (1400771318,), (1400771345,), (1400771351,), (1400771352,), (1400771353,), (1400771375,), (1400771378,), (1400771382,), (1400771386,), (1400771391,), (1400771393,), (1400771402,), (1400771403,), (1400771404,), (1400771424,), (1400771428,), (1400771432,), (1400771434,), (1400771435,), (1400771436,), (1400771450,), (1400771454,), (1400771481,), (1400771489,), (1400771493,), (1400771496,), (1400771499,), (1400771502,), (1400771517,), (1400771523,), (1400771527,), (1400771532,), (1400771536,), (1400771540,), (1400771563,), (1400771566,), (1400771569,), (1400771577,), (1400771582,), (1400771584,), (1400771585,), (1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24122025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29673237]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1400772064, 1400772063, 1400772045, 1400772029, 1400772027, 1400772023, 1400772020, 1400772017, 1400772013, 1400771999, 1400771995, 1400771991, 1400771986, 1400771976] map_info['map_portfolio_photo'] : {29673237: [1400772064, 1400772063, 1400772045, 1400772029, 1400772027, 1400772023, 1400772020, 1400772017, 1400772013, 1400771999, 1400771995, 1400771991, 1400771986, 1400771976, 1400771943, 1400771941, 1400771939, 1400771936, 1400771911, 1400771909, 1400771907, 1400771904, 1400771888, 1400771851, 1400771848, 1400771844, 1400771840, 1400771836, 1400771832, 1400771811, 1400771809, 1400771808, 1400771781, 1400771778, 1400771775, 1400771772, 1400771769, 1400771744, 1400771740, 1400771736, 1400771732, 1400771724, 1400771719, 1400771698, 1400771694, 1400771691, 1400771688, 1400771670, 1400771668, 1400771666, 1400771664, 1400771662, 1400771658, 1400771638, 1400771633, 1400771629, 1400771626, 1400771622, 1400771606, 1400771604, 1400771601, 1400771597, 1400771593, 1400771560, 1400771557, 1400771552]} final : True mtd_id 4302 list_pids : [1400772064, 1400772063, 1400772045, 1400772029, 1400772027, 1400772023, 1400772020, 1400772017, 1400772013, 1400771999, 1400771995, 1400771991, 1400771986, 1400771976] Looping around the photos to save general results len do output : 1 /29673237Didn'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, '4266482') ('4302', '29673237', '1400772064', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772063', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772045', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772029', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772027', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772023', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772020', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772017', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400772013', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771999', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771995', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771991', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771986', None, None, None, None, None, '4266482') ('4302', None, None, None, None, None, None, None, '4266482') ('4302', '29673237', '1400771976', None, None, None, None, None, '4266482') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '29673237', 'None', None, None, None, None, '4266482'), ('4302', '29673237', '1400772064', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772063', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772045', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772029', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772027', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772023', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772020', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772017', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400772013', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771999', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771995', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771991', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771986', None, None, None, None, None, '4266482'), ('4302', '29673237', '1400771976', None, None, None, None, None, '4266482')] time used for this insertion : 0.016709327697753906 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0928192138671875 time spend to save output : 0.01694631576538086 total time spend for step 5 : 1.1097655296325684 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 (4266482) 2.28user 2.51system 0:13.72elapsed 34%CPU (0avgtext+0avgdata 167832maxresident)k 272inputs+15592outputs (6major+79729minor)pagefaults 0swaps