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 : 2466454 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 (2824936) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2824936) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22883261 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2824936'] with mtr_portfolio_ids : ['22883261'] and first list_photo_ids : [] new path : /proc/2466454/ Name: python3 Umask: 0002 State: R (running) Tgid: 2466454 Ngid: 0 Pid: 2466454 PPid: 2466453 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2466454 NSpid: 2466454 NSpgid: 2462867 NSsid: 2462867 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98504 kB VmRSS: 98504 kB RssAnon: 60196 kB RssFile: 38308 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 64 nonvoluntary_ctxt_switches: 243 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2466454', 'Ngid': '0', 'Pid': '2466454', 'PPid': '2466453', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2466454', 'NSpid': '2466454', 'NSpgid': '2462867', 'NSsid': '2462867', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98504 kB', 'VmRSS': '98504 kB', 'RssAnon': '60196 kB', 'RssFile': '38308 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '64', 'nonvoluntary_ctxt_switches': '243'} ('datou_batch_current', '2466454', '1107228', '0', '1107228', '865976', '98504', b'', 'marlene', '2824936') 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 (22883261) 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 (2824936 ) ) 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 (22883261) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1357641389, 'portfolio_id': 22883261}, {'photo_id': 1357641384, 'portfolio_id': 22883261}, {'photo_id': 1357641379, 'portfolio_id': 22883261}, {'photo_id': 1357641334, 'portfolio_id': 22883261}, {'photo_id': 1357641330, 'portfolio_id': 22883261}, {'photo_id': 1357641326, 'portfolio_id': 22883261}, {'photo_id': 1357641323, 'portfolio_id': 22883261}, {'photo_id': 1357641321, 'portfolio_id': 22883261}, {'photo_id': 1357641284, 'portfolio_id': 22883261}, {'photo_id': 1357641279, 'portfolio_id': 22883261}, {'photo_id': 1357641257, 'portfolio_id': 22883261}, {'photo_id': 1357641230, 'portfolio_id': 22883261}, {'photo_id': 1357641203, 'portfolio_id': 22883261}, {'photo_id': 1357641113, 'portfolio_id': 22883261}, {'photo_id': 1357641108, 'portfolio_id': 22883261}, {'photo_id': 1357641102, 'portfolio_id': 22883261}, {'photo_id': 1357641091, 'portfolio_id': 22883261}, {'photo_id': 1357641032, 'portfolio_id': 22883261}, {'photo_id': 1357641027, 'portfolio_id': 22883261}, {'photo_id': 1357641023, 'portfolio_id': 22883261}, {'photo_id': 1357641020, 'portfolio_id': 22883261}, {'photo_id': 1357641015, 'portfolio_id': 22883261}] map_portfolio_id_photo_id: {22883261: [1357641389, 1357641384, 1357641379, 1357641334, 1357641330, 1357641326, 1357641323, 1357641321, 1357641284, 1357641279, 1357641257, 1357641230, 1357641203, 1357641113, 1357641108, 1357641102, 1357641091, 1357641032, 1357641027, 1357641023, 1357641020, 1357641015]} ##### 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.014853715896606445 #### 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 Mon May 12 14:20: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22883261) 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 : 22883261 get user id for portfolio 22883261 get sub ptf for main ptf 22883261, type 3726 and hashtags ['autre_refus', 'metal', 'papier', 'environnement', 'cartonnette', 'flou', 'kraft', 'mal_croppe', 'Teint_Dans_La_Masse', 'plastique', 'Carton_gris', 'Carton_brun'] 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`=22883261 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','papier','environnement','cartonnette','flou','kraft','mal_croppe','Teint_Dans_La_Masse','plastique','Carton_gris','Carton_brun')) 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`=22883261 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','papier','environnement','cartonnette','flou','kraft','mal_croppe','Teint_Dans_La_Masse','plastique','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22883261, 'sub_port_id': 22883275, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274794, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 30)}, 'metal': {'main_port_id': 22883261, 'sub_port_id': 22883276, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274795, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 30)}, 'environnement': {'main_port_id': 22883261, 'sub_port_id': 22883277, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274796, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 30)}, 'Carton_gris': {'main_port_id': 22883261, 'sub_port_id': 22883278, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274797, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 30)}, 'kraft': {'main_port_id': 22883261, 'sub_port_id': 22883279, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274798, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 30)}, 'papier': {'main_port_id': 22883261, 'sub_port_id': 22883280, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274799, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 30)}, 'mal_croppe': {'main_port_id': 22883261, 'sub_port_id': 22883281, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274800, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 30)}, 'flou': {'main_port_id': 22883261, 'sub_port_id': 22883282, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274801, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 30)}, 'Carton_brun': {'main_port_id': 22883261, 'sub_port_id': 22883283, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274802, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 30)}, 'plastique': {'main_port_id': 22883261, 'sub_port_id': 22883284, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274803, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22883261, 'sub_port_id': 22883285, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274804, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 30)}, 'autre_refus': {'main_port_id': 22883261, 'sub_port_id': 22883286, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274805, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22883275 , 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=22883261 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 (22883275) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22883261) result : ((1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,)) 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 22883276 , 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=22883261 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 (22883276) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22883261) result : ((1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,)) 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 22883277 , 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=22883261 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 (22883277) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22883261) result : ((1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,)) 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 22883278 , 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=22883261 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 (22883278) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22883261) result : ((1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,)) 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 22883279 , 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=22883261 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 (22883279) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22883261) result : ((1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,)) 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 22883280 , 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=22883261 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 (22883280) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22883261) result : ((1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,)) 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 22883281 , 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=22883261 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 (22883281) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22883261) result : ((1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,)) 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 22883282 , 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=22883261 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 (22883282) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22883261) result : ((1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,)) 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 22883283 , 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=22883261 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 (22883283) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22883261) result : ((1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,)) 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 22883284 , 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=22883261 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 (22883284) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22883261) result : ((1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,)) 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 22883285 , 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=22883261 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 (22883285) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22883261) result : ((1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,)) 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 22883286 , 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=22883261 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 (22883286) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22883261) result : ((1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,)) 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`=22883261 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','papier','environnement','cartonnette','flou','kraft','mal_croppe','Teint_Dans_La_Masse','plastique','Carton_gris','Carton_brun')) 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`=22883261 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','papier','environnement','cartonnette','flou','kraft','mal_croppe','Teint_Dans_La_Masse','plastique','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22883261, 'sub_port_id': 22883287, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274806, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 31)}, 'metal': {'main_port_id': 22883261, 'sub_port_id': 22883288, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274807, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 31)}, 'environnement': {'main_port_id': 22883261, 'sub_port_id': 22883289, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274808, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 31)}, 'Carton_gris': {'main_port_id': 22883261, 'sub_port_id': 22883290, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274809, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 31)}, 'kraft': {'main_port_id': 22883261, 'sub_port_id': 22883291, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274810, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 31)}, 'papier': {'main_port_id': 22883261, 'sub_port_id': 22883292, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274811, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 31)}, 'mal_croppe': {'main_port_id': 22883261, 'sub_port_id': 22883293, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274812, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 31)}, 'flou': {'main_port_id': 22883261, 'sub_port_id': 22883294, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274813, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 31)}, 'Carton_brun': {'main_port_id': 22883261, 'sub_port_id': 22883295, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274814, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 31)}, 'plastique': {'main_port_id': 22883261, 'sub_port_id': 22883296, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274815, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 22883261, 'sub_port_id': 22883297, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274816, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 31)}, 'autre_refus': {'main_port_id': 22883261, 'sub_port_id': 22883298, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15274817, 'last_updated_at': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 14, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 14, 19, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22883287,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22883275 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22883288,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22883276 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22883289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22883277 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22883290,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22883278 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22883291,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22883279 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22883292,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22883280 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22883293,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22883281 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22883294,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22883282 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22883295,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22883283 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22883296,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22883284 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22883297,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22883285 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22883298,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22883286 lien utilise dans velours : https://www.fotonower.com/velours/22883287,22883288,22883289,22883290,22883291,22883292,22883293,22883294,22883295,22883296,22883297,22883298?tags=cartonnette,metal,environnement,Carton_gris,kraft,papier,mal_croppe,flou,Carton_brun,plastique,Teint_Dans_La_Masse,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22883261]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1357641389, 1357641384, 1357641379, 1357641334, 1357641330, 1357641326, 1357641323, 1357641321, 1357641284, 1357641279, 1357641257, 1357641230, 1357641203] map_info['map_portfolio_photo'] : {22883261: [1357641389, 1357641384, 1357641379, 1357641334, 1357641330, 1357641326, 1357641323, 1357641321, 1357641284, 1357641279, 1357641257, 1357641230, 1357641203, 1357641113, 1357641108, 1357641102, 1357641091, 1357641032, 1357641027, 1357641023, 1357641020, 1357641015]} final : False mtd_id 4302 list_pids : [1357641389, 1357641384, 1357641379, 1357641334, 1357641330, 1357641326, 1357641323, 1357641321, 1357641284, 1357641279, 1357641257, 1357641230, 1357641203] Looping around the photos to save general results len do output : 1 /22883261. 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, '2824936') ('4302', '22883261', '1357641389', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641384', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641379', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641334', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641330', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641326', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641323', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641321', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641284', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641279', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641257', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641230', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641203', None, None, None, None, None, '2824936') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22883261', "{'cartonnette': 22883275, 'metal': 22883276, 'environnement': 22883277, 'Carton_gris': 22883278, 'kraft': 22883279, 'papier': 22883280, 'mal_croppe': 22883281, 'flou': 22883282, 'Carton_brun': 22883283, 'plastique': 22883284, 'Teint_Dans_La_Masse': 22883285, 'autre_refus': 22883286}", None, None, None, None, '2824936'), ('4302', '22883261', '1357641389', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641384', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641379', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641334', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641330', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641326', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641323', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641321', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641284', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641279', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641257', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641230', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641203', None, None, None, None, None, '2824936')] time used for this insertion : 0.014781951904296875 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3714349269866943 time spend to save output : 0.015213966369628906 total time spend for step 1 : 1.3866488933563232 step2:final Mon May 12 14:21:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22883261) 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 22883261 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1357641032,1357641027,1357641023,1357641020,1357641015,1357641113,1357641108,1357641102,1357641091,1357641284,1357641279,1357641257,1357641230,1357641203,1357641334,1357641330,1357641326,1357641323,1357641321,1357641389,1357641384,1357641379); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22883261]) Inside saveOutput : final : False verbose : True original output for save of step final : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} new output for save of step final : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} [1357641389, 1357641384, 1357641379, 1357641334, 1357641330, 1357641326, 1357641323, 1357641321, 1357641284, 1357641279, 1357641257, 1357641230, 1357641203] map_info['map_portfolio_photo'] : {22883261: [1357641389, 1357641384, 1357641379, 1357641334, 1357641330, 1357641326, 1357641323, 1357641321, 1357641284, 1357641279, 1357641257, 1357641230, 1357641203, 1357641113, 1357641108, 1357641102, 1357641091, 1357641032, 1357641027, 1357641023, 1357641020, 1357641015]} final : False mtd_id 4302 list_pids : [1357641389, 1357641384, 1357641379, 1357641334, 1357641330, 1357641326, 1357641323, 1357641321, 1357641284, 1357641279, 1357641257, 1357641230, 1357641203] Looping around the photos to save general results len do output : 13 /1357641389.Didn't retrieve data . /1357641384.Didn't retrieve data . /1357641379.Didn't retrieve data . /1357641334.Didn't retrieve data . /1357641330.Didn't retrieve data . /1357641326.Didn't retrieve data . /1357641323.Didn't retrieve data . /1357641321.Didn't retrieve data . /1357641284.Didn't retrieve data . /1357641279.Didn't retrieve data . /1357641257.Didn't retrieve data . /1357641230.Didn't retrieve data . /1357641203.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, '2824936') ('4302', '22883261', '1357641389', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641384', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641379', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641334', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641330', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641326', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641323', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641321', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641284', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641279', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641257', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641230', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641203', None, None, None, None, None, '2824936') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '22883261', '1357641389', '0.0', None, None, None, None, '2824936'), ('4302', '22883261', '1357641384', '0.0', None, None, None, None, '2824936'), ('4302', '22883261', '1357641379', '0.0', None, None, None, None, '2824936'), ('4302', '22883261', '1357641334', '0.0', None, None, None, None, '2824936'), ('4302', '22883261', '1357641330', '0.0', None, None, None, None, '2824936'), ('4302', '22883261', '1357641326', '0.0', None, None, None, None, '2824936'), ('4302', '22883261', '1357641323', '0.0', None, None, None, None, '2824936'), ('4302', '22883261', '1357641321', '0.0', None, None, None, None, '2824936'), ('4302', '22883261', '1357641284', '0.0', None, None, None, None, '2824936'), ('4302', '22883261', '1357641279', '0.0', None, None, None, None, '2824936'), ('4302', '22883261', '1357641257', '0.0', None, None, None, None, '2824936'), ('4302', '22883261', '1357641230', '0.0', None, None, None, None, '2824936'), ('4302', '22883261', '1357641203', '0.0', None, None, None, None, '2824936')] time used for this insertion : 0.015210628509521484 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05869126319885254 time spend to save output : 0.015861034393310547 total time spend for step 2 : 0.07455229759216309 step3:velours_tree Mon May 12 14:21:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22883261: [{'cartonnette': 22883275, 'metal': 22883276, 'environnement': 22883277, 'Carton_gris': 22883278, 'kraft': 22883279, 'papier': 22883280, 'mal_croppe': 22883281, 'flou': 22883282, 'Carton_brun': 22883283, 'plastique': 22883284, 'Teint_Dans_La_Masse': 22883285, 'autre_refus': 22883286}]} input_args_next_step : {22883261: ()} output_args : {22883261: [{'cartonnette': 22883275, 'metal': 22883276, 'environnement': 22883277, 'Carton_gris': 22883278, 'kraft': 22883279, 'papier': 22883280, 'mal_croppe': 22883281, 'flou': 22883282, 'Carton_brun': 22883283, 'plastique': 22883284, 'Teint_Dans_La_Masse': 22883285, 'autre_refus': 22883286}]} args : 22883261 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 : ({'cartonnette': 22883275, 'metal': 22883276, 'environnement': 22883277, 'Carton_gris': 22883278, 'kraft': 22883279, 'papier': 22883280, 'mal_croppe': 22883281, 'flou': 22883282, 'Carton_brun': 22883283, 'plastique': 22883284, 'Teint_Dans_La_Masse': 22883285, 'autre_refus': 22883286},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22883261) 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([22883261]) 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.4165520668029785 time spend to save output : 9.584426879882812e-05 total time spend for step 3 : 0.41664791107177734 step4:send_mail_cod Mon May 12 14:21:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} input_args_next_step : {1357641389: ()} output_args : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} args : 1357641389 depend.output_id : 0 input_args_next_step : {1357641389: ('0.0',), 1357641384: ()} output_args : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} args : 1357641384 depend.output_id : 0 input_args_next_step : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ()} output_args : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} args : 1357641379 depend.output_id : 0 input_args_next_step : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ()} output_args : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} args : 1357641334 depend.output_id : 0 input_args_next_step : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ()} output_args : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} args : 1357641330 depend.output_id : 0 input_args_next_step : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ()} output_args : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} args : 1357641326 depend.output_id : 0 input_args_next_step : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ()} output_args : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} args : 1357641323 depend.output_id : 0 input_args_next_step : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ()} output_args : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} args : 1357641321 depend.output_id : 0 input_args_next_step : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ()} output_args : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} args : 1357641284 depend.output_id : 0 input_args_next_step : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ()} output_args : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} args : 1357641279 depend.output_id : 0 input_args_next_step : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ()} output_args : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} args : 1357641257 depend.output_id : 0 input_args_next_step : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ()} output_args : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} args : 1357641230 depend.output_id : 0 input_args_next_step : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ()} output_args : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',)} args : 1357641203 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 : {22883261: [{'cartonnette': 22883275, 'metal': 22883276, 'environnement': 22883277, 'Carton_gris': 22883278, 'kraft': 22883279, 'papier': 22883280, 'mal_croppe': 22883281, 'flou': 22883282, 'Carton_brun': 22883283, 'plastique': 22883284, 'Teint_Dans_La_Masse': 22883285, 'autre_refus': 22883286}]} input_args_next_step : {1357641389: ('0.0',), 1357641384: ('0.0',), 1357641379: ('0.0',), 1357641334: ('0.0',), 1357641330: ('0.0',), 1357641326: ('0.0',), 1357641323: ('0.0',), 1357641321: ('0.0',), 1357641284: ('0.0',), 1357641279: ('0.0',), 1357641257: ('0.0',), 1357641230: ('0.0',), 1357641203: ('0.0',), 22883261: ()} output_args : {22883261: [{'cartonnette': 22883275, 'metal': 22883276, 'environnement': 22883277, 'Carton_gris': 22883278, 'kraft': 22883279, 'papier': 22883280, 'mal_croppe': 22883281, 'flou': 22883282, 'Carton_brun': 22883283, 'plastique': 22883284, 'Teint_Dans_La_Masse': 22883285, 'autre_refus': 22883286}]} args : 22883261 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 :14, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22883261) 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 (1357641389,1357641384,1357641379,1357641334,1357641330,1357641326,1357641323,1357641321,1357641284,1357641279,1357641257,1357641230,1357641203) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1357641203 begin to download photo : 1357641279 begin to download photo : 1357641323 begin to download photo : 1357641334 begin to download photo : 1357641389 download finish for photo 1357641279 begin to download photo : 1357641284 download finish for photo 1357641389 download finish for photo 1357641323 begin to download photo : 1357641326 download finish for photo 1357641203 begin to download photo : 1357641230 download finish for photo 1357641334 begin to download photo : 1357641379 download finish for photo 1357641284 begin to download photo : 1357641321 download finish for photo 1357641326 begin to download photo : 1357641330 download finish for photo 1357641230 begin to download photo : 1357641257 download finish for photo 1357641379 begin to download photo : 1357641384 download finish for photo 1357641321 download finish for photo 1357641257 download finish for photo 1357641330 download finish for photo 1357641384 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette228832751747052461/ imagette228832761747052461/ imagette228832791747052461/ imagette228832811747052461/ imagette228832821747052461/ imagette228832841747052461/ imagette228832861747052461/ imagette228832781747052461/ imagette228832831747052461/ imagette228832851747052461/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P22883261_12-05-2025_14_21_01.pdf 22883275 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=22883275 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228832751747052461 22883276 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=22883276 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228832761747052461 22883279 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=22883279 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228832791747052461 22883281 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=22883281 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228832811747052461 22883282 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=22883282 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228832821747052461 22883284 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=22883284 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228832841747052461 22883286 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=22883286 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228832861747052461 22883278 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=22883278 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228832781747052461 22883283 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=22883283 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228832831747052461 22883285 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=22883285 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228832851747052461 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22883261 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22883287,22883288,22883289,22883290,22883291,22883292,22883293,22883294,22883295,22883296,22883297,22883298?tags=cartonnette,metal,environnement,Carton_gris,kraft,papier,mal_croppe,flou,Carton_brun,plastique,Teint_Dans_La_Masse,autre_refus your option no_mail is active, we will not send the real mail to your client args[1357641389] : ('0.0',) no score found for photo 1357641389 We are sending mail with results at report@fotonower.com args[1357641384] : ('0.0',) no score found for photo 1357641384 We are sending mail with results at report@fotonower.com args[1357641379] : ('0.0',) no score found for photo 1357641379 We are sending mail with results at report@fotonower.com args[1357641334] : ('0.0',) no score found for photo 1357641334 We are sending mail with results at report@fotonower.com args[1357641330] : ('0.0',) no score found for photo 1357641330 We are sending mail with results at report@fotonower.com args[1357641326] : ('0.0',) no score found for photo 1357641326 We are sending mail with results at report@fotonower.com args[1357641323] : ('0.0',) no score found for photo 1357641323 We are sending mail with results at report@fotonower.com args[1357641321] : ('0.0',) no score found for photo 1357641321 We are sending mail with results at report@fotonower.com args[1357641284] : ('0.0',) no score found for photo 1357641284 We are sending mail with results at report@fotonower.com args[1357641279] : ('0.0',) no score found for photo 1357641279 We are sending mail with results at report@fotonower.com args[1357641257] : ('0.0',) no score found for photo 1357641257 We are sending mail with results at report@fotonower.com args[1357641230] : ('0.0',) no score found for photo 1357641230 We are sending mail with results at report@fotonower.com args[1357641203] : ('0.0',) no score found for photo 1357641203 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=22883261 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_P22883261_12-05-2025_14_21_01.pdf results_Auto_P22883261_12-05-2025_14_21_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883261_12-05-2025_14_21_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22883261','results_Auto_P22883261_12-05-2025_14_21_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883261_12-05-2025_14_21_01.pdf','pdf','','0.12','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22883261]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1357641389, 1357641384, 1357641379, 1357641334, 1357641330, 1357641326, 1357641323, 1357641321, 1357641284, 1357641279, 1357641257, 1357641230, 1357641203] map_info['map_portfolio_photo'] : {22883261: [1357641389, 1357641384, 1357641379, 1357641334, 1357641330, 1357641326, 1357641323, 1357641321, 1357641284, 1357641279, 1357641257, 1357641230, 1357641203, 1357641113, 1357641108, 1357641102, 1357641091, 1357641032, 1357641027, 1357641023, 1357641020, 1357641015]} final : False mtd_id 4302 list_pids : [1357641389, 1357641384, 1357641379, 1357641334, 1357641330, 1357641326, 1357641323, 1357641321, 1357641284, 1357641279, 1357641257, 1357641230, 1357641203] 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, '2824936') ('4302', '22883261', '1357641389', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641384', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641379', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641334', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641330', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641326', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641323', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641321', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641284', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641279', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641257', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641230', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641203', None, None, None, None, None, '2824936') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '22883261', '1357641389', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641384', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641379', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641334', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641330', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641326', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641323', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641321', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641284', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641279', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641257', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641230', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641203', None, None, None, None, None, '2824936')] time used for this insertion : 0.01471853256225586 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5835602283477783 time spend to save output : 0.015069723129272461 total time spend for step 4 : 1.5986299514770508 step5:split_time_score Mon May 12 14:21:02 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 : ['22883261'] 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 : [('22883261',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22883261) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1357641389: {'path': 'temp/1747052460_2466454_1357641389_66971fb0b0cad2fa825962acd9f56b93.jpg', 'extension': 'jpg'}, 1357641279: {'path': 'temp/1747052460_2466454_1357641279_20efb31dbab4d6910e2338fe9142a539.jpg', 'extension': 'jpg'}, 1357641284: {'path': 'temp/1747052460_2466454_1357641284_f012e38ee5f2344740a4b9e46d9e812d.jpg', 'extension': 'jpg'}, 1357641321: {'path': 'temp/1747052460_2466454_1357641321_a30b8a3d88e6ee76d45317790b6ce9a2.jpg', 'extension': 'jpg'}, 1357641203: {'path': 'temp/1747052460_2466454_1357641203_9dcb5789a0843b67e34212548f14e102.jpg', 'extension': 'jpg'}, 1357641230: {'path': 'temp/1747052460_2466454_1357641230_5ad6dc041b5a5da59c145c7922db790b.jpg', 'extension': 'jpg'}, 1357641257: {'path': 'temp/1747052460_2466454_1357641257_fdebaebd6fdefa32407e0ccdfa2499b2.jpg', 'extension': 'jpg'}, 1357641323: {'path': 'temp/1747052460_2466454_1357641323_ce7c858ed9393e62fc0ef532ec269988.jpg', 'extension': 'jpg'}, 1357641326: {'path': 'temp/1747052460_2466454_1357641326_0f9e013f28b37ff829fdc976e3d303b3.jpg', 'extension': 'jpg'}, 1357641330: {'path': 'temp/1747052460_2466454_1357641330_88195553a5673769281157667428365a.jpg', 'extension': 'jpg'}, 1357641334: {'path': 'temp/1747052460_2466454_1357641334_fe9b2111977b133b317c55e4f77c0c72.jpg', 'extension': 'jpg'}, 1357641379: {'path': 'temp/1747052460_2466454_1357641379_c282f1039d6b1c845a81b37e4bb7b3cb.jpg', 'extension': 'jpg'}, 1357641384: {'path': 'temp/1747052460_2466454_1357641384_2747882f38c65ec9c8290a4ff9a5b0c9.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 = 22883261; (('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 = 22883261 group by h (('14', 22),) 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=22883261 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 (22883261) 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 (22883261) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12052025 22883261 Nombre de photos uploadées : 22 / 23040 (0%) 12052025 22883261 Nombre de photos taguées (types de déchets): 0 / 22 (0%) 12052025 22883261 Nombre de photos taguées (volume) : 0 / 22 (0%) [{'photo_id': 1357641032, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/03ade0bee21f5cdd07f5f3bdeecea414.jpg', 'username': None, 'uploaded_at': 1747052167, 'text': 'image_12052025_14_15_04_10143.jpg'}, {'photo_id': 1357641027, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/d3db2134f62604e2d9e405209aa485d7.jpg', 'username': None, 'uploaded_at': 1747052167, 'text': 'image_12052025_14_15_14_10135.jpg'}, {'photo_id': 1357641023, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/79b9f3b8098e8dcb2551c5b90439e481.jpg', 'username': None, 'uploaded_at': 1747052167, 'text': 'image_12052025_14_15_25_10134.jpg'}, {'photo_id': 1357641020, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/2c5c3b75e43e8be506fdc59385bfd0e9.jpg', 'username': None, 'uploaded_at': 1747052167, 'text': 'image_12052025_14_15_35_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ?????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001188039779663086 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22883261, '2025-05-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1796783,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02667856216430664 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= 1796783 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22870059, 'dashboard_result_id': 10491071, '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_P22870059_12-05-2025_05_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22870060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870071, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22870688, 'dashboard_result_id': 10491072, '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_P22870688_12-05-2025_05_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22870698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870701, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22870938, 'dashboard_result_id': 10491073, '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_P22870938_12-05-2025_05_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22870950, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22871209, 'dashboard_result_id': 10491074, '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_P22871209_12-05-2025_06_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871260, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22871504, 'dashboard_result_id': 10491075, '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_P22871504_12-05-2025_06_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871517, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22871877, 'dashboard_result_id': 10491076, '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_P22871877_12-05-2025_06_35_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871913, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22872299, 'dashboard_result_id': 10491077, '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_P22872299_12-05-2025_06_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22872324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872335, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22872664, 'dashboard_result_id': 10491078, '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_P22872664_12-05-2025_07_03_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872716, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22872720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872724, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22872974, 'dashboard_result_id': 10491079, '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_P22872974_12-05-2025_07_20_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22872976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872986, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22873517, 'dashboard_result_id': 10491080, '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_P22873517_12-05-2025_07_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22873526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22873529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22873532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22873535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22873537, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22873640, 'dashboard_result_id': 10491081, '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_P22873640_12-05-2025_07_46_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22873650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22873651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22873658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22873659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22873660, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873661, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22873979, 'dashboard_result_id': 10491082, '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_P22873979_12-05-2025_08_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22874000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22874001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22874002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22874003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22874004, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22874526, 'dashboard_result_id': 10491083, '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_P22874526_12-05-2025_08_17_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22874573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22874574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22874575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22874576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22874577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22874578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22874579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22874580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22874581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22874582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22874583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22874584, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22875040, 'dashboard_result_id': 10491084, '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_P22875040_12-05-2025_08_33_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22875060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22875061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22875062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22875063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22875064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22875065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22875066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22875067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22875068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22875069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22875070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22875071, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22875456, 'dashboard_result_id': 10491085, '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_P22875456_12-05-2025_08_49_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22875467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22875468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22875469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22875470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22875471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22875472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22875473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22875474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22875475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22875476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22875477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22875478, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22876020, 'dashboard_result_id': 10491086, '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_P22876020_12-05-2025_09_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22876044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22876045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22876046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22876047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22876048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22876049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22876050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22876051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22876052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22876053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22876054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22876055, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22877171, 'dashboard_result_id': 10491087, '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_P22877171_12-05-2025_09_46_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877198, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22877447, 'dashboard_result_id': 10491088, '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_P22877447_12-05-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877462, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22877667, 'dashboard_result_id': 10491089, '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_P22877667_12-05-2025_10_31_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877705, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22878347, 'dashboard_result_id': 10491090, '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_P22878347_12-05-2025_10_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878382, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878388, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22878417, 'dashboard_result_id': 10491091, '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_P22878417_12-05-2025_10_51_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878484, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22878904, 'dashboard_result_id': 10491092, '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_P22878904_12-05-2025_11_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878932, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22879253, 'dashboard_result_id': 10491093, '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_P22879253_12-05-2025_11_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22879316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22879317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22879318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22879319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22879320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22879321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22879322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22879323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22879324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22879325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22879326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22879327, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22879770, 'dashboard_result_id': 10491094, '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_P22879770_12-05-2025_11_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22879809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22879810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22879811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22879812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22879813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22879814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22879815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22879816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22879817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22879818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22879819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22879820, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22880147, 'dashboard_result_id': 10491095, '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_P22880147_12-05-2025_11_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22880162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22880163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22880164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22880166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22880167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22880168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22880169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22880170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22880171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22880172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22880173, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22880563, 'dashboard_result_id': 10491096, '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_P22880563_12-05-2025_12_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22880577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22880579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22880580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22880581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22880582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22880583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22880584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22880585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22880586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22880587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22880588, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22880960, 'dashboard_result_id': 10491097, '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_P22880960_12-05-2025_12_12_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22881000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22881001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22881002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22881003, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22881004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22881005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22881006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22881007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22881008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22881009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22881010, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22882836, 'dashboard_result_id': 10491098, '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_P22882836_12-05-2025_14_01_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22882875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22882876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22882877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22882878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22882879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22882880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22882881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22882882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22882883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22882884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22882885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22882886, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22883004, 'dashboard_result_id': 10491099, '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_P22883004_12-05-2025_14_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883019, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1805593, 'mtr_portfolio_id': 22883261, 'dashboard_result_id': 10491100, '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_P22883261_12-05-2025_14_19_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883281, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883286, '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 = 22870059 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': 2818985, 'mtr_portfolio_id': 22870059, 'created_at': datetime.datetime(2025, 5, 12, 5, 16, 29), 'result': '0.03814272581624625', 'result_long': None, 'result_double': None}] Qualite : 0.03814272581624625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22870059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870059_12-05-2025_05_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22870059 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_P22870059_12-05-2025_05_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22870060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870071, 'pht': 3726}}" where mtr_portfolio_id = 22870059 and dashboard_run_id = 1805593 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`=22870059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491071, 0.03814272581624625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870059_12-05-2025_05_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22870060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870071, '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 = 22870688 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': 2819020, 'mtr_portfolio_id': 22870688, 'created_at': datetime.datetime(2025, 5, 12, 5, 32, 57), 'result': '0.040974598516487964', 'result_long': None, 'result_double': None}] Qualite : 0.040974598516487964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22870688 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870688_12-05-2025_05_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22870688 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_P22870688_12-05-2025_05_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22870698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870701, 'pht': 3726}}" where mtr_portfolio_id = 22870688 and dashboard_run_id = 1805593 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`=22870688 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491072, 0.040974598516487964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870688_12-05-2025_05_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22870698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870701, '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 = 22870938 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': 2819063, 'mtr_portfolio_id': 22870938, 'created_at': datetime.datetime(2025, 5, 12, 5, 48, 58), 'result': '0.03705420816309158', 'result_long': None, 'result_double': None}] Qualite : 0.03705420816309158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22870938 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870938_12-05-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22870938 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_P22870938_12-05-2025_05_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22870950, 'pht': 3726}}" where mtr_portfolio_id = 22870938 and dashboard_run_id = 1805593 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`=22870938 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491073, 0.03705420816309158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870938_12-05-2025_05_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22870950, '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 = 22871209 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': 2819134, 'mtr_portfolio_id': 22871209, 'created_at': datetime.datetime(2025, 5, 12, 6, 2, 59), 'result': '0.05509775094935961', 'result_long': None, 'result_double': None}] Qualite : 0.05509775094935961 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22871209 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871209_12-05-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22871209 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_P22871209_12-05-2025_06_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871260, 'pht': 3726}}" where mtr_portfolio_id = 22871209 and dashboard_run_id = 1805593 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`=22871209 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491074, 0.05509775094935961, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871209_12-05-2025_06_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871260, '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 = 22871504 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': 2819232, 'mtr_portfolio_id': 22871504, 'created_at': datetime.datetime(2025, 5, 12, 6, 18, 58), 'result': '0.05746300343567093', 'result_long': None, 'result_double': None}] Qualite : 0.05746300343567093 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22871504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871504_12-05-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22871504 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_P22871504_12-05-2025_06_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871517, 'pht': 3726}}" where mtr_portfolio_id = 22871504 and dashboard_run_id = 1805593 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`=22871504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491075, 0.05746300343567093, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871504_12-05-2025_06_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871517, '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 = 22871877 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': 2819378, 'mtr_portfolio_id': 22871877, 'created_at': datetime.datetime(2025, 5, 12, 6, 34, 59), 'result': '0.045784550673837125', 'result_long': None, 'result_double': None}] Qualite : 0.045784550673837125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22871877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871877_12-05-2025_06_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22871877 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_P22871877_12-05-2025_06_35_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871913, 'pht': 3726}}" where mtr_portfolio_id = 22871877 and dashboard_run_id = 1805593 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`=22871877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491076, 0.045784550673837125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871877_12-05-2025_06_35_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871913, '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 = 22872299 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': 2819499, 'mtr_portfolio_id': 22872299, 'created_at': datetime.datetime(2025, 5, 12, 6, 46, 59), 'result': '0.04030796451946968', 'result_long': None, 'result_double': None}] Qualite : 0.04030796451946968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22872299 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872299_12-05-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22872299 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_P22872299_12-05-2025_06_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22872324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872335, 'pht': 3726}}" where mtr_portfolio_id = 22872299 and dashboard_run_id = 1805593 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`=22872299 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491077, 0.04030796451946968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872299_12-05-2025_06_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22872324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872335, '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 = 22872664 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': 2819610, 'mtr_portfolio_id': 22872664, 'created_at': datetime.datetime(2025, 5, 12, 7, 3, 28), 'result': '0.029092883708927365', 'result_long': None, 'result_double': None}] Qualite : 0.029092883708927365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22872664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872664_12-05-2025_07_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22872664 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_P22872664_12-05-2025_07_03_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872716, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22872720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872724, 'pht': 3726}}" where mtr_portfolio_id = 22872664 and dashboard_run_id = 1805593 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`=22872664 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491078, 0.029092883708927365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872664_12-05-2025_07_03_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872716, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22872720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872724, '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 = 22872974 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': 2819705, 'mtr_portfolio_id': 22872974, 'created_at': datetime.datetime(2025, 5, 12, 7, 20, 59), 'result': '0.058217506583405694', 'result_long': None, 'result_double': None}] Qualite : 0.058217506583405694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22872974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872974_12-05-2025_07_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22872974 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_P22872974_12-05-2025_07_20_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22872976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872986, 'pht': 3726}}" where mtr_portfolio_id = 22872974 and dashboard_run_id = 1805593 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`=22872974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491079, 0.058217506583405694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872974_12-05-2025_07_20_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22872976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872986, '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 = 22873517 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': 2820019, 'mtr_portfolio_id': 22873517, 'created_at': datetime.datetime(2025, 5, 12, 7, 32, 57), 'result': '0.046385280639552384', 'result_long': None, 'result_double': None}] Qualite : 0.046385280639552384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22873517 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873517_12-05-2025_07_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22873517 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_P22873517_12-05-2025_07_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22873526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22873529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22873532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22873535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22873537, 'pht': 3726}}" where mtr_portfolio_id = 22873517 and dashboard_run_id = 1805593 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`=22873517 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491080, 0.046385280639552384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873517_12-05-2025_07_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22873526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22873529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22873532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22873535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22873537, '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 = 22873640 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': 2820106, 'mtr_portfolio_id': 22873640, 'created_at': datetime.datetime(2025, 5, 12, 7, 46, 57), 'result': '0.08114034623904608', 'result_long': None, 'result_double': None}] Qualite : 0.08114034623904608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22873640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873640_12-05-2025_07_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22873640 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_P22873640_12-05-2025_07_46_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22873650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22873651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22873658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22873659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22873660, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873661, 'pht': 3726}}" where mtr_portfolio_id = 22873640 and dashboard_run_id = 1805593 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`=22873640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491081, 0.08114034623904608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873640_12-05-2025_07_46_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22873650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22873651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22873658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22873659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22873660, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873661, '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 = 22873979 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': 2820324, 'mtr_portfolio_id': 22873979, 'created_at': datetime.datetime(2025, 5, 12, 8, 2, 58), 'result': '0.046364263727113116', 'result_long': None, 'result_double': None}] Qualite : 0.046364263727113116 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22873979 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873979_12-05-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22873979 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_P22873979_12-05-2025_08_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22874000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22874001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22874002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22874003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22874004, 'pht': 3726}}" where mtr_portfolio_id = 22873979 and dashboard_run_id = 1805593 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`=22873979 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491082, 0.046364263727113116, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873979_12-05-2025_08_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22874000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22874001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22874002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22874003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22874004, '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 = 22874526 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': 2820616, 'mtr_portfolio_id': 22874526, 'created_at': datetime.datetime(2025, 5, 12, 8, 16, 58), 'result': '0.031045362774303958', 'result_long': None, 'result_double': None}] Qualite : 0.031045362774303958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22874526 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22874526_12-05-2025_08_17_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22874526 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_P22874526_12-05-2025_08_17_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22874573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22874574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22874575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22874576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22874577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22874578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22874579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22874580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22874581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22874582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22874583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22874584, 'pht': 3726}}" where mtr_portfolio_id = 22874526 and dashboard_run_id = 1805593 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`=22874526 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491083, 0.031045362774303958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22874526_12-05-2025_08_17_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22874573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22874574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22874575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22874576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22874577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22874578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22874579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22874580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22874581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22874582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22874583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22874584, '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 = 22875040 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': 2820827, 'mtr_portfolio_id': 22875040, 'created_at': datetime.datetime(2025, 5, 12, 8, 33, 29), 'result': '0.06801382081209209', 'result_long': None, 'result_double': None}] Qualite : 0.06801382081209209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22875040 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22875040_12-05-2025_08_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22875040 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_P22875040_12-05-2025_08_33_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22875060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22875061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22875062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22875063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22875064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22875065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22875066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22875067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22875068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22875069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22875070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22875071, 'pht': 3726}}" where mtr_portfolio_id = 22875040 and dashboard_run_id = 1805593 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`=22875040 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491084, 0.06801382081209209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22875040_12-05-2025_08_33_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22875060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22875061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22875062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22875063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22875064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22875065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22875066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22875067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22875068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22875069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22875070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22875071, '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 = 22875456 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': 2821035, 'mtr_portfolio_id': 22875456, 'created_at': datetime.datetime(2025, 5, 12, 8, 49, 1), 'result': '0.045482632936897756', 'result_long': None, 'result_double': None}] Qualite : 0.045482632936897756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22875456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22875456_12-05-2025_08_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22875456 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_P22875456_12-05-2025_08_49_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22875467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22875468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22875469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22875470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22875471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22875472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22875473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22875474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22875475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22875476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22875477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22875478, 'pht': 3726}}" where mtr_portfolio_id = 22875456 and dashboard_run_id = 1805593 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`=22875456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491085, 0.045482632936897756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22875456_12-05-2025_08_49_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22875467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22875468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22875469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22875470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22875471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22875472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22875473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22875474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22875475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22875476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22875477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22875478, '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 = 22876020 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': 2821309, 'mtr_portfolio_id': 22876020, 'created_at': datetime.datetime(2025, 5, 12, 9, 32, 57), 'result': '0.03174837739005935', 'result_long': None, 'result_double': None}] Qualite : 0.03174837739005935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22876020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22876020_12-05-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22876020 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_P22876020_12-05-2025_09_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22876044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22876045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22876046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22876047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22876048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22876049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22876050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22876051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22876052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22876053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22876054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22876055, 'pht': 3726}}" where mtr_portfolio_id = 22876020 and dashboard_run_id = 1805593 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`=22876020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491086, 0.03174837739005935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22876020_12-05-2025_09_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22876044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22876045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22876046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22876047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22876048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22876049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22876050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22876051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22876052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22876053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22876054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22876055, '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 = 22877171 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': 2821921, 'mtr_portfolio_id': 22877171, 'created_at': datetime.datetime(2025, 5, 12, 9, 46, 30), 'result': '0.03862610965721871', 'result_long': None, 'result_double': None}] Qualite : 0.03862610965721871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22877171 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877171_12-05-2025_09_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22877171 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_P22877171_12-05-2025_09_46_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877198, 'pht': 3726}}" where mtr_portfolio_id = 22877171 and dashboard_run_id = 1805593 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`=22877171 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491087, 0.03862610965721871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877171_12-05-2025_09_46_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877198, '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 = 22877447 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': 2822119, 'mtr_portfolio_id': 22877447, 'created_at': datetime.datetime(2025, 5, 12, 10, 2, 59), 'result': '0.026794901904193303', 'result_long': None, 'result_double': None}] Qualite : 0.026794901904193303 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22877447 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877447_12-05-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22877447 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_P22877447_12-05-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877462, 'pht': 3726}}" where mtr_portfolio_id = 22877447 and dashboard_run_id = 1805593 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`=22877447 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491088, 0.026794901904193303, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877447_12-05-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877462, '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 = 22877667 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': 2822255, 'mtr_portfolio_id': 22877667, 'created_at': datetime.datetime(2025, 5, 12, 10, 30, 59), 'result': '0.03168615817266886', 'result_long': None, 'result_double': None}] Qualite : 0.03168615817266886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22877667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877667_12-05-2025_10_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22877667 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_P22877667_12-05-2025_10_31_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877705, 'pht': 3726}}" where mtr_portfolio_id = 22877667 and dashboard_run_id = 1805593 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`=22877667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491089, 0.03168615817266886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877667_12-05-2025_10_31_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877705, '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 = 22878347 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22878347 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22878347 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22878347 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22878347 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22878347 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878347_12-05-2025_10_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22878347 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_P22878347_12-05-2025_10_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878382, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878388, 'pht': 3726}}" where mtr_portfolio_id = 22878347 and dashboard_run_id = 1805593 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 = 22878417 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': 2822633, 'mtr_portfolio_id': 22878417, 'created_at': datetime.datetime(2025, 5, 12, 10, 50, 59), 'result': '0.04298390164738104', 'result_long': None, 'result_double': None}] Qualite : 0.04298390164738104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22878417 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878417_12-05-2025_10_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22878417 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_P22878417_12-05-2025_10_51_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878484, 'pht': 3726}}" where mtr_portfolio_id = 22878417 and dashboard_run_id = 1805593 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`=22878417 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491091, 0.04298390164738104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878417_12-05-2025_10_51_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878484, '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 = 22878904 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22878904 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22878904 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22878904 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22878904 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22878904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878904_12-05-2025_11_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22878904 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_P22878904_12-05-2025_11_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878932, 'pht': 3726}}" where mtr_portfolio_id = 22878904 and dashboard_run_id = 1805593 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 = 22879253 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22879253 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22879253 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22879253 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22879253 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22879253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22879253_12-05-2025_11_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22879253 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_P22879253_12-05-2025_11_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22879316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22879317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22879318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22879319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22879320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22879321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22879322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22879323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22879324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22879325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22879326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22879327, 'pht': 3726}}" where mtr_portfolio_id = 22879253 and dashboard_run_id = 1805593 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 = 22879770 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': 2823240, 'mtr_portfolio_id': 22879770, 'created_at': datetime.datetime(2025, 5, 12, 11, 33, 30), 'result': '0.06527948683279094', 'result_long': None, 'result_double': None}] Qualite : 0.06527948683279094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22879770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22879770_12-05-2025_11_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22879770 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_P22879770_12-05-2025_11_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22879809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22879810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22879811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22879812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22879813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22879814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22879815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22879816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22879817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22879818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22879819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22879820, 'pht': 3726}}" where mtr_portfolio_id = 22879770 and dashboard_run_id = 1805593 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`=22879770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491094, 0.06527948683279094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22879770_12-05-2025_11_33_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22879809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22879810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22879811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22879812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22879813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22879814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22879815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22879816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22879817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22879818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22879819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22879820, '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 = 22880147 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22880147 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22880147 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22880147 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22880147 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22880147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880147_12-05-2025_11_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22880147 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_P22880147_12-05-2025_11_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22880162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22880163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22880164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22880166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22880167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22880168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22880169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22880170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22880171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22880172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22880173, 'pht': 3726}}" where mtr_portfolio_id = 22880147 and dashboard_run_id = 1805593 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 = 22880563 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': 2823694, 'mtr_portfolio_id': 22880563, 'created_at': datetime.datetime(2025, 5, 12, 12, 2, 56), 'result': '0.021661386225150795', 'result_long': None, 'result_double': None}] Qualite : 0.021661386225150795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22880563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880563_12-05-2025_12_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22880563 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_P22880563_12-05-2025_12_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22880577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22880579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22880580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22880581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22880582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22880583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22880584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22880585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22880586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22880587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22880588, 'pht': 3726}}" where mtr_portfolio_id = 22880563 and dashboard_run_id = 1805593 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`=22880563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491096, 0.021661386225150795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880563_12-05-2025_12_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22880577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22880579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22880580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22880581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22880582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22880583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22880584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22880585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22880586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22880587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22880588, '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 = 22880960 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22880960 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22880960 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22880960 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22880960 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22880960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880960_12-05-2025_12_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22880960 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_P22880960_12-05-2025_12_12_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22881000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22881001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22881002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22881003, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22881004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22881005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22881006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22881007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22881008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22881009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22881010, 'pht': 3726}}" where mtr_portfolio_id = 22880960 and dashboard_run_id = 1805593 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 = 22882836 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22882836 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22882836 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22882836 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22882836 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22882836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22882836_12-05-2025_14_01_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22882836 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_P22882836_12-05-2025_14_01_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22882875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22882876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22882877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22882878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22882879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22882880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22882881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22882882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22882883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22882884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22882885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22882886, 'pht': 3726}}" where mtr_portfolio_id = 22882836 and dashboard_run_id = 1805593 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 = 22883004 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': 2824864, 'mtr_portfolio_id': 22883004, 'created_at': datetime.datetime(2025, 5, 12, 14, 18, 57), 'result': '0.06550490032695334', 'result_long': None, 'result_double': None}] Qualite : 0.06550490032695334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22883004 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883004_12-05-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22883004 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_P22883004_12-05-2025_14_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883019, 'pht': 3726}}" where mtr_portfolio_id = 22883004 and dashboard_run_id = 1805593 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`=22883004 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10491099, 0.06550490032695334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883004_12-05-2025_14_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883019, '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 = 22883261 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22883261 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22883261 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22883261 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22883261 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22883261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883261_12-05-2025_14_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22883261 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_P22883261_12-05-2025_14_21_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883281, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883286, 'pht': 3726}}" where mtr_portfolio_id = 22883261 and dashboard_run_id = 1805593 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22870059,22870688,22870938,22871209,22871504,22871877,22872299,22872664,22872974,22873517,22873640,22873979,22874526,22875040,22875456,22876020,22877171,22877447,22877667,22878347,22878417,22878904,22879253,22879770,22880147,22880563,22880960,22882836,22883004,22883261) result : ((1357593698,), (1357593717,), (1357593847,), (1357593880,), (1357593915,), (1357593940,), (1357594109,), (1357594311,), (1357594320,), (1357594322,), (1357594330,), (1357594594,), (1357594651,), (1357594652,), (1357594653,), (1357594656,), (1357594769,), (1357594771,), (1357594834,), (1357594860,), (1357594862,), (1357594952,), (1357594953,), (1357594955,), (1357594959,), (1357594984,), (1357594987,), (1357595394,), (1357595430,), (1357595457,), (1357595532,), (1357595561,), (1357595588,), (1357595936,), (1357595938,), (1357595939,), (1357595940,), (1357595941,), (1357596122,), (1357596167,), (1357596185,), (1357596271,), (1357596448,), (1357596683,), (1357597103,), (1357597211,), (1357597213,), (1357597214,), (1357597216,), (1357597240,), (1357597244,), (1357597246,), (1357597247,), (1357597248,), (1357597266,), (1357597268,), (1357597272,), (1357597331,), (1357597335,), (1357597339,), (1357597341,), (1357597362,), (1357597365,), (1357597366,), (1357597368,), (1357597370,), (1357597371,), (1357597393,), (1357597395,), (1357597398,), (1357597399,), (1357597400,), (1357597418,), (1357597421,), (1357597422,), (1357597480,), (1357597483,), (1357597488,), (1357597489,), (1357597490,), (1357597510,), (1357597512,), (1357597513,), (1357597514,), (1357597515,), (1357597516,), (1357597549,), (1357597553,), (1357597555,), (1357597603,), (1357597599,), (1357597601,), (1357597602,), (1357597633,), (1357597636,), (1357597637,), (1357597638,), (1357597639,), (1357597656,), (1357597659,), (1357597660,), (1357597661,), (1357597662,), (1357597663,), (1357597681,), (1357597684,), (1357597686,), (1357597687,), (1357597707,), (1357597709,), (1357597714,), (1357597715,), (1357597731,), (1357597737,), (1357597741,), (1357597744,), (1357597747,), (1357597760,), (1357597764,), (1357597766,), (1357597792,), (1357597795,), (1357597797,), (1357597799,), (1357597801,), (1357597815,), (1357597818,), (1357597845,), (1357597846,), (1357597847,), (1357597848,), (1357597849,), (1357597890,), (1357597892,), (1357597893,), (1357597894,), (1357597922,), (1357597923,), (1357597924,), (1357597925,), (1357597946,), (1357597951,), (1357597954,), (1357597957,), (1357597960,), (1357597972,), (1357597975,), (1357597977,), (1357597978,), (1357597979,), (1357597980,), (1357597998,), (1357598003,), (1357598004,), (1357598006,), (1357598007,), (1357598044,), (1357598037,), (1357598038,), (1357598039,), (1357598040,), (1357598041,), (1357598059,), (1357598061,), (1357598062,), (1357598063,), (1357598065,), (1357598088,), (1357598091,), (1357598115,), (1357598117,), (1357598119,), (1357598121,), (1357598123,), (1357598125,), (1357598143,), (1357598147,), (1357598150,), (1357598152,), (1357598153,), (1357598154,), (1357598189,), (1357598192,), (1357598194,), (1357598223,), (1357598226,), (1357598228,), (1357598229,), (1357598244,), (1357598248,), (1357598250,), (1357598253,), (1357598279,), (1357598295,), (1357598296,), (1357598297,), (1357598299,), (1357598315,), (1357598318,), (1357598320,), (1357598322,), (1357598352,), (1357598354,), (1357598357,), (1357598360,), (1357598362,), (1357598375,), (1357598378,), (1357598381,), (1357598384,), (1357598386,), (1357598413,), (1357598416,), (1357598418,), (1357598420,), (1357598422,), (1357598450,), (1357598454,), (1357598461,), (1357598465,), (1357598475,), (1357598476,), (1357598477,), (1357598478,), (1357598480,), (1357598481,), (1357598482,), (1357598485,), (1357598486,), (1357598492,), (1357598520,), (1357598512,), (1357598514,), (1357598516,), (1357598518,), (1357598535,), (1357598538,), (1357598541,), (1357598543,), (1357598545,), (1357598547,), (1357598569,), (1357598570,), (1357598593,), (1357598596,), (1357598615,), (1357598618,), (1357598621,), (1357598647,), (1357598648,), (1357598651,), (1357598654,), (1357598658,), (1357598684,), (1357598685,), (1357598687,), (1357598689,), (1357598692,), (1357598718,), (1357598719,), (1357598720,), (1357598721,), (1357598722,), (1357598724,), (1357598748,), (1357598749,), (1357598751,), (1357598778,), (1357598779,), (1357598780,), (1357598781,), (1357598782,), (1357598835,), (1357598836,), (1357598837,), (1357598838,), (1357598839,), (1357598840,), (1357598866,), (1357598868,), (1357598869,), (1357598870,), (1357598897,), (1357598900,), (1357598904,), (1357598909,), (1357598912,), (1357598914,), (1357598934,), (1357598935,), (1357598936,), (1357598937,), (1357598957,), (1357598970,), (1357598973,), (1357598974,), (1357598975,), (1357598977,), (1357599007,), (1357599000,), (1357599003,), (1357599004,), (1357599005,), (1357599006,), (1357599027,), (1357599029,), (1357599031,), (1357599032,), (1357599064,), (1357599065,), (1357599066,), (1357599067,), (1357599069,), (1357599098,), (1357599099,), (1357599100,), (1357599101,), (1357599102,), (1357599137,), (1357599138,), (1357599140,), (1357599141,), (1357599142,), (1357599189,), (1357599194,), (1357599196,), (1357599197,), (1357599198,), (1357599200,), (1357599239,), (1357599240,), (1357599241,), (1357599282,), (1357599284,), (1357599286,), (1357599289,), (1357599292,), (1357599319,), (1357599321,), (1357599322,), (1357599323,), (1357599325,), (1357599327,), (1357599357,), (1357599359,), (1357599360,), (1357599362,), (1357599389,), (1357599391,), (1357599392,), (1357599393,), (1357599403,), (1357599420,), (1357599423,), (1357599425,), (1357599426,), (1357599427,), (1357599429,), (1357599468,), (1357599471,), (1357599472,), (1357599473,), (1357599502,), (1357599504,), (1357599505,), (1357599506,), (1357599507,), (1357599535,), (1357599537,), (1357599540,), (1357599543,), (1357599546,), (1357599582,), (1357599572,), (1357599577,), (1357599579,), (1357599608,), (1357599612,), (1357599614,), (1357599617,), (1357599619,), (1357599639,), (1357599642,), (1357599644,), (1357599646,), (1357599650,), (1357599652,), (1357599682,), (1357599684,), (1357599686,), (1357599713,), (1357599717,), (1357599718,), (1357599719,), (1357599721,), (1357599745,), (1357599749,), (1357599750,), (1357599752,), (1357599777,), (1357599778,), (1357599779,), (1357599781,), (1357599784,), (1357599830,), (1357599831,), (1357599832,), (1357599867,), (1357599869,), (1357599872,), (1357599874,), (1357599877,), (1357599905,), (1357599907,), (1357599908,), (1357599909,), (1357599956,), (1357599958,), (1357599960,), (1357599963,), (1357599989,), (1357599990,), (1357599991,), (1357600023,), (1357600025,), (1357600026,), (1357600027,), (1357600030,), (1357600031,), (1357600070,), (1357600072,), (1357600074,), (1357600076,), (1357600078,), (1357600106,), (1357600110,), (1357600113,), (1357600115,), (1357600146,), (1357600143,), (1357600144,), (1357600211,), (1357600213,), (1357600215,), (1357600218,), (1357600247,), (1357600250,), (1357600252,), (1357600254,), (1357600256,), (1357600258,), (1357600284,), (1357600287,), (1357600289,), (1357600322,), (1357600324,), (1357600326,), (1357600327,), (1357600357,), (1357600359,), (1357600360,), (1357600362,), (1357600364,), (1357600387,), (1357600390,), (1357600391,), (1357600420,), (1357600423,), (1357600425,), (1357600427,), (1357600429,), (1357600431,), (1357600453,), (1357600455,), (1357600457,), (1357600458,), (1357600460,), (1357600498,), (1357600500,), (1357600501,), (1357600502,), (1357600528,), (1357600529,), (1357600531,), (1357600534,), (1357600538,), (1357600541,), (1357600564,), (1357600567,), (1357600569,), (1357600570,), (1357600572,), (1357600575,), (1357600594,), (1357600598,), (1357600604,), (1357600607,), (1357600613,), (1357600657,), (1357600647,), (1357600650,), (1357600652,), (1357600655,), (1357600684,), (1357600686,), (1357600688,), (1357600690,), (1357600714,), (1357600716,), (1357600718,), (1357600721,), (1357600724,), (1357600728,), (1357600750,), (1357600753,), (1357600756,), (1357600757,), (1357600759,), (1357600784,), (1357600786,), (1357600788,), (1357600790,), (1357600791,), (1357600793,), (1357600817,), (1357600818,), (1357600820,), (1357600822,), (1357600825,), (1357600845,), (1357600846,), (1357600848,), (1357600876,), (1357600877,), (1357600879,), (1357600881,), (1357600883,), (1357600885,), (1357600915,), (1357600918,), (1357600921,), (1357600924,), (1357600928,), (1357600930,), (1357600953,), (1357600956,), (1357600960,), (1357600965,), (1357601002,), (1357601003,), (1357601005,), (1357601007,), (1357601011,), (1357601014,), (1357601034,), (1357601036,), (1357601039,), (1357601076,), (1357601078,), (1357601080,), (1357601082,), (1357601084,), (1357601109,), (1357601112,), (1357601114,), (1357601117,), (1357601120,), (1357601123,), (1357601155,), (1357601166,), (1357601169,), (1357601173,), (1357601204,), (1357601193,), (1357601195,), (1357601198,), (1357601200,), (1357601202,), (1357601222,), (1357601254,), (1357601256,), (1357601259,), (1357601262,), (1357601264,), (1357601287,), (1357601290,), (1357601291,), (1357601294,), (1357601322,), (1357601327,), (1357601331,), (1357601334,), (1357601336,), (1357601365,), (1357601366,), (1357601370,), (1357601373,), (1357601441,), (1357601445,), (1357601469,), (1357601470,), (1357601550,), (1357601553,), (1357601555,), (1357601557,), (1357601558,), (1357601595,), (1357601599,), (1357601602,), (1357601632,), (1357601634,), (1357601635,), (1357601637,), (1357601640,), (1357601642,), (1357601665,), (1357601667,), (1357601670,), (1357601674,), (1357601677,), (1357601679,), (1357601705,), (1357601707,), (1357601710,), (1357601751,), (1357601754,), (1357601757,), (1357601761,), (1357601771,), (1357601772,), (1357601795,), (1357601797,), (1357601800,), (1357601803,), (1357601804,), (1357601806,), (1357601829,), (1357601833,), (1357601835,), (1357601882,), (1357601868,), (1357601871,), (1357601874,), (1357601877,), (1357601880,), (1357601901,), (1357601904,), (1357601907,), (1357601932,), (1357601933,), (1357601935,), (1357601938,), (1357601941,), (1357601969,), (1357601974,), (1357601978,), (1357601980,), (1357602005,), (1357602087,), (1357602091,), (1357602094,), (1357602096,), (1357602117,), (1357602119,), (1357602120,), (1357602123,), (1357602126,), (1357602130,), (1357602144,), (1357602147,), (1357602191,), (1357602194,), (1357602197,), (1357602202,), (1357602204,), (1357602229,), (1357602233,), (1357602234,), (1357602236,), (1357602262,), (1357602264,), (1357602267,), (1357602269,), (1357602296,), (1357602300,), (1357602305,), (1357602311,), (1357602352,), (1357602358,), (1357602361,), (1357602364,), (1357602366,), (1357602415,), (1357602398,), (1357602406,), (1357602448,), (1357602451,), (1357602454,), (1357602456,), (1357602458,), (1357602462,), (1357602487,), (1357602489,), (1357602495,), (1357602499,), (1357602504,), (1357602507,), (1357602522,), (1357602524,), (1357602527,), (1357602565,), (1357602567,), (1357602570,), (1357602571,), (1357602573,), (1357602603,), (1357602608,), (1357602609,), (1357602611,), (1357602615,), (1357602642,), (1357602644,), (1357602647,), (1357602652,), (1357602661,), (1357602719,), (1357602743,), (1357602764,), (1357602771,), (1357602782,), (1357602785,), (1357602860,), (1357602863,), (1357602865,), (1357602867,), (1357602869,), (1357602894,), (1357602898,), (1357602903,), (1357602905,), (1357602947,), (1357602951,), (1357602958,), (1357602960,), (1357602964,), (1357602968,), (1357602992,), (1357602994,), (1357603299,), (1357603290,), (1357603292,), (1357603295,), (1357603339,), (1357603349,), (1357603352,), (1357603361,), (1357603366,), (1357603402,), (1357603405,), (1357603408,), (1357603411,), (1357603414,), (1357603416,), (1357603454,), (1357603456,), (1357603458,), (1357603536,), (1357603537,), (1357603539,), (1357603558,), (1357603571,), (1357603575,), (1357603666,), (1357603670,), (1357603675,), (1357603678,), (1357603684,), (1357603717,), (1357603764,), (1357603766,), (1357603770,), (1357603772,), (1357603777,), (1357603819,), (1357603822,), (1357603826,), (1357603831,), (1357603833,), (1357603835,), (1357603878,), (1357603884,), (1357603886,), (1357603898,), (1357603902,), (1357603967,), (1357603970,), (1357604007,), (1357604011,), (1357604114,), (1357604116,), (1357604118,), (1357604146,), (1357604212,), (1357604214,), (1357604216,), (1357604219,), (1357604519,), (1357604634,), (1357604637,), (1357604640,), (1357604646,), (1357604649,), (1357604652,), (1357604681,), (1357604686,), (1357604687,), (1357604689,), (1357604727,), (1357604720,), (1357604722,), (1357604724,), (1357604726,), (1357604759,), (1357604766,), (1357604768,), (1357604771,), (1357604775,), (1357604779,), (1357604856,), (1357604871,), (1357604874,), (1357605067,), (1357605106,), (1357605109,), (1357605112,), (1357605179,), (1357605184,), (1357605207,), (1357605216,), (1357605240,), (1357605293,), (1357605297,), (1357605300,), (1357605302,), (1357605303,), (1357605348,), (1357605354,), (1357605358,), (1357605361,), (1357605363,), (1357605395,), (1357605398,), (1357605401,), (1357605403,), (1357605405,), (1357605417,), (1357605439,), (1357605443,), (1357605447,), (1357605485,), (1357605488,), (1357605540,), (1357605618,), (1357605698,), (1357605705,), (1357605706,), (1357605711,), (1357605715,), (1357605752,), (1357605745,), (1357605747,), (1357605749,), (1357605751,), (1357605794,), (1357605797,), (1357605840,), (1357605844,), (1357605847,), (1357605889,), (1357605891,), (1357605892,), (1357605896,), (1357605899,), (1357605930,), (1357605933,), (1357605938,), (1357605942,), (1357605980,), (1357605981,), (1357605984,), (1357605986,), (1357605990,), (1357606023,), (1357606028,), (1357606032,), (1357606036,), (1357606064,), (1357606066,), (1357606068,), (1357606070,), (1357606072,), (1357606077,), (1357606114,), (1357606116,), (1357606119,), (1357606122,), (1357606194,), (1357606198,), (1357606224,), (1357606226,), (1357606238,), (1357606290,), (1357606292,), (1357606294,), (1357606296,), (1357606298,), (1357606301,), (1357606333,), (1357606336,), (1357606340,), (1357606343,), (1357606384,), (1357606387,), (1357606390,), (1357606392,), (1357606393,), (1357606423,), (1357606425,), (1357606428,), (1357606430,), (1357606431,), (1357606434,), (1357606468,), (1357606473,), (1357606477,), (1357606481,), (1357606539,), (1357606521,), (1357606524,), (1357606528,), (1357606532,), (1357606534,), (1357606564,), (1357606568,), (1357606571,), (1357606574,), (1357606577,), (1357606581,), (1357606607,), (1357606611,), (1357606616,), (1357606620,), (1357606625,), (1357606653,), (1357606656,), (1357606659,), (1357606662,), (1357606664,), (1357606669,), (1357606712,), (1357606731,), (1357606744,), (1357606752,), (1357606873,), (1357606881,), (1357606885,), (1357607051,), (1357607060,), (1357607102,), (1357607105,), (1357607115,), (1357607126,), (1357607203,), (1357607206,), (1357607210,), (1357607215,), (1357607219,), (1357607245,), (1357607250,), (1357607254,), (1357607331,), (1357607334,), (1357607347,), (1357607376,), (1357607405,), (1357607424,), (1357607484,), (1357607498,), (1357607504,), (1357607507,), (1357607511,), (1357607624,), (1357607628,), (1357607630,), (1357607772,), (1357607777,), (1357607843,), (1357607854,), (1357607862,), (1357607892,), (1357607893,), (1357607895,), (1357607896,), (1357607899,), (1357607900,), (1357607922,), (1357607925,), (1357610921,), (1357610917,), (1357610919,), (1357610952,), (1357610954,), (1357610956,), (1357610958,), (1357610961,), (1357610964,), (1357610984,), (1357610987,), (1357610989,), (1357611088,), (1357611090,), (1357611118,), (1357611122,), (1357611125,), (1357611127,), (1357611128,), (1357611151,), (1357611154,), (1357611156,), (1357611159,), (1357611161,), (1357611194,), (1357611196,), (1357611199,), (1357611230,), (1357611232,), (1357611234,), (1357611236,), (1357611264,), (1357611265,), (1357611295,), (1357611298,), (1357611301,), (1357611304,), (1357611336,), (1357611338,), (1357611340,), (1357611343,), (1357611374,), (1357611378,), (1357611388,), (1357611401,), (1357611594,), (1357611648,), (1357611649,), (1357611651,), (1357611653,), (1357611656,), (1357611681,), (1357611684,), (1357611687,), (1357611690,), (1357611695,), (1357611696,), (1357611725,), (1357611727,), (1357611755,), (1357611757,), (1357611760,), (1357611761,), (1357611763,), (1357611793,), (1357611795,), (1357611801,), (1357611856,), (1357611947,), (1357611981,), (1357612002,), (1357612091,), (1357612096,), (1357612098,), (1357612109,), (1357612112,), (1357612203,), (1357612204,), (1357612206,), (1357612209,), (1357612327,), (1357612329,), (1357612331,), (1357612332,), (1357612357,), (1357612359,), (1357612396,), (1357612400,), (1357612402,), (1357612431,), (1357612438,), (1357612445,), (1357612509,), (1357612514,), (1357612522,), (1357612580,), (1357612567,), (1357612573,), (1357612635,), (1357612639,), (1357612643,), (1357612681,), (1357612684,), (1357612688,), (1357612691,), (1357612694,), (1357612699,), (1357612727,), (1357612732,), (1357612734,), (1357612736,), (1357612740,), (1357612772,), (1357612776,), (1357612787,), (1357612791,), (1357612794,), (1357612816,), (1357612822,), (1357612827,), (1357612860,), (1357612865,), (1357612869,), (1357612872,), (1357612875,), (1357613008,), (1357613024,), (1357613053,), (1357613082,), (1357613088,), (1357613108,), (1357613198,), (1357613200,), (1357613204,), (1357613207,), (1357613315,), (1357613321,), (1357613325,), (1357613384,), (1357613387,), (1357613390,), (1357613404,), (1357613436,), (1357613459,), (1357613484,), (1357613487,), (1357613489,), (1357613494,), (1357613532,), (1357613537,), (1357613540,), (1357614565,), (1357614690,), (1357614693,), (1357614696,), (1357614699,), (1357614702,), (1357614707,), (1357614734,), (1357614741,), (1357614746,), (1357614751,), (1357614807,), (1357614782,), (1357614786,), (1357614795,), (1357614798,), (1357614803,), (1357614872,), (1357614876,), (1357614881,), (1357614941,), (1357614952,), (1357614956,), (1357614960,), (1357615338,), (1357615345,), (1357615374,), (1357615415,), (1357615434,), (1357615437,), (1357615440,), (1357615444,), (1357615449,), (1357615452,), (1357615470,), (1357615473,), (1357615478,), (1357615517,), (1357615520,), (1357615524,), (1357615528,), (1357615632,), (1357615640,), (1357615645,), (1357615650,), (1357615652,), (1357615678,), (1357615682,), (1357615684,), (1357615687,), (1357615691,), (1357615694,), (1357615725,), (1357615730,), (1357615733,), (1357615735,), (1357615770,), (1357615778,), (1357615875,), (1357615893,), (1357615915,), (1357615919,), (1357615924,), (1357616019,), (1357616022,), (1357616025,), (1357616028,), (1357616092,), (1357616098,), (1357616103,), (1357616157,), (1357616139,), (1357616144,), (1357616149,), (1357616153,), (1357616180,), (1357616191,), (1357616194,), (1357616200,), (1357616204,), (1357616208,), (1357616231,), (1357616237,), (1357616240,), (1357616244,), (1357616278,), (1357616283,), (1357616285,), (1357616287,), (1357616289,), (1357616294,), (1357616361,), (1357616366,), (1357616369,), (1357616372,), (1357616375,), (1357616379,), (1357616426,), (1357616432,), (1357616437,), (1357616483,), (1357616485,), (1357616487,), (1357616489,), (1357616496,), (1357616499,), (1357616533,), (1357616536,), (1357616539,), (1357616566,), (1357616570,), (1357616575,), (1357616611,), (1357616615,), (1357616617,), (1357616619,), (1357616623,), (1357616650,), (1357616664,), (1357616669,), (1357616674,), (1357616677,), (1357616679,), (1357616705,), (1357616709,), (1357616713,), (1357616717,), (1357616748,), (1357616752,), (1357616755,), (1357616757,), (1357616764,), (1357616766,), (1357616801,), (1357616806,), (1357616815,), (1357616822,), (1357616841,), (1357616846,), (1357616851,), (1357616854,), (1357616856,), (1357616926,), (1357616910,), (1357616916,), (1357616922,), (1357616977,), (1357616980,), (1357616982,), (1357616985,), (1357616989,), (1357617003,), (1357617044,), (1357617048,), (1357617050,), (1357617051,), (1357617054,), (1357617056,), (1357617087,), (1357617088,), (1357617091,), (1357617139,), (1357617143,), (1357617145,), (1357617147,), (1357617148,), (1357617151,), (1357617191,), (1357617208,), (1357617211,), (1357617225,), (1357617230,), (1357617234,), (1357617279,), (1357617280,), (1357617281,), (1357617283,), (1357617316,), (1357617318,), (1357617321,), (1357617324,), (1357617326,), (1357617329,), (1357617486,), (1357617725,), (1357617756,), (1357617770,), (1357617818,), (1357617822,), (1357617827,), (1357617832,), (1357617833,), (1357617837,), (1357617872,), (1357617876,), (1357617878,), (1357617923,), (1357617928,), (1357617933,), (1357617938,), (1357617992,), (1357617976,), (1357617980,), (1357617983,), (1357617986,), (1357618100,), (1357618104,), (1357618108,), (1357618111,), (1357618139,), (1357618143,), (1357618147,), (1357618151,), (1357618154,), (1357618203,), (1357618207,), (1357618211,), (1357618216,), (1357618229,), (1357618312,), (1357618317,), (1357618323,), (1357618324,), (1357618327,), (1357618330,), (1357618481,), (1357618484,), (1357618487,), (1357618520,), (1357618524,), (1357618527,), (1357618529,), (1357618530,), (1357618614,), (1357619190,), (1357619194,), (1357619199,), (1357619202,), (1357619257,), (1357619262,), (1357619264,), (1357619266,), (1357619268,), (1357619271,), (1357619299,), (1357619303,), (1357619311,), (1357619317,), (1357619353,), (1357619355,), (1357619359,), (1357619362,), (1357619364,), (1357619367,), (1357619402,), (1357619405,), (1357619410,), (1357619412,), (1357619415,), (1357619445,), (1357619450,), (1357619454,), (1357619489,), (1357619491,), (1357619494,), (1357619497,), (1357619498,), (1357619502,), (1357619532,), (1357619535,), (1357619539,), (1357619542,), (1357619547,), (1357619550,), (1357619599,), (1357619592,), (1357619596,), (1357619636,), (1357619639,), (1357619641,), (1357619642,), (1357619673,), (1357619675,), (1357619678,), (1357619681,), (1357619682,), (1357619726,), (1357619729,), (1357619732,), (1357619736,), (1357619737,), (1357619799,), (1357619803,), (1357619807,), (1357619809,), (1357619811,), (1357619886,), (1357619889,), (1357619897,), (1357619903,), (1357619906,), (1357619908,), (1357619997,), (1357620002,), (1357620003,), (1357620143,), (1357620145,), (1357620147,), (1357620150,), (1357620152,), (1357620155,), (1357620185,), (1357620188,), (1357620190,), (1357620192,), (1357620238,), (1357620243,), (1357620247,), (1357620251,), (1357620254,), (1357620293,), (1357620295,), (1357620297,), (1357620358,), (1357620362,), (1357620381,), (1357620409,), (1357620438,), (1357620444,), (1357620527,), (1357620529,), (1357620531,), (1357620669,), (1357620672,), (1357620675,), (1357620680,), (1357620710,), (1357620739,), (1357620806,), (1357620810,), (1357620813,), (1357620815,), (1357620816,), (1357620859,), (1357620850,), (1357620853,), (1357620855,), (1357620896,), (1357620899,), (1357620902,), (1357620905,), (1357620909,), (1357620913,), (1357620954,), (1357620958,), (1357620960,), (1357620961,), (1357620964,), (1357620997,), (1357620999,), (1357621000,), (1357621002,), (1357621007,), (1357621037,), (1357621042,), (1357621046,), (1357621049,), (1357621054,), (1357621058,), (1357621088,), (1357621092,), (1357621109,), (1357621111,), (1357621231,), (1357621252,), (1357621271,), (1357621367,), (1357621396,), (1357621426,), (1357621453,), (1357621454,), (1357621488,), (1357621491,), (1357621493,), (1357621495,), (1357621496,), (1357621499,), (1357621532,), (1357621534,), (1357621538,), (1357621571,), (1357621573,), (1357621575,), (1357621578,), (1357622065,), (1357622045,), (1357622052,), (1357622060,), (1357622097,), (1357622102,), (1357622105,), (1357622108,), (1357622141,), (1357622145,), (1357622149,), (1357622153,), (1357622157,), (1357622160,), (1357622182,), (1357622185,), (1357622189,), (1357622193,), (1357622199,), (1357622203,), (1357622325,), (1357622337,), (1357622348,), (1357622364,), (1357622409,), (1357622417,), (1357622422,), (1357622430,), (1357622433,), (1357622444,), (1357622485,), (1357622508,), (1357622534,), (1357622724,), (1357622751,), (1357622756,), (1357622761,), (1357622776,), (1357622811,), (1357622847,), (1357622859,), (1357622886,), (1357622914,), (1357623250,), (1357623255,), (1357623260,), (1357623265,), (1357623270,), (1357623289,), (1357623442,), (1357623445,), (1357623449,), (1357623579,), (1357623582,), (1357632727,), (1357636418,), (1357637218,), (1357637267,), (1357637272,), (1357637276,), (1357637279,), (1357637387,), (1357637430,), (1357637458,), (1357637509,), (1357637539,), (1357637848,), (1357637880,), (1357637910,), (1357637942,), (1357637996,), (1357638002,), (1357638005,), (1357638010,), (1357638017,), (1357638021,), (1357638421,), (1357638450,), (1357638498,), (1357638552,), (1357638607,), (1357638634,), (1357638873,), (1357638900,), (1357638992,), (1357639007,), (1357639011,), (1357639019,), (1357639050,), (1357639418,), (1357639441,), (1357639448,), (1357639615,), (1357639684,), (1357639751,), (1357639806,), (1357639861,), (1357639928,), (1357640536,), (1357640595,), (1357640650,), (1357640684,), (1357640854,), (1357640889,), (1357640916,), (1357640924,), (1357640927,), (1357640931,), (1357640965,), (1357640969,), (1357640972,), (1357640975,), (1357640979,), (1357641037,), (1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12052025': {'nb_upload': 22, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22883261]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1357641389, 1357641384, 1357641379, 1357641334, 1357641330, 1357641326, 1357641323, 1357641321, 1357641284, 1357641279, 1357641257, 1357641230, 1357641203] map_info['map_portfolio_photo'] : {22883261: [1357641389, 1357641384, 1357641379, 1357641334, 1357641330, 1357641326, 1357641323, 1357641321, 1357641284, 1357641279, 1357641257, 1357641230, 1357641203, 1357641113, 1357641108, 1357641102, 1357641091, 1357641032, 1357641027, 1357641023, 1357641020, 1357641015]} final : True mtd_id 4302 list_pids : [1357641389, 1357641384, 1357641379, 1357641334, 1357641330, 1357641326, 1357641323, 1357641321, 1357641284, 1357641279, 1357641257, 1357641230, 1357641203] Looping around the photos to save general results len do output : 1 /22883261Didn'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, '2824936') ('4302', '22883261', '1357641389', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641384', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641379', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641334', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641330', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641326', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641323', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641321', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641284', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641279', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641257', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641230', None, None, None, None, None, '2824936') ('4302', None, None, None, None, None, None, None, '2824936') ('4302', '22883261', '1357641203', None, None, None, None, None, '2824936') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22883261', 'None', None, None, None, None, '2824936'), ('4302', '22883261', '1357641389', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641384', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641379', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641334', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641330', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641326', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641323', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641321', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641284', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641279', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641257', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641230', None, None, None, None, None, '2824936'), ('4302', '22883261', '1357641203', None, None, None, None, None, '2824936')] time used for this insertion : 0.013972997665405273 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6491384506225586 time spend to save output : 0.014191389083862305 total time spend for step 5 : 1.663329839706421 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 (2824936) 2.49user 2.44system 0:09.71elapsed 50%CPU (0avgtext+0avgdata 160844maxresident)k 11104inputs+8560outputs (134major+75223minor)pagefaults 0swaps