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 : 2612266 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 (3761969) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3761969) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27118722 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3761969'] with mtr_portfolio_ids : ['27118722'] and first list_photo_ids : [] new path : /proc/2612266/ Name: python3 Umask: 0002 State: R (running) Tgid: 2612266 Ngid: 0 Pid: 2612266 PPid: 2612265 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2612266 NSpid: 2612266 NSpgid: 2610456 NSsid: 2610456 VmPeak: 1106852 kB VmSize: 1106852 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98268 kB VmRSS: 98268 kB RssAnon: 59840 kB RssFile: 38428 kB RssShmem: 0 kB VmData: 865604 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 93 nonvoluntary_ctxt_switches: 141 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2612266', 'Ngid': '0', 'Pid': '2612266', 'PPid': '2612265', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2612266', 'NSpid': '2612266', 'NSpgid': '2610456', 'NSsid': '2610456', 'VmPeak': '1106852 kB', 'VmSize': '1106852 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98268 kB', 'VmRSS': '98268 kB', 'RssAnon': '59840 kB', 'RssFile': '38428 kB', 'RssShmem': '0 kB', 'VmData': '865604 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '93', 'nonvoluntary_ctxt_switches': '141'} ('datou_batch_current', '2612266', '1106852', '0', '1106852', '865604', '98268', b'', 'marlene', '3761969') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27118722) 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 (3761969 ) ) 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 (27118722) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1385609883, 'portfolio_id': 27118722}, {'photo_id': 1385609720, 'portfolio_id': 27118722}, {'photo_id': 1385609719, 'portfolio_id': 27118722}, {'photo_id': 1385609718, 'portfolio_id': 27118722}, {'photo_id': 1385609416, 'portfolio_id': 27118722}, {'photo_id': 1385609378, 'portfolio_id': 27118722}, {'photo_id': 1385609354, 'portfolio_id': 27118722}, {'photo_id': 1385609326, 'portfolio_id': 27118722}, {'photo_id': 1385608983, 'portfolio_id': 27118722}, {'photo_id': 1385608948, 'portfolio_id': 27118722}, {'photo_id': 1385608620, 'portfolio_id': 27118722}, {'photo_id': 1385608592, 'portfolio_id': 27118722}, {'photo_id': 1385608566, 'portfolio_id': 27118722}, {'photo_id': 1385608406, 'portfolio_id': 27118722}, {'photo_id': 1385608319, 'portfolio_id': 27118722}, {'photo_id': 1385608317, 'portfolio_id': 27118722}, {'photo_id': 1385608007, 'portfolio_id': 27118722}, {'photo_id': 1385607653, 'portfolio_id': 27118722}, {'photo_id': 1385607232, 'portfolio_id': 27118722}, {'photo_id': 1385606793, 'portfolio_id': 27118722}, {'photo_id': 1385606742, 'portfolio_id': 27118722}, {'photo_id': 1385606260, 'portfolio_id': 27118722}, {'photo_id': 1385606234, 'portfolio_id': 27118722}, {'photo_id': 1385606208, 'portfolio_id': 27118722}, {'photo_id': 1385605949, 'portfolio_id': 27118722}, {'photo_id': 1385605945, 'portfolio_id': 27118722}, {'photo_id': 1385605895, 'portfolio_id': 27118722}, {'photo_id': 1385605891, 'portfolio_id': 27118722}, {'photo_id': 1385605886, 'portfolio_id': 27118722}] map_portfolio_id_photo_id: {27118722: [1385609883, 1385609720, 1385609719, 1385609718, 1385609416, 1385609378, 1385609354, 1385609326, 1385608983, 1385608948, 1385608620, 1385608592, 1385608566, 1385608406, 1385608319, 1385608317, 1385608007, 1385607653, 1385607232, 1385606793, 1385606742, 1385606260, 1385606234, 1385606208, 1385605949, 1385605945, 1385605895, 1385605891, 1385605886]} ##### 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.014132499694824219 #### 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 Tue Sep 23 08:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27118722) 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 : 27118722 get user id for portfolio 27118722 get sub ptf for main ptf 27118722, type 3726 and hashtags ['kraft', 'cartonnette', 'mal_croppe', 'papier', 'plastique', 'Carton_brun', 'metal', 'flou', 'Teint_Dans_La_Masse', 'Carton_gris', 'environnement', '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`=27118722 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','mal_croppe','papier','plastique','Carton_brun','metal','flou','Teint_Dans_La_Masse','Carton_gris','environnement','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`=27118722 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','mal_croppe','papier','plastique','Carton_brun','metal','flou','Teint_Dans_La_Masse','Carton_gris','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 27118722, 'sub_port_id': 27118731, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309430, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 27118722, 'sub_port_id': 27118732, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309431, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 56)}, 'Carton_gris': {'main_port_id': 27118722, 'sub_port_id': 27118733, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309432, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 56)}, 'flou': {'main_port_id': 27118722, 'sub_port_id': 27118734, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309433, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 56)}, 'environnement': {'main_port_id': 27118722, 'sub_port_id': 27118735, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309434, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 56)}, 'cartonnette': {'main_port_id': 27118722, 'sub_port_id': 27118736, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309435, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 56)}, 'papier': {'main_port_id': 27118722, 'sub_port_id': 27118737, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309436, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 56)}, 'plastique': {'main_port_id': 27118722, 'sub_port_id': 27118738, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309437, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 56)}, 'metal': {'main_port_id': 27118722, 'sub_port_id': 27118739, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309438, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 56)}, 'kraft': {'main_port_id': 27118722, 'sub_port_id': 27118740, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309439, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 56)}, 'Carton_brun': {'main_port_id': 27118722, 'sub_port_id': 27118741, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309440, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 56)}, 'autre_refus': {'main_port_id': 27118722, 'sub_port_id': 27118742, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309441, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27118731 , 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=27118722 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 (27118731) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27118722) result : ((1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,)) 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 27118732 , 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=27118722 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 (27118732) result : ((1385608303,), (1385608304,), (1385608305,), (1385608306,), (1385608308,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27118722) result : ((1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,)) 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 27118733 , 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=27118722 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 (27118733) result : ((1385608311,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27118722) result : ((1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,)) 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 27118734 , 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=27118722 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 (27118734) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27118722) result : ((1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,)) 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 27118735 , 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=27118722 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 (27118735) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27118722) result : ((1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,)) 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 27118736 , 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=27118722 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 (27118736) result : ((1385608312,), (1385608313,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27118722) result : ((1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,)) 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 27118737 , 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=27118722 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 (27118737) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27118722) result : ((1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,)) 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 27118738 , 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=27118722 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 (27118738) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27118722) result : ((1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,)) 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 27118739 , 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=27118722 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 (27118739) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27118722) result : ((1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,)) 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 27118740 , 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=27118722 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 (27118740) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27118722) result : ((1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,)) 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 27118741 , 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=27118722 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 (27118741) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27118722) result : ((1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,)) 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 27118742 , 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=27118722 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 (27118742) result : ((1385608307,), (1385608309,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27118722) result : ((1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,)) 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`=27118722 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','mal_croppe','papier','plastique','Carton_brun','metal','flou','Teint_Dans_La_Masse','Carton_gris','environnement','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`=27118722 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','mal_croppe','papier','plastique','Carton_brun','metal','flou','Teint_Dans_La_Masse','Carton_gris','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 27118722, 'sub_port_id': 27118744, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309442, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 27118722, 'sub_port_id': 27118745, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309443, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 58)}, 'Carton_gris': {'main_port_id': 27118722, 'sub_port_id': 27118746, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309444, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 58)}, 'flou': {'main_port_id': 27118722, 'sub_port_id': 27118747, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309445, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 58)}, 'environnement': {'main_port_id': 27118722, 'sub_port_id': 27118748, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309446, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 58)}, 'cartonnette': {'main_port_id': 27118722, 'sub_port_id': 27118749, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309447, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 58)}, 'papier': {'main_port_id': 27118722, 'sub_port_id': 27118750, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309448, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 58)}, 'plastique': {'main_port_id': 27118722, 'sub_port_id': 27118751, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309449, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 58)}, 'metal': {'main_port_id': 27118722, 'sub_port_id': 27118752, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309450, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 58)}, 'kraft': {'main_port_id': 27118722, 'sub_port_id': 27118753, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309451, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 58)}, 'Carton_brun': {'main_port_id': 27118722, 'sub_port_id': 27118754, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309452, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 58)}, 'autre_refus': {'main_port_id': 27118722, 'sub_port_id': 27118755, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18309453, 'last_updated_at': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 8, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27118744,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27118731 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27118745,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27118732 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27118746,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27118733 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27118747,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27118734 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27118748,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27118735 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27118749,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27118736 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27118750,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27118737 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27118751,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27118738 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27118752,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27118739 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27118753,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27118740 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27118754,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27118741 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27118755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27118742 lien utilise dans velours : https://marlene.fotonower.com/velours/27118744,27118745,27118746,27118747,27118748,27118749,27118750,27118751,27118752,27118753,27118754,27118755?tags=mal_croppe,Teint_Dans_La_Masse,Carton_gris,flou,environnement,cartonnette,papier,plastique,metal,kraft,Carton_brun,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27118722]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1385609883, 1385609720, 1385609719, 1385609718] map_info['map_portfolio_photo'] : {27118722: [1385609883, 1385609720, 1385609719, 1385609718, 1385609416, 1385609378, 1385609354, 1385609326, 1385608983, 1385608948, 1385608620, 1385608592, 1385608566, 1385608406, 1385608319, 1385608317, 1385608007, 1385607653, 1385607232, 1385606793, 1385606742, 1385606260, 1385606234, 1385606208, 1385605949, 1385605945, 1385605895, 1385605891, 1385605886]} final : False mtd_id 4302 list_pids : [1385609883, 1385609720, 1385609719, 1385609718] Looping around the photos to save general results len do output : 1 /27118722. 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, '3761969') ('4302', '27118722', '1385609883', None, None, None, None, None, '3761969') ('4302', None, None, None, None, None, None, None, '3761969') ('4302', '27118722', '1385609720', None, None, None, None, None, '3761969') ('4302', None, None, None, None, None, None, None, '3761969') ('4302', '27118722', '1385609719', None, None, None, None, None, '3761969') ('4302', None, None, None, None, None, None, None, '3761969') ('4302', '27118722', '1385609718', None, None, None, None, None, '3761969') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '27118722', "{'mal_croppe': 27118731, 'Teint_Dans_La_Masse': 27118732, 'Carton_gris': 27118733, 'flou': 27118734, 'environnement': 27118735, 'cartonnette': 27118736, 'papier': 27118737, 'plastique': 27118738, 'metal': 27118739, 'kraft': 27118740, 'Carton_brun': 27118741, 'autre_refus': 27118742}", None, None, None, None, '3761969'), ('4302', '27118722', '1385609883', None, None, None, None, None, '3761969'), ('4302', '27118722', '1385609720', None, None, None, None, None, '3761969'), ('4302', '27118722', '1385609719', None, None, None, None, None, '3761969'), ('4302', '27118722', '1385609718', None, None, None, None, None, '3761969')] time used for this insertion : 0.011634349822998047 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5756375789642334 time spend to save output : 0.011872053146362305 total time spend for step 1 : 1.5875096321105957 step2:final Tue Sep 23 08:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (27118722) 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 27118722 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1385605895,1385605891,1385605886,1385605949,1385605945,1385606260,1385606234,1385606208,1385606793,1385606742,1385607653,1385607232,1385608007,1385608319,1385608317,1385608406,1385608620,1385608592,1385608566,1385608983,1385608948,1385609416,1385609378,1385609354,1385609326,1385609720,1385609719,1385609718,1385609883); 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([27118722]) Inside saveOutput : final : False verbose : True original output for save of step final : {1385609883: ('0.0592826388272603',), 1385609720: ('0.0592826388272603',), 1385609719: ('0.0592826388272603',), 1385609718: ('0.0592826388272603',)} new output for save of step final : {1385609883: ('0.0592826388272603',), 1385609720: ('0.0592826388272603',), 1385609719: ('0.0592826388272603',), 1385609718: ('0.0592826388272603',)} [1385609883, 1385609720, 1385609719, 1385609718] map_info['map_portfolio_photo'] : {27118722: [1385609883, 1385609720, 1385609719, 1385609718, 1385609416, 1385609378, 1385609354, 1385609326, 1385608983, 1385608948, 1385608620, 1385608592, 1385608566, 1385608406, 1385608319, 1385608317, 1385608007, 1385607653, 1385607232, 1385606793, 1385606742, 1385606260, 1385606234, 1385606208, 1385605949, 1385605945, 1385605895, 1385605891, 1385605886]} final : False mtd_id 4302 list_pids : [1385609883, 1385609720, 1385609719, 1385609718] Looping around the photos to save general results len do output : 4 /1385609883.Didn't retrieve data . /1385609720.Didn't retrieve data . /1385609719.Didn't retrieve data . /1385609718.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, '3761969') ('4302', '27118722', '1385609883', None, None, None, None, None, '3761969') ('4302', None, None, None, None, None, None, None, '3761969') ('4302', '27118722', '1385609720', None, None, None, None, None, '3761969') ('4302', None, None, None, None, None, None, None, '3761969') ('4302', '27118722', '1385609719', None, None, None, None, None, '3761969') ('4302', None, None, None, None, None, None, None, '3761969') ('4302', '27118722', '1385609718', None, None, None, None, None, '3761969') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '27118722', '1385609883', '0.0592826388272603', None, None, None, None, '3761969'), ('4302', '27118722', '1385609720', '0.0592826388272603', None, None, None, None, '3761969'), ('4302', '27118722', '1385609719', '0.0592826388272603', None, None, None, None, '3761969'), ('4302', '27118722', '1385609718', '0.0592826388272603', None, None, None, None, '3761969')] time used for this insertion : 0.044730186462402344 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.10292506217956543 time spend to save output : 0.045011043548583984 total time spend for step 2 : 0.14793610572814941 step3:velours_tree Tue Sep 23 08:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27118722: [{'mal_croppe': 27118731, 'Teint_Dans_La_Masse': 27118732, 'Carton_gris': 27118733, 'flou': 27118734, 'environnement': 27118735, 'cartonnette': 27118736, 'papier': 27118737, 'plastique': 27118738, 'metal': 27118739, 'kraft': 27118740, 'Carton_brun': 27118741, 'autre_refus': 27118742}]} input_args_next_step : {27118722: ()} output_args : {27118722: [{'mal_croppe': 27118731, 'Teint_Dans_La_Masse': 27118732, 'Carton_gris': 27118733, 'flou': 27118734, 'environnement': 27118735, 'cartonnette': 27118736, 'papier': 27118737, 'plastique': 27118738, 'metal': 27118739, 'kraft': 27118740, 'Carton_brun': 27118741, 'autre_refus': 27118742}]} args : 27118722 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 : ({'mal_croppe': 27118731, 'Teint_Dans_La_Masse': 27118732, 'Carton_gris': 27118733, 'flou': 27118734, 'environnement': 27118735, 'cartonnette': 27118736, 'papier': 27118737, 'plastique': 27118738, 'metal': 27118739, 'kraft': 27118740, 'Carton_brun': 27118741, 'autre_refus': 27118742},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27118722) 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([27118722]) 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.3321058750152588 time spend to save output : 5.650520324707031e-05 total time spend for step 3 : 0.33216238021850586 step4:send_mail_cod Tue Sep 23 08:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1385609883: ('0.0592826388272603',), 1385609720: ('0.0592826388272603',), 1385609719: ('0.0592826388272603',), 1385609718: ('0.0592826388272603',)} input_args_next_step : {1385609883: ()} output_args : {1385609883: ('0.0592826388272603',), 1385609720: ('0.0592826388272603',), 1385609719: ('0.0592826388272603',), 1385609718: ('0.0592826388272603',)} args : 1385609883 depend.output_id : 0 input_args_next_step : {1385609883: ('0.0592826388272603',), 1385609720: ()} output_args : {1385609883: ('0.0592826388272603',), 1385609720: ('0.0592826388272603',), 1385609719: ('0.0592826388272603',), 1385609718: ('0.0592826388272603',)} args : 1385609720 depend.output_id : 0 input_args_next_step : {1385609883: ('0.0592826388272603',), 1385609720: ('0.0592826388272603',), 1385609719: ()} output_args : {1385609883: ('0.0592826388272603',), 1385609720: ('0.0592826388272603',), 1385609719: ('0.0592826388272603',), 1385609718: ('0.0592826388272603',)} args : 1385609719 depend.output_id : 0 input_args_next_step : {1385609883: ('0.0592826388272603',), 1385609720: ('0.0592826388272603',), 1385609719: ('0.0592826388272603',), 1385609718: ()} output_args : {1385609883: ('0.0592826388272603',), 1385609720: ('0.0592826388272603',), 1385609719: ('0.0592826388272603',), 1385609718: ('0.0592826388272603',)} args : 1385609718 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 : {27118722: [{'mal_croppe': 27118731, 'Teint_Dans_La_Masse': 27118732, 'Carton_gris': 27118733, 'flou': 27118734, 'environnement': 27118735, 'cartonnette': 27118736, 'papier': 27118737, 'plastique': 27118738, 'metal': 27118739, 'kraft': 27118740, 'Carton_brun': 27118741, 'autre_refus': 27118742}]} input_args_next_step : {1385609883: ('0.0592826388272603',), 1385609720: ('0.0592826388272603',), 1385609719: ('0.0592826388272603',), 1385609718: ('0.0592826388272603',), 27118722: ()} output_args : {27118722: [{'mal_croppe': 27118731, 'Teint_Dans_La_Masse': 27118732, 'Carton_gris': 27118733, 'flou': 27118734, 'environnement': 27118735, 'cartonnette': 27118736, 'papier': 27118737, 'plastique': 27118738, 'metal': 27118739, 'kraft': 27118740, 'Carton_brun': 27118741, 'autre_refus': 27118742}]} args : 27118722 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 :5, first value : ('0.0592826388272603',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27118722) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1385609883,1385609720,1385609719,1385609718) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1385609718 begin to download photo : 1385609719 begin to download photo : 1385609720 begin to download photo : 1385609883 download finish for photo 1385609720 download finish for photo 1385609883 download finish for photo 1385609718 download finish for photo 1385609719 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette271187311758608100/ imagette271187341758608100/ length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P27118722_23-09-2025_08_15_00.pdf 27118731 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27118731 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271187311758608100 27118734 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27118734 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271187341758608100 27118736 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27118736 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385608312: '1758607644_6271_1385606793_7b61f7e04db5cad3261f7aa00c37b1b1_rle_crop_3971162021_0.png', 1385608313: '1758607644_6271_1385606208_4542f0b99ff4ab5d75be6d49371766c4_rle_crop_3971162068_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/a2419f2063a255ab760d3e5fbcef6716_69515505.png change filename to text .imagette271187361758608100/ imagette271187361758608100/1758607644_6271_1385606793_7b61f7e04db5cad3261f7aa00c37b1b1_rle_crop_3971162021_0.png.png imagette271187361758608100/1758607644_6271_1385606208_4542f0b99ff4ab5d75be6d49371766c4_rle_crop_3971162068_0.png.png imagette271187381758608100/ imagette271187391758608100/ imagette271187401758608100/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/b6cc09dc1fc233f6d63a8be660581e9e_51576702.png imagette271187361758608100 27118738 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27118738 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271187381758608100 27118739 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27118739 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271187391758608100 27118740 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27118740 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271187401758608100 27118742 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27118742 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385608307: '1758607625_5954_1385606260_89188afd8dfdfe4abe847ba596136b0a_rle_crop_3971162016_0.png', 1385608309: '1758607644_6271_1385606793_7b61f7e04db5cad3261f7aa00c37b1b1_rle_crop_3971162019_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/4f7dfae3240a350035cb7062b446a50a_542053.png change filename to text .imagette271187421758608100/ imagette271187421758608100/1758607644_6271_1385606793_7b61f7e04db5cad3261f7aa00c37b1b1_rle_crop_3971162019_0.png.png imagette271187421758608100/1758607625_5954_1385606260_89188afd8dfdfe4abe847ba596136b0a_rle_crop_3971162016_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/563c9b49591343bdcbbd9fa5a11ba9a4_95585142.png imagette271187421758608100 27118732 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27118732 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385608303: '1758607625_5954_1385606260_89188afd8dfdfe4abe847ba596136b0a_rle_crop_3971162017_0.png', 1385608304: '1758607625_5954_1385605945_9903e33fc4736fdafce165e912be320e_rle_crop_3971162041_0.png', 1385608305: '1758607625_5954_1385605945_9903e33fc4736fdafce165e912be320e_rle_crop_3971162042_0.png', 1385608306: '1758607625_5954_1385605945_9903e33fc4736fdafce165e912be320e_rle_crop_3971162040_0.png', 1385608308: '1758607644_6271_1385606208_4542f0b99ff4ab5d75be6d49371766c4_rle_crop_3971162075_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/dc15428acaf0b4d37879f28f1948e1c1_60347691.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/463237d5f4e0be54bfa53e6274a5a8a1_60098347.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/5792979823f621860e6f73e964d18a22_57937331.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/5ec6a59198381a6a709828d23eb9cdbf_84748804.png change filename to text .imagette271187321758608100/ imagette271187321758608100/1758607625_5954_1385606260_89188afd8dfdfe4abe847ba596136b0a_rle_crop_3971162017_0.png.png imagette271187321758608100/1758607625_5954_1385605945_9903e33fc4736fdafce165e912be320e_rle_crop_3971162040_0.png.png imagette271187321758608100/1758607625_5954_1385605945_9903e33fc4736fdafce165e912be320e_rle_crop_3971162042_0.png.png imagette271187321758608100/1758607625_5954_1385605945_9903e33fc4736fdafce165e912be320e_rle_crop_3971162041_0.png.png imagette271187321758608100/1758607644_6271_1385606208_4542f0b99ff4ab5d75be6d49371766c4_rle_crop_3971162075_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/47bfbe7c1ed45e82cf6ccc51f6bcbcdf_48602398.png imagette271187321758608100 27118733 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27118733 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385608311: '1758607644_6271_1385606793_7b61f7e04db5cad3261f7aa00c37b1b1_rle_crop_3971162024_0.png'} change filename to text .imagette271187331758608100/ imagette271187331758608100/1758607644_6271_1385606793_7b61f7e04db5cad3261f7aa00c37b1b1_rle_crop_3971162024_0.png.png imagette271187411758608100/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/b7413e59f262303d6f2e977ee60957c4_15637212.png imagette271187331758608100 27118741 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27118741 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271187411758608100 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27118722 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27118744,27118745,27118746,27118747,27118748,27118749,27118750,27118751,27118752,27118753,27118754,27118755?tags=mal_croppe,Teint_Dans_La_Masse,Carton_gris,flou,environnement,cartonnette,papier,plastique,metal,kraft,Carton_brun,autre_refus your option no_mail is active, we will not send the real mail to your client args[1385609883] : ('0.0592826388272603',) no score found for photo 1385609883 We are sending mail with results at report@fotonower.com args[1385609720] : ('0.0592826388272603',) no score found for photo 1385609720 We are sending mail with results at report@fotonower.com args[1385609719] : ('0.0592826388272603',) no score found for photo 1385609719 We are sending mail with results at report@fotonower.com args[1385609718] : ('0.0592826388272603',) no score found for photo 1385609718 We are sending mail with results at report@fotonower.com refus_total : 0.0592826388272603 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27118722 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_P27118722_23-09-2025_08_15_00.pdf results_Auto_P27118722_23-09-2025_08_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118722_23-09-2025_08_15_00.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','27118722','results_Auto_P27118722_23-09-2025_08_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118722_23-09-2025_08_15_00.pdf','pdf','','0.09','0.0592826388272603') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27118722]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1385609883, 1385609720, 1385609719, 1385609718] map_info['map_portfolio_photo'] : {27118722: [1385609883, 1385609720, 1385609719, 1385609718, 1385609416, 1385609378, 1385609354, 1385609326, 1385608983, 1385608948, 1385608620, 1385608592, 1385608566, 1385608406, 1385608319, 1385608317, 1385608007, 1385607653, 1385607232, 1385606793, 1385606742, 1385606260, 1385606234, 1385606208, 1385605949, 1385605945, 1385605895, 1385605891, 1385605886]} final : False mtd_id 4302 list_pids : [1385609883, 1385609720, 1385609719, 1385609718] 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, '3761969') ('4302', '27118722', '1385609883', None, None, None, None, None, '3761969') ('4302', None, None, None, None, None, None, None, '3761969') ('4302', '27118722', '1385609720', None, None, None, None, None, '3761969') ('4302', None, None, None, None, None, None, None, '3761969') ('4302', '27118722', '1385609719', None, None, None, None, None, '3761969') ('4302', None, None, None, None, None, None, None, '3761969') ('4302', '27118722', '1385609718', None, None, None, None, None, '3761969') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '27118722', '1385609883', None, None, None, None, None, '3761969'), ('4302', '27118722', '1385609720', None, None, None, None, None, '3761969'), ('4302', '27118722', '1385609719', None, None, None, None, None, '3761969'), ('4302', '27118722', '1385609718', None, None, None, None, None, '3761969')] time used for this insertion : 0.03274989128112793 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.821164846420288 time spend to save output : 0.03299903869628906 total time spend for step 4 : 1.8541638851165771 step5:split_time_score Tue Sep 23 08:15:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['27118722'] 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 : [('27118722',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27118722) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1385609720: {'path': 'temp/1758608099_2612266_1385609720_71c21c77a978a78857ef401357dba005.jpg', 'extension': 'jpg'}, 1385609883: {'path': 'temp/1758608099_2612266_1385609883_42fb8f0d94030cf6ffd0b47200af210f.jpg', 'extension': 'jpg'}, 1385609718: {'path': 'temp/1758608099_2612266_1385609718_de5b6b8c4b72899ace5986bb1b71436a.jpg', 'extension': 'jpg'}, 1385609719: {'path': 'temp/1758608099_2612266_1385609719_af62fc1cd097cbce34cce867eea3fd33.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 = 27118722; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27118722 group by h (('08', 29),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27118722 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 (27118722) 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 (27118722) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23092025 27118722 Nombre de photos uploadées : 29 / 23040 (0%) 23092025 27118722 Nombre de photos taguées (types de déchets): 0 / 29 (0%) 23092025 27118722 Nombre de photos taguées (volume) : 0 / 29 (0%) [{'photo_id': 1385605895, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/ff4b7e625a2eb1be8d16611f1bda1037.jpg', 'username': None, 'uploaded_at': 1758607267, 'text': 'image_23092025_08_00_13_10181.jpg'}, {'photo_id': 1385605891, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/3e7d3f3fa9ee0cf171b742d570befd12.jpg', 'username': None, 'uploaded_at': 1758607267, 'text': 'image_23092025_08_00_24_10135.jpg'}, {'photo_id': 1385605886, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/7559f8773986b5c29c3c1548ed68c06e.jpg', 'username': None, 'uploaded_at': 1758607267, 'text': 'image_23092025_08_00_34_10142.jpg'}, {'photo_id': 1385605949, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/03bb18a444517266205f7e4d3ad38087.jpg', 'username': None, 'uploaded_at': 1758607327, 'text': 'image_23092025_08_00_54_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014848709106445312 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27118722, '2025-09-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-23' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2334629,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.22853350639343262 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= 2334629 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27110178, 'dashboard_result_id': 15536772, '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_P27110178_23-09-2025_06_05_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110190, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27110339, 'dashboard_result_id': 15536773, '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_P27110339_23-09-2025_06_06_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110352, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27110574, 'dashboard_result_id': 15536774, '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_P27110574_23-09-2025_06_07_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110586, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27111222, 'dashboard_result_id': 15536775, '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_P27111222_23-09-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111235, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27111303, 'dashboard_result_id': 15536776, '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_P27111303_23-09-2025_06_08_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111315, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27111567, 'dashboard_result_id': 15536777, '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_P27111567_23-09-2025_06_09_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111579, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27111819, 'dashboard_result_id': 15536778, '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_P27111819_23-09-2025_06_09_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27111820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111831, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27111974, 'dashboard_result_id': 15536779, '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_P27111974_23-09-2025_06_10_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27111975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111986, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27112157, 'dashboard_result_id': 15536780, '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_P27112157_23-09-2025_06_10_38.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27112158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112169, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27112455, 'dashboard_result_id': 15536781, '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_P27112455_23-09-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112479, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27112498, 'dashboard_result_id': 15536782, '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_P27112498_23-09-2025_06_12_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112510, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27112687, 'dashboard_result_id': 15536783, '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_P27112687_23-09-2025_06_12_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27112688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112699, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27112928, 'dashboard_result_id': 15536784, '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_P27112928_23-09-2025_06_13_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112940, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27113061, 'dashboard_result_id': 15536785, '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_P27113061_23-09-2025_06_13_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27113074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113085, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27113469, 'dashboard_result_id': 15536786, '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_P27113469_23-09-2025_06_14_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113482, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27113662, 'dashboard_result_id': 15536787, '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_P27113662_23-09-2025_06_15_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27113702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113707, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113713, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27114096, 'dashboard_result_id': 15536788, '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_P27114096_23-09-2025_05_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114107, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114113, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27114459, 'dashboard_result_id': 15536789, '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_P27114459_23-09-2025_07_31_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27114468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114479, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27114912, 'dashboard_result_id': 15536790, '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_P27114912_23-09-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114964, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27115466, 'dashboard_result_id': 15536791, '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_P27115466_23-09-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115487, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27115933, 'dashboard_result_id': 15536792, '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_P27115933_23-09-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115955, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27116818, 'dashboard_result_id': 15536793, '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_P27116818_23-09-2025_07_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27116826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27116827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27116828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27116829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27116830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27116831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27116832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27116833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27116834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27116835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27116836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27116837, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27117463, 'dashboard_result_id': 15536794, '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_P27117463_23-09-2025_07_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27117491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27117492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27117493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27117494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27117495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27117496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27117497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27117498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27117499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27117500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27117501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27117502, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27118077, 'dashboard_result_id': 15536795, '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_P27118077_23-09-2025_08_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118119, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2344181, 'mtr_portfolio_id': 27118722, 'dashboard_result_id': 15536796, '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_P27118722_23-09-2025_08_12_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118742, '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 = 27110178 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': 3761248, 'mtr_portfolio_id': 27110178, 'created_at': datetime.datetime(2025, 9, 23, 6, 5, 58), 'result': '0.0842835302498198', 'result_long': None, 'result_double': None}] Qualite : 0.0842835302498198 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27110178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110178_23-09-2025_06_05_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27110178 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_P27110178_23-09-2025_06_05_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110190, 'pht': 3726}}" where mtr_portfolio_id = 27110178 and dashboard_run_id = 2344181 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`=27110178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536772, 0.0842835302498198, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110178_23-09-2025_06_05_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110190, '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 = 27110339 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': 3761249, 'mtr_portfolio_id': 27110339, 'created_at': datetime.datetime(2025, 9, 23, 6, 6, 32), 'result': '0.08052653617255652', 'result_long': None, 'result_double': None}] Qualite : 0.08052653617255652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27110339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110339_23-09-2025_06_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27110339 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_P27110339_23-09-2025_06_06_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110352, 'pht': 3726}}" where mtr_portfolio_id = 27110339 and dashboard_run_id = 2344181 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`=27110339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536773, 0.08052653617255652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110339_23-09-2025_06_06_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110352, '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 = 27110574 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': 3761250, 'mtr_portfolio_id': 27110574, 'created_at': datetime.datetime(2025, 9, 23, 6, 7, 30), 'result': '0.15193610779783676', 'result_long': None, 'result_double': None}] Qualite : 0.15193610779783676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27110574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110574_23-09-2025_06_07_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27110574 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_P27110574_23-09-2025_06_07_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110586, 'pht': 3726}}" where mtr_portfolio_id = 27110574 and dashboard_run_id = 2344181 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`=27110574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536774, 0.15193610779783676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110574_23-09-2025_06_07_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110586, '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 = 27111222 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': 3761251, 'mtr_portfolio_id': 27111222, 'created_at': datetime.datetime(2025, 9, 23, 6, 7, 58), 'result': '0.06511032879639336', 'result_long': None, 'result_double': None}] Qualite : 0.06511032879639336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111222_23-09-2025_06_07_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111222 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_P27111222_23-09-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111235, 'pht': 3726}}" where mtr_portfolio_id = 27111222 and dashboard_run_id = 2344181 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`=27111222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536775, 0.06511032879639336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111222_23-09-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111235, '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 = 27111303 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': 3761252, 'mtr_portfolio_id': 27111303, 'created_at': datetime.datetime(2025, 9, 23, 6, 8, 28), 'result': '0.07088026896845984', 'result_long': None, 'result_double': None}] Qualite : 0.07088026896845984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111303_23-09-2025_06_08_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111303 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_P27111303_23-09-2025_06_08_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111315, 'pht': 3726}}" where mtr_portfolio_id = 27111303 and dashboard_run_id = 2344181 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`=27111303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536776, 0.07088026896845984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111303_23-09-2025_06_08_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111315, '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 = 27111567 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': 3761253, 'mtr_portfolio_id': 27111567, 'created_at': datetime.datetime(2025, 9, 23, 6, 9, 30), 'result': '0.08627575428145877', 'result_long': None, 'result_double': None}] Qualite : 0.08627575428145877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111567_23-09-2025_06_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111567 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_P27111567_23-09-2025_06_09_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111579, 'pht': 3726}}" where mtr_portfolio_id = 27111567 and dashboard_run_id = 2344181 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`=27111567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536777, 0.08627575428145877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111567_23-09-2025_06_09_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111579, '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 = 27111819 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': 3761254, 'mtr_portfolio_id': 27111819, 'created_at': datetime.datetime(2025, 9, 23, 6, 9, 58), 'result': '0.010484843398966976', 'result_long': None, 'result_double': None}] Qualite : 0.010484843398966976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111819_23-09-2025_06_09_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111819 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_P27111819_23-09-2025_06_09_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27111820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111831, 'pht': 3726}}" where mtr_portfolio_id = 27111819 and dashboard_run_id = 2344181 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`=27111819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536778, 0.010484843398966976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111819_23-09-2025_06_09_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27111820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111831, '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 = 27111974 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': 3761255, 'mtr_portfolio_id': 27111974, 'created_at': datetime.datetime(2025, 9, 23, 6, 10, 30), 'result': '0.0850662591739114', 'result_long': None, 'result_double': None}] Qualite : 0.0850662591739114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111974_23-09-2025_06_10_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111974 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_P27111974_23-09-2025_06_10_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27111975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111986, 'pht': 3726}}" where mtr_portfolio_id = 27111974 and dashboard_run_id = 2344181 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`=27111974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536779, 0.0850662591739114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111974_23-09-2025_06_10_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27111975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111986, '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 = 27112157 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': 3761256, 'mtr_portfolio_id': 27112157, 'created_at': datetime.datetime(2025, 9, 23, 6, 10, 37), 'result': '0.04044909590864457', 'result_long': None, 'result_double': None}] Qualite : 0.04044909590864457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112157_23-09-2025_06_10_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112157 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_P27112157_23-09-2025_06_10_38.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27112158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112169, 'pht': 3726}}" where mtr_portfolio_id = 27112157 and dashboard_run_id = 2344181 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`=27112157 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536780, 0.04044909590864457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112157_23-09-2025_06_10_38.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27112158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112169, '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 = 27112455 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': 3761257, 'mtr_portfolio_id': 27112455, 'created_at': datetime.datetime(2025, 9, 23, 6, 11, 31), 'result': '0.05003919122138744', 'result_long': None, 'result_double': None}] Qualite : 0.05003919122138744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112455 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112455_23-09-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112455 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_P27112455_23-09-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112479, 'pht': 3726}}" where mtr_portfolio_id = 27112455 and dashboard_run_id = 2344181 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`=27112455 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536781, 0.05003919122138744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112455_23-09-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112479, '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 = 27112498 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': 3761258, 'mtr_portfolio_id': 27112498, 'created_at': datetime.datetime(2025, 9, 23, 6, 11, 59), 'result': '0.04466887370800656', 'result_long': None, 'result_double': None}] Qualite : 0.04466887370800656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112498 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112498_23-09-2025_06_12_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112498 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_P27112498_23-09-2025_06_12_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112510, 'pht': 3726}}" where mtr_portfolio_id = 27112498 and dashboard_run_id = 2344181 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`=27112498 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536782, 0.04466887370800656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112498_23-09-2025_06_12_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112510, '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 = 27112687 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': 3761259, 'mtr_portfolio_id': 27112687, 'created_at': datetime.datetime(2025, 9, 23, 6, 12, 28), 'result': '0.04644080912606092', 'result_long': None, 'result_double': None}] Qualite : 0.04644080912606092 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112687_23-09-2025_06_12_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112687 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_P27112687_23-09-2025_06_12_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27112688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112699, 'pht': 3726}}" where mtr_portfolio_id = 27112687 and dashboard_run_id = 2344181 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`=27112687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536783, 0.04644080912606092, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112687_23-09-2025_06_12_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27112688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112699, '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 = 27112928 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': 3761260, 'mtr_portfolio_id': 27112928, 'created_at': datetime.datetime(2025, 9, 23, 6, 13, 30), 'result': '0.07938918419812342', 'result_long': None, 'result_double': None}] Qualite : 0.07938918419812342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112928 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112928_23-09-2025_06_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112928 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_P27112928_23-09-2025_06_13_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112940, 'pht': 3726}}" where mtr_portfolio_id = 27112928 and dashboard_run_id = 2344181 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`=27112928 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536784, 0.07938918419812342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112928_23-09-2025_06_13_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112940, '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 = 27113061 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': 3761261, 'mtr_portfolio_id': 27113061, 'created_at': datetime.datetime(2025, 9, 23, 6, 13, 58), 'result': '0.14121341587733877', 'result_long': None, 'result_double': None}] Qualite : 0.14121341587733877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27113061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113061_23-09-2025_06_13_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27113061 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_P27113061_23-09-2025_06_13_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27113074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113085, 'pht': 3726}}" where mtr_portfolio_id = 27113061 and dashboard_run_id = 2344181 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`=27113061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536785, 0.14121341587733877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113061_23-09-2025_06_13_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27113074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113085, '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 = 27113469 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': 3761263, 'mtr_portfolio_id': 27113469, 'created_at': datetime.datetime(2025, 9, 23, 6, 14, 29), 'result': '0.04942428243117697', 'result_long': None, 'result_double': None}] Qualite : 0.04942428243117697 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27113469 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113469_23-09-2025_06_14_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27113469 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_P27113469_23-09-2025_06_14_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113482, 'pht': 3726}}" where mtr_portfolio_id = 27113469 and dashboard_run_id = 2344181 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`=27113469 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536786, 0.04942428243117697, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113469_23-09-2025_06_14_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113482, '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 = 27113662 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': 3761264, 'mtr_portfolio_id': 27113662, 'created_at': datetime.datetime(2025, 9, 23, 6, 15, 30), 'result': '0.04660001475894227', 'result_long': None, 'result_double': None}] Qualite : 0.04660001475894227 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27113662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113662_23-09-2025_06_15_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27113662 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_P27113662_23-09-2025_06_15_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27113702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113707, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113713, 'pht': 3726}}" where mtr_portfolio_id = 27113662 and dashboard_run_id = 2344181 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`=27113662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536787, 0.04660001475894227, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113662_23-09-2025_06_15_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27113702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113707, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113713, '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 = 27114096 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': 3761189, 'mtr_portfolio_id': 27114096, 'created_at': datetime.datetime(2025, 9, 23, 5, 47), 'result': '0.03535898769774075', 'result_long': None, 'result_double': None}] Qualite : 0.03535898769774075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27114096 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114096_23-09-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27114096 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_P27114096_23-09-2025_05_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114107, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114113, 'pht': 3726}}" where mtr_portfolio_id = 27114096 and dashboard_run_id = 2344181 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`=27114096 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536788, 0.03535898769774075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114096_23-09-2025_05_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114107, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114113, '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 = 27114459 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': 3761381, 'mtr_portfolio_id': 27114459, 'created_at': datetime.datetime(2025, 9, 23, 7, 31, 28), 'result': '0.05907237025513325', 'result_long': None, 'result_double': None}] Qualite : 0.05907237025513325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27114459 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114459_23-09-2025_07_31_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27114459 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_P27114459_23-09-2025_07_31_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27114468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114479, 'pht': 3726}}" where mtr_portfolio_id = 27114459 and dashboard_run_id = 2344181 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`=27114459 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536789, 0.05907237025513325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114459_23-09-2025_07_31_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27114468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114479, '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 = 27114912 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': 3761487, 'mtr_portfolio_id': 27114912, 'created_at': datetime.datetime(2025, 9, 23, 6, 17), 'result': '0.061836003998696466', 'result_long': None, 'result_double': None}] Qualite : 0.061836003998696466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27114912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114912_23-09-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27114912 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_P27114912_23-09-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114964, 'pht': 3726}}" where mtr_portfolio_id = 27114912 and dashboard_run_id = 2344181 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`=27114912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536790, 0.061836003998696466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114912_23-09-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114964, '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 = 27115466 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': 3761547, 'mtr_portfolio_id': 27115466, 'created_at': datetime.datetime(2025, 9, 23, 6, 33, 1), 'result': '0.04851771147395974', 'result_long': None, 'result_double': None}] Qualite : 0.04851771147395974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27115466 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115466_23-09-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27115466 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_P27115466_23-09-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115487, 'pht': 3726}}" where mtr_portfolio_id = 27115466 and dashboard_run_id = 2344181 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`=27115466 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536791, 0.04851771147395974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115466_23-09-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115487, '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 = 27115933 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': 3761616, 'mtr_portfolio_id': 27115933, 'created_at': datetime.datetime(2025, 9, 23, 7, 18, 59), 'result': '0.015516715483921719', 'result_long': None, 'result_double': None}] Qualite : 0.015516715483921719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27115933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115933_23-09-2025_07_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27115933 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_P27115933_23-09-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115955, 'pht': 3726}}" where mtr_portfolio_id = 27115933 and dashboard_run_id = 2344181 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`=27115933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536792, 0.015516715483921719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115933_23-09-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115955, '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 = 27116818 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': 3761788, 'mtr_portfolio_id': 27116818, 'created_at': datetime.datetime(2025, 9, 23, 7, 33), 'result': '0.033584135816659894', 'result_long': None, 'result_double': None}] Qualite : 0.033584135816659894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27116818 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27116818_23-09-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27116818 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_P27116818_23-09-2025_07_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27116826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27116827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27116828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27116829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27116830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27116831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27116832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27116833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27116834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27116835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27116836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27116837, 'pht': 3726}}" where mtr_portfolio_id = 27116818 and dashboard_run_id = 2344185 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`=27116818 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536793, 0.033584135816659894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27116818_23-09-2025_07_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27116826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27116827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27116828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27116829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27116830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27116831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27116832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27116833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27116834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27116835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27116836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27116837, '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 = 27117463 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': 3761838, 'mtr_portfolio_id': 27117463, 'created_at': datetime.datetime(2025, 9, 23, 7, 49, 1), 'result': '0.04472761942457589', 'result_long': None, 'result_double': None}] Qualite : 0.04472761942457589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27117463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27117463_23-09-2025_07_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27117463 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_P27117463_23-09-2025_07_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27117491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27117492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27117493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27117494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27117495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27117496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27117497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27117498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27117499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27117500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27117501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27117502, 'pht': 3726}}" where mtr_portfolio_id = 27117463 and dashboard_run_id = 2344185 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`=27117463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536794, 0.04472761942457589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27117463_23-09-2025_07_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27117491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27117492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27117493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27117494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27117495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27117496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27117497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27117498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27117499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27117500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27117501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27117502, '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 = 27118077 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': 3761891, 'mtr_portfolio_id': 27118077, 'created_at': datetime.datetime(2025, 9, 23, 8, 3, 27), 'result': '0.053112404559625036', 'result_long': None, 'result_double': None}] Qualite : 0.053112404559625036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27118077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118077_23-09-2025_08_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27118077 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_P27118077_23-09-2025_08_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118119, 'pht': 3726}}" where mtr_portfolio_id = 27118077 and dashboard_run_id = 2344185 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`=27118077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536795, 0.053112404559625036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118077_23-09-2025_08_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118119, '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 = 27118722 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': 3761969, 'mtr_portfolio_id': 27118722, 'created_at': datetime.datetime(2025, 9, 23, 8, 14, 59), 'result': '0.0592826388272603', 'result_long': None, 'result_double': None}] Qualite : 0.0592826388272603 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27118722 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118722_23-09-2025_08_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27118722 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_P27118722_23-09-2025_08_15_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118742, 'pht': 3726}}" where mtr_portfolio_id = 27118722 and dashboard_run_id = 2344185 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`=27118722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15536796, 0.0592826388272603, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118722_23-09-2025_08_15_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118742, '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 (27110178,27110339,27110574,27111222,27111303,27111567,27111819,27111974,27112157,27112455,27112498,27112687,27112928,27113061,27113469,27113662,27114096,27114459,27114912,27115466,27115933,27116818,27117463,27118077,27118722) result : ((1385562864,), (1385562865,), (1385562897,), (1385562946,), (1385562981,), (1385562999,), (1385563000,), (1385563019,), (1385563032,), (1385563066,), (1385563067,), (1385563103,), (1385563219,), (1385563221,), (1385563377,), (1385563387,), (1385563388,), (1385563414,), (1385563415,), (1385564024,), (1385564048,), (1385564370,), (1385564710,), (1385564851,), (1385565321,), (1385565320,), (1385565454,), (1385565455,), (1385565510,), (1385565562,), (1385565572,), (1385565576,), (1385571909,), (1385571965,), (1385572095,), (1385572128,), (1385572152,), (1385572176,), (1385572192,), (1385572245,), (1385572300,), (1385572301,), (1385572339,), (1385572397,), (1385572423,), (1385572430,), (1385572567,), (1385572576,), (1385572577,), (1385572699,), (1385572700,), (1385572713,), (1385572734,), (1385572735,), (1385572754,), (1385572755,), (1385572756,), (1385572766,), (1385572767,), (1385572796,), (1385573548,), (1385573969,), (1385574022,), (1385574918,), (1385575357,), (1385575366,), (1385575427,), (1385575428,), (1385575509,), (1385576191,), (1385576532,), (1385577203,), (1385578099,), (1385578389,), (1385578408,), (1385578978,), (1385578979,), (1385579024,), (1385579046,), (1385579123,), (1385579134,), (1385579147,), (1385579157,), (1385579161,), (1385579165,), (1385579173,), (1385579174,), (1385579207,), (1385579208,), (1385579219,), (1385579220,), (1385579249,), (1385579282,), (1385579283,), (1385579298,), (1385579308,), (1385579309,), (1385579352,), (1385579400,), (1385579401,), (1385579446,), (1385579447,), (1385579448,), (1385579450,), (1385579461,), (1385579485,), (1385579486,), (1385579508,), (1385579615,), (1385579640,), (1385579977,), (1385579974,), (1385579975,), (1385579976,), (1385580751,), (1385580889,), (1385580890,), (1385580899,), (1385580911,), (1385580931,), (1385580942,), (1385580962,), (1385580988,), (1385581008,), (1385582288,), (1385582289,), (1385582626,), (1385582627,), (1385582724,), (1385582758,), (1385582759,), (1385582830,), (1385582855,), (1385583559,), (1385583903,), (1385583916,), (1385584188,), (1385584350,), (1385584348,), (1385584349,), (1385584372,), (1385584417,), (1385584418,), (1385584419,), (1385584425,), (1385584454,), (1385584455,), (1385584500,), (1385584501,), (1385584515,), (1385584570,), (1385584573,), (1385584578,), (1385584650,), (1385584666,), (1385584741,), (1385584742,), (1385584760,), (1385584786,), (1385584803,), (1385584915,), (1385584916,), (1385584917,), (1385584985,), (1385584996,), (1385584997,), (1385585032,), (1385585033,), (1385585520,), (1385585498,), (1385585794,), (1385585817,), (1385587472,), (1385587681,), (1385587701,), (1385587703,), (1385587717,), (1385587734,), (1385589487,), (1385589465,), (1385591767,), (1385591781,), (1385591783,), (1385591810,), (1385591820,), (1385591871,), (1385591873,), (1385592158,), (1385592161,), (1385592173,), (1385592195,), (1385592199,), (1385592263,), (1385592281,), (1385592283,), (1385592293,), (1385592296,), (1385592324,), (1385592337,), (1385592339,), (1385592380,), (1385592374,), (1385592377,), (1385592420,), (1385592423,), (1385592429,), (1385592456,), (1385592460,), (1385592473,), (1385592476,), (1385592501,), (1385592503,), (1385592524,), (1385592526,), (1385592527,), (1385592529,), (1385592533,), (1385592543,), (1385592544,), (1385592545,), (1385592563,), (1385592565,), (1385592567,), (1385592569,), (1385592582,), (1385592583,), (1385592584,), (1385592586,), (1385592592,), (1385592623,), (1385592625,), (1385592626,), (1385592628,), (1385592678,), (1385592679,), (1385592682,), (1385592710,), (1385592712,), (1385592716,), (1385592722,), (1385592727,), (1385592738,), (1385592739,), (1385592740,), (1385592742,), (1385592744,), (1385592746,), (1385592757,), (1385592759,), (1385592762,), (1385592765,), (1385592766,), (1385592781,), (1385592806,), (1385592807,), (1385592808,), (1385592810,), (1385592812,), (1385592822,), (1385592824,), (1385592825,), (1385592827,), (1385592832,), (1385592846,), (1385592842,), (1385592843,), (1385592844,), (1385592873,), (1385592880,), (1385592881,), (1385592883,), (1385592886,), (1385592892,), (1385592893,), (1385592894,), (1385592896,), (1385592924,), (1385592926,), (1385592928,), (1385592931,), (1385592936,), (1385592938,), (1385592943,), (1385592944,), (1385592945,), (1385592947,), (1385592950,), (1385592953,), (1385592962,), (1385592964,), (1385592969,), (1385592987,), (1385592989,), (1385592990,), (1385592993,), (1385592997,), (1385593017,), (1385593021,), (1385593023,), (1385593025,), (1385593027,), (1385593036,), (1385593037,), (1385593038,), (1385593040,), (1385593069,), (1385593074,), (1385593075,), (1385593077,), (1385593080,), (1385593083,), (1385593089,), (1385593090,), (1385593092,), (1385593094,), (1385593097,), (1385593099,), (1385593103,), (1385593105,), (1385593106,), (1385593108,), (1385593111,), (1385593118,), (1385593119,), (1385593120,), (1385593122,), (1385593124,), (1385593126,), (1385593144,), (1385593146,), (1385593148,), (1385593150,), (1385593164,), (1385593165,), (1385593167,), (1385593169,), (1385593173,), (1385593179,), (1385593205,), (1385593201,), (1385593203,), (1385593220,), (1385593223,), (1385593226,), (1385593227,), (1385593229,), (1385593231,), (1385593247,), (1385593249,), (1385593250,), (1385593254,), (1385593257,), (1385593260,), (1385593269,), (1385593270,), (1385593271,), (1385593273,), (1385593298,), (1385593307,), (1385593309,), (1385593311,), (1385593314,), (1385593317,), (1385593322,), (1385593323,), (1385593324,), (1385593326,), (1385593329,), (1385593353,), (1385593355,), (1385593356,), (1385593359,), (1385593374,), (1385593375,), (1385593376,), (1385593378,), (1385593382,), (1385593403,), (1385593406,), (1385593407,), (1385593408,), (1385593410,), (1385593417,), (1385593418,), (1385593419,), (1385593423,), (1385593428,), (1385593432,), (1385593445,), (1385593451,), (1385593452,), (1385593455,), (1385593457,), (1385593469,), (1385593472,), (1385593475,), (1385593492,), (1385593494,), (1385593495,), (1385593497,), (1385593500,), (1385593503,), (1385593810,), (1385593839,), (1385593867,), (1385593895,), (1385594305,), (1385594265,), (1385595231,), (1385595290,), (1385595388,), (1385595865,), (1385595890,), (1385595918,), (1385595942,), (1385595970,), (1385596021,), (1385596023,), (1385596026,), (1385596034,), (1385596066,), (1385596093,), (1385596189,), (1385596212,), (1385596234,), (1385596255,), (1385596263,), (1385596305,), (1385596309,), (1385596335,), (1385596350,), (1385596372,), (1385596374,), (1385596375,), (1385596377,), (1385596380,), (1385596387,), (1385596388,), (1385596389,), (1385596399,), (1385596401,), (1385596404,), (1385596406,), (1385596410,), (1385596432,), (1385596433,), (1385596463,), (1385596468,), (1385596469,), (1385596471,), (1385596488,), (1385596489,), (1385596490,), (1385596492,), (1385596526,), (1385596528,), (1385596530,), (1385596533,), (1385596537,), (1385596548,), (1385596555,), (1385596565,), (1385596568,), (1385596572,), (1385596586,), (1385596587,), (1385596589,), (1385596591,), (1385596594,), (1385596636,), (1385596632,), (1385596633,), (1385596634,), (1385596647,), (1385596649,), (1385596651,), (1385596654,), (1385596658,), (1385596661,), (1385596681,), (1385596683,), (1385596712,), (1385596714,), (1385596717,), (1385596721,), (1385596725,), (1385596729,), (1385596745,), (1385596746,), (1385596751,), (1385596754,), (1385596756,), (1385596765,), (1385596767,), (1385596770,), (1385596774,), (1385596777,), (1385596803,), (1385596805,), (1385596806,), (1385596808,), (1385596810,), (1385596812,), (1385596832,), (1385596833,), (1385596834,), (1385596855,), (1385596862,), (1385596865,), (1385596868,), (1385596871,), (1385596873,), (1385596891,), (1385596892,), (1385596893,), (1385596895,), (1385596897,), (1385596922,), (1385596924,), (1385596926,), (1385596952,), (1385596955,), (1385596956,), (1385596959,), (1385596963,), (1385596982,), (1385596989,), (1385596990,), (1385596993,), (1385597005,), (1385597007,), (1385597009,), (1385597013,), (1385597035,), (1385597039,), (1385597042,), (1385597046,), (1385597047,), (1385597052,), (1385597075,), (1385597070,), (1385597071,), (1385597072,), (1385597091,), (1385597093,), (1385597107,), (1385597295,), (1385597327,), (1385601753,), (1385601752,), (1385601862,), (1385601863,), (1385601864,), (1385601866,), (1385601879,), (1385601951,), (1385601952,), (1385601953,), (1385601955,), (1385602243,), (1385602244,), (1385602503,), (1385602625,), (1385602627,), (1385602650,), (1385602677,), (1385602711,), (1385602712,), (1385602713,), (1385602715,), (1385602717,), (1385602720,), (1385602731,), (1385602733,), (1385602735,), (1385602737,), (1385602740,), (1385602754,), (1385602755,), (1385602756,), (1385602772,), (1385602773,), (1385602786,), (1385602789,), (1385602956,), (1385602984,), (1385602989,), (1385602998,), (1385603004,), (1385603098,), (1385603099,), (1385603100,), (1385603102,), (1385603105,), (1385603108,), (1385603118,), (1385603121,), (1385603122,), (1385603202,), (1385603147,), (1385603173,), (1385603365,), (1385603381,), (1385603393,), (1385603403,), (1385603417,), (1385603418,), (1385603432,), (1385603434,), (1385603564,), (1385603751,), (1385603797,), (1385603871,), (1385603873,), (1385603874,), (1385603984,), (1385604007,), (1385604053,), (1385604080,), (1385604083,), (1385604181,), (1385604191,), (1385604192,), (1385604219,), (1385604220,), (1385604221,), (1385604257,), (1385604259,), (1385604537,), (1385604586,), (1385604615,), (1385604684,), (1385604686,), (1385604688,), (1385604690,), (1385604729,), (1385604713,), (1385604723,), (1385604725,), (1385604776,), (1385604778,), (1385604780,), (1385604814,), (1385604836,), (1385604850,), (1385604931,), (1385604934,), (1385604970,), (1385604972,), (1385604973,), (1385604976,), (1385604980,), (1385604983,), (1385605169,), (1385605197,), (1385605219,), (1385605349,), (1385605350,), (1385605352,), (1385605355,), (1385605374,), (1385605380,), (1385605383,), (1385605391,), (1385605407,), (1385605430,), (1385605437,), (1385605441,), (1385605445,), (1385605495,), (1385605498,), (1385605501,), (1385605604,), (1385605616,), (1385605673,), (1385605676,), (1385605677,), (1385605740,), (1385605741,), (1385605743,), (1385605746,), (1385605749,), (1385605824,), (1385605827,), (1385605900,), (1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23092025': {'nb_upload': 29, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27118722]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1385609883, 1385609720, 1385609719, 1385609718] map_info['map_portfolio_photo'] : {27118722: [1385609883, 1385609720, 1385609719, 1385609718, 1385609416, 1385609378, 1385609354, 1385609326, 1385608983, 1385608948, 1385608620, 1385608592, 1385608566, 1385608406, 1385608319, 1385608317, 1385608007, 1385607653, 1385607232, 1385606793, 1385606742, 1385606260, 1385606234, 1385606208, 1385605949, 1385605945, 1385605895, 1385605891, 1385605886]} final : True mtd_id 4302 list_pids : [1385609883, 1385609720, 1385609719, 1385609718] Looping around the photos to save general results len do output : 1 /27118722Didn'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, '3761969') ('4302', '27118722', '1385609883', None, None, None, None, None, '3761969') ('4302', None, None, None, None, None, None, None, '3761969') ('4302', '27118722', '1385609720', None, None, None, None, None, '3761969') ('4302', None, None, None, None, None, None, None, '3761969') ('4302', '27118722', '1385609719', None, None, None, None, None, '3761969') ('4302', None, None, None, None, None, None, None, '3761969') ('4302', '27118722', '1385609718', None, None, None, None, None, '3761969') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '27118722', 'None', None, None, None, None, '3761969'), ('4302', '27118722', '1385609883', None, None, None, None, None, '3761969'), ('4302', '27118722', '1385609720', None, None, None, None, None, '3761969'), ('4302', '27118722', '1385609719', None, None, None, None, None, '3761969'), ('4302', '27118722', '1385609718', None, None, None, None, None, '3761969')] time used for this insertion : 0.056180715560913086 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0429039001464844 time spend to save output : 0.05633664131164551 total time spend for step 5 : 2.09924054145813 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 (3761969) 2.03user 2.63system 0:07.85elapsed 59%CPU (0avgtext+0avgdata 158436maxresident)k 21192inputs+4712outputs (138major+64095minor)pagefaults 0swaps