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 : 2193349 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 (3424566) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3424566) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25595132 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3424566'] with mtr_portfolio_ids : ['25595132'] and first list_photo_ids : [] new path : /proc/2193349/ Name: python3 Umask: 0002 State: R (running) Tgid: 2193349 Ngid: 0 Pid: 2193349 PPid: 2193348 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2193349 NSpid: 2193349 NSpgid: 2192677 NSsid: 2192677 VmPeak: 1106860 kB VmSize: 1106860 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99732 kB VmRSS: 99732 kB RssAnon: 59816 kB RssFile: 39916 kB RssShmem: 0 kB VmData: 865612 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2193349', 'Ngid': '0', 'Pid': '2193349', 'PPid': '2193348', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2193349', 'NSpid': '2193349', 'NSpgid': '2192677', 'NSsid': '2192677', 'VmPeak': '1106860 kB', 'VmSize': '1106860 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99732 kB', 'VmRSS': '99732 kB', 'RssAnon': '59816 kB', 'RssFile': '39916 kB', 'RssShmem': '0 kB', 'VmData': '865612 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '2193349', '1106860', '0', '1106860', '865612', '99732', b'', 'marlene', '3424566') 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 (25595132) 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 (3424566 ) ) 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 (25595132) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374836761, 'portfolio_id': 25595132}, {'photo_id': 1374836699, 'portfolio_id': 25595132}, {'photo_id': 1374836696, 'portfolio_id': 25595132}, {'photo_id': 1374836263, 'portfolio_id': 25595132}, {'photo_id': 1374836238, 'portfolio_id': 25595132}, {'photo_id': 1374836203, 'portfolio_id': 25595132}, {'photo_id': 1374836148, 'portfolio_id': 25595132}, {'photo_id': 1374835867, 'portfolio_id': 25595132}, {'photo_id': 1374835841, 'portfolio_id': 25595132}, {'photo_id': 1374835797, 'portfolio_id': 25595132}, {'photo_id': 1374835753, 'portfolio_id': 25595132}, {'photo_id': 1374835707, 'portfolio_id': 25595132}, {'photo_id': 1374835655, 'portfolio_id': 25595132}, {'photo_id': 1374835572, 'portfolio_id': 25595132}, {'photo_id': 1374835571, 'portfolio_id': 25595132}, {'photo_id': 1374835570, 'portfolio_id': 25595132}, {'photo_id': 1374835568, 'portfolio_id': 25595132}, {'photo_id': 1374835548, 'portfolio_id': 25595132}, {'photo_id': 1374835532, 'portfolio_id': 25595132}, {'photo_id': 1374835531, 'portfolio_id': 25595132}, {'photo_id': 1374835530, 'portfolio_id': 25595132}, {'photo_id': 1374835507, 'portfolio_id': 25595132}, {'photo_id': 1374835506, 'portfolio_id': 25595132}, {'photo_id': 1374835495, 'portfolio_id': 25595132}, {'photo_id': 1374835494, 'portfolio_id': 25595132}, {'photo_id': 1374835466, 'portfolio_id': 25595132}, {'photo_id': 1374835465, 'portfolio_id': 25595132}, {'photo_id': 1374835412, 'portfolio_id': 25595132}, {'photo_id': 1374835411, 'portfolio_id': 25595132}, {'photo_id': 1374835410, 'portfolio_id': 25595132}, {'photo_id': 1374835392, 'portfolio_id': 25595132}, {'photo_id': 1374835390, 'portfolio_id': 25595132}, {'photo_id': 1374835388, 'portfolio_id': 25595132}, {'photo_id': 1374835387, 'portfolio_id': 25595132}, {'photo_id': 1374835386, 'portfolio_id': 25595132}, {'photo_id': 1374835371, 'portfolio_id': 25595132}, {'photo_id': 1374835369, 'portfolio_id': 25595132}, {'photo_id': 1374835368, 'portfolio_id': 25595132}, {'photo_id': 1374835367, 'portfolio_id': 25595132}, {'photo_id': 1374835343, 'portfolio_id': 25595132}, {'photo_id': 1374835342, 'portfolio_id': 25595132}, {'photo_id': 1374835341, 'portfolio_id': 25595132}, {'photo_id': 1374835340, 'portfolio_id': 25595132}, {'photo_id': 1374835328, 'portfolio_id': 25595132}, {'photo_id': 1374835326, 'portfolio_id': 25595132}, {'photo_id': 1374835325, 'portfolio_id': 25595132}, {'photo_id': 1374835324, 'portfolio_id': 25595132}] map_portfolio_id_photo_id: {25595132: [1374836761, 1374836699, 1374836696, 1374836263, 1374836238, 1374836203, 1374836148, 1374835867, 1374835841, 1374835797, 1374835753, 1374835707, 1374835655, 1374835572, 1374835571, 1374835570, 1374835568, 1374835548, 1374835532, 1374835531, 1374835530, 1374835507, 1374835506, 1374835495, 1374835494, 1374835466, 1374835465, 1374835412, 1374835411, 1374835410, 1374835392, 1374835390, 1374835388, 1374835387, 1374835386, 1374835371, 1374835369, 1374835368, 1374835367, 1374835343, 1374835342, 1374835341, 1374835340, 1374835328, 1374835326, 1374835325, 1374835324]} ##### 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.015227079391479492 #### 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 Sat Aug 2 00:05: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 (25595132) 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 : 25595132 get user id for portfolio 25595132 get sub ptf for main ptf 25595132, type 3726 and hashtags ['flou', 'autre_refus', 'mal_croppe', 'environnement', 'kraft', 'papier', 'metal', 'plastique', 'Carton_gris', 'Teint_Dans_La_Masse', 'Carton_brun', 'cartonnette'] 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`=25595132 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','mal_croppe','environnement','kraft','papier','metal','plastique','Carton_gris','Teint_Dans_La_Masse','Carton_brun','cartonnette')) 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`=25595132 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','mal_croppe','environnement','kraft','papier','metal','plastique','Carton_gris','Teint_Dans_La_Masse','Carton_brun','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 25595132, 'sub_port_id': 25595136, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257253, 'last_updated_at': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 57)}, 'papier': {'main_port_id': 25595132, 'sub_port_id': 25595137, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257254, 'last_updated_at': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 57)}, 'autre_refus': {'main_port_id': 25595132, 'sub_port_id': 25595138, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257255, 'last_updated_at': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 25595132, 'sub_port_id': 25595139, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257256, 'last_updated_at': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 57)}, 'plastique': {'main_port_id': 25595132, 'sub_port_id': 25595140, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257257, 'last_updated_at': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 57)}, 'mal_croppe': {'main_port_id': 25595132, 'sub_port_id': 25595141, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257258, 'last_updated_at': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 57)}, 'cartonnette': {'main_port_id': 25595132, 'sub_port_id': 25595142, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257259, 'last_updated_at': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 57)}, 'metal': {'main_port_id': 25595132, 'sub_port_id': 25595143, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257260, 'last_updated_at': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 57)}, 'kraft': {'main_port_id': 25595132, 'sub_port_id': 25595144, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257261, 'last_updated_at': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 57)}, 'Carton_gris': {'main_port_id': 25595132, 'sub_port_id': 25595145, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257262, 'last_updated_at': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 57)}, 'Carton_brun': {'main_port_id': 25595132, 'sub_port_id': 25595146, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257263, 'last_updated_at': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 57)}, 'environnement': {'main_port_id': 25595132, 'sub_port_id': 25595147, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257264, 'last_updated_at': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25595136 , 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=25595132 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 (25595136) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25595132) result : ((1374835324,), (1374835325,), (1374835326,), (1374835328,), (1374835340,), (1374835341,), (1374835342,), (1374835343,), (1374835367,), (1374835368,), (1374835369,), (1374835371,), (1374835386,), (1374835387,), (1374835388,), (1374835390,), (1374835392,), (1374835410,), (1374835411,), (1374835412,), (1374835465,), (1374835466,), (1374835494,), (1374835495,), (1374835506,), (1374835507,), (1374835530,), (1374835531,), (1374835532,), (1374835548,), (1374835568,), (1374835570,), (1374835571,), (1374835572,), (1374835655,), (1374835707,), (1374835753,), (1374835797,), (1374835841,), (1374835867,), (1374836148,), (1374836203,), (1374836238,), (1374836263,), (1374836696,), (1374836699,), (1374836761,)) 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 25595137 , 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=25595132 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 (25595137) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25595132) result : ((1374835324,), (1374835325,), (1374835326,), (1374835328,), (1374835340,), (1374835341,), (1374835342,), (1374835343,), (1374835367,), (1374835368,), (1374835369,), (1374835371,), (1374835386,), (1374835387,), (1374835388,), (1374835390,), (1374835392,), (1374835410,), (1374835411,), (1374835412,), (1374835465,), (1374835466,), (1374835494,), (1374835495,), (1374835506,), (1374835507,), (1374835530,), (1374835531,), (1374835532,), (1374835548,), (1374835568,), (1374835570,), (1374835571,), (1374835572,), (1374835655,), (1374835707,), (1374835753,), (1374835797,), (1374835841,), (1374835867,), (1374836148,), (1374836203,), (1374836238,), (1374836263,), (1374836696,), (1374836699,), (1374836761,)) 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 25595138 , 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=25595132 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 (25595138) result : ((1374835364,), (1374835526,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25595132) result : ((1374835324,), (1374835325,), (1374835326,), (1374835328,), (1374835340,), (1374835341,), (1374835342,), (1374835343,), (1374835367,), (1374835368,), (1374835369,), (1374835371,), (1374835386,), (1374835387,), (1374835388,), (1374835390,), (1374835392,), (1374835410,), (1374835411,), (1374835412,), (1374835465,), (1374835466,), (1374835494,), (1374835495,), (1374835506,), (1374835507,), (1374835530,), (1374835531,), (1374835532,), (1374835548,), (1374835568,), (1374835570,), (1374835571,), (1374835572,), (1374835655,), (1374835707,), (1374835753,), (1374835797,), (1374835841,), (1374835867,), (1374836148,), (1374836203,), (1374836238,), (1374836263,), (1374836696,), (1374836699,), (1374836761,)) 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 25595139 , 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=25595132 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 (25595139) result : ((1374835405,), (1374835489,), (1374835490,), (1374835525,), (1374836065,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25595132) result : ((1374835324,), (1374835325,), (1374835326,), (1374835328,), (1374835340,), (1374835341,), (1374835342,), (1374835343,), (1374835367,), (1374835368,), (1374835369,), (1374835371,), (1374835386,), (1374835387,), (1374835388,), (1374835390,), (1374835392,), (1374835410,), (1374835411,), (1374835412,), (1374835465,), (1374835466,), (1374835494,), (1374835495,), (1374835506,), (1374835507,), (1374835530,), (1374835531,), (1374835532,), (1374835548,), (1374835568,), (1374835570,), (1374835571,), (1374835572,), (1374835655,), (1374835707,), (1374835753,), (1374835797,), (1374835841,), (1374835867,), (1374836148,), (1374836203,), (1374836238,), (1374836263,), (1374836696,), (1374836699,), (1374836761,)) 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 25595140 , 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=25595132 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 (25595140) result : ((1374835366,), (1374835409,), (1374835569,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25595132) result : ((1374835324,), (1374835325,), (1374835326,), (1374835328,), (1374835340,), (1374835341,), (1374835342,), (1374835343,), (1374835367,), (1374835368,), (1374835369,), (1374835371,), (1374835386,), (1374835387,), (1374835388,), (1374835390,), (1374835392,), (1374835410,), (1374835411,), (1374835412,), (1374835465,), (1374835466,), (1374835494,), (1374835495,), (1374835506,), (1374835507,), (1374835530,), (1374835531,), (1374835532,), (1374835548,), (1374835568,), (1374835570,), (1374835571,), (1374835572,), (1374835655,), (1374835707,), (1374835753,), (1374835797,), (1374835841,), (1374835867,), (1374836148,), (1374836203,), (1374836238,), (1374836263,), (1374836696,), (1374836699,), (1374836761,)) 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 25595141 , 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=25595132 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 (25595141) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25595132) result : ((1374835324,), (1374835325,), (1374835326,), (1374835328,), (1374835340,), (1374835341,), (1374835342,), (1374835343,), (1374835367,), (1374835368,), (1374835369,), (1374835371,), (1374835386,), (1374835387,), (1374835388,), (1374835390,), (1374835392,), (1374835410,), (1374835411,), (1374835412,), (1374835465,), (1374835466,), (1374835494,), (1374835495,), (1374835506,), (1374835507,), (1374835530,), (1374835531,), (1374835532,), (1374835548,), (1374835568,), (1374835570,), (1374835571,), (1374835572,), (1374835655,), (1374835707,), (1374835753,), (1374835797,), (1374835841,), (1374835867,), (1374836148,), (1374836203,), (1374836238,), (1374836263,), (1374836696,), (1374836699,), (1374836761,)) 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 25595142 , 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=25595132 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 (25595142) result : ((1374835365,), (1374835408,), (1374836073,), (1374836688,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25595132) result : ((1374835324,), (1374835325,), (1374835326,), (1374835328,), (1374835340,), (1374835341,), (1374835342,), (1374835343,), (1374835367,), (1374835368,), (1374835369,), (1374835371,), (1374835386,), (1374835387,), (1374835388,), (1374835390,), (1374835392,), (1374835410,), (1374835411,), (1374835412,), (1374835465,), (1374835466,), (1374835494,), (1374835495,), (1374835506,), (1374835507,), (1374835530,), (1374835531,), (1374835532,), (1374835548,), (1374835568,), (1374835570,), (1374835571,), (1374835572,), (1374835655,), (1374835707,), (1374835753,), (1374835797,), (1374835841,), (1374835867,), (1374836148,), (1374836203,), (1374836238,), (1374836263,), (1374836696,), (1374836699,), (1374836761,)) 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 25595143 , 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=25595132 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 (25595143) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25595132) result : ((1374835324,), (1374835325,), (1374835326,), (1374835328,), (1374835340,), (1374835341,), (1374835342,), (1374835343,), (1374835367,), (1374835368,), (1374835369,), (1374835371,), (1374835386,), (1374835387,), (1374835388,), (1374835390,), (1374835392,), (1374835410,), (1374835411,), (1374835412,), (1374835465,), (1374835466,), (1374835494,), (1374835495,), (1374835506,), (1374835507,), (1374835530,), (1374835531,), (1374835532,), (1374835548,), (1374835568,), (1374835570,), (1374835571,), (1374835572,), (1374835655,), (1374835707,), (1374835753,), (1374835797,), (1374835841,), (1374835867,), (1374836148,), (1374836203,), (1374836238,), (1374836263,), (1374836696,), (1374836699,), (1374836761,)) 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 25595144 , 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=25595132 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 (25595144) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25595132) result : ((1374835324,), (1374835325,), (1374835326,), (1374835328,), (1374835340,), (1374835341,), (1374835342,), (1374835343,), (1374835367,), (1374835368,), (1374835369,), (1374835371,), (1374835386,), (1374835387,), (1374835388,), (1374835390,), (1374835392,), (1374835410,), (1374835411,), (1374835412,), (1374835465,), (1374835466,), (1374835494,), (1374835495,), (1374835506,), (1374835507,), (1374835530,), (1374835531,), (1374835532,), (1374835548,), (1374835568,), (1374835570,), (1374835571,), (1374835572,), (1374835655,), (1374835707,), (1374835753,), (1374835797,), (1374835841,), (1374835867,), (1374836148,), (1374836203,), (1374836238,), (1374836263,), (1374836696,), (1374836699,), (1374836761,)) 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 25595145 , 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=25595132 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 (25595145) result : ((1374835407,), (1374835491,), (1374835527,), (1374835528,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25595132) result : ((1374835324,), (1374835325,), (1374835326,), (1374835328,), (1374835340,), (1374835341,), (1374835342,), (1374835343,), (1374835367,), (1374835368,), (1374835369,), (1374835371,), (1374835386,), (1374835387,), (1374835388,), (1374835390,), (1374835392,), (1374835410,), (1374835411,), (1374835412,), (1374835465,), (1374835466,), (1374835494,), (1374835495,), (1374835506,), (1374835507,), (1374835530,), (1374835531,), (1374835532,), (1374835548,), (1374835568,), (1374835570,), (1374835571,), (1374835572,), (1374835655,), (1374835707,), (1374835753,), (1374835797,), (1374835841,), (1374835867,), (1374836148,), (1374836203,), (1374836238,), (1374836263,), (1374836696,), (1374836699,), (1374836761,)) 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 25595146 , 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=25595132 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 (25595146) result : ((1374835492,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25595132) result : ((1374835324,), (1374835325,), (1374835326,), (1374835328,), (1374835340,), (1374835341,), (1374835342,), (1374835343,), (1374835367,), (1374835368,), (1374835369,), (1374835371,), (1374835386,), (1374835387,), (1374835388,), (1374835390,), (1374835392,), (1374835410,), (1374835411,), (1374835412,), (1374835465,), (1374835466,), (1374835494,), (1374835495,), (1374835506,), (1374835507,), (1374835530,), (1374835531,), (1374835532,), (1374835548,), (1374835568,), (1374835570,), (1374835571,), (1374835572,), (1374835655,), (1374835707,), (1374835753,), (1374835797,), (1374835841,), (1374835867,), (1374836148,), (1374836203,), (1374836238,), (1374836263,), (1374836696,), (1374836699,), (1374836761,)) 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 25595147 , 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=25595132 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 (25595147) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25595132) result : ((1374835324,), (1374835325,), (1374835326,), (1374835328,), (1374835340,), (1374835341,), (1374835342,), (1374835343,), (1374835367,), (1374835368,), (1374835369,), (1374835371,), (1374835386,), (1374835387,), (1374835388,), (1374835390,), (1374835392,), (1374835410,), (1374835411,), (1374835412,), (1374835465,), (1374835466,), (1374835494,), (1374835495,), (1374835506,), (1374835507,), (1374835530,), (1374835531,), (1374835532,), (1374835548,), (1374835568,), (1374835570,), (1374835571,), (1374835572,), (1374835655,), (1374835707,), (1374835753,), (1374835797,), (1374835841,), (1374835867,), (1374836148,), (1374836203,), (1374836238,), (1374836263,), (1374836696,), (1374836699,), (1374836761,)) 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`=25595132 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','mal_croppe','environnement','kraft','papier','metal','plastique','Carton_gris','Teint_Dans_La_Masse','Carton_brun','cartonnette')) 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`=25595132 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','mal_croppe','environnement','kraft','papier','metal','plastique','Carton_gris','Teint_Dans_La_Masse','Carton_brun','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 25595132, 'sub_port_id': 25595148, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257265, 'last_updated_at': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 58)}, 'papier': {'main_port_id': 25595132, 'sub_port_id': 25595149, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257266, 'last_updated_at': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 58)}, 'autre_refus': {'main_port_id': 25595132, 'sub_port_id': 25595150, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257267, 'last_updated_at': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 25595132, 'sub_port_id': 25595151, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257268, 'last_updated_at': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 58)}, 'plastique': {'main_port_id': 25595132, 'sub_port_id': 25595152, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257269, 'last_updated_at': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 58)}, 'mal_croppe': {'main_port_id': 25595132, 'sub_port_id': 25595153, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257270, 'last_updated_at': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 58)}, 'cartonnette': {'main_port_id': 25595132, 'sub_port_id': 25595154, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257271, 'last_updated_at': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 58)}, 'metal': {'main_port_id': 25595132, 'sub_port_id': 25595155, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257272, 'last_updated_at': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 58)}, 'kraft': {'main_port_id': 25595132, 'sub_port_id': 25595156, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257273, 'last_updated_at': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 58)}, 'Carton_gris': {'main_port_id': 25595132, 'sub_port_id': 25595157, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257274, 'last_updated_at': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 58)}, 'Carton_brun': {'main_port_id': 25595132, 'sub_port_id': 25595158, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257275, 'last_updated_at': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 1, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 58)}, 'environnement': {'main_port_id': 25595132, 'sub_port_id': 25595159, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17257276, 'last_updated_at': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 0, 0, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 1, 23, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25595148,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25595136 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25595149,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25595137 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25595150,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25595138 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25595151,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25595139 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25595152,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25595140 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25595153,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25595141 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25595154,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25595142 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25595155,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25595143 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25595156,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25595144 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25595157,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25595145 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25595158,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25595146 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25595159,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25595147 lien utilise dans velours : https://www.fotonower.com/velours/25595148,25595149,25595150,25595151,25595152,25595153,25595154,25595155,25595156,25595157,25595158,25595159?tags=flou,papier,autre_refus,Teint_Dans_La_Masse,plastique,mal_croppe,cartonnette,metal,kraft,Carton_gris,Carton_brun,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25595132]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374836761] map_info['map_portfolio_photo'] : {25595132: [1374836761, 1374836699, 1374836696, 1374836263, 1374836238, 1374836203, 1374836148, 1374835867, 1374835841, 1374835797, 1374835753, 1374835707, 1374835655, 1374835572, 1374835571, 1374835570, 1374835568, 1374835548, 1374835532, 1374835531, 1374835530, 1374835507, 1374835506, 1374835495, 1374835494, 1374835466, 1374835465, 1374835412, 1374835411, 1374835410, 1374835392, 1374835390, 1374835388, 1374835387, 1374835386, 1374835371, 1374835369, 1374835368, 1374835367, 1374835343, 1374835342, 1374835341, 1374835340, 1374835328, 1374835326, 1374835325, 1374835324]} final : False mtd_id 4302 list_pids : [1374836761] Looping around the photos to save general results len do output : 1 /25595132. 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, '3424566') ('4302', '25595132', '1374836761', None, None, None, None, None, '3424566') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '25595132', "{'flou': 25595136, 'papier': 25595137, 'autre_refus': 25595138, 'Teint_Dans_La_Masse': 25595139, 'plastique': 25595140, 'mal_croppe': 25595141, 'cartonnette': 25595142, 'metal': 25595143, 'kraft': 25595144, 'Carton_gris': 25595145, 'Carton_brun': 25595146, 'environnement': 25595147}", None, None, None, None, '3424566'), ('4302', '25595132', '1374836761', None, None, None, None, None, '3424566')] time used for this insertion : 0.011535406112670898 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4526710510253906 time spend to save output : 0.011720895767211914 total time spend for step 1 : 1.4643919467926025 step2:final Sat Aug 2 00:06: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 (25595132) 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 25595132 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374835328,1374835326,1374835325,1374835324,1374835343,1374835342,1374835341,1374835340,1374835371,1374835369,1374835368,1374835367,1374835392,1374835390,1374835388,1374835387,1374835386,1374835412,1374835411,1374835410,1374835466,1374835465,1374835495,1374835494,1374835507,1374835506,1374835532,1374835531,1374835530,1374835548,1374835572,1374835571,1374835570,1374835568,1374835867,1374835841,1374835797,1374835753,1374835707,1374835655,1374836263,1374836238,1374836203,1374836148,1374836699,1374836696,1374836761); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25595132]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374836761: ('0.06763041047925247',)} new output for save of step final : {1374836761: ('0.06763041047925247',)} [1374836761] map_info['map_portfolio_photo'] : {25595132: [1374836761, 1374836699, 1374836696, 1374836263, 1374836238, 1374836203, 1374836148, 1374835867, 1374835841, 1374835797, 1374835753, 1374835707, 1374835655, 1374835572, 1374835571, 1374835570, 1374835568, 1374835548, 1374835532, 1374835531, 1374835530, 1374835507, 1374835506, 1374835495, 1374835494, 1374835466, 1374835465, 1374835412, 1374835411, 1374835410, 1374835392, 1374835390, 1374835388, 1374835387, 1374835386, 1374835371, 1374835369, 1374835368, 1374835367, 1374835343, 1374835342, 1374835341, 1374835340, 1374835328, 1374835326, 1374835325, 1374835324]} final : False mtd_id 4302 list_pids : [1374836761] Looping around the photos to save general results len do output : 1 /1374836761.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, '3424566') ('4302', '25595132', '1374836761', None, None, None, None, None, '3424566') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '25595132', '1374836761', '0.06763041047925247', None, None, None, None, '3424566')] time used for this insertion : 0.011490106582641602 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06131148338317871 time spend to save output : 0.011655092239379883 total time spend for step 2 : 0.0729665756225586 step3:velours_tree Sat Aug 2 00:06:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25595132: [{'flou': 25595136, 'papier': 25595137, 'autre_refus': 25595138, 'Teint_Dans_La_Masse': 25595139, 'plastique': 25595140, 'mal_croppe': 25595141, 'cartonnette': 25595142, 'metal': 25595143, 'kraft': 25595144, 'Carton_gris': 25595145, 'Carton_brun': 25595146, 'environnement': 25595147}]} input_args_next_step : {25595132: ()} output_args : {25595132: [{'flou': 25595136, 'papier': 25595137, 'autre_refus': 25595138, 'Teint_Dans_La_Masse': 25595139, 'plastique': 25595140, 'mal_croppe': 25595141, 'cartonnette': 25595142, 'metal': 25595143, 'kraft': 25595144, 'Carton_gris': 25595145, 'Carton_brun': 25595146, 'environnement': 25595147}]} args : 25595132 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 : ({'flou': 25595136, 'papier': 25595137, 'autre_refus': 25595138, 'Teint_Dans_La_Masse': 25595139, 'plastique': 25595140, 'mal_croppe': 25595141, 'cartonnette': 25595142, 'metal': 25595143, 'kraft': 25595144, 'Carton_gris': 25595145, 'Carton_brun': 25595146, 'environnement': 25595147},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25595132) 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([25595132]) 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.34592723846435547 time spend to save output : 7.510185241699219e-05 total time spend for step 3 : 0.34600234031677246 step4:send_mail_cod Sat Aug 2 00:06:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1374836761: ('0.06763041047925247',)} input_args_next_step : {1374836761: ()} output_args : {1374836761: ('0.06763041047925247',)} args : 1374836761 depend.output_id : 0 complete output_args for input 3 : {25595132: [{'flou': 25595136, 'papier': 25595137, 'autre_refus': 25595138, 'Teint_Dans_La_Masse': 25595139, 'plastique': 25595140, 'mal_croppe': 25595141, 'cartonnette': 25595142, 'metal': 25595143, 'kraft': 25595144, 'Carton_gris': 25595145, 'Carton_brun': 25595146, 'environnement': 25595147}]} input_args_next_step : {1374836761: ('0.06763041047925247',), 25595132: ()} output_args : {25595132: [{'flou': 25595136, 'papier': 25595137, 'autre_refus': 25595138, 'Teint_Dans_La_Masse': 25595139, 'plastique': 25595140, 'mal_croppe': 25595141, 'cartonnette': 25595142, 'metal': 25595143, 'kraft': 25595144, 'Carton_gris': 25595145, 'Carton_brun': 25595146, 'environnement': 25595147}]} args : 25595132 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 :2, first value : ('0.06763041047925247',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25595132) 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 (1374836761) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374836761 download finish for photo 1374836761 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette255951361754085961/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P25595132_02-08-2025_00_06_01.pdf 25595136 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=25595136 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255951361754085961 25595138 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=25595138 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374835364: '1754084847_448661_1374835324_85733748a6858b5ea2707345b55720a2_rle_crop_3900884148_0.png', 1374835526: '1754085207_459332_1374835465_b9a8cbb5eeddbaf59bf0f028cba3b0ba_rle_crop_3900884715_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/ed37e800a3d075f9859d5676941f8793_38560917.png change filename to text .imagette255951381754085961/ imagette255951381754085961/1754084847_448661_1374835324_85733748a6858b5ea2707345b55720a2_rle_crop_3900884148_0.png.png imagette255951381754085961/1754085207_459332_1374835465_b9a8cbb5eeddbaf59bf0f028cba3b0ba_rle_crop_3900884715_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/45ed2c2f906cd44c7a4d709b24f3be66_28770659.png imagette255951381754085961 25595140 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=25595140 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374835366: '1754084847_448661_1374835324_85733748a6858b5ea2707345b55720a2_rle_crop_3900884143_0.png', 1374835409: '1754084966_451458_1374835342_ebe1e35bec3fa3e8cea1baf03c31c18d_rle_crop_3900884328_0.png', 1374835569: '1754085339_2173733_1374835343_58611ca53b1bd5cca4f022467e509aad_rle_crop_3900886742_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/f98af85704ac37f1b0d546e6c7dfeb45_31654442.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/1c2c1018ecf31afda6562415daa1cccc_32579789.png change filename to text .imagette255951401754085961/ imagette255951401754085961/1754084847_448661_1374835324_85733748a6858b5ea2707345b55720a2_rle_crop_3900884143_0.png.png imagette255951401754085961/1754085339_2173733_1374835343_58611ca53b1bd5cca4f022467e509aad_rle_crop_3900886742_0.png.png imagette255951401754085961/1754084966_451458_1374835342_ebe1e35bec3fa3e8cea1baf03c31c18d_rle_crop_3900884328_0.png.png imagette255951411754085961/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/443843766e2dd0cf3e6624209d1d125f_71716664.png imagette255951401754085961 25595141 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=25595141 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255951411754085961 25595142 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=25595142 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374835365: '1754084847_448661_1374835324_85733748a6858b5ea2707345b55720a2_rle_crop_3900884147_0.png', 1374835408: '1754084966_451458_1374835340_26ee74ba5956b8457bfa1fe4aec308da_rle_crop_3900884345_0.png', 1374836073: '1754085446_463574_1374835568_481a2c0308caf8f1146096ed89541261_rle_crop_3900890923_0.png', 1374836688: '1754085567_466421_1374836203_d43497e9745138bd4ecab7a3a0c68b7c_rle_crop_3900891038_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/0ce473ddb482f90e95d66d65e41783a2_17045264.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/945744db3df01ceb9e6fde41aa1ae2c8_57588415.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/a469ecb9990b7ea641ae0bac7d175a3b_99378214.png change filename to text .imagette255951421754085961/ imagette255951421754085961/1754085567_466421_1374836203_d43497e9745138bd4ecab7a3a0c68b7c_rle_crop_3900891038_0.png.png imagette255951421754085961/1754084966_451458_1374835340_26ee74ba5956b8457bfa1fe4aec308da_rle_crop_3900884345_0.png.png imagette255951421754085961/1754084847_448661_1374835324_85733748a6858b5ea2707345b55720a2_rle_crop_3900884147_0.png.png imagette255951421754085961/1754085446_463574_1374835568_481a2c0308caf8f1146096ed89541261_rle_crop_3900890923_0.png.png imagette255951431754085962/ imagette255951441754085962/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/04369686507a356b073ac087f9a1bc45_22581624.png imagette255951421754085961 25595143 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=25595143 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255951431754085962 25595144 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=25595144 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255951441754085962 25595139 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=25595139 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374835405: '1754084966_451458_1374835342_ebe1e35bec3fa3e8cea1baf03c31c18d_rle_crop_3900884323_0.png', 1374835489: '1754085087_455279_1374835390_ba3ea42e01ca42ca6a1f1faf3b533d7e_rle_crop_3900884564_0.png', 1374835490: '1754085087_455279_1374835388_99402af37e0c97afaccacb946b537c57_rle_crop_3900884572_0.png', 1374835525: '1754085207_459332_1374835465_b9a8cbb5eeddbaf59bf0f028cba3b0ba_rle_crop_3900884717_0.png', 1374836065: '1754085446_463574_1374835568_481a2c0308caf8f1146096ed89541261_rle_crop_3900890925_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/1df5f22368582c2b667b71dd535cf9e5_42033337.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/96fdc69fbb9ebe9d25c947a81dfd6e54_80648564.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/88da0c51d836ac4c5e7291b9bb267b99_77685705.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/70991e4ac2d42731bdce2abcfb607721_71602734.png change filename to text .imagette255951391754085962/ imagette255951391754085962/1754084966_451458_1374835342_ebe1e35bec3fa3e8cea1baf03c31c18d_rle_crop_3900884323_0.png.png imagette255951391754085962/1754085446_463574_1374835568_481a2c0308caf8f1146096ed89541261_rle_crop_3900890925_0.png.png imagette255951391754085962/1754085087_455279_1374835388_99402af37e0c97afaccacb946b537c57_rle_crop_3900884572_0.png.png imagette255951391754085962/1754085087_455279_1374835390_ba3ea42e01ca42ca6a1f1faf3b533d7e_rle_crop_3900884564_0.png.png imagette255951391754085962/1754085207_459332_1374835465_b9a8cbb5eeddbaf59bf0f028cba3b0ba_rle_crop_3900884717_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/107e7d95698d35020b2ab9319275ea48_67437994.png imagette255951391754085962 25595145 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=25595145 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374835407: '1754084966_451458_1374835340_26ee74ba5956b8457bfa1fe4aec308da_rle_crop_3900884346_0.png', 1374835491: '1754085087_455279_1374835412_714de80bd8ab97472ae1ccb62cd44725_rle_crop_3900884552_0.png', 1374835527: '1754085207_459332_1374835465_b9a8cbb5eeddbaf59bf0f028cba3b0ba_rle_crop_3900884721_0.png', 1374835528: '1754085207_459332_1374835465_b9a8cbb5eeddbaf59bf0f028cba3b0ba_rle_crop_3900884712_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/bfc27ffdf8e8b0101db72a770ec92050_77681528.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/3e209c8d86d5ede59cf9ccaf082bd67e_11816593.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/3681c858ca1c3a0aa317de7ec76a2bcb_43901992.png change filename to text .imagette255951451754085962/ imagette255951451754085962/1754085087_455279_1374835412_714de80bd8ab97472ae1ccb62cd44725_rle_crop_3900884552_0.png.png imagette255951451754085962/1754085207_459332_1374835465_b9a8cbb5eeddbaf59bf0f028cba3b0ba_rle_crop_3900884712_0.png.png imagette255951451754085962/1754085207_459332_1374835465_b9a8cbb5eeddbaf59bf0f028cba3b0ba_rle_crop_3900884721_0.png.png imagette255951451754085962/1754084966_451458_1374835340_26ee74ba5956b8457bfa1fe4aec308da_rle_crop_3900884346_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/f23cf62e700fdb82a0e240c77a74f9ec_5860042.png imagette255951451754085962 25595146 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=25595146 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374835492: '1754085087_455279_1374835386_af056227bdc70b89ff6a58f471764b5a_rle_crop_3900884594_0.png'} change filename to text .imagette255951461754085962/ imagette255951461754085962/1754085087_455279_1374835386_af056227bdc70b89ff6a58f471764b5a_rle_crop_3900884594_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/0b8e64bd2bd701ce0a0fc280d87b80a0_51013874.png imagette255951461754085962 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25595132 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25595148,25595149,25595150,25595151,25595152,25595153,25595154,25595155,25595156,25595157,25595158,25595159?tags=flou,papier,autre_refus,Teint_Dans_La_Masse,plastique,mal_croppe,cartonnette,metal,kraft,Carton_gris,Carton_brun,environnement your option no_mail is active, we will not send the real mail to your client args[1374836761] : ('0.06763041047925247',) no score found for photo 1374836761 We are sending mail with results at report@fotonower.com refus_total : 0.06763041047925247 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=25595132 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_P25595132_02-08-2025_00_06_01.pdf results_Auto_P25595132_02-08-2025_00_06_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25595132_02-08-2025_00_06_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','25595132','results_Auto_P25595132_02-08-2025_00_06_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25595132_02-08-2025_00_06_01.pdf','pdf','','0.09','0.06763041047925247') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25595132]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374836761] map_info['map_portfolio_photo'] : {25595132: [1374836761, 1374836699, 1374836696, 1374836263, 1374836238, 1374836203, 1374836148, 1374835867, 1374835841, 1374835797, 1374835753, 1374835707, 1374835655, 1374835572, 1374835571, 1374835570, 1374835568, 1374835548, 1374835532, 1374835531, 1374835530, 1374835507, 1374835506, 1374835495, 1374835494, 1374835466, 1374835465, 1374835412, 1374835411, 1374835410, 1374835392, 1374835390, 1374835388, 1374835387, 1374835386, 1374835371, 1374835369, 1374835368, 1374835367, 1374835343, 1374835342, 1374835341, 1374835340, 1374835328, 1374835326, 1374835325, 1374835324]} final : False mtd_id 4302 list_pids : [1374836761] 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, '3424566') ('4302', '25595132', '1374836761', None, None, None, None, None, '3424566') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '25595132', '1374836761', None, None, None, None, None, '3424566')] time used for this insertion : 0.010986089706420898 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.130866050720215 time spend to save output : 0.011129379272460938 total time spend for step 4 : 2.141995429992676 step5:split_time_score Sat Aug 2 00:06:03 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 : ['25595132'] 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 : [('25595132',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25595132) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374836761: {'path': 'temp/1754085961_2193349_1374836761_9d7772d8f4a842fd47a52027b3553de0.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 = 25595132; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('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 = 25595132 group by h (('23', 47),) 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=25595132 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 (25595132) 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 (25595132) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01082025 25595132 Nombre de photos uploadées : 47 / 23040 (0%) 01082025 25595132 Nombre de photos taguées (types de déchets): 0 / 47 (0%) 01082025 25595132 Nombre de photos taguées (volume) : 0 / 47 (0%) [{'photo_id': 1374835328, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/17ff8bae7e9aa9c57cf170c85db560f6.jpg', 'username': None, 'uploaded_at': 1754084768, 'text': 'image_01082025_23_45_14_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374835326, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/80ad07f9453a6b1c750ce9c02ac92be6.jpg', 'username': None, 'uploaded_at': 1754084768, 'text': 'image_01082025_23_45_23_009126m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374835325, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/6ac1b0ae525e5b70ada16efbf544e6ff.jpg', 'username': None, 'uploaded_at': 1754084768, 'text': 'image_01082025_23_45_34_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374835324, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/1/85733748a6858b5ea2707345b55720a2.jpg', 'username': None, 'uploaded_at': 1754084768, 'text': 'image_01082025_23_45_44_010138m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ??????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029866695404052734 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25595132, '2025-08-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-01' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2042351,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.19877243041992188 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= 2042351 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25567995, 'dashboard_result_id': 13491675, '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_P25567995_01-08-2025_06_15_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25568034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25568035, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25568036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25568037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25568038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25568039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25568040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25568041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25568042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25568043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25568044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25568045, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25568659, 'dashboard_result_id': 13491676, '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_P25568659_01-08-2025_06_15_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25568669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25568670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25568671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25568672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25568673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25568674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25568675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25568676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25568677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25568678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25568679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25568680, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25569147, 'dashboard_result_id': 13491677, '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_P25569147_01-08-2025_06_15_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25569174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25569175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25569176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25569177, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25569178, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25569179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25569180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25569181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25569182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25569183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25569184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25569185, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25569639, 'dashboard_result_id': 13491678, '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_P25569639_01-08-2025_06_16_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25569685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25569686, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25569687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25569688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25569689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25569690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25569691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25569692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25569693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25569694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25569695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25569696, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25571011, 'dashboard_result_id': 13491679, '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_P25571011_01-08-2025_06_16_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25571015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25571016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25571017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25571018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25571019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25571020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25571021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25571022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25571023, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25571024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25571025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25571026, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25571213, 'dashboard_result_id': 13491680, '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_P25571213_01-08-2025_06_17_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25571224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25571225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25571226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25571227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25571228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25571229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25571230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25571231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25571232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25571233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25571234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25571235, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25571522, 'dashboard_result_id': 13491681, '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_P25571522_01-08-2025_06_17_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25571552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25571553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25571554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25571555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25571556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25571557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25571558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25571559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25571560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25571561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25571562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25571563, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25572121, 'dashboard_result_id': 13491682, '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_P25572121_01-08-2025_06_17_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25572156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25572157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25572158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25572159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25572160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25572161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25572162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25572163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25572164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25572165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25572166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25572167, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25572601, 'dashboard_result_id': 13491683, '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_P25572601_01-08-2025_06_18_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25572609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25572610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25572611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25572612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25572613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25572614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25572615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25572616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25572617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25572618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25572619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25572620, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25573095, 'dashboard_result_id': 13491684, '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_P25573095_01-08-2025_06_18_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25573114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25573115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25573116, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25573117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25573118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25573119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25573120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25573121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25573122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25573123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25573124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25573125, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25573629, 'dashboard_result_id': 13491685, '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_P25573629_01-08-2025_06_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25573674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25573675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25573676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25573677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25573678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25573679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25573680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25573681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25573682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25573683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25573684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25573685, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25586789, 'dashboard_result_id': 13491686, '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_P25586789_01-08-2025_18_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25586794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25586795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25586796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25586797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25586798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25586799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25586800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25586801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25586802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25586803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25586804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25586805, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25587115, 'dashboard_result_id': 13491687, '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_P25587115_01-08-2025_18_33_27.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25587126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25587127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25587128, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25587129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25587130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25587131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25587132, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25587133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25587134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25587135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25587136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25587137, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25587406, 'dashboard_result_id': 13491688, '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_P25587406_01-08-2025_18_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25587414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25587415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25587416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25587417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25587418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25587419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25587420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25587421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25587422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25587423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25587424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25587425, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25587787, 'dashboard_result_id': 13491689, '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_P25587787_01-08-2025_19_01_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25587831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25587832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25587833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25587834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25587835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25587836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25587837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25587838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25587839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25587840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25587841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25587842, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25588113, 'dashboard_result_id': 13491690, '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_P25588113_01-08-2025_19_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25588150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25588151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25588152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25588153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25588154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25588155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25588156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25588157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25588158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25588159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25588160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25588161, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25588582, 'dashboard_result_id': 13491691, '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_P25588582_01-08-2025_19_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25588609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25588610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25588611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25588612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25588613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25588614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25588615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25588616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25588618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25588619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25588620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25588621, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25588931, 'dashboard_result_id': 13491692, '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_P25588931_01-08-2025_19_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25588972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25588973, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25588974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25588975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25588976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25588977, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25588978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25588980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25588981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25588982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25588983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25588984, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25589378, 'dashboard_result_id': 13491693, '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_P25589378_01-08-2025_20_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25589415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25589416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25589417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25589418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25589419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25589420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25589421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25589422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25589423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25589424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25589425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25589426, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25589972, 'dashboard_result_id': 13491694, '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_P25589972_01-08-2025_20_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25589977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25589978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25589979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25589980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25589981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25589982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25589983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25589984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25589985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25589986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25589987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25589988, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25590235, 'dashboard_result_id': 13491695, '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_P25590235_01-08-2025_20_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25590263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25590264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25590265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25590266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25590267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25590268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25590270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25590271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25590272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25590273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25590274, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25590275, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25590682, 'dashboard_result_id': 13491696, '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_P25590682_01-08-2025_20_46_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25590709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25590710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25590712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25590713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25590714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25590715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25590716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25590717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25590718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25590719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25590720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25590721, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25591099, 'dashboard_result_id': 13491697, '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_P25591099_01-08-2025_21_04_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25591117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25591118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25591119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25591120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25591121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25591122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25591123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25591124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25591125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25591126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25591127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25591128, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25591596, 'dashboard_result_id': 13491698, '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_P25591596_01-08-2025_21_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25591640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25591641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25591642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25591643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25591644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25591645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25591646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25591648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25591649, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25591650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25591651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25591652, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25591932, 'dashboard_result_id': 13491699, '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_P25591932_01-08-2025_21_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25591979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25591980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25591981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25591982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25591983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25591984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25591985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25591986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25591987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25591988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25591989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25591990, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25592301, 'dashboard_result_id': 13491700, '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_P25592301_01-08-2025_21_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25592311, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25592312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25592313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25592314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25592315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25592316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25592317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25592318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25592319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25592320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25592321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25592322, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25592591, 'dashboard_result_id': 13491701, '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_P25592591_02-08-2025_00_01_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25592608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25592609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25592610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25592611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25592612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25592613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25592614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25592615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25592616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25592617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25592618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25592619, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25594611, 'dashboard_result_id': 13491702, '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_P25594611_01-08-2025_23_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25594612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25594613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25594614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25594615, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25594616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25594617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25594618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25594619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25594620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25594621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25594622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25594623, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25594738, 'dashboard_result_id': 13491703, '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_P25594738_01-08-2025_23_33_26.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25594746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25594747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25594748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25594749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25594750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25594751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25594752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25594753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25594754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25594755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25594756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25594757, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25594961, 'dashboard_result_id': 13491704, '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_P25594961_01-08-2025_23_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25594963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25594964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25594965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25594966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25594967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25594968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25594969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25594970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25594971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25594972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25594973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25594974, 'pht': 3726}}"}, {'dashboat_entry_day': 2042351, 'dashboard_run_id': 2056947, 'mtr_portfolio_id': 25595132, 'dashboard_result_id': 13491705, '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_P25595132_02-08-2025_00_00_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25595136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595147, '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 = 25567995 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': 3420954, 'mtr_portfolio_id': 25567995, 'created_at': datetime.datetime(2025, 8, 1, 6, 15, 2), 'result': '0.026055689320145483', 'result_long': None, 'result_double': None}] Qualite : 0.026055689320145483 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25567995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25567995_01-08-2025_06_15_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25567995 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_P25567995_01-08-2025_06_15_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25568034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25568035, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25568036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25568037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25568038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25568039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25568040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25568041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25568042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25568043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25568044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25568045, 'pht': 3726}}" where mtr_portfolio_id = 25567995 and dashboard_run_id = 2056963 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`=25567995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491675, 0.026055689320145483, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25567995_01-08-2025_06_15_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25568034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25568035, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25568036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25568037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25568038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25568039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25568040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25568041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25568042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25568043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25568044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25568045, '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 = 25568659 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': 3420955, 'mtr_portfolio_id': 25568659, 'created_at': datetime.datetime(2025, 8, 1, 6, 15, 29), 'result': '0.06754607107006089', 'result_long': None, 'result_double': None}] Qualite : 0.06754607107006089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25568659 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25568659_01-08-2025_06_15_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25568659 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_P25568659_01-08-2025_06_15_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25568669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25568670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25568671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25568672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25568673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25568674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25568675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25568676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25568677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25568678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25568679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25568680, 'pht': 3726}}" where mtr_portfolio_id = 25568659 and dashboard_run_id = 2056963 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`=25568659 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491676, 0.06754607107006089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25568659_01-08-2025_06_15_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25568669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25568670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25568671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25568672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25568673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25568674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25568675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25568676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25568677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25568678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25568679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25568680, '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 = 25569147 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': 3420956, 'mtr_portfolio_id': 25569147, 'created_at': datetime.datetime(2025, 8, 1, 6, 15, 30), 'result': '0.042794339210927464', 'result_long': None, 'result_double': None}] Qualite : 0.042794339210927464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25569147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25569147_01-08-2025_06_15_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25569147 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_P25569147_01-08-2025_06_15_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25569174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25569175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25569176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25569177, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25569178, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25569179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25569180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25569181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25569182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25569183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25569184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25569185, 'pht': 3726}}" where mtr_portfolio_id = 25569147 and dashboard_run_id = 2056963 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`=25569147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491677, 0.042794339210927464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25569147_01-08-2025_06_15_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25569174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25569175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25569176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25569177, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25569178, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25569179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25569180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25569181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25569182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25569183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25569184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25569185, '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 = 25569639 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': 3420957, 'mtr_portfolio_id': 25569639, 'created_at': datetime.datetime(2025, 8, 1, 6, 15, 58), 'result': '0.03938805140318908', 'result_long': None, 'result_double': None}] Qualite : 0.03938805140318908 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25569639 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25569639_01-08-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25569639 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_P25569639_01-08-2025_06_16_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25569685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25569686, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25569687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25569688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25569689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25569690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25569691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25569692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25569693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25569694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25569695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25569696, 'pht': 3726}}" where mtr_portfolio_id = 25569639 and dashboard_run_id = 2056963 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`=25569639 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491678, 0.03938805140318908, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25569639_01-08-2025_06_16_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25569685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25569686, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25569687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25569688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25569689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25569690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25569691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25569692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25569693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25569694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25569695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25569696, '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 = 25571011 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': 3420958, 'mtr_portfolio_id': 25571011, 'created_at': datetime.datetime(2025, 8, 1, 6, 16, 27), 'result': '0.03884968021254208', 'result_long': None, 'result_double': None}] Qualite : 0.03884968021254208 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25571011 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25571011_01-08-2025_06_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25571011 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_P25571011_01-08-2025_06_16_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25571015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25571016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25571017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25571018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25571019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25571020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25571021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25571022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25571023, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25571024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25571025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25571026, 'pht': 3726}}" where mtr_portfolio_id = 25571011 and dashboard_run_id = 2056963 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`=25571011 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491679, 0.03884968021254208, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25571011_01-08-2025_06_16_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25571015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25571016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25571017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25571018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25571019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25571020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25571021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25571022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25571023, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25571024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25571025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25571026, '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 = 25571213 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': 3420959, 'mtr_portfolio_id': 25571213, 'created_at': datetime.datetime(2025, 8, 1, 6, 17, 1), 'result': '0.027498910684846993', 'result_long': None, 'result_double': None}] Qualite : 0.027498910684846993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25571213 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25571213_01-08-2025_06_17_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25571213 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_P25571213_01-08-2025_06_17_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25571224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25571225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25571226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25571227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25571228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25571229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25571230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25571231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25571232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25571233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25571234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25571235, 'pht': 3726}}" where mtr_portfolio_id = 25571213 and dashboard_run_id = 2056963 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`=25571213 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491680, 0.027498910684846993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25571213_01-08-2025_06_17_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25571224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25571225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25571226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25571227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25571228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25571229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25571230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25571231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25571232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25571233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25571234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25571235, '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 = 25571522 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': 3420960, 'mtr_portfolio_id': 25571522, 'created_at': datetime.datetime(2025, 8, 1, 6, 17, 28), 'result': '0.04647094268519134', 'result_long': None, 'result_double': None}] Qualite : 0.04647094268519134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25571522 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25571522_01-08-2025_06_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25571522 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_P25571522_01-08-2025_06_17_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25571552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25571553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25571554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25571555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25571556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25571557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25571558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25571559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25571560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25571561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25571562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25571563, 'pht': 3726}}" where mtr_portfolio_id = 25571522 and dashboard_run_id = 2056963 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`=25571522 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491681, 0.04647094268519134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25571522_01-08-2025_06_17_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25571552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25571553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25571554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25571555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25571556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25571557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25571558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25571559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25571560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25571561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25571562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25571563, '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 = 25572121 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': 3420961, 'mtr_portfolio_id': 25572121, 'created_at': datetime.datetime(2025, 8, 1, 6, 17, 27), 'result': '0.04459719776564108', 'result_long': None, 'result_double': None}] Qualite : 0.04459719776564108 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25572121 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25572121_01-08-2025_06_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25572121 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_P25572121_01-08-2025_06_17_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25572156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25572157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25572158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25572159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25572160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25572161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25572162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25572163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25572164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25572165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25572166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25572167, 'pht': 3726}}" where mtr_portfolio_id = 25572121 and dashboard_run_id = 2056963 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`=25572121 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491682, 0.04459719776564108, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25572121_01-08-2025_06_17_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25572156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25572157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25572158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25572159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25572160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25572161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25572162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25572163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25572164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25572165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25572166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25572167, '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 = 25572601 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': 3420962, 'mtr_portfolio_id': 25572601, 'created_at': datetime.datetime(2025, 8, 1, 6, 17, 58), 'result': '0.019730636646101644', 'result_long': None, 'result_double': None}] Qualite : 0.019730636646101644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25572601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25572601_01-08-2025_06_18_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25572601 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_P25572601_01-08-2025_06_18_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25572609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25572610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25572611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25572612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25572613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25572614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25572615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25572616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25572617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25572618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25572619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25572620, 'pht': 3726}}" where mtr_portfolio_id = 25572601 and dashboard_run_id = 2056963 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`=25572601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491683, 0.019730636646101644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25572601_01-08-2025_06_18_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25572609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25572610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25572611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25572612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25572613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25572614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25572615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25572616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25572617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25572618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25572619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25572620, '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 = 25573095 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': 3420963, 'mtr_portfolio_id': 25573095, 'created_at': datetime.datetime(2025, 8, 1, 6, 18, 28), 'result': '0.027539489891980663', 'result_long': None, 'result_double': None}] Qualite : 0.027539489891980663 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25573095 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25573095_01-08-2025_06_18_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25573095 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_P25573095_01-08-2025_06_18_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25573114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25573115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25573116, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25573117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25573118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25573119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25573120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25573121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25573122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25573123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25573124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25573125, 'pht': 3726}}" where mtr_portfolio_id = 25573095 and dashboard_run_id = 2056963 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`=25573095 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491684, 0.027539489891980663, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25573095_01-08-2025_06_18_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25573114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25573115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25573116, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25573117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25573118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25573119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25573120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25573121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25573122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25573123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25573124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25573125, '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 = 25573629 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': 3420964, 'mtr_portfolio_id': 25573629, 'created_at': datetime.datetime(2025, 8, 1, 6, 18, 57), 'result': '0.0515281187981757', 'result_long': None, 'result_double': None}] Qualite : 0.0515281187981757 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25573629 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25573629_01-08-2025_06_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25573629 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_P25573629_01-08-2025_06_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25573674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25573675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25573676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25573677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25573678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25573679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25573680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25573681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25573682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25573683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25573684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25573685, 'pht': 3726}}" where mtr_portfolio_id = 25573629 and dashboard_run_id = 2056963 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`=25573629 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491685, 0.0515281187981757, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25573629_01-08-2025_06_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25573674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25573675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25573676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25573677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25573678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25573679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25573680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25573681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25573682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25573683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25573684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25573685, '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 = 25586789 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': 3422929, 'mtr_portfolio_id': 25586789, 'created_at': datetime.datetime(2025, 8, 1, 18, 18, 59), 'result': '0.04293143694969592', 'result_long': None, 'result_double': None}] Qualite : 0.04293143694969592 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25586789 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25586789_01-08-2025_18_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25586789 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_P25586789_01-08-2025_18_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25586794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25586795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25586796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25586797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25586798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25586799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25586800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25586801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25586802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25586803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25586804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25586805, 'pht': 3726}}" where mtr_portfolio_id = 25586789 and dashboard_run_id = 2056963 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`=25586789 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491686, 0.04293143694969592, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25586789_01-08-2025_18_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25586794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25586795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25586796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25586797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25586798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25586799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25586800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25586801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25586802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25586803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25586804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25586805, '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 = 25587115 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': 3422977, 'mtr_portfolio_id': 25587115, 'created_at': datetime.datetime(2025, 8, 1, 18, 33, 26), 'result': '0.04757446553888004', 'result_long': None, 'result_double': None}] Qualite : 0.04757446553888004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25587115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25587115_01-08-2025_18_33_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25587115 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_P25587115_01-08-2025_18_33_27.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25587126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25587127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25587128, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25587129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25587130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25587131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25587132, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25587133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25587134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25587135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25587136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25587137, 'pht': 3726}}" where mtr_portfolio_id = 25587115 and dashboard_run_id = 2056963 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`=25587115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491687, 0.04757446553888004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25587115_01-08-2025_18_33_27.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25587126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25587127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25587128, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25587129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25587130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25587131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25587132, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25587133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25587134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25587135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25587136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25587137, '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 = 25587406 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': 3423033, 'mtr_portfolio_id': 25587406, 'created_at': datetime.datetime(2025, 8, 1, 18, 46, 59), 'result': '0.09371772296094055', 'result_long': None, 'result_double': None}] Qualite : 0.09371772296094055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25587406 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25587406_01-08-2025_18_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25587406 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_P25587406_01-08-2025_18_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25587414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25587415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25587416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25587417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25587418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25587419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25587420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25587421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25587422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25587423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25587424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25587425, 'pht': 3726}}" where mtr_portfolio_id = 25587406 and dashboard_run_id = 2056963 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`=25587406 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491688, 0.09371772296094055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25587406_01-08-2025_18_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25587414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25587415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25587416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25587417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25587418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25587419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25587420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25587421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25587422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25587423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25587424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25587425, '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 = 25587787 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': 3423097, 'mtr_portfolio_id': 25587787, 'created_at': datetime.datetime(2025, 8, 1, 19, 1, 57), 'result': '0.048142285179785235', 'result_long': None, 'result_double': None}] Qualite : 0.048142285179785235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25587787 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25587787_01-08-2025_19_01_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25587787 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_P25587787_01-08-2025_19_01_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25587831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25587832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25587833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25587834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25587835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25587836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25587837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25587838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25587839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25587840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25587841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25587842, 'pht': 3726}}" where mtr_portfolio_id = 25587787 and dashboard_run_id = 2056963 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`=25587787 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491689, 0.048142285179785235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25587787_01-08-2025_19_01_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25587831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25587832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25587833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25587834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25587835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25587836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25587837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25587838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25587839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25587840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25587841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25587842, '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 = 25588113 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': 3423191, 'mtr_portfolio_id': 25588113, 'created_at': datetime.datetime(2025, 8, 1, 19, 18, 58), 'result': '0.07834456963608182', 'result_long': None, 'result_double': None}] Qualite : 0.07834456963608182 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25588113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25588113_01-08-2025_19_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25588113 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_P25588113_01-08-2025_19_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25588150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25588151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25588152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25588153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25588154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25588155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25588156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25588157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25588158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25588159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25588160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25588161, 'pht': 3726}}" where mtr_portfolio_id = 25588113 and dashboard_run_id = 2056963 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`=25588113 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491690, 0.07834456963608182, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25588113_01-08-2025_19_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25588150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25588151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25588152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25588153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25588154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25588155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25588156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25588157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25588158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25588159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25588160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25588161, '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 = 25588582 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': 3423273, 'mtr_portfolio_id': 25588582, 'created_at': datetime.datetime(2025, 8, 1, 19, 32, 57), 'result': '0.11384866428558152', 'result_long': None, 'result_double': None}] Qualite : 0.11384866428558152 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25588582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25588582_01-08-2025_19_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25588582 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_P25588582_01-08-2025_19_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25588609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25588610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25588611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25588612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25588613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25588614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25588615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25588616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25588618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25588619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25588620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25588621, 'pht': 3726}}" where mtr_portfolio_id = 25588582 and dashboard_run_id = 2056963 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`=25588582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491691, 0.11384866428558152, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25588582_01-08-2025_19_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25588609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25588610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25588611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25588612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25588613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25588614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25588615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25588616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25588618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25588619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25588620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25588621, '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 = 25588931 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': 3423360, 'mtr_portfolio_id': 25588931, 'created_at': datetime.datetime(2025, 8, 1, 19, 46, 58), 'result': '0.03976308031180541', 'result_long': None, 'result_double': None}] Qualite : 0.03976308031180541 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25588931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25588931_01-08-2025_19_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25588931 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_P25588931_01-08-2025_19_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25588972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25588973, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25588974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25588975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25588976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25588977, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25588978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25588980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25588981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25588982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25588983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25588984, 'pht': 3726}}" where mtr_portfolio_id = 25588931 and dashboard_run_id = 2056963 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`=25588931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491692, 0.03976308031180541, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25588931_01-08-2025_19_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25588972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25588973, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25588974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25588975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25588976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25588977, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25588978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25588980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25588981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25588982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25588983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25588984, '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 = 25589378 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': 3423463, 'mtr_portfolio_id': 25589378, 'created_at': datetime.datetime(2025, 8, 1, 20, 4, 59), 'result': '0.044305285595513444', 'result_long': None, 'result_double': None}] Qualite : 0.044305285595513444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25589378 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25589378_01-08-2025_20_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25589378 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_P25589378_01-08-2025_20_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25589415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25589416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25589417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25589418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25589419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25589420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25589421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25589422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25589423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25589424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25589425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25589426, 'pht': 3726}}" where mtr_portfolio_id = 25589378 and dashboard_run_id = 2056963 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`=25589378 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491693, 0.044305285595513444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25589378_01-08-2025_20_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25589415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25589416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25589417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25589418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25589419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25589420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25589421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25589422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25589423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25589424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25589425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25589426, '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 = 25589972 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': 3423597, 'mtr_portfolio_id': 25589972, 'created_at': datetime.datetime(2025, 8, 1, 20, 17), 'result': '0.0849695735418292', 'result_long': None, 'result_double': None}] Qualite : 0.0849695735418292 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25589972 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25589972_01-08-2025_20_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25589972 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_P25589972_01-08-2025_20_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25589977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25589978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25589979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25589980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25589981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25589982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25589983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25589984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25589985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25589986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25589987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25589988, 'pht': 3726}}" where mtr_portfolio_id = 25589972 and dashboard_run_id = 2056963 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`=25589972 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491694, 0.0849695735418292, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25589972_01-08-2025_20_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25589977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25589978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25589979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25589980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25589981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25589982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25589983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25589984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25589985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25589986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25589987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25589988, '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 = 25590235 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': 3423673, 'mtr_portfolio_id': 25590235, 'created_at': datetime.datetime(2025, 8, 1, 20, 32, 58), 'result': '0.05174276552297275', 'result_long': None, 'result_double': None}] Qualite : 0.05174276552297275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25590235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25590235_01-08-2025_20_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25590235 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_P25590235_01-08-2025_20_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25590263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25590264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25590265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25590266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25590267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25590268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25590270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25590271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25590272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25590273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25590274, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25590275, 'pht': 3726}}" where mtr_portfolio_id = 25590235 and dashboard_run_id = 2056963 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`=25590235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491695, 0.05174276552297275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25590235_01-08-2025_20_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25590263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25590264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25590265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25590266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25590267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25590268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25590270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25590271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25590272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25590273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25590274, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25590275, '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 = 25590682 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': 3423772, 'mtr_portfolio_id': 25590682, 'created_at': datetime.datetime(2025, 8, 1, 20, 46, 56), 'result': '0.0524874768104178', 'result_long': None, 'result_double': None}] Qualite : 0.0524874768104178 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25590682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25590682_01-08-2025_20_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25590682 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_P25590682_01-08-2025_20_46_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25590709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25590710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25590712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25590713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25590714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25590715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25590716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25590717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25590718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25590719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25590720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25590721, 'pht': 3726}}" where mtr_portfolio_id = 25590682 and dashboard_run_id = 2056963 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`=25590682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491696, 0.0524874768104178, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25590682_01-08-2025_20_46_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25590709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25590710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25590712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25590713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25590714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25590715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25590716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25590717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25590718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25590719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25590720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25590721, '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 = 25591099 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': 3423856, 'mtr_portfolio_id': 25591099, 'created_at': datetime.datetime(2025, 8, 1, 21, 4, 58), 'result': '0.06730942981331008', 'result_long': None, 'result_double': None}] Qualite : 0.06730942981331008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25591099 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25591099_01-08-2025_21_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25591099 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_P25591099_01-08-2025_21_04_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25591117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25591118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25591119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25591120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25591121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25591122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25591123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25591124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25591125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25591126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25591127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25591128, 'pht': 3726}}" where mtr_portfolio_id = 25591099 and dashboard_run_id = 2056963 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`=25591099 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491697, 0.06730942981331008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25591099_01-08-2025_21_04_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25591117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25591118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25591119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25591120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25591121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25591122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25591123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25591124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25591125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25591126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25591127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25591128, '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 = 25591596 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 = 25591596 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 = 25591596 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25591596 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 = 25591596 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3423982, 'mtr_portfolio_id': 25591596, 'created_at': datetime.datetime(2025, 8, 1, 21, 17), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25591596 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25591596_01-08-2025_21_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25591596 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_P25591596_01-08-2025_21_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25591640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25591641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25591642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25591643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25591644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25591645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25591646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25591648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25591649, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25591650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25591651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25591652, 'pht': 3726}}" where mtr_portfolio_id = 25591596 and dashboard_run_id = 2056963 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`=25591596 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491698, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25591596_01-08-2025_21_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25591640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25591641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25591642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25591643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25591644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25591645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25591646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25591648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25591649, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25591650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25591651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25591652, '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 = 25591932 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': 3424065, 'mtr_portfolio_id': 25591932, 'created_at': datetime.datetime(2025, 8, 1, 21, 33, 1), 'result': '0.07966755406401733', 'result_long': None, 'result_double': None}] Qualite : 0.07966755406401733 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25591932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25591932_01-08-2025_21_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25591932 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_P25591932_01-08-2025_21_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25591979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25591980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25591981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25591982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25591983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25591984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25591985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25591986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25591987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25591988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25591989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25591990, 'pht': 3726}}" where mtr_portfolio_id = 25591932 and dashboard_run_id = 2056963 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`=25591932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491699, 0.07966755406401733, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25591932_01-08-2025_21_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25591979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25591980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25591981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25591982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25591983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25591984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25591985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25591986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25591987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25591988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25591989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25591990, '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 = 25592301 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': 3424135, 'mtr_portfolio_id': 25592301, 'created_at': datetime.datetime(2025, 8, 1, 21, 46, 59), 'result': '0.05541200259462892', 'result_long': None, 'result_double': None}] Qualite : 0.05541200259462892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25592301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25592301_01-08-2025_21_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25592301 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_P25592301_01-08-2025_21_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25592311, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25592312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25592313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25592314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25592315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25592316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25592317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25592318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25592319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25592320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25592321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25592322, 'pht': 3726}}" where mtr_portfolio_id = 25592301 and dashboard_run_id = 2056963 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`=25592301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491700, 0.05541200259462892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25592301_01-08-2025_21_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25592311, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25592312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25592313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25592314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25592315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25592316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25592317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25592318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25592319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25592320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25592321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25592322, '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 = 25592591 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': 3424180, 'mtr_portfolio_id': 25592591, 'created_at': datetime.datetime(2025, 8, 2, 0, 1, 28), 'result': '0.0364066049636514', 'result_long': None, 'result_double': None}] Qualite : 0.0364066049636514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25592591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25592591_02-08-2025_00_01_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25592591 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_P25592591_02-08-2025_00_01_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25592608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25592609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25592610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25592611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25592612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25592613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25592614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25592615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25592616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25592617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25592618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25592619, 'pht': 3726}}" where mtr_portfolio_id = 25592591 and dashboard_run_id = 2056963 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`=25592591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491701, 0.0364066049636514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25592591_02-08-2025_00_01_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25592608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25592609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25592610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25592611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25592612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25592613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25592614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25592615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25592616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25592617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25592618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25592619, '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 = 25594611 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': 3424462, 'mtr_portfolio_id': 25594611, 'created_at': datetime.datetime(2025, 8, 1, 23, 18, 58), 'result': '0.02177977013812781', 'result_long': None, 'result_double': None}] Qualite : 0.02177977013812781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25594611 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25594611_01-08-2025_23_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25594611 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_P25594611_01-08-2025_23_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25594612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25594613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25594614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25594615, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25594616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25594617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25594618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25594619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25594620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25594621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25594622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25594623, 'pht': 3726}}" where mtr_portfolio_id = 25594611 and dashboard_run_id = 2056963 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`=25594611 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491702, 0.02177977013812781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25594611_01-08-2025_23_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25594612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25594613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25594614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25594615, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25594616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25594617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25594618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25594619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25594620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25594621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25594622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25594623, '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 = 25594738 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': 3424485, 'mtr_portfolio_id': 25594738, 'created_at': datetime.datetime(2025, 8, 1, 23, 33, 26), 'result': '0.06022223624175427', 'result_long': None, 'result_double': None}] Qualite : 0.06022223624175427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25594738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25594738_01-08-2025_23_33_26.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25594738 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_P25594738_01-08-2025_23_33_26.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25594746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25594747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25594748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25594749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25594750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25594751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25594752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25594753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25594754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25594755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25594756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25594757, 'pht': 3726}}" where mtr_portfolio_id = 25594738 and dashboard_run_id = 2056963 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`=25594738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491703, 0.06022223624175427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25594738_01-08-2025_23_33_26.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25594746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25594747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25594748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25594749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25594750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25594751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25594752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25594753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25594754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25594755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25594756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25594757, '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 = 25594961 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': 3424527, 'mtr_portfolio_id': 25594961, 'created_at': datetime.datetime(2025, 8, 1, 23, 49, 29), 'result': '0.03819244264401217', 'result_long': None, 'result_double': None}] Qualite : 0.03819244264401217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25594961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25594961_01-08-2025_23_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25594961 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_P25594961_01-08-2025_23_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25594963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25594964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25594965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25594966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25594967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25594968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25594969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25594970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25594971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25594972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25594973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25594974, 'pht': 3726}}" where mtr_portfolio_id = 25594961 and dashboard_run_id = 2056963 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`=25594961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491704, 0.03819244264401217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25594961_01-08-2025_23_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25594963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25594964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25594965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25594966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25594967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25594968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25594969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25594970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25594971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25594972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25594973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25594974, '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 = 25595132 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': 3424566, 'mtr_portfolio_id': 25595132, 'created_at': datetime.datetime(2025, 8, 2, 0, 6, 1), 'result': '0.06763041047925247', 'result_long': None, 'result_double': None}] Qualite : 0.06763041047925247 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25595132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25595132_02-08-2025_00_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25595132 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_P25595132_02-08-2025_00_06_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25595136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595147, 'pht': 3726}}" where mtr_portfolio_id = 25595132 and dashboard_run_id = 2056963 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`=25595132 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13491705, 0.06763041047925247, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25595132_02-08-2025_00_06_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25595136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595147, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25567995,25568659,25569147,25569639,25571011,25571213,25571522,25572121,25572601,25573095,25573629,25586789,25587115,25587406,25587787,25588113,25588582,25588931,25589378,25589972,25590235,25590682,25591099,25591596,25591932,25592301,25592591,25594611,25594738,25594961,25595132) result : ((1374683642,), (1374683684,), (1374683871,), (1374683873,), (1374684117,), (1374684120,), (1374684141,), (1374684171,), (1374684172,), (1374684220,), (1374684302,), (1374684926,), (1374684980,), (1374685070,), (1374685112,), (1374685156,), (1374685168,), (1374685311,), (1374685312,), (1374685313,), (1374685315,), (1374685318,), (1374685478,), (1374685566,), (1374685655,), (1374685749,), (1374685767,), (1374685955,), (1374685957,), (1374685959,), (1374685960,), (1374685973,), (1374685975,), (1374685977,), (1374685978,), (1374685982,), (1374685983,), (1374685991,), (1374685994,), (1374685995,), (1374685996,), (1374685998,), (1374685999,), (1374686012,), (1374686013,), (1374686014,), (1374686015,), (1374686016,), (1374686017,), (1374686098,), (1374686213,), (1374686361,), (1374686454,), (1374686492,), (1374686494,), (1374686963,), (1374686964,), (1374686990,), (1374686992,), (1374687328,), (1374687353,), (1374687358,), (1374687361,), (1374687688,), (1374687617,), (1374687640,), (1374687665,), (1374687746,), (1374687747,), (1374687749,), (1374687767,), (1374687769,), (1374687771,), (1374687775,), (1374687858,), (1374687950,), (1374688660,), (1374688721,), (1374688832,), (1374688869,), (1374688896,), (1374688919,), (1374689313,), (1374689339,), (1374689362,), (1374689384,), (1374689415,), (1374689416,), (1374689440,), (1374689442,), (1374689465,), (1374689466,), (1374689492,), (1374689493,), (1374689518,), (1374689520,), (1374689544,), (1374689548,), (1374689712,), (1374689713,), (1374689716,), (1374689718,), (1374689722,), (1374689747,), (1374689822,), (1374689827,), (1374689851,), (1374689856,), (1374689859,), (1374689861,), (1374689875,), (1374689878,), (1374689880,), (1374689884,), (1374689888,), (1374689891,), (1374689896,), (1374689901,), (1374689902,), (1374689904,), (1374689908,), (1374689911,), (1374689918,), (1374689921,), (1374689923,), (1374689924,), (1374689945,), (1374689948,), (1374689950,), (1374689961,), (1374689962,), (1374690524,), (1374690602,), (1374690789,), (1374690790,), (1374690837,), (1374690838,), (1374690912,), (1374690915,), (1374690939,), (1374691643,), (1374691671,), (1374691688,), (1374690909,), (1374690911,), (1374691250,), (1374691278,), (1374691302,), (1374691325,), (1374691348,), (1374691372,), (1374691471,), (1374691499,), (1374691525,), (1374691551,), (1374691618,), (1374692023,), (1374692097,), (1374692175,), (1374692724,), (1374692730,), (1374692733,), (1374692739,), (1374692761,), (1374692901,), (1374692902,), (1374692905,), (1374692906,), (1374692909,), (1374692910,), (1374692912,), (1374692913,), (1374692960,), (1374692961,), (1374692963,), (1374692964,), (1374692967,), (1374692968,), (1374692989,), (1374692990,), (1374692993,), (1374692994,), (1374692995,), (1374692996,), (1374692997,), (1374692998,), (1374692999,), (1374693000,), (1374693019,), (1374693021,), (1374693023,), (1374693057,), (1374693059,), (1374693061,), (1374693063,), (1374693065,), (1374693110,), (1374693111,), (1374693113,), (1374693115,), (1374693116,), (1374693118,), (1374693137,), (1374693138,), (1374693139,), (1374693140,), (1374693141,), (1374693142,), (1374693146,), (1374693149,), (1374693152,), (1374693153,), (1374693156,), (1374693158,), (1374693161,), (1374693162,), (1374693168,), (1374693170,), (1374693172,), (1374693173,), (1374693178,), (1374693180,), (1374693182,), (1374693184,), (1374693206,), (1374693209,), (1374693211,), (1374693214,), (1374693215,), (1374693217,), (1374693243,), (1374693234,), (1374693236,), (1374693238,), (1374693240,), (1374693241,), (1374693247,), (1374693252,), (1374693255,), (1374693259,), (1374693261,), (1374693280,), (1374693284,), (1374693288,), (1374693291,), (1374693294,), (1374693295,), (1374693313,), (1374693316,), (1374693319,), (1374693320,), (1374693338,), (1374693343,), (1374693365,), (1374693366,), (1374693379,), (1374693380,), (1374693381,), (1374693386,), (1374693388,), (1374693389,), (1374693395,), (1374693398,), (1374693455,), (1374693457,), (1374693459,), (1374693461,), (1374693463,), (1374693465,), (1374693469,), (1374693473,), (1374693479,), (1374693482,), (1374693484,), (1374693486,), (1374693500,), (1374693501,), (1374693503,), (1374693506,), (1374693508,), (1374693542,), (1374693545,), (1374693598,), (1374693623,), (1374693649,), (1374693673,), (1374693698,), (1374693726,), (1374693986,), (1374693992,), (1374693995,), (1374694051,), (1374694057,), (1374694060,), (1374694062,), (1374694065,), (1374694069,), (1374694339,), (1374697551,), (1374697552,), (1374697553,), (1374697555,), (1374697558,), (1374697560,), (1374697579,), (1374697582,), (1374697600,), (1374697603,), (1374697605,), (1374697607,), (1374697629,), (1374697632,), (1374697635,), (1374697637,), (1374697664,), (1374697666,), (1374697669,), (1374697682,), (1374697684,), (1374697686,), (1374697688,), (1374697690,), (1374697719,), (1374697724,), (1374697727,), (1374697730,), (1374697745,), (1374697748,), (1374697750,), (1374697754,), (1374697813,), (1374697815,), (1374697816,), (1374697820,), (1374697824,), (1374697826,), (1374697829,), (1374697845,), (1374697849,), (1374697852,), (1374697854,), (1374697856,), (1374697857,), (1374697860,), (1374697863,), (1374697865,), (1374697868,), (1374697870,), (1374697873,), (1374697878,), (1374697904,), (1374697905,), (1374697908,), (1374697909,), (1374697912,), (1374697913,), (1374697914,), (1374697916,), (1374697917,), (1374697918,), (1374697937,), (1374697939,), (1374697940,), (1374697941,), (1374697942,), (1374697943,), (1374697958,), (1374697946,), (1374697955,), (1374698193,), (1374698220,), (1374698245,), (1374698270,), (1374698298,), (1374698414,), (1374698416,), (1374698418,), (1374698420,), (1374698422,), (1374698441,), (1374698442,), (1374698446,), (1374698447,), (1374698451,), (1374698452,), (1374698453,), (1374698455,), (1374698478,), (1374698480,), (1374698483,), (1374698555,), (1374698556,), (1374698557,), (1374698562,), (1374698565,), (1374698568,), (1374698570,), (1374698572,), (1374698583,), (1374698584,), (1374698586,), (1374698587,), (1374698589,), (1374698590,), (1374698591,), (1374698592,), (1374698593,), (1374698594,), (1374698595,), (1374698596,), (1374698601,), (1374698604,), (1374698607,), (1374698608,), (1374698612,), (1374698614,), (1374698621,), (1374698622,), (1374698639,), (1374698641,), (1374698642,), (1374698644,), (1374698646,), (1374698650,), (1374698652,), (1374698654,), (1374698656,), (1374698659,), (1374698662,), (1374698679,), (1374698683,), (1374698686,), (1374698747,), (1374699497,), (1374699965,), (1374699993,), (1374699856,), (1374699881,), (1374699922,), (1374700367,), (1374700390,), (1374700415,), (1374700440,), (1374700564,), (1374700587,), (1374700611,), (1374700640,), (1374700666,), (1374700782,), (1374700783,), (1374700786,), (1374700790,), (1374700794,), (1374700811,), (1374700815,), (1374700818,), (1374701081,), (1374701098,), (1374701114,), (1374701120,), (1374701123,), (1374701125,), (1374701153,), (1374701156,), (1374701159,), (1374701161,), (1374701163,), (1374701168,), (1374701170,), (1374701172,), (1374701174,), (1374701200,), (1374701202,), (1374701203,), (1374701206,), (1374701208,), (1374701243,), (1374701244,), (1374701246,), (1374701247,), (1374701250,), (1374701251,), (1374701253,), (1374701254,), (1374701277,), (1374701279,), (1374701281,), (1374701284,), (1374701286,), (1374701289,), (1374701294,), (1374701295,), (1374701320,), (1374701322,), (1374701324,), (1374701327,), (1374701329,), (1374701334,), (1374701336,), (1374701338,), (1374701340,), (1374701343,), (1374701366,), (1374701369,), (1374701372,), (1374701407,), (1374701400,), (1374701402,), (1374701405,), (1374701423,), (1374701427,), (1374701431,), (1374701434,), (1374701436,), (1374701462,), (1374701463,), (1374701466,), (1374701469,), (1374701489,), (1374701493,), (1374701497,), (1374701501,), (1374701504,), (1374701506,), (1374701523,), (1374701526,), (1374701527,), (1374701546,), (1374701553,), (1374701556,), (1374701563,), (1374701565,), (1374701568,), (1374701570,), (1374701573,), (1374701582,), (1374701585,), (1374701588,), (1374701590,), (1374701593,), (1374701595,), (1374701597,), (1374701598,), (1374701606,), (1374701611,), (1374701613,), (1374701618,), (1374701621,), (1374701623,), (1374701624,), (1374701626,), (1374701652,), (1374701655,), (1374701672,), (1374701676,), (1374701693,), (1374701695,), (1374701697,), (1374701701,), (1374701703,), (1374701705,), (1374701722,), (1374701725,), (1374701728,), (1374701750,), (1374701753,), (1374701755,), (1374701757,), (1374701758,), (1374701759,), (1374701776,), (1374701778,), (1374701779,), (1374701781,), (1374701784,), (1374701787,), (1374701789,), (1374701791,), (1374701793,), (1374701796,), (1374701799,), (1374701841,), (1374701875,), (1374701819,), (1374701822,), (1374701828,), (1374701834,), (1374701838,), (1374701853,), (1374701856,), (1374701860,), (1374701862,), (1374701865,), (1374701866,), (1374701867,), (1374701869,), (1374701871,), (1374701873,), (1374701880,), (1374701882,), (1374701884,), (1374701886,), (1374701887,), (1374701889,), (1374701900,), (1374701901,), (1374701903,), (1374701905,), (1374701922,), (1374701923,), (1374701925,), (1374701927,), (1374701929,), (1374701931,), (1374701962,), (1374701965,), (1374701967,), (1374701969,), (1374701972,), (1374701987,), (1374701988,), (1374701992,), (1374701993,), (1374701997,), (1374701998,), (1374702000,), (1374702001,), (1374702003,), (1374702004,), (1374702006,), (1374702007,), (1374702016,), (1374702018,), (1374702020,), (1374702021,), (1374702044,), (1374702046,), (1374702048,), (1374702050,), (1374702054,), (1374702079,), (1374702081,), (1374702083,), (1374702084,), (1374702086,), (1374702088,), (1374702113,), (1374702118,), (1374702133,), (1374702140,), (1374702146,), (1374702149,), (1374702150,), (1374702152,), (1374702154,), (1374702155,), (1374702170,), (1374702171,), (1374702173,), (1374702175,), (1374702191,), (1374702193,), (1374702196,), (1374702200,), (1374702203,), (1374702205,), (1374702222,), (1374702225,), (1374702228,), (1374702231,), (1374702233,), (1374702284,), (1374702285,), (1374702263,), (1374702264,), (1374702272,), (1374702273,), (1374702280,), (1374702281,), (1374702301,), (1374702322,), (1374702336,), (1374702361,), (1374702362,), (1374702363,), (1374702365,), (1374702381,), (1374702383,), (1374702385,), (1374702387,), (1374702391,), (1374702394,), (1374702438,), (1374702440,), (1374702444,), (1374702447,), (1374702449,), (1374702452,), (1374702459,), (1374702460,), (1374702462,), (1374702464,), (1374702467,), (1374702469,), (1374702472,), (1374702474,), (1374702477,), (1374702480,), (1374702510,), (1374702514,), (1374702516,), (1374702519,), (1374702532,), (1374702534,), (1374702537,), (1374702540,), (1374702542,), (1374702544,), (1374702566,), (1374702567,), (1374702572,), (1374702573,), (1374702583,), (1374702584,), (1374702587,), (1374702588,), (1374702589,), (1374702590,), (1374702851,), (1374702877,), (1374702901,), (1374702927,), (1374702954,), (1374702977,), (1374703026,), (1374703036,), (1374703039,), (1374703051,), (1374703312,), (1374703318,), (1374703327,), (1374703354,), (1374703385,), (1374703412,), (1374703505,), (1374703531,), (1374703558,), (1374703878,), (1374704349,), (1374703769,), (1374703793,), (1374703821,), (1374703848,), (1374704149,), (1374704151,), (1374704153,), (1374704155,), (1374704157,), (1374704159,), (1374704236,), (1374704270,), (1374704296,), (1374704323,), (1374704376,), (1374704406,), (1374704418,), (1374704421,), (1374704482,), (1374704486,), (1374704490,), (1374704492,), (1374704495,), (1374704497,), (1374704514,), (1374704517,), (1374704520,), (1374704522,), (1374704524,), (1374704527,), (1374704529,), (1374704531,), (1374704535,), (1374704541,), (1374704547,), (1374704576,), (1374704579,), (1374704582,), (1374704584,), (1374704586,), (1374704587,), (1374704593,), (1374704594,), (1374704596,), (1374704602,), (1374704604,), (1374704605,), (1374704607,), (1374704609,), (1374704625,), (1374704628,), (1374704631,), (1374704634,), (1374704657,), (1374704661,), (1374704667,), (1374704669,), (1374704670,), (1374704671,), (1374704676,), (1374704677,), (1374704679,), (1374704680,), (1374704686,), (1374704688,), (1374704700,), (1374704701,), (1374704705,), (1374704707,), (1374704708,), (1374704709,), (1374704726,), (1374704729,), (1374704731,), (1374704732,), (1374704733,), (1374704736,), (1374704740,), (1374704742,), (1374704744,), (1374704747,), (1374704749,), (1374704752,), (1374704756,), (1374704769,), (1374704770,), (1374704771,), (1374704772,), (1374704773,), (1374704774,), (1374704776,), (1374704777,), (1374704779,), (1374704780,), (1374704786,), (1374704787,), (1374704789,), (1374704858,), (1374795551,), (1374795744,), (1374795746,), (1374796224,), (1374796286,), (1374796350,), (1374796356,), (1374796358,), (1374796399,), (1374796453,), (1374796456,), (1374796459,), (1374796463,), (1374796523,), (1374796570,), (1374796572,), (1374796618,), (1374796620,), (1374796770,), (1374796773,), (1374796775,), (1374796781,), (1374796783,), (1374796784,), (1374796785,), (1374796789,), (1374796811,), (1374796812,), (1374796813,), (1374796815,), (1374796817,), (1374796835,), (1374796837,), (1374796838,), (1374796840,), (1374796844,), (1374796871,), (1374796861,), (1374796863,), (1374796865,), (1374796867,), (1374796897,), (1374796898,), (1374796899,), (1374796901,), (1374796903,), (1374796906,), (1374796928,), (1374796929,), (1374796930,), (1374796955,), (1374796957,), (1374796960,), (1374796964,), (1374796967,), (1374796970,), (1374796979,), (1374796980,), (1374796981,), (1374796983,), (1374796999,), (1374797000,), (1374797001,), (1374797039,), (1374797043,), (1374797047,), (1374797049,), (1374797051,), (1374797052,), (1374797053,), (1374797054,), (1374797056,), (1374797059,), (1374797061,), (1374797064,), (1374797073,), (1374797074,), (1374797075,), (1374797076,), (1374797079,), (1374797094,), (1374797095,), (1374797096,), (1374797120,), (1374797121,), (1374797122,), (1374797124,), (1374797127,), (1374797140,), (1374797141,), (1374797142,), (1374797144,), (1374797161,), (1374797162,), (1374797163,), (1374797164,), (1374797166,), (1374797180,), (1374797181,), (1374797206,), (1374797209,), (1374797211,), (1374797250,), (1374797238,), (1374797240,), (1374797242,), (1374797245,), (1374797247,), (1374797260,), (1374797262,), (1374797264,), (1374797266,), (1374797269,), (1374797272,), (1374797281,), (1374797283,), (1374797286,), (1374797289,), (1374797292,), (1374797295,), (1374797301,), (1374797302,), (1374797303,), (1374797304,), (1374797317,), (1374797324,), (1374797327,), (1374797330,), (1374797335,), (1374797338,), (1374797347,), (1374797350,), (1374797351,), (1374797354,), (1374797376,), (1374797378,), (1374797419,), (1374797421,), (1374797457,), (1374797459,), (1374797461,), (1374797463,), (1374797483,), (1374797486,), (1374797487,), (1374797517,), (1374797519,), (1374797569,), (1374797571,), (1374797573,), (1374797595,), (1374797597,), (1374797614,), (1374797616,), (1374797830,), (1374797836,), (1374797839,), (1374797899,), (1374797990,), (1374797991,), (1374797992,), (1374798012,), (1374798049,), (1374798372,), (1374798368,), (1374798370,), (1374798503,), (1374798505,), (1374798507,), (1374798509,), (1374798511,), (1374798513,), (1374798537,), (1374798539,), (1374798540,), (1374798542,), (1374798544,), (1374798546,), (1374798560,), (1374798562,), (1374798563,), (1374798565,), (1374798593,), (1374798595,), (1374798596,), (1374798598,), (1374798614,), (1374798616,), (1374798617,), (1374798619,), (1374798641,), (1374798643,), (1374798644,), (1374798646,), (1374798648,), (1374798665,), (1374798667,), (1374798669,), (1374798693,), (1374798694,), (1374798696,), (1374798698,), (1374798700,), (1374798702,), (1374798713,), (1374798715,), (1374798743,), (1374798746,), (1374798747,), (1374798766,), (1374798768,), (1374798797,), (1374798800,), (1374798811,), (1374799312,), (1374799350,), (1374799376,), (1374799420,), (1374799523,), (1374799562,), (1374799587,), (1374799610,), (1374799642,), (1374799815,), (1374799719,), (1374799721,), (1374799737,), (1374799768,), (1374800162,), (1374800189,), (1374800214,), (1374800496,), (1374800531,), (1374800559,), (1374800565,), (1374800566,), (1374800616,), (1374800620,), (1374800622,), (1374800625,), (1374800627,), (1374800629,), (1374800635,), (1374800638,), (1374800640,), (1374800659,), (1374800663,), (1374800664,), (1374800665,), (1374800667,), (1374800682,), (1374800683,), (1374800685,), (1374800708,), (1374800710,), (1374800711,), (1374800713,), (1374800715,), (1374800778,), (1374800781,), (1374800784,), (1374800786,), (1374800949,), (1374800956,), (1374800971,), (1374800993,), (1374801050,), (1374801056,), (1374801057,), (1374801078,), (1374801112,), (1374801179,), (1374801182,), (1374801213,), (1374801215,), (1374801219,), (1374801222,), (1374801226,), (1374801228,), (1374801229,), (1374801231,), (1374801234,), (1374801236,), (1374801250,), (1374801253,), (1374801254,), (1374801255,), (1374801290,), (1374801282,), (1374801283,), (1374801285,), (1374801287,), (1374801289,), (1374801299,), (1374801301,), (1374801302,), (1374801303,), (1374801327,), (1374801329,), (1374801331,), (1374801333,), (1374801337,), (1374801350,), (1374801352,), (1374801354,), (1374801356,), (1374801360,), (1374801363,), (1374801379,), (1374801384,), (1374801385,), (1374801388,), (1374801391,), (1374801419,), (1374801421,), (1374801423,), (1374801427,), (1374801430,), (1374801434,), (1374801438,), (1374801439,), (1374801448,), (1374801450,), (1374801451,), (1374801454,), (1374801456,), (1374801480,), (1374801482,), (1374801483,), (1374801485,), (1374801488,), (1374801511,), (1374801513,), (1374801515,), (1374801517,), (1374801521,), (1374801532,), (1374801534,), (1374801566,), (1374801575,), (1374801576,), (1374801579,), (1374801582,), (1374801593,), (1374801595,), (1374801597,), (1374801599,), (1374801602,), (1374801621,), (1374801623,), (1374801625,), (1374801627,), (1374801647,), (1374801650,), (1374801653,), (1374801657,), (1374801661,), (1374801663,), (1374801680,), (1374801682,), (1374801683,), (1374801685,), (1374801688,), (1374801691,), (1374801721,), (1374801714,), (1374801716,), (1374801717,), (1374801719,), (1374801735,), (1374801737,), (1374801738,), (1374801740,), (1374801742,), (1374801761,), (1374801763,), (1374801764,), (1374801765,), (1374801768,), (1374801786,), (1374801788,), (1374801789,), (1374801791,), (1374801792,), (1374801795,), (1374801814,), (1374801816,), (1374801823,), (1374801825,), (1374801892,), (1374801894,), (1374801895,), (1374801915,), (1374801921,), (1374801965,), (1374801967,), (1374801970,), (1374801973,), (1374801975,), (1374801976,), (1374801990,), (1374801992,), (1374801993,), (1374802013,), (1374802015,), (1374802016,), (1374802018,), (1374802043,), (1374802045,), (1374802046,), (1374802048,), (1374802050,), (1374802068,), (1374802070,), (1374802071,), (1374802073,), (1374802075,), (1374802088,), (1374802090,), (1374802091,), (1374802109,), (1374802111,), (1374802112,), (1374802114,), (1374802116,), (1374802117,), (1374802128,), (1374802130,), (1374802131,), (1374802132,), (1374802134,), (1374802152,), (1374802154,), (1374802155,), (1374802188,), (1374802184,), (1374802185,), (1374802186,), (1374802202,), (1374802203,), (1374802204,), (1374802206,), (1374802209,), (1374802399,), (1374802424,), (1374802452,), (1374802475,), (1374802549,), (1374802551,), (1374802552,), (1374802576,), (1374802577,), (1374802579,), (1374802581,), (1374802608,), (1374802611,), (1374802612,), (1374802632,), (1374802634,), (1374802636,), (1374802661,), (1374802664,), (1374802665,), (1374802667,), (1374802672,), (1374802675,), (1374802683,), (1374802685,), (1374802687,), (1374802690,), (1374802693,), (1374802695,), (1374802701,), (1374802702,), (1374802703,), (1374802704,), (1374802706,), (1374802707,), (1374802709,), (1374802711,), (1374802714,), (1374802730,), (1374802733,), (1374802737,), (1374802739,), (1374802749,), (1374802751,), (1374802753,), (1374802755,), (1374802774,), (1374802776,), (1374802778,), (1374802780,), (1374802783,), (1374802795,), (1374802803,), (1374802828,), (1374803832,), (1374804709,), (1374804707,), (1374804732,), (1374804734,), (1374804737,), (1374804739,), (1374804742,), (1374804755,), (1374804757,), (1374804781,), (1374804784,), (1374804788,), (1374804792,), (1374804795,), (1374804798,), (1374804808,), (1374804809,), (1374804811,), (1374804814,), (1374804818,), (1374804835,), (1374804836,), (1374804837,), (1374804871,), (1374804872,), (1374804873,), (1374804874,), (1374804877,), (1374804886,), (1374804908,), (1374804910,), (1374804911,), (1374804949,), (1374804952,), (1374804958,), (1374804964,), (1374804969,), (1374804974,), (1374804975,), (1374804976,), (1374804978,), (1374804981,), (1374805011,), (1374805023,), (1374805024,), (1374805026,), (1374805047,), (1374805049,), (1374805069,), (1374805262,), (1374805249,), (1374805257,), (1374805258,), (1374805260,), (1374805291,), (1374805297,), (1374805320,), (1374805321,), (1374805332,), (1374805336,), (1374805443,), (1374805468,), (1374805485,), (1374805576,), (1374805579,), (1374805581,), (1374805582,), (1374805585,), (1374805695,), (1374805700,), (1374805702,), (1374805704,), (1374805747,), (1374805749,), (1374805751,), (1374805754,), (1374805757,), (1374805772,), (1374805774,), (1374805776,), (1374805778,), (1374805885,), (1374805888,), (1374805890,), (1374805891,), (1374805893,), (1374805895,), (1374805898,), (1374805904,), (1374805908,), (1374805930,), (1374805931,), (1374805933,), (1374805936,), (1374805940,), (1374805942,), (1374805957,), (1374805958,), (1374805959,), (1374805961,), (1374805983,), (1374805985,), (1374805988,), (1374805991,), (1374806009,), (1374806011,), (1374806036,), (1374806037,), (1374806071,), (1374806072,), (1374806073,), (1374806075,), (1374806101,), (1374806100,), (1374806125,), (1374806126,), (1374806127,), (1374806129,), (1374806164,), (1374806168,), (1374806169,), (1374806174,), (1374806175,), (1374806176,), (1374806178,), (1374806201,), (1374806203,), (1374806205,), (1374806209,), (1374806231,), (1374806233,), (1374806234,), (1374806236,), (1374806240,), (1374806340,), (1374806343,), (1374806346,), (1374806347,), (1374806355,), (1374806390,), (1374806392,), (1374806393,), (1374806415,), (1374806417,), (1374806418,), (1374806420,), (1374806422,), (1374806424,), (1374806445,), (1374806448,), (1374806450,), (1374806452,), (1374806454,), (1374806456,), (1374806545,), (1374806547,), (1374806571,), (1374806598,), (1374806703,), (1374806705,), (1374806706,), (1374806731,), (1374806740,), (1374806746,), (1374806834,), (1374806845,), (1374806856,), (1374806864,), (1374806872,), (1374806881,), (1374806917,), (1374806927,), (1374806929,), (1374806936,), (1374806938,), (1374806940,), (1374806947,), (1374806948,), (1374806977,), (1374806981,), (1374807005,), (1374807009,), (1374807032,), (1374807038,), (1374807089,), (1374807115,), (1374807128,), (1374807133,), (1374807136,), (1374807262,), (1374807258,), (1374807261,), (1374807285,), (1374807287,), (1374807288,), (1374807290,), (1374807306,), (1374807309,), (1374807311,), (1374807313,), (1374807316,), (1374807335,), (1374807338,), (1374807342,), (1374807346,), (1374807366,), (1374807367,), (1374807396,), (1374807397,), (1374807398,), (1374807429,), (1374807430,), (1374807431,), (1374807473,), (1374807475,), (1374807476,), (1374807477,), (1374807480,), (1374807499,), (1374807500,), (1374807502,), (1374807505,), (1374807508,), (1374807510,), (1374807523,), (1374807524,), (1374807539,), (1374807540,), (1374807541,), (1374807543,), (1374807586,), (1374807610,), (1374807611,), (1374807643,), (1374807645,), (1374807646,), (1374807648,), (1374807650,), (1374809925,), (1374809922,), (1374809934,), (1374810038,), (1374810064,), (1374810066,), (1374810089,), (1374810092,), (1374810094,), (1374810241,), (1374810248,), (1374810279,), (1374810283,), (1374810287,), (1374810289,), (1374810298,), (1374810324,), (1374810325,), (1374810433,), (1374810455,), (1374810480,), (1374811163,), (1374811238,), (1374811239,), (1374811261,), (1374811262,), (1374811264,), (1374811267,), (1374811277,), (1374811278,), (1374811279,), (1374811296,), (1374811297,), (1374811298,), (1374811321,), (1374811322,), (1374811349,), (1374811348,), (1374811456,), (1374811457,), (1374811458,), (1374811460,), (1374811470,), (1374811472,), (1374811475,), (1374811481,), (1374811531,), (1374811532,), (1374811533,), (1374811535,), (1374811536,), (1374811549,), (1374811550,), (1374811551,), (1374811553,), (1374811579,), (1374811580,), (1374811581,), (1374811585,), (1374811651,), (1374811652,), (1374811653,), (1374811655,), (1374811658,), (1374811752,), (1374811767,), (1374811776,), (1374811777,), (1374811804,), (1374811807,), (1374811811,), (1374811813,), (1374811821,), (1374811822,), (1374811823,), (1374811861,), (1374811862,), (1374812056,), (1374812052,), (1374812053,), (1374812054,), (1374812072,), (1374812073,), (1374812074,), (1374812076,), (1374812079,), (1374812082,), (1374812100,), (1374812101,), (1374812102,), (1374812104,), (1374812106,), (1374812109,), (1374812119,), (1374812120,), (1374812121,), (1374812123,), (1374833381,), (1374833378,), (1374833379,), (1374833403,), (1374833405,), (1374833406,), (1374833408,), (1374833411,), (1374833413,), (1374833423,), (1374833424,), (1374833446,), (1374833447,), (1374833448,), (1374833450,), (1374833461,), (1374833462,), (1374833488,), (1374833489,), (1374833514,), (1374833516,), (1374833518,), (1374833589,), (1374833541,), (1374833543,), (1374833566,), (1374833892,), (1374833894,), (1374833898,), (1374833902,), (1374833905,), (1374833907,), (1374833921,), (1374833922,), (1374833923,), (1374833925,), (1374833935,), (1374833936,), (1374833937,), (1374833938,), (1374833966,), (1374833967,), (1374833968,), (1374833970,), (1374834000,), (1374834001,), (1374834003,), (1374834006,), (1374834010,), (1374834013,), (1374834017,), (1374834018,), (1374834021,), (1374834022,), (1374834023,), (1374834025,), (1374834027,), (1374834029,), (1374834037,), (1374834038,), (1374834040,), (1374834043,), (1374834045,), (1374834048,), (1374834062,), (1374834063,), (1374834066,), (1374834069,), (1374834096,), (1374834117,), (1374834126,), (1374834129,), (1374834131,), (1374834135,), (1374834137,), (1374834139,), (1374834143,), (1374834148,), (1374834153,), (1374834165,), (1374834167,), (1374834169,), (1374834177,), (1374834178,), (1374834180,), (1374834181,), (1374834183,), (1374834184,), (1374834186,), (1374834188,), (1374834190,), (1374834191,), (1374834193,), (1374834194,), (1374834196,), (1374834197,), (1374834198,), (1374834199,), (1374834201,), (1374834204,), (1374834214,), (1374834218,), (1374834220,), (1374834222,), (1374834224,), (1374834267,), (1374834270,), (1374834271,), (1374834273,), (1374834294,), (1374834292,), (1374834293,), (1374834327,), (1374834330,), (1374834333,), (1374834336,), (1374834337,), (1374834338,), (1374834339,), (1374834590,), (1374834612,), (1374834869,), (1374834894,), (1374835092,), (1374835117,), (1374835118,), (1374835193,), (1374835195,), (1374835207,), (1374835231,), (1374835232,), (1374835234,), (1374835237,), (1374835239,), (1374835250,), (1374835252,), (1374835255,), (1374835259,), (1374835260,), (1374835264,), (1374835271,), (1374835272,), (1374835273,), (1374835274,), (1374835275,), (1374835277,), (1374835280,), (1374835282,), (1374835297,), (1374835299,), (1374835302,), (1374835305,), (1374835331,), (1374835324,), (1374835325,), (1374835326,), (1374835328,), (1374835340,), (1374835341,), (1374835342,), (1374835343,), (1374835367,), (1374835368,), (1374835369,), (1374835371,), (1374835386,), (1374835387,), (1374835388,), (1374835390,), (1374835392,), (1374835410,), (1374835411,), (1374835412,), (1374835465,), (1374835466,), (1374835494,), (1374835495,), (1374835506,), (1374835507,), (1374835530,), (1374835531,), (1374835532,), (1374835548,), (1374835568,), (1374835570,), (1374835571,), (1374835572,), (1374835655,), (1374835707,), (1374835753,), (1374835797,), (1374835841,), (1374835867,), (1374836148,), (1374836203,), (1374836238,), (1374836263,), (1374836696,), (1374836699,), (1374836761,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01082025': {'nb_upload': 47, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25595132]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374836761] map_info['map_portfolio_photo'] : {25595132: [1374836761, 1374836699, 1374836696, 1374836263, 1374836238, 1374836203, 1374836148, 1374835867, 1374835841, 1374835797, 1374835753, 1374835707, 1374835655, 1374835572, 1374835571, 1374835570, 1374835568, 1374835548, 1374835532, 1374835531, 1374835530, 1374835507, 1374835506, 1374835495, 1374835494, 1374835466, 1374835465, 1374835412, 1374835411, 1374835410, 1374835392, 1374835390, 1374835388, 1374835387, 1374835386, 1374835371, 1374835369, 1374835368, 1374835367, 1374835343, 1374835342, 1374835341, 1374835340, 1374835328, 1374835326, 1374835325, 1374835324]} final : True mtd_id 4302 list_pids : [1374836761] Looping around the photos to save general results len do output : 1 /25595132Didn'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, '3424566') ('4302', '25595132', '1374836761', None, None, None, None, None, '3424566') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '25595132', 'None', None, None, None, None, '3424566'), ('4302', '25595132', '1374836761', None, None, None, None, None, '3424566')] time used for this insertion : 0.011941194534301758 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0298495292663574 time spend to save output : 0.012131690979003906 total time spend for step 5 : 2.0419812202453613 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 (3424566) 1.90user 2.26system 0:09.83elapsed 42%CPU (0avgtext+0avgdata 158032maxresident)k 280inputs+3912outputs (0major+61918minor)pagefaults 0swaps