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 : 3441018 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 (3415584) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3415584) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25557800 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3415584'] with mtr_portfolio_ids : ['25557800'] and first list_photo_ids : [] new path : /proc/3441018/ Name: python3 Umask: 0002 State: R (running) Tgid: 3441018 Ngid: 0 Pid: 3441018 PPid: 3441017 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3441018 NSpid: 3441018 NSpgid: 3439873 NSsid: 3439873 VmPeak: 1106860 kB VmSize: 1106860 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97792 kB VmRSS: 97792 kB RssAnon: 59808 kB RssFile: 37984 kB RssShmem: 0 kB VmData: 865612 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 72 nonvoluntary_ctxt_switches: 148 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3441018', 'Ngid': '0', 'Pid': '3441018', 'PPid': '3441017', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3441018', 'NSpid': '3441018', 'NSpgid': '3439873', 'NSsid': '3439873', 'VmPeak': '1106860 kB', 'VmSize': '1106860 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97792 kB', 'VmRSS': '97792 kB', 'RssAnon': '59808 kB', 'RssFile': '37984 kB', 'RssShmem': '0 kB', 'VmData': '865612 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '72', 'nonvoluntary_ctxt_switches': '148'} ('datou_batch_current', '3441018', '1106860', '0', '1106860', '865612', '97792', b'', 'marlene', '3415584') 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 (25557800) 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 (3415584 ) ) 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 (25557800) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374643530, 'portfolio_id': 25557800}, {'photo_id': 1374643528, 'portfolio_id': 25557800}, {'photo_id': 1374643525, 'portfolio_id': 25557800}, {'photo_id': 1374643522, 'portfolio_id': 25557800}, {'photo_id': 1374643518, 'portfolio_id': 25557800}, {'photo_id': 1374643515, 'portfolio_id': 25557800}, {'photo_id': 1374643496, 'portfolio_id': 25557800}, {'photo_id': 1374643494, 'portfolio_id': 25557800}, {'photo_id': 1374643491, 'portfolio_id': 25557800}, {'photo_id': 1374643489, 'portfolio_id': 25557800}, {'photo_id': 1374643486, 'portfolio_id': 25557800}, {'photo_id': 1374643480, 'portfolio_id': 25557800}, {'photo_id': 1374643478, 'portfolio_id': 25557800}, {'photo_id': 1374643477, 'portfolio_id': 25557800}, {'photo_id': 1374643476, 'portfolio_id': 25557800}, {'photo_id': 1374643475, 'portfolio_id': 25557800}, {'photo_id': 1374643447, 'portfolio_id': 25557800}, {'photo_id': 1374643445, 'portfolio_id': 25557800}, {'photo_id': 1374643441, 'portfolio_id': 25557800}, {'photo_id': 1374643418, 'portfolio_id': 25557800}, {'photo_id': 1374643416, 'portfolio_id': 25557800}, {'photo_id': 1374643413, 'portfolio_id': 25557800}, {'photo_id': 1374643411, 'portfolio_id': 25557800}, {'photo_id': 1374643407, 'portfolio_id': 25557800}, {'photo_id': 1374643404, 'portfolio_id': 25557800}, {'photo_id': 1374643384, 'portfolio_id': 25557800}, {'photo_id': 1374643380, 'portfolio_id': 25557800}, {'photo_id': 1374643376, 'portfolio_id': 25557800}, {'photo_id': 1374643373, 'portfolio_id': 25557800}, {'photo_id': 1374643371, 'portfolio_id': 25557800}, {'photo_id': 1374643345, 'portfolio_id': 25557800}, {'photo_id': 1374643342, 'portfolio_id': 25557800}, {'photo_id': 1374643340, 'portfolio_id': 25557800}, {'photo_id': 1374643338, 'portfolio_id': 25557800}, {'photo_id': 1374643334, 'portfolio_id': 25557800}, {'photo_id': 1374643331, 'portfolio_id': 25557800}, {'photo_id': 1374643327, 'portfolio_id': 25557800}, {'photo_id': 1374643325, 'portfolio_id': 25557800}, {'photo_id': 1374643174, 'portfolio_id': 25557800}, {'photo_id': 1374643166, 'portfolio_id': 25557800}, {'photo_id': 1374643164, 'portfolio_id': 25557800}, {'photo_id': 1374643003, 'portfolio_id': 25557800}, {'photo_id': 1374642976, 'portfolio_id': 25557800}, {'photo_id': 1374642952, 'portfolio_id': 25557800}, {'photo_id': 1374642927, 'portfolio_id': 25557800}, {'photo_id': 1374642764, 'portfolio_id': 25557800}, {'photo_id': 1374642738, 'portfolio_id': 25557800}, {'photo_id': 1374642712, 'portfolio_id': 25557800}, {'photo_id': 1374642686, 'portfolio_id': 25557800}, {'photo_id': 1374642660, 'portfolio_id': 25557800}, {'photo_id': 1374642636, 'portfolio_id': 25557800}, {'photo_id': 1374642542, 'portfolio_id': 25557800}, {'photo_id': 1374642519, 'portfolio_id': 25557800}, {'photo_id': 1374642496, 'portfolio_id': 25557800}, {'photo_id': 1374642472, 'portfolio_id': 25557800}, {'photo_id': 1374642445, 'portfolio_id': 25557800}, {'photo_id': 1374642421, 'portfolio_id': 25557800}, {'photo_id': 1374642101, 'portfolio_id': 25557800}, {'photo_id': 1374642099, 'portfolio_id': 25557800}, {'photo_id': 1374642097, 'portfolio_id': 25557800}, {'photo_id': 1374642093, 'portfolio_id': 25557800}] map_portfolio_id_photo_id: {25557800: [1374643530, 1374643528, 1374643525, 1374643522, 1374643518, 1374643515, 1374643496, 1374643494, 1374643491, 1374643489, 1374643486, 1374643480, 1374643478, 1374643477, 1374643476, 1374643475, 1374643447, 1374643445, 1374643441, 1374643418, 1374643416, 1374643413, 1374643411, 1374643407, 1374643404, 1374643384, 1374643380, 1374643376, 1374643373, 1374643371, 1374643345, 1374643342, 1374643340, 1374643338, 1374643334, 1374643331, 1374643327, 1374643325, 1374643174, 1374643166, 1374643164, 1374643003, 1374642976, 1374642952, 1374642927, 1374642764, 1374642738, 1374642712, 1374642686, 1374642660, 1374642636, 1374642542, 1374642519, 1374642496, 1374642472, 1374642445, 1374642421, 1374642101, 1374642099, 1374642097, 1374642093]} ##### 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.014319419860839844 #### 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 Thu Jul 31 20:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25557800) 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 : 25557800 get user id for portfolio 25557800 get sub ptf for main ptf 25557800, type 3726 and hashtags ['papier', 'Teint_Dans_La_Masse', 'mal_croppe', 'plastique', 'autre_refus', 'environnement', 'metal', 'flou', 'Carton_gris', 'cartonnette', 'Carton_brun', 'kraft'] 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`=25557800 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','mal_croppe','plastique','autre_refus','environnement','metal','flou','Carton_gris','cartonnette','Carton_brun','kraft')) 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`=25557800 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','mal_croppe','plastique','autre_refus','environnement','metal','flou','Carton_gris','cartonnette','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 25557800, 'sub_port_id': 25557816, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234199, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25557800, 'sub_port_id': 25557817, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234200, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 28)}, 'Carton_gris': {'main_port_id': 25557800, 'sub_port_id': 25557818, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234201, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 28)}, 'kraft': {'main_port_id': 25557800, 'sub_port_id': 25557819, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234202, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 28)}, 'papier': {'main_port_id': 25557800, 'sub_port_id': 25557820, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234203, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 28)}, 'mal_croppe': {'main_port_id': 25557800, 'sub_port_id': 25557821, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234204, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 28)}, 'flou': {'main_port_id': 25557800, 'sub_port_id': 25557822, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234205, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 28)}, 'metal': {'main_port_id': 25557800, 'sub_port_id': 25557823, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234206, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 28)}, 'environnement': {'main_port_id': 25557800, 'sub_port_id': 25557824, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234207, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 28)}, 'cartonnette': {'main_port_id': 25557800, 'sub_port_id': 25557825, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234208, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 28)}, 'plastique': {'main_port_id': 25557800, 'sub_port_id': 25557826, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234209, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 28)}, 'autre_refus': {'main_port_id': 25557800, 'sub_port_id': 25557827, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234210, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25557816 , 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=25557800 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 (25557816) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25557800) result : ((1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,)) 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 25557817 , 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=25557800 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 (25557817) result : ((1374643243,), (1374643245,), (1374643421,), (1374643422,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25557800) result : ((1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,)) 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 25557818 , 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=25557800 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 (25557818) result : ((1374643253,), (1374643255,), (1374643257,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25557800) result : ((1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,)) 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 25557819 , 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=25557800 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 (25557819) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25557800) result : ((1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,)) 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 25557820 , 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=25557800 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 (25557820) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25557800) result : ((1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,)) 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 25557821 , 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=25557800 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 (25557821) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25557800) result : ((1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,)) 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 25557822 , 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=25557800 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 (25557822) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25557800) result : ((1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,)) 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 25557823 , 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=25557800 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 (25557823) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25557800) result : ((1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,)) 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 25557824 , 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=25557800 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 (25557824) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25557800) result : ((1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,)) 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 25557825 , 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=25557800 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 (25557825) result : ((1374643263,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25557800) result : ((1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,)) 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 25557826 , 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=25557800 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 (25557826) result : ((1374643271,), (1374643368,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25557800) result : ((1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,)) 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 25557827 , 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=25557800 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 (25557827) result : ((1374643365,), (1374643366,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25557800) result : ((1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,)) 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`=25557800 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','mal_croppe','plastique','autre_refus','environnement','metal','flou','Carton_gris','cartonnette','Carton_brun','kraft')) 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`=25557800 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','mal_croppe','plastique','autre_refus','environnement','metal','flou','Carton_gris','cartonnette','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 25557800, 'sub_port_id': 25557829, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234211, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 25557800, 'sub_port_id': 25557830, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234212, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 30)}, 'Carton_gris': {'main_port_id': 25557800, 'sub_port_id': 25557831, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234213, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 30)}, 'kraft': {'main_port_id': 25557800, 'sub_port_id': 25557832, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234214, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 30)}, 'papier': {'main_port_id': 25557800, 'sub_port_id': 25557833, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234215, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 30)}, 'mal_croppe': {'main_port_id': 25557800, 'sub_port_id': 25557834, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234216, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 30)}, 'flou': {'main_port_id': 25557800, 'sub_port_id': 25557836, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234217, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 30)}, 'metal': {'main_port_id': 25557800, 'sub_port_id': 25557837, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234218, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 30)}, 'environnement': {'main_port_id': 25557800, 'sub_port_id': 25557838, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234219, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 30)}, 'cartonnette': {'main_port_id': 25557800, 'sub_port_id': 25557839, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234220, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 30)}, 'plastique': {'main_port_id': 25557800, 'sub_port_id': 25557840, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234221, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 30)}, 'autre_refus': {'main_port_id': 25557800, 'sub_port_id': 25557841, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17234222, 'last_updated_at': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 20, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25557829,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25557816 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25557830,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25557817 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25557831,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25557818 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25557832,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25557819 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25557833,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25557820 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25557834,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25557821 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25557836,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25557822 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25557837,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25557823 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25557838,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25557824 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25557839,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25557825 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25557840,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25557826 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25557841,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25557827 lien utilise dans velours : https://www.fotonower.com/velours/25557829,25557830,25557831,25557832,25557833,25557834,25557836,25557837,25557838,25557839,25557840,25557841?tags=Carton_brun,Teint_Dans_La_Masse,Carton_gris,kraft,papier,mal_croppe,flou,metal,environnement,cartonnette,plastique,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25557800]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374643530, 1374643528, 1374643525, 1374643522, 1374643518, 1374643515, 1374643496, 1374643494, 1374643491, 1374643489, 1374643486] map_info['map_portfolio_photo'] : {25557800: [1374643530, 1374643528, 1374643525, 1374643522, 1374643518, 1374643515, 1374643496, 1374643494, 1374643491, 1374643489, 1374643486, 1374643480, 1374643478, 1374643477, 1374643476, 1374643475, 1374643447, 1374643445, 1374643441, 1374643418, 1374643416, 1374643413, 1374643411, 1374643407, 1374643404, 1374643384, 1374643380, 1374643376, 1374643373, 1374643371, 1374643345, 1374643342, 1374643340, 1374643338, 1374643334, 1374643331, 1374643327, 1374643325, 1374643174, 1374643166, 1374643164, 1374643003, 1374642976, 1374642952, 1374642927, 1374642764, 1374642738, 1374642712, 1374642686, 1374642660, 1374642636, 1374642542, 1374642519, 1374642496, 1374642472, 1374642445, 1374642421, 1374642101, 1374642099, 1374642097, 1374642093]} final : False mtd_id 4302 list_pids : [1374643530, 1374643528, 1374643525, 1374643522, 1374643518, 1374643515, 1374643496, 1374643494, 1374643491, 1374643489, 1374643486] Looping around the photos to save general results len do output : 1 /25557800. 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, '3415584') ('4302', '25557800', '1374643530', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643528', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643525', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643522', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643518', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643515', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643496', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643494', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643491', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643489', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643486', None, None, None, None, None, '3415584') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25557800', "{'Carton_brun': 25557816, 'Teint_Dans_La_Masse': 25557817, 'Carton_gris': 25557818, 'kraft': 25557819, 'papier': 25557820, 'mal_croppe': 25557821, 'flou': 25557822, 'metal': 25557823, 'environnement': 25557824, 'cartonnette': 25557825, 'plastique': 25557826, 'autre_refus': 25557827}", None, None, None, None, '3415584'), ('4302', '25557800', '1374643530', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643528', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643525', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643522', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643518', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643515', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643496', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643494', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643491', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643489', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643486', None, None, None, None, None, '3415584')] time used for this insertion : 0.013845682144165039 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5379862785339355 time spend to save output : 0.014212369918823242 total time spend for step 1 : 1.5521986484527588 step2:final Thu Jul 31 20:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25557800) 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 25557800 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374642764,1374642101,1374642099,1374642738,1374642097,1374642542,1374642093,1374642519,1374642496,1374642472,1374642445,1374642421,1374642712,1374642686,1374642660,1374642636,1374643003,1374642976,1374642952,1374642927,1374643174,1374643166,1374643164,1374643334,1374643331,1374643327,1374643325,1374643345,1374643342,1374643340,1374643338,1374643384,1374643380,1374643376,1374643373,1374643371,1374643418,1374643416,1374643413,1374643411,1374643407,1374643404,1374643447,1374643445,1374643480,1374643441,1374643478,1374643477,1374643476,1374643475,1374643496,1374643494,1374643491,1374643489,1374643486,1374643530,1374643528,1374643525,1374643522,1374643518,1374643515); 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([25557800]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} new output for save of step final : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} [1374643530, 1374643528, 1374643525, 1374643522, 1374643518, 1374643515, 1374643496, 1374643494, 1374643491, 1374643489, 1374643486] map_info['map_portfolio_photo'] : {25557800: [1374643530, 1374643528, 1374643525, 1374643522, 1374643518, 1374643515, 1374643496, 1374643494, 1374643491, 1374643489, 1374643486, 1374643480, 1374643478, 1374643477, 1374643476, 1374643475, 1374643447, 1374643445, 1374643441, 1374643418, 1374643416, 1374643413, 1374643411, 1374643407, 1374643404, 1374643384, 1374643380, 1374643376, 1374643373, 1374643371, 1374643345, 1374643342, 1374643340, 1374643338, 1374643334, 1374643331, 1374643327, 1374643325, 1374643174, 1374643166, 1374643164, 1374643003, 1374642976, 1374642952, 1374642927, 1374642764, 1374642738, 1374642712, 1374642686, 1374642660, 1374642636, 1374642542, 1374642519, 1374642496, 1374642472, 1374642445, 1374642421, 1374642101, 1374642099, 1374642097, 1374642093]} final : False mtd_id 4302 list_pids : [1374643530, 1374643528, 1374643525, 1374643522, 1374643518, 1374643515, 1374643496, 1374643494, 1374643491, 1374643489, 1374643486] Looping around the photos to save general results len do output : 11 /1374643530.Didn't retrieve data . /1374643528.Didn't retrieve data . /1374643525.Didn't retrieve data . /1374643522.Didn't retrieve data . /1374643518.Didn't retrieve data . /1374643515.Didn't retrieve data . /1374643496.Didn't retrieve data . /1374643494.Didn't retrieve data . /1374643491.Didn't retrieve data . /1374643489.Didn't retrieve data . /1374643486.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, '3415584') ('4302', '25557800', '1374643530', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643528', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643525', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643522', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643518', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643515', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643496', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643494', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643491', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643489', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643486', None, None, None, None, None, '3415584') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '25557800', '1374643530', '0.03653579113300133', None, None, None, None, '3415584'), ('4302', '25557800', '1374643528', '0.03653579113300133', None, None, None, None, '3415584'), ('4302', '25557800', '1374643525', '0.03653579113300133', None, None, None, None, '3415584'), ('4302', '25557800', '1374643522', '0.03653579113300133', None, None, None, None, '3415584'), ('4302', '25557800', '1374643518', '0.03653579113300133', None, None, None, None, '3415584'), ('4302', '25557800', '1374643515', '0.03653579113300133', None, None, None, None, '3415584'), ('4302', '25557800', '1374643496', '0.03653579113300133', None, None, None, None, '3415584'), ('4302', '25557800', '1374643494', '0.03653579113300133', None, None, None, None, '3415584'), ('4302', '25557800', '1374643491', '0.03653579113300133', None, None, None, None, '3415584'), ('4302', '25557800', '1374643489', '0.03653579113300133', None, None, None, None, '3415584'), ('4302', '25557800', '1374643486', '0.03653579113300133', None, None, None, None, '3415584')] time used for this insertion : 0.013452768325805664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.061930179595947266 time spend to save output : 0.013963460922241211 total time spend for step 2 : 0.07589364051818848 step3:velours_tree Thu Jul 31 20:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25557800: [{'Carton_brun': 25557816, 'Teint_Dans_La_Masse': 25557817, 'Carton_gris': 25557818, 'kraft': 25557819, 'papier': 25557820, 'mal_croppe': 25557821, 'flou': 25557822, 'metal': 25557823, 'environnement': 25557824, 'cartonnette': 25557825, 'plastique': 25557826, 'autre_refus': 25557827}]} input_args_next_step : {25557800: ()} output_args : {25557800: [{'Carton_brun': 25557816, 'Teint_Dans_La_Masse': 25557817, 'Carton_gris': 25557818, 'kraft': 25557819, 'papier': 25557820, 'mal_croppe': 25557821, 'flou': 25557822, 'metal': 25557823, 'environnement': 25557824, 'cartonnette': 25557825, 'plastique': 25557826, 'autre_refus': 25557827}]} args : 25557800 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 25557816, 'Teint_Dans_La_Masse': 25557817, 'Carton_gris': 25557818, 'kraft': 25557819, 'papier': 25557820, 'mal_croppe': 25557821, 'flou': 25557822, 'metal': 25557823, 'environnement': 25557824, 'cartonnette': 25557825, 'plastique': 25557826, 'autre_refus': 25557827},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25557800) 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([25557800]) 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.3483889102935791 time spend to save output : 4.982948303222656e-05 total time spend for step 3 : 0.34843873977661133 step4:send_mail_cod Thu Jul 31 20:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} input_args_next_step : {1374643530: ()} output_args : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} args : 1374643530 depend.output_id : 0 input_args_next_step : {1374643530: ('0.03653579113300133',), 1374643528: ()} output_args : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} args : 1374643528 depend.output_id : 0 input_args_next_step : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ()} output_args : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} args : 1374643525 depend.output_id : 0 input_args_next_step : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ()} output_args : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} args : 1374643522 depend.output_id : 0 input_args_next_step : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ()} output_args : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} args : 1374643518 depend.output_id : 0 input_args_next_step : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ()} output_args : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} args : 1374643515 depend.output_id : 0 input_args_next_step : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ()} output_args : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} args : 1374643496 depend.output_id : 0 input_args_next_step : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ()} output_args : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} args : 1374643494 depend.output_id : 0 input_args_next_step : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ()} output_args : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} args : 1374643491 depend.output_id : 0 input_args_next_step : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ()} output_args : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} args : 1374643489 depend.output_id : 0 input_args_next_step : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ()} output_args : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',)} args : 1374643486 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {25557800: [{'Carton_brun': 25557816, 'Teint_Dans_La_Masse': 25557817, 'Carton_gris': 25557818, 'kraft': 25557819, 'papier': 25557820, 'mal_croppe': 25557821, 'flou': 25557822, 'metal': 25557823, 'environnement': 25557824, 'cartonnette': 25557825, 'plastique': 25557826, 'autre_refus': 25557827}]} input_args_next_step : {1374643530: ('0.03653579113300133',), 1374643528: ('0.03653579113300133',), 1374643525: ('0.03653579113300133',), 1374643522: ('0.03653579113300133',), 1374643518: ('0.03653579113300133',), 1374643515: ('0.03653579113300133',), 1374643496: ('0.03653579113300133',), 1374643494: ('0.03653579113300133',), 1374643491: ('0.03653579113300133',), 1374643489: ('0.03653579113300133',), 1374643486: ('0.03653579113300133',), 25557800: ()} output_args : {25557800: [{'Carton_brun': 25557816, 'Teint_Dans_La_Masse': 25557817, 'Carton_gris': 25557818, 'kraft': 25557819, 'papier': 25557820, 'mal_croppe': 25557821, 'flou': 25557822, 'metal': 25557823, 'environnement': 25557824, 'cartonnette': 25557825, 'plastique': 25557826, 'autre_refus': 25557827}]} args : 25557800 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 :12, first value : ('0.03653579113300133',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25557800) 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 (1374643530,1374643528,1374643525,1374643522,1374643518,1374643515,1374643496,1374643494,1374643491,1374643489,1374643486) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374643486 begin to download photo : 1374643494 begin to download photo : 1374643518 begin to download photo : 1374643528 download finish for photo 1374643486 begin to download photo : 1374643489 download finish for photo 1374643528 begin to download photo : 1374643530 download finish for photo 1374643494 begin to download photo : 1374643496 download finish for photo 1374643518 begin to download photo : 1374643522 download finish for photo 1374643530 download finish for photo 1374643489 begin to download photo : 1374643491 download finish for photo 1374643522 begin to download photo : 1374643525 download finish for photo 1374643496 begin to download photo : 1374643515 download finish for photo 1374643491 download finish for photo 1374643525 download finish for photo 1374643515 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette255578191753985701/ imagette255578211753985701/ imagette255578221753985701/ imagette255578231753985701/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P25557800_31-07-2025_20_15_01.pdf 25557819 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=25557819 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255578191753985701 25557821 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=25557821 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255578211753985701 25557822 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=25557822 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255578221753985701 25557823 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=25557823 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255578231753985701 25557825 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=25557825 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374643263: '1753985128_2318419_1374642097_23001af6fb044cf17fe2876e5919549b_rle_crop_3899554368_0.png'} change filename to text .imagette255578251753985701/ imagette255578251753985701/1753985128_2318419_1374642097_23001af6fb044cf17fe2876e5919549b_rle_crop_3899554368_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/35921d5bcaaba4268a744b38040ed021_71766010.png imagette255578251753985701 25557826 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=25557826 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374643271: '1753985128_2318419_1374642101_03aa702990fe9c616c651fc59a12ed9d_rle_crop_3899554356_0.png', 1374643368: '1753985247_2322965_1374642421_e1abafcc96ee3380eb910efd156fbdee_rle_crop_3899554549_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/9780b4acb7efa04bdd591a91a4162d7c_35234807.png change filename to text .imagette255578261753985701/ imagette255578261753985701/1753985128_2318419_1374642101_03aa702990fe9c616c651fc59a12ed9d_rle_crop_3899554356_0.png.png imagette255578261753985701/1753985247_2322965_1374642421_e1abafcc96ee3380eb910efd156fbdee_rle_crop_3899554549_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/cb59a38e7aa5fe3316c444ea550e1812_64510010.png imagette255578261753985701 25557827 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=25557827 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374643365: '1753985247_2322965_1374642445_913a20285355d9f4d8d1843dace960d1_rle_crop_3899554529_0.png', 1374643366: '1753985247_2322965_1374642421_e1abafcc96ee3380eb910efd156fbdee_rle_crop_3899554546_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/a057cf46a643ea618851227b4d5204f4_73437083.png change filename to text .imagette255578271753985701/ imagette255578271753985701/1753985247_2322965_1374642421_e1abafcc96ee3380eb910efd156fbdee_rle_crop_3899554546_0.png.png imagette255578271753985701/1753985247_2322965_1374642445_913a20285355d9f4d8d1843dace960d1_rle_crop_3899554529_0.png.png imagette255578161753985701/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/2cfb6f085f40253f8a8ff050ba338df8_69101079.png imagette255578271753985701 25557816 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=25557816 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255578161753985701 25557817 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=25557817 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374643243: '1753985128_2318419_1374642101_03aa702990fe9c616c651fc59a12ed9d_rle_crop_3899554355_0.png', 1374643245: '1753985128_2318419_1374642099_11a4dcc7213442a80ddc26c286f979df_rle_crop_3899554363_0.png', 1374643421: '1753985366_2326283_1374643166_32fa2c1ac9b58c104aaade5bf8699148_rle_crop_3899554617_0.png', 1374643422: '1753985366_2326283_1374643164_38a51bee4000cd1de5fc993908fd8bdd_rle_crop_3899554635_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/37510aae85df9e767657177c4c809822_38956035.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/c32834c5eb7597520cc87ed04b240199_2702078.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/49d67a471bc5ad15269da032a18bc7cb_17533948.png change filename to text .imagette255578171753985701/ imagette255578171753985701/1753985366_2326283_1374643164_38a51bee4000cd1de5fc993908fd8bdd_rle_crop_3899554635_0.png.png imagette255578171753985701/1753985366_2326283_1374643166_32fa2c1ac9b58c104aaade5bf8699148_rle_crop_3899554617_0.png.png imagette255578171753985701/1753985128_2318419_1374642101_03aa702990fe9c616c651fc59a12ed9d_rle_crop_3899554355_0.png.png imagette255578171753985701/1753985128_2318419_1374642099_11a4dcc7213442a80ddc26c286f979df_rle_crop_3899554363_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/a59304b4ca2233b3ff24cf7347c29788_75461222.png imagette255578171753985701 25557818 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=25557818 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374643253: '1753985128_2318419_1374642097_23001af6fb044cf17fe2876e5919549b_rle_crop_3899554371_0.png', 1374643255: '1753985128_2318419_1374642093_0d10399946cbfa84aaa0e97cf7f42eca_rle_crop_3899554385_0.png', 1374643257: '1753985128_2318419_1374642093_0d10399946cbfa84aaa0e97cf7f42eca_rle_crop_3899554380_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/03db2037dd2b1d950bf297f4f0f9a9a3_58463027.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/24c403b49c599a6bcc9ad8570a2f7052_68028190.png change filename to text .imagette255578181753985701/ imagette255578181753985701/1753985128_2318419_1374642093_0d10399946cbfa84aaa0e97cf7f42eca_rle_crop_3899554380_0.png.png imagette255578181753985701/1753985128_2318419_1374642097_23001af6fb044cf17fe2876e5919549b_rle_crop_3899554371_0.png.png imagette255578181753985701/1753985128_2318419_1374642093_0d10399946cbfa84aaa0e97cf7f42eca_rle_crop_3899554385_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/0cf480a9ee327704945f214bace5d4cf_18198986.png imagette255578181753985701 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25557800 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25557829,25557830,25557831,25557832,25557833,25557834,25557836,25557837,25557838,25557839,25557840,25557841?tags=Carton_brun,Teint_Dans_La_Masse,Carton_gris,kraft,papier,mal_croppe,flou,metal,environnement,cartonnette,plastique,autre_refus your option no_mail is active, we will not send the real mail to your client args[1374643530] : ('0.03653579113300133',) no score found for photo 1374643530 We are sending mail with results at report@fotonower.com args[1374643528] : ('0.03653579113300133',) no score found for photo 1374643528 We are sending mail with results at report@fotonower.com args[1374643525] : ('0.03653579113300133',) no score found for photo 1374643525 We are sending mail with results at report@fotonower.com args[1374643522] : ('0.03653579113300133',) no score found for photo 1374643522 We are sending mail with results at report@fotonower.com args[1374643518] : ('0.03653579113300133',) no score found for photo 1374643518 We are sending mail with results at report@fotonower.com args[1374643515] : ('0.03653579113300133',) no score found for photo 1374643515 We are sending mail with results at report@fotonower.com args[1374643496] : ('0.03653579113300133',) no score found for photo 1374643496 We are sending mail with results at report@fotonower.com args[1374643494] : ('0.03653579113300133',) no score found for photo 1374643494 We are sending mail with results at report@fotonower.com args[1374643491] : ('0.03653579113300133',) no score found for photo 1374643491 We are sending mail with results at report@fotonower.com args[1374643489] : ('0.03653579113300133',) no score found for photo 1374643489 We are sending mail with results at report@fotonower.com args[1374643486] : ('0.03653579113300133',) no score found for photo 1374643486 We are sending mail with results at report@fotonower.com refus_total : 0.03653579113300133 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=25557800 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_P25557800_31-07-2025_20_15_01.pdf results_Auto_P25557800_31-07-2025_20_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557800_31-07-2025_20_15_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25557800','results_Auto_P25557800_31-07-2025_20_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557800_31-07-2025_20_15_01.pdf','pdf','','0.13','0.03653579113300133') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25557800]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374643530, 1374643528, 1374643525, 1374643522, 1374643518, 1374643515, 1374643496, 1374643494, 1374643491, 1374643489, 1374643486] map_info['map_portfolio_photo'] : {25557800: [1374643530, 1374643528, 1374643525, 1374643522, 1374643518, 1374643515, 1374643496, 1374643494, 1374643491, 1374643489, 1374643486, 1374643480, 1374643478, 1374643477, 1374643476, 1374643475, 1374643447, 1374643445, 1374643441, 1374643418, 1374643416, 1374643413, 1374643411, 1374643407, 1374643404, 1374643384, 1374643380, 1374643376, 1374643373, 1374643371, 1374643345, 1374643342, 1374643340, 1374643338, 1374643334, 1374643331, 1374643327, 1374643325, 1374643174, 1374643166, 1374643164, 1374643003, 1374642976, 1374642952, 1374642927, 1374642764, 1374642738, 1374642712, 1374642686, 1374642660, 1374642636, 1374642542, 1374642519, 1374642496, 1374642472, 1374642445, 1374642421, 1374642101, 1374642099, 1374642097, 1374642093]} final : False mtd_id 4302 list_pids : [1374643530, 1374643528, 1374643525, 1374643522, 1374643518, 1374643515, 1374643496, 1374643494, 1374643491, 1374643489, 1374643486] 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, '3415584') ('4302', '25557800', '1374643530', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643528', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643525', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643522', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643518', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643515', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643496', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643494', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643491', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643489', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643486', None, None, None, None, None, '3415584') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '25557800', '1374643530', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643528', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643525', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643522', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643518', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643515', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643496', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643494', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643491', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643489', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643486', None, None, None, None, None, '3415584')] time used for this insertion : 0.013271331787109375 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.298835277557373 time spend to save output : 0.013459444046020508 total time spend for step 4 : 2.3122947216033936 step5:split_time_score Thu Jul 31 20:15: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 : ['25557800'] 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 : [('25557800',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25557800) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374643528: {'path': 'temp/1753985700_3441018_1374643528_eca6625c1ccce71e4d430854f8a0706b.jpg', 'extension': 'jpg'}, 1374643530: {'path': 'temp/1753985700_3441018_1374643530_9a667f7e7ed5aababa3c95ec44c7145d.jpg', 'extension': 'jpg'}, 1374643486: {'path': 'temp/1753985700_3441018_1374643486_67304b5cc47d15051a61f0ab70b0c8ff.jpg', 'extension': 'jpg'}, 1374643489: {'path': 'temp/1753985700_3441018_1374643489_5e9c6c89a4aa15d1ce6b0e69a4a110d4.jpg', 'extension': 'jpg'}, 1374643491: {'path': 'temp/1753985700_3441018_1374643491_5c01c3bed9ee21ecc6620f9bbe6d5a04.jpg', 'extension': 'jpg'}, 1374643518: {'path': 'temp/1753985700_3441018_1374643518_4ed071e5243de181ce6c045453fb4fcf.jpg', 'extension': 'jpg'}, 1374643522: {'path': 'temp/1753985700_3441018_1374643522_b9796aa842027a527da330adfb4ff0bd.jpg', 'extension': 'jpg'}, 1374643525: {'path': 'temp/1753985700_3441018_1374643525_102d076038c957fbbdea42c3ac8e5f2a.jpg', 'extension': 'jpg'}, 1374643494: {'path': 'temp/1753985700_3441018_1374643494_28690dc83cb5e6d88ba41f857f6a099e.jpg', 'extension': 'jpg'}, 1374643496: {'path': 'temp/1753985700_3441018_1374643496_4b0248bb67e8addc7e62f90fca01cf1c.jpg', 'extension': 'jpg'}, 1374643515: {'path': 'temp/1753985700_3441018_1374643515_07c09ed9a27a948d2197e68b9ef3c18d.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 = 25557800; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25557800 group by h (('20', 61),) 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=25557800 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 (25557800) 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 (25557800) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31072025 25557800 Nombre de photos uploadées : 61 / 23040 (0%) 31072025 25557800 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 31072025 25557800 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1374642764, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/9b14b34d8c557b520227e636efcb8639.jpg', 'username': None, 'uploaded_at': 1753984988, 'text': 'image_31072025_20_00_14_10211.jpg'}, {'photo_id': 1374642101, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/03aa702990fe9c616c651fc59a12ed9d.jpg', 'username': None, 'uploaded_at': 1753984887, 'text': 'image_31072025_20_00_14_10211.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1374642099, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/11a4dcc7213442a80ddc26c286f979df.jpg', 'username': None, 'uploaded_at': 1753984887, 'text': 'image_31072025_20_00_24_10138.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374642738, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/9396538d99740648e761f06761236b4b.jpg', 'username': None, 'uploaded_at': 1753984988, 'text': 'image_31072025_20_00_24_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 9.5367431640625e-07 elapsed_time : order_list_meta_photo_and_scores 2.86102294921875e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023560523986816406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25557800, '2025-07-31' ) 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-07-31' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2034079,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21157002449035645 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= 2034079 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25516129, 'dashboard_result_id': 13443719, '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_P25516129_31-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25516552, 'dashboard_result_id': 13443720, '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_P25516552_31-07-2025_06_29_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25516863, 'dashboard_result_id': 13443721, '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_P25516863_31-07-2025_06_30_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516879, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25517204, 'dashboard_result_id': 13443722, '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_P25517204_31-07-2025_06_31_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517216, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25517620, 'dashboard_result_id': 13443723, '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_P25517620_31-07-2025_06_31_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517637, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25518153, 'dashboard_result_id': 13443724, '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_P25518153_31-07-2025_06_32_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518168, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25518649, 'dashboard_result_id': 13443725, '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_P25518649_31-07-2025_06_32_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518671, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25519140, 'dashboard_result_id': 13443726, '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_P25519140_31-07-2025_06_33_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25519141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519152, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25519626, 'dashboard_result_id': 13443727, '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_P25519626_31-07-2025_06_34_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25519630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519640, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25520305, 'dashboard_result_id': 13443728, '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_P25520305_31-07-2025_06_34_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520320, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25520841, 'dashboard_result_id': 13443729, '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_P25520841_31-07-2025_06_35_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520856, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25521307, 'dashboard_result_id': 13443730, '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_P25521307_31-07-2025_06_36_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25521311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521322, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25521737, 'dashboard_result_id': 13443731, '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_P25521737_31-07-2025_06_36_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25521755, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25522256, 'dashboard_result_id': 13443732, '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_P25522256_31-07-2025_06_37_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25522283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522292, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25522735, 'dashboard_result_id': 13443733, '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_P25522735_31-07-2025_06_38_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25522739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522750, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25523075, 'dashboard_result_id': 13443734, '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_P25523075_31-07-2025_06_38_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25523076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523087, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25523385, 'dashboard_result_id': 13443735, '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_P25523385_31-07-2025_06_39_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523399, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25523818, 'dashboard_result_id': 13443736, '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_P25523818_31-07-2025_06_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523833, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25524141, 'dashboard_result_id': 13443737, '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_P25524141_31-07-2025_06_41_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524154, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25524518, 'dashboard_result_id': 13443738, '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_P25524518_31-07-2025_06_41_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524530, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25524912, 'dashboard_result_id': 13443739, '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_P25524912_31-07-2025_06_42_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25524917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524928, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25525411, 'dashboard_result_id': 13443740, '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_P25525411_31-07-2025_08_00_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525427, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25525840, 'dashboard_result_id': 13443741, '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_P25525840_31-07-2025_05_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525855, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25526254, 'dashboard_result_id': 13443742, '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_P25526254_31-07-2025_06_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25526258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526269, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25526644, 'dashboard_result_id': 13443743, '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_P25526644_31-07-2025_06_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25526687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526688, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25527147, 'dashboard_result_id': 13443744, '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_P25527147_31-07-2025_06_30_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25527152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527166, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25527500, 'dashboard_result_id': 13443745, '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_P25527500_31-07-2025_06_46_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25527501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527514, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25527878, 'dashboard_result_id': 13443746, '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_P25527878_31-07-2025_07_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527906, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25528260, 'dashboard_result_id': 13443747, '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_P25528260_31-07-2025_14_59_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25528288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528299, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25528614, 'dashboard_result_id': 13443748, '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_P25528614_31-07-2025_15_00_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25528662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528664, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25529145, 'dashboard_result_id': 13443749, '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_P25529145_31-07-2025_07_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529161, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25529519, 'dashboard_result_id': 13443750, '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_P25529519_31-07-2025_08_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529565, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25529875, 'dashboard_result_id': 13443751, '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_P25529875_31-07-2025_08_16_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529921, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25530428, 'dashboard_result_id': 13443752, '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_P25530428_31-07-2025_08_30_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25530433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25530434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25530435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25530436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25530437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25530438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25530439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25530440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25530441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25530442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25530443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25530444, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25530844, 'dashboard_result_id': 13443753, '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_P25530844_31-07-2025_08_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25530875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25530876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25530877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25530878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25530879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25530880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25530881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25530882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25530883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25530884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25530885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25530886, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25531293, 'dashboard_result_id': 13443754, '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_P25531293_31-07-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25531295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25531296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25531297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25531298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25531299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25531300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25531301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25531302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25531303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25531304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25531305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25531306, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25531730, 'dashboard_result_id': 13443755, '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_P25531730_31-07-2025_09_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25531735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25531736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25531737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25531738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25531739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25531740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25531741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25531742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25531743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25531744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25531745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25531746, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25532281, 'dashboard_result_id': 13443756, '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_P25532281_31-07-2025_09_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25532292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25532293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25532294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25532295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25532296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25532297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25532298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25532299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25532300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25532301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25532302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25532303, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25532744, 'dashboard_result_id': 13443757, '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_P25532744_31-07-2025_18_00_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25532761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25532762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25532763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25532764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25532765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25532766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25532767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25532768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25532769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25532770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25532771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25532772, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25533327, 'dashboard_result_id': 13443758, '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_P25533327_31-07-2025_10_00_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25533347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25533348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25533349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25533350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25533351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25533352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25533353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25533354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25533355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25533356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25533357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25533358, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25533798, 'dashboard_result_id': 13443759, '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_P25533798_31-07-2025_10_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25533844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25533845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25533846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25533847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25533848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25533849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25533850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25533851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25533852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25533853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25533854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25533855, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25534450, 'dashboard_result_id': 13443760, '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_P25534450_31-07-2025_10_32_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25534463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25534464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25534465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25534466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25534467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25534468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25534469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25534470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25534471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25534472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25534473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25534474, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25534879, 'dashboard_result_id': 13443761, '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_P25534879_31-07-2025_10_46_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25534884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25534885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25534886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25534887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25534888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25534889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25534890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25534891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25534892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25534893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25534894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25534895, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25535278, 'dashboard_result_id': 13443762, '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_P25535278_31-07-2025_11_04_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25535289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25535290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25535291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25535292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25535293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25535294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25535295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25535296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25535297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25535298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25535299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25535300, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25535847, 'dashboard_result_id': 13443763, '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_P25535847_31-07-2025_11_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25535860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25535861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25535862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25535863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25535864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25535865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25535866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25535867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25535868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25535869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25535870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25535871, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25536476, 'dashboard_result_id': 13443764, '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_P25536476_31-07-2025_11_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25536500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25536501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25536502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25536503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25536504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25536505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25536506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25536507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25536508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25536509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25536510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25536511, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25537126, 'dashboard_result_id': 13443765, '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_P25537126_31-07-2025_11_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25537136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25537137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25537138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25537139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25537140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25537141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25537142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25537143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25537144, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25537145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25537146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25537147, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25537694, 'dashboard_result_id': 13443766, '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_P25537694_31-07-2025_12_02_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25537722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25537723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25537724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25537725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25537726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25537727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25537728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25537729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25537730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25537731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25537732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25537733, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25538360, 'dashboard_result_id': 13443767, '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_P25538360_31-07-2025_12_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25538377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25538378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25538379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25538380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25538381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25538382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25538383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25538384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25538385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25538386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25538387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25538388, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25538914, 'dashboard_result_id': 13443769, '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_P25538914_31-07-2025_12_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25538937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25538938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25538939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25538940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25538941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25538942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25538943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25538944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25538945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25538946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25538947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25538948, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25539526, 'dashboard_result_id': 13443770, '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_P25539526_31-07-2025_12_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25539560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25539561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25539562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25539563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25539564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25539565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25539566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25539567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25539568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25539569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25539570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25539571, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25540059, 'dashboard_result_id': 13443771, '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_P25540059_31-07-2025_13_28_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25540073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25540074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25540075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25540076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25540078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25540079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25540080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25540081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25540082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25540083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25540084, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25540490, 'dashboard_result_id': 13443772, '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_P25540490_31-07-2025_13_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25540529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25540530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25540531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25540532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25540533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25540534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25540535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25540536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25540537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25540539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25540540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25540541, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25541148, 'dashboard_result_id': 13443774, '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_P25541148_31-07-2025_13_30_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25541164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25541165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25541166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25541167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25541168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25541169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25541170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25541171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25541172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25541173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25541174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25541175, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25541698, 'dashboard_result_id': 13443775, '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_P25541698_31-07-2025_13_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25541714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25541715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25541716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25541717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25541718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25541719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25541720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25541721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25541722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25541723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25541724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25541725, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25542402, 'dashboard_result_id': 13443776, '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_P25542402_31-07-2025_14_00_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25542446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25542447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25542448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25542449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25542450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25542451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25542452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25542453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25542454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25542455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25542456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25542457, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25542966, 'dashboard_result_id': 13443777, '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_P25542966_31-07-2025_14_16_56.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25543000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25543001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25543002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25543003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25543004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25543005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25543006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25543007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25543008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25543009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25543010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25543011, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25543819, 'dashboard_result_id': 13443779, '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_P25543819_31-07-2025_14_33_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25543838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25543839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25543840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25543841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25543842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25543843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25543844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25543845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25543846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25543847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25543848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25543849, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25544523, 'dashboard_result_id': 13443780, '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_P25544523_31-07-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25544542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25544543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25544544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25544545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25544546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25544547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25544548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25544549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25544550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25544551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25544552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25544553, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25545130, 'dashboard_result_id': 13443781, '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_P25545130_31-07-2025_15_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25545164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25545166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25545167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25545168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25545169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25545170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25545171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25545172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25545173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25545174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25545175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25545176, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25545698, 'dashboard_result_id': 13443782, '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_P25545698_31-07-2025_15_17_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25545732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25545733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25545734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25545735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25545736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25545737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25545738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25545739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25545740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25545741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25545742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25545743, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25546404, 'dashboard_result_id': 13443783, '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_P25546404_31-07-2025_15_32_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25546419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25546420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25546421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25546422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25546423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25546424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25546425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25546426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25546427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25546428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25546429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25546430, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25547085, 'dashboard_result_id': 13443785, '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_P25547085_31-07-2025_16_28_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25547094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25547095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25547096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25547097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25547098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25547099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25547100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25547101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25547102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25547103, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25547104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25547105, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25547583, 'dashboard_result_id': 13443786, '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_P25547583_31-07-2025_16_27_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25547603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25547604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25547605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25547606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25547607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25547608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25547609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25547610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25547611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25547612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25547613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25547614, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25548087, 'dashboard_result_id': 13443787, '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_P25548087_31-07-2025_16_25_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25548098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25548099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25548100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25548101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25548102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25548103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25548104, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25548105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25548106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25548107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25548108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25548109, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25548742, 'dashboard_result_id': 13443788, '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_P25548742_31-07-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25548776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25548777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25548778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25548779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25548780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25548781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25548782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25548783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25548784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25548785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25548786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25548787, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25549357, 'dashboard_result_id': 13443789, '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_P25549357_31-07-2025_16_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25549408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25549409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25549410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25549411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25549412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25549413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25549414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25549415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25549416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25549418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25549419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25549420, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25550046, 'dashboard_result_id': 13443790, '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_P25550046_31-07-2025_17_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25550072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25550073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25550074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25550075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25550076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25550077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25550078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25550079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25550080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25550081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25550082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25550084, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25550578, 'dashboard_result_id': 13443791, '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_P25550578_31-07-2025_17_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25550622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25550623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25550624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25550625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25550626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25550627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25550628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25550629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25550630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25550631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25550632, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25550633, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25551369, 'dashboard_result_id': 13443792, '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_P25551369_31-07-2025_17_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25551395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25551396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25551397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25551398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25551399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25551400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25551401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25551402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25551403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25551404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25551405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25551406, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25556046, 'dashboard_result_id': 13443793, '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_P25556046_31-07-2025_19_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25556068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25556069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25556070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25556071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25556072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25556073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25556074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25556075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25556076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25556077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25556078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25556079, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25556589, 'dashboard_result_id': 13443794, '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_P25556589_31-07-2025_19_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25556607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25556608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25556609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25556610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25556612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25556613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25556614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25556615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25556616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25556617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25556618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25556619, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25557240, 'dashboard_result_id': 13443795, '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_P25557240_31-07-2025_20_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25557268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25557269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25557270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25557271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25557272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25557273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25557274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25557275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25557276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25557277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25557278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25557279, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2048090, 'mtr_portfolio_id': 25557800, 'dashboard_result_id': 13443796, '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_P25557800_31-07-2025_20_12_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25557816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25557817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25557818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25557819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25557820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25557821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25557822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25557823, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25557824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25557825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25557826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25557827, '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 = 25516129 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': 3405101, 'mtr_portfolio_id': 25516129, 'created_at': datetime.datetime(2025, 7, 31, 18, 26), 'result': '0.12193713324231807', 'result_long': None, 'result_double': None}] Qualite : 0.12193713324231807 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_31-07-2025_18_26_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516129 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_P25516129_31-07-2025_18_26_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, 'pht': 3726}}" where mtr_portfolio_id = 25516129 and dashboard_run_id = 2048090 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`=25516129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443719, 0.12193713324231807, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_31-07-2025_18_26_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, '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 = 25516552 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': 3405102, 'mtr_portfolio_id': 25516552, 'created_at': datetime.datetime(2025, 7, 31, 18, 25, 30), 'result': '0.044902742839134924', 'result_long': None, 'result_double': None}] Qualite : 0.044902742839134924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_31-07-2025_18_25_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516552 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_P25516552_31-07-2025_18_25_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, 'pht': 3726}}" where mtr_portfolio_id = 25516552 and dashboard_run_id = 2048090 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`=25516552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443720, 0.044902742839134924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_31-07-2025_18_25_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, '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 = 25516863 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': 3405103, 'mtr_portfolio_id': 25516863, 'created_at': datetime.datetime(2025, 7, 31, 18, 25), 'result': '0.031975913392453724', 'result_long': None, 'result_double': None}] Qualite : 0.031975913392453724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516863_31-07-2025_18_25_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516863 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_P25516863_31-07-2025_18_25_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516879, 'pht': 3726}}" where mtr_portfolio_id = 25516863 and dashboard_run_id = 2048090 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`=25516863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443721, 0.031975913392453724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516863_31-07-2025_18_25_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516879, '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 = 25517204 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': 3405104, 'mtr_portfolio_id': 25517204, 'created_at': datetime.datetime(2025, 7, 31, 18, 23, 58), 'result': '0.06841272376470589', 'result_long': None, 'result_double': None}] Qualite : 0.06841272376470589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25517204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517204_31-07-2025_18_23_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25517204 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_P25517204_31-07-2025_18_23_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517216, 'pht': 3726}}" where mtr_portfolio_id = 25517204 and dashboard_run_id = 2048090 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`=25517204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443722, 0.06841272376470589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517204_31-07-2025_18_23_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517216, '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 = 25517620 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': 3405105, 'mtr_portfolio_id': 25517620, 'created_at': datetime.datetime(2025, 7, 31, 6, 31, 31), 'result': '0.11231447484602866', 'result_long': None, 'result_double': None}] Qualite : 0.11231447484602866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25517620 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517620_31-07-2025_06_31_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25517620 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_P25517620_31-07-2025_06_31_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517637, 'pht': 3726}}" where mtr_portfolio_id = 25517620 and dashboard_run_id = 2048090 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`=25517620 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443723, 0.11231447484602866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517620_31-07-2025_06_31_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517637, '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 = 25518153 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': 3405106, 'mtr_portfolio_id': 25518153, 'created_at': datetime.datetime(2025, 7, 31, 6, 31, 58), 'result': '0.10034210143151306', 'result_long': None, 'result_double': None}] Qualite : 0.10034210143151306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25518153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518153_31-07-2025_06_32_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25518153 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_P25518153_31-07-2025_06_32_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518168, 'pht': 3726}}" where mtr_portfolio_id = 25518153 and dashboard_run_id = 2048090 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`=25518153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443724, 0.10034210143151306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518153_31-07-2025_06_32_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518168, '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 = 25518649 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': 3405107, 'mtr_portfolio_id': 25518649, 'created_at': datetime.datetime(2025, 7, 31, 18, 21, 58), 'result': '0.02191558326807052', 'result_long': None, 'result_double': None}] Qualite : 0.02191558326807052 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25518649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518649_31-07-2025_18_21_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25518649 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_P25518649_31-07-2025_18_21_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518671, 'pht': 3726}}" where mtr_portfolio_id = 25518649 and dashboard_run_id = 2048090 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`=25518649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443725, 0.02191558326807052, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518649_31-07-2025_18_21_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518671, '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 = 25519140 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': 3405108, 'mtr_portfolio_id': 25519140, 'created_at': datetime.datetime(2025, 7, 31, 18, 22, 27), 'result': '0.07508893614699616', 'result_long': None, 'result_double': None}] Qualite : 0.07508893614699616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25519140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519140_31-07-2025_18_22_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25519140 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_P25519140_31-07-2025_18_22_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25519141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519152, 'pht': 3726}}" where mtr_portfolio_id = 25519140 and dashboard_run_id = 2048090 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`=25519140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443726, 0.07508893614699616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519140_31-07-2025_18_22_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25519141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519152, '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 = 25519626 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': 3405109, 'mtr_portfolio_id': 25519626, 'created_at': datetime.datetime(2025, 7, 31, 18, 23, 27), 'result': '0.15042824762476398', 'result_long': None, 'result_double': None}] Qualite : 0.15042824762476398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25519626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519626_31-07-2025_18_23_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25519626 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_P25519626_31-07-2025_18_23_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25519630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519640, 'pht': 3726}}" where mtr_portfolio_id = 25519626 and dashboard_run_id = 2048090 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`=25519626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443727, 0.15042824762476398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519626_31-07-2025_18_23_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25519630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519640, '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 = 25520305 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': 3405110, 'mtr_portfolio_id': 25520305, 'created_at': datetime.datetime(2025, 7, 31, 6, 34, 27), 'result': '0.050418820624836574', 'result_long': None, 'result_double': None}] Qualite : 0.050418820624836574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25520305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520305_31-07-2025_06_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25520305 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_P25520305_31-07-2025_06_34_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520320, 'pht': 3726}}" where mtr_portfolio_id = 25520305 and dashboard_run_id = 2048090 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`=25520305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443728, 0.050418820624836574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520305_31-07-2025_06_34_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520320, '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 = 25520841 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': 3405111, 'mtr_portfolio_id': 25520841, 'created_at': datetime.datetime(2025, 7, 31, 6, 35, 29), 'result': '0.05847893604401684', 'result_long': None, 'result_double': None}] Qualite : 0.05847893604401684 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25520841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520841_31-07-2025_06_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25520841 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_P25520841_31-07-2025_06_35_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520856, 'pht': 3726}}" where mtr_portfolio_id = 25520841 and dashboard_run_id = 2048090 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`=25520841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443729, 0.05847893604401684, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520841_31-07-2025_06_35_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520856, '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 = 25521307 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': 3405112, 'mtr_portfolio_id': 25521307, 'created_at': datetime.datetime(2025, 7, 31, 18, 21, 28), 'result': '0.07904000005299237', 'result_long': None, 'result_double': None}] Qualite : 0.07904000005299237 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25521307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521307_31-07-2025_18_21_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25521307 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_P25521307_31-07-2025_18_21_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25521311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521322, 'pht': 3726}}" where mtr_portfolio_id = 25521307 and dashboard_run_id = 2048090 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`=25521307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443730, 0.07904000005299237, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521307_31-07-2025_18_21_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25521311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521322, '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 = 25521737 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': 3405113, 'mtr_portfolio_id': 25521737, 'created_at': datetime.datetime(2025, 7, 31, 18, 20, 57), 'result': '0.014298299204653692', 'result_long': None, 'result_double': None}] Qualite : 0.014298299204653692 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25521737 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521737_31-07-2025_18_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25521737 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_P25521737_31-07-2025_18_20_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25521755, 'pht': 3726}}" where mtr_portfolio_id = 25521737 and dashboard_run_id = 2048090 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`=25521737 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443731, 0.014298299204653692, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521737_31-07-2025_18_20_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25521755, '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 = 25522256 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': 3405114, 'mtr_portfolio_id': 25522256, 'created_at': datetime.datetime(2025, 7, 31, 18, 20, 29), 'result': '0.03337019429160185', 'result_long': None, 'result_double': None}] Qualite : 0.03337019429160185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25522256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522256_31-07-2025_18_20_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25522256 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_P25522256_31-07-2025_18_20_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25522283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522292, 'pht': 3726}}" where mtr_portfolio_id = 25522256 and dashboard_run_id = 2048090 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`=25522256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443732, 0.03337019429160185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522256_31-07-2025_18_20_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25522283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522292, '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 = 25522735 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': 3405115, 'mtr_portfolio_id': 25522735, 'created_at': datetime.datetime(2025, 7, 31, 18, 19, 59), 'result': '0.015714648701642922', 'result_long': None, 'result_double': None}] Qualite : 0.015714648701642922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25522735 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522735_31-07-2025_18_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25522735 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_P25522735_31-07-2025_18_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25522739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522750, 'pht': 3726}}" where mtr_portfolio_id = 25522735 and dashboard_run_id = 2048090 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`=25522735 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443733, 0.015714648701642922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522735_31-07-2025_18_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25522739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522750, '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 = 25523075 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': 3405116, 'mtr_portfolio_id': 25523075, 'created_at': datetime.datetime(2025, 7, 31, 18, 17, 27), 'result': '0.04700905056536481', 'result_long': None, 'result_double': None}] Qualite : 0.04700905056536481 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25523075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523075_31-07-2025_18_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25523075 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_P25523075_31-07-2025_18_17_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25523076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523087, 'pht': 3726}}" where mtr_portfolio_id = 25523075 and dashboard_run_id = 2048090 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`=25523075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443734, 0.04700905056536481, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523075_31-07-2025_18_17_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25523076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523087, '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 = 25523385 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': 3405117, 'mtr_portfolio_id': 25523385, 'created_at': datetime.datetime(2025, 7, 31, 18, 17, 59), 'result': '0.08436949260554179', 'result_long': None, 'result_double': None}] Qualite : 0.08436949260554179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25523385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523385_31-07-2025_18_17_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25523385 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_P25523385_31-07-2025_18_17_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523399, 'pht': 3726}}" where mtr_portfolio_id = 25523385 and dashboard_run_id = 2048090 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`=25523385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443735, 0.08436949260554179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523385_31-07-2025_18_17_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523399, '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 = 25523818 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': 3405118, 'mtr_portfolio_id': 25523818, 'created_at': datetime.datetime(2025, 7, 31, 18, 18, 27), 'result': '0.07638470951750931', 'result_long': None, 'result_double': None}] Qualite : 0.07638470951750931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25523818 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523818_31-07-2025_18_18_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25523818 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_P25523818_31-07-2025_18_18_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523833, 'pht': 3726}}" where mtr_portfolio_id = 25523818 and dashboard_run_id = 2048090 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`=25523818 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443736, 0.07638470951750931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523818_31-07-2025_18_18_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523833, '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 = 25524141 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': 3405119, 'mtr_portfolio_id': 25524141, 'created_at': datetime.datetime(2025, 7, 31, 18, 19, 30), 'result': '0.015101512533748229', 'result_long': None, 'result_double': None}] Qualite : 0.015101512533748229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25524141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524141_31-07-2025_18_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25524141 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_P25524141_31-07-2025_18_19_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524154, 'pht': 3726}}" where mtr_portfolio_id = 25524141 and dashboard_run_id = 2048090 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`=25524141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443737, 0.015101512533748229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524141_31-07-2025_18_19_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524154, '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 = 25524518 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': 3405120, 'mtr_portfolio_id': 25524518, 'created_at': datetime.datetime(2025, 7, 31, 6, 41, 29), 'result': '0.0032177157832730076', 'result_long': None, 'result_double': None}] Qualite : 0.0032177157832730076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25524518 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524518_31-07-2025_06_41_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25524518 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_P25524518_31-07-2025_06_41_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524530, 'pht': 3726}}" where mtr_portfolio_id = 25524518 and dashboard_run_id = 2048090 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`=25524518 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443738, 0.0032177157832730076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524518_31-07-2025_06_41_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524530, '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 = 25524912 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': 3405121, 'mtr_portfolio_id': 25524912, 'created_at': datetime.datetime(2025, 7, 31, 18, 16, 28), 'result': '0.03704469321256852', 'result_long': None, 'result_double': None}] Qualite : 0.03704469321256852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25524912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524912_31-07-2025_18_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25524912 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_P25524912_31-07-2025_18_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25524917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524928, 'pht': 3726}}" where mtr_portfolio_id = 25524912 and dashboard_run_id = 2048090 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`=25524912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443739, 0.03704469321256852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524912_31-07-2025_18_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25524917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524928, '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 = 25525411 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': 3405122, 'mtr_portfolio_id': 25525411, 'created_at': datetime.datetime(2025, 7, 31, 18, 15, 59), 'result': '0.04333010024824825', 'result_long': None, 'result_double': None}] Qualite : 0.04333010024824825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25525411 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525411_31-07-2025_18_16_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25525411 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_P25525411_31-07-2025_18_16_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525427, 'pht': 3726}}" where mtr_portfolio_id = 25525411 and dashboard_run_id = 2048090 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`=25525411 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443740, 0.04333010024824825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525411_31-07-2025_18_16_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525427, '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 = 25525840 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': 3405001, 'mtr_portfolio_id': 25525840, 'created_at': datetime.datetime(2025, 7, 31, 18, 15), 'result': '0.04023532494465143', 'result_long': None, 'result_double': None}] Qualite : 0.04023532494465143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25525840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525840_31-07-2025_18_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25525840 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_P25525840_31-07-2025_18_15_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525855, 'pht': 3726}}" where mtr_portfolio_id = 25525840 and dashboard_run_id = 2048090 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`=25525840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443741, 0.04023532494465143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525840_31-07-2025_18_15_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525855, '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 = 25526254 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': 3405220, 'mtr_portfolio_id': 25526254, 'created_at': datetime.datetime(2025, 7, 31, 18, 15, 30), 'result': '0.03576036131693111', 'result_long': None, 'result_double': None}] Qualite : 0.03576036131693111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25526254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526254_31-07-2025_18_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25526254 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_P25526254_31-07-2025_18_15_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25526258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526269, 'pht': 3726}}" where mtr_portfolio_id = 25526254 and dashboard_run_id = 2048090 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`=25526254 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443742, 0.03576036131693111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526254_31-07-2025_18_15_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25526258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526269, '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 = 25526644 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 = 25526644 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 = 25526644 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25526644 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 = 25526644 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': 3405340, 'mtr_portfolio_id': 25526644, 'created_at': datetime.datetime(2025, 7, 31, 6, 16, 59), '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 = 25526644 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526644_31-07-2025_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25526644 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_P25526644_31-07-2025_06_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25526687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526688, 'pht': 3726}}" where mtr_portfolio_id = 25526644 and dashboard_run_id = 2048090 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`=25526644 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443743, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526644_31-07-2025_06_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25526687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526688, '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 = 25527147 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': 3405454, 'mtr_portfolio_id': 25527147, 'created_at': datetime.datetime(2025, 7, 31, 6, 30, 28), 'result': '0.0094188091957387', 'result_long': None, 'result_double': None}] Qualite : 0.0094188091957387 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25527147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527147_31-07-2025_06_30_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25527147 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_P25527147_31-07-2025_06_30_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25527152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527166, 'pht': 3726}}" where mtr_portfolio_id = 25527147 and dashboard_run_id = 2048090 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`=25527147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443744, 0.0094188091957387, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527147_31-07-2025_06_30_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25527152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527166, '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 = 25527500 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': 3405525, 'mtr_portfolio_id': 25527500, 'created_at': datetime.datetime(2025, 7, 31, 18, 13, 59), 'result': '0.04430495137837473', 'result_long': None, 'result_double': None}] Qualite : 0.04430495137837473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25527500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527500_31-07-2025_18_14_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25527500 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_P25527500_31-07-2025_18_14_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25527501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527514, 'pht': 3726}}" where mtr_portfolio_id = 25527500 and dashboard_run_id = 2048090 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`=25527500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443745, 0.04430495137837473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527500_31-07-2025_18_14_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25527501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527514, '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 = 25527878 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': 3405600, 'mtr_portfolio_id': 25527878, 'created_at': datetime.datetime(2025, 7, 31, 18, 13, 30), 'result': '0.03931404388397799', 'result_long': None, 'result_double': None}] Qualite : 0.03931404388397799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25527878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527878_31-07-2025_18_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25527878 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_P25527878_31-07-2025_18_13_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527906, 'pht': 3726}}" where mtr_portfolio_id = 25527878 and dashboard_run_id = 2048090 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`=25527878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443746, 0.03931404388397799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527878_31-07-2025_18_13_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527906, '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 = 25528260 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': 3405706, 'mtr_portfolio_id': 25528260, 'created_at': datetime.datetime(2025, 7, 31, 18, 12, 28), 'result': '0.0325475361356329', 'result_long': None, 'result_double': None}] Qualite : 0.0325475361356329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25528260 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528260_31-07-2025_18_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25528260 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_P25528260_31-07-2025_18_12_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25528288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528299, 'pht': 3726}}" where mtr_portfolio_id = 25528260 and dashboard_run_id = 2048090 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`=25528260 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443747, 0.0325475361356329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528260_31-07-2025_18_12_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25528288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528299, '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 = 25528614 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': 3405795, 'mtr_portfolio_id': 25528614, 'created_at': datetime.datetime(2025, 7, 31, 18, 11, 59), 'result': '0.04558794043176451', 'result_long': None, 'result_double': None}] Qualite : 0.04558794043176451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25528614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_31-07-2025_18_12_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25528614 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_P25528614_31-07-2025_18_12_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25528662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528664, 'pht': 3726}}" where mtr_portfolio_id = 25528614 and dashboard_run_id = 2048090 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`=25528614 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443748, 0.04558794043176451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_31-07-2025_18_12_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25528662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528664, '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 = 25529145 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': 3405971, 'mtr_portfolio_id': 25529145, 'created_at': datetime.datetime(2025, 7, 31, 18, 8, 30), 'result': '0.03984031662063642', 'result_long': None, 'result_double': None}] Qualite : 0.03984031662063642 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25529145 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529145_31-07-2025_18_08_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25529145 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_P25529145_31-07-2025_18_08_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529161, 'pht': 3726}}" where mtr_portfolio_id = 25529145 and dashboard_run_id = 2048090 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`=25529145 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443749, 0.03984031662063642, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529145_31-07-2025_18_08_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529161, '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 = 25529519 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': 3406077, 'mtr_portfolio_id': 25529519, 'created_at': datetime.datetime(2025, 7, 31, 18, 9, 30), 'result': '0.03513711746257536', 'result_long': None, 'result_double': None}] Qualite : 0.03513711746257536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25529519 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529519_31-07-2025_18_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25529519 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_P25529519_31-07-2025_18_09_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529565, 'pht': 3726}}" where mtr_portfolio_id = 25529519 and dashboard_run_id = 2048090 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`=25529519 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443750, 0.03513711746257536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529519_31-07-2025_18_09_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529565, '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 = 25529875 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': 3406195, 'mtr_portfolio_id': 25529875, 'created_at': datetime.datetime(2025, 7, 31, 18, 9, 59), 'result': '0.06969588465041301', 'result_long': None, 'result_double': None}] Qualite : 0.06969588465041301 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25529875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529875_31-07-2025_18_09_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25529875 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_P25529875_31-07-2025_18_09_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529921, 'pht': 3726}}" where mtr_portfolio_id = 25529875 and dashboard_run_id = 2048090 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`=25529875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443751, 0.06969588465041301, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529875_31-07-2025_18_09_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529921, '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 = 25530428 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': 3406349, 'mtr_portfolio_id': 25530428, 'created_at': datetime.datetime(2025, 7, 31, 18, 10, 31), 'result': '0.041563565406576006', 'result_long': None, 'result_double': None}] Qualite : 0.041563565406576006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25530428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25530428_31-07-2025_18_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25530428 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_P25530428_31-07-2025_18_10_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25530433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25530434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25530435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25530436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25530437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25530438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25530439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25530440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25530441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25530442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25530443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25530444, 'pht': 3726}}" where mtr_portfolio_id = 25530428 and dashboard_run_id = 2048090 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`=25530428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443752, 0.041563565406576006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25530428_31-07-2025_18_10_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25530433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25530434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25530435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25530436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25530437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25530438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25530439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25530440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25530441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25530442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25530443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25530444, '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 = 25530844 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': 3406477, 'mtr_portfolio_id': 25530844, 'created_at': datetime.datetime(2025, 7, 31, 18, 11, 28), 'result': '0.06038550539900049', 'result_long': None, 'result_double': None}] Qualite : 0.06038550539900049 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25530844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25530844_31-07-2025_18_11_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25530844 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_P25530844_31-07-2025_18_11_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25530875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25530876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25530877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25530878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25530879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25530880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25530881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25530882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25530883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25530884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25530885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25530886, 'pht': 3726}}" where mtr_portfolio_id = 25530844 and dashboard_run_id = 2048090 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`=25530844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443753, 0.06038550539900049, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25530844_31-07-2025_18_11_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25530875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25530876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25530877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25530878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25530879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25530880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25530881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25530882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25530883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25530884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25530885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25530886, '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 = 25531293 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': 3406627, 'mtr_portfolio_id': 25531293, 'created_at': datetime.datetime(2025, 7, 31, 18, 7, 58), 'result': '0.0208918427763168', 'result_long': None, 'result_double': None}] Qualite : 0.0208918427763168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25531293 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25531293_31-07-2025_18_07_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25531293 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_P25531293_31-07-2025_18_07_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25531295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25531296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25531297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25531298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25531299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25531300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25531301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25531302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25531303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25531304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25531305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25531306, 'pht': 3726}}" where mtr_portfolio_id = 25531293 and dashboard_run_id = 2048090 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`=25531293 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443754, 0.0208918427763168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25531293_31-07-2025_18_07_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25531295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25531296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25531297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25531298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25531299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25531300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25531301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25531302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25531303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25531304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25531305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25531306, '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 = 25531730 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': 3406751, 'mtr_portfolio_id': 25531730, 'created_at': datetime.datetime(2025, 7, 31, 9, 16, 59), 'result': '0.008920078549840858', 'result_long': None, 'result_double': None}] Qualite : 0.008920078549840858 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25531730 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25531730_31-07-2025_09_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25531730 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_P25531730_31-07-2025_09_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25531735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25531736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25531737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25531738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25531739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25531740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25531741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25531742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25531743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25531744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25531745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25531746, 'pht': 3726}}" where mtr_portfolio_id = 25531730 and dashboard_run_id = 2048090 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`=25531730 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443755, 0.008920078549840858, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25531730_31-07-2025_09_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25531735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25531736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25531737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25531738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25531739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25531740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25531741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25531742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25531743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25531744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25531745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25531746, '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 = 25532281 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': 3406884, 'mtr_portfolio_id': 25532281, 'created_at': datetime.datetime(2025, 7, 31, 9, 32, 57), 'result': '0.008485529221617018', 'result_long': None, 'result_double': None}] Qualite : 0.008485529221617018 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25532281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25532281_31-07-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25532281 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_P25532281_31-07-2025_09_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25532292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25532293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25532294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25532295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25532296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25532297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25532298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25532299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25532300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25532301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25532302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25532303, 'pht': 3726}}" where mtr_portfolio_id = 25532281 and dashboard_run_id = 2048090 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`=25532281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443756, 0.008485529221617018, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25532281_31-07-2025_09_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25532292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25532293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25532294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25532295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25532296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25532297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25532298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25532299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25532300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25532301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25532302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25532303, '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 = 25532744 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': 3407113, 'mtr_portfolio_id': 25532744, 'created_at': datetime.datetime(2025, 7, 31, 18, 0), 'result': '0.03758670610379819', 'result_long': None, 'result_double': None}] Qualite : 0.03758670610379819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25532744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25532744_31-07-2025_18_00_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25532744 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_P25532744_31-07-2025_18_00_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25532761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25532762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25532763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25532764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25532765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25532766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25532767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25532768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25532769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25532770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25532771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25532772, 'pht': 3726}}" where mtr_portfolio_id = 25532744 and dashboard_run_id = 2048090 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`=25532744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443757, 0.03758670610379819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25532744_31-07-2025_18_00_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25532761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25532762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25532763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25532764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25532765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25532766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25532767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25532768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25532769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25532770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25532771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25532772, '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 = 25533327 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': 3407354, 'mtr_portfolio_id': 25533327, 'created_at': datetime.datetime(2025, 7, 31, 18, 7, 28), 'result': '0.030824034978283926', 'result_long': None, 'result_double': None}] Qualite : 0.030824034978283926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25533327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25533327_31-07-2025_18_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25533327 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_P25533327_31-07-2025_18_07_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25533347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25533348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25533349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25533350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25533351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25533352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25533353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25533354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25533355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25533356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25533357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25533358, 'pht': 3726}}" where mtr_portfolio_id = 25533327 and dashboard_run_id = 2048090 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`=25533327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443758, 0.030824034978283926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25533327_31-07-2025_18_07_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25533347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25533348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25533349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25533350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25533351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25533352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25533353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25533354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25533355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25533356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25533357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25533358, '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 = 25533798 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': 3407611, 'mtr_portfolio_id': 25533798, 'created_at': datetime.datetime(2025, 7, 31, 10, 16, 59), 'result': '0.03438661948584333', 'result_long': None, 'result_double': None}] Qualite : 0.03438661948584333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25533798 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25533798_31-07-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25533798 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_P25533798_31-07-2025_10_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25533844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25533845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25533846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25533847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25533848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25533849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25533850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25533851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25533852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25533853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25533854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25533855, 'pht': 3726}}" where mtr_portfolio_id = 25533798 and dashboard_run_id = 2048090 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`=25533798 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443759, 0.03438661948584333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25533798_31-07-2025_10_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25533844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25533845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25533846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25533847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25533848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25533849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25533850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25533851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25533852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25533853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25533854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25533855, '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 = 25534450 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': 3407811, 'mtr_portfolio_id': 25534450, 'created_at': datetime.datetime(2025, 7, 31, 10, 32, 28), 'result': '0.023647956259687495', 'result_long': None, 'result_double': None}] Qualite : 0.023647956259687495 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25534450 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25534450_31-07-2025_10_32_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25534450 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_P25534450_31-07-2025_10_32_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25534463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25534464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25534465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25534466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25534467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25534468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25534469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25534470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25534471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25534472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25534473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25534474, 'pht': 3726}}" where mtr_portfolio_id = 25534450 and dashboard_run_id = 2048090 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`=25534450 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443760, 0.023647956259687495, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25534450_31-07-2025_10_32_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25534463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25534464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25534465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25534466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25534467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25534468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25534469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25534470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25534471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25534472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25534473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25534474, '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 = 25534879 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': 3408013, 'mtr_portfolio_id': 25534879, 'created_at': datetime.datetime(2025, 7, 31, 10, 46, 56), 'result': '0.01709050616761384', 'result_long': None, 'result_double': None}] Qualite : 0.01709050616761384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25534879 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25534879_31-07-2025_10_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25534879 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_P25534879_31-07-2025_10_46_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25534884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25534885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25534886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25534887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25534888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25534889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25534890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25534891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25534892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25534893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25534894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25534895, 'pht': 3726}}" where mtr_portfolio_id = 25534879 and dashboard_run_id = 2048090 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`=25534879 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443761, 0.01709050616761384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25534879_31-07-2025_10_46_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25534884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25534885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25534886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25534887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25534888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25534889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25534890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25534891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25534892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25534893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25534894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25534895, '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 = 25535278 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': 3408103, 'mtr_portfolio_id': 25535278, 'created_at': datetime.datetime(2025, 7, 31, 11, 4, 58), 'result': '0.0478228366416812', 'result_long': None, 'result_double': None}] Qualite : 0.0478228366416812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25535278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25535278_31-07-2025_11_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25535278 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_P25535278_31-07-2025_11_04_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25535289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25535290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25535291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25535292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25535293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25535294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25535295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25535296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25535297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25535298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25535299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25535300, 'pht': 3726}}" where mtr_portfolio_id = 25535278 and dashboard_run_id = 2048090 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`=25535278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443762, 0.0478228366416812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25535278_31-07-2025_11_04_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25535289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25535290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25535291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25535292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25535293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25535294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25535295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25535296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25535297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25535298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25535299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25535300, '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 = 25535847 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': 3408201, 'mtr_portfolio_id': 25535847, 'created_at': datetime.datetime(2025, 7, 31, 11, 16, 58), 'result': '0.03458770876734907', 'result_long': None, 'result_double': None}] Qualite : 0.03458770876734907 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25535847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25535847_31-07-2025_11_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25535847 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_P25535847_31-07-2025_11_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25535860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25535861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25535862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25535863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25535864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25535865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25535866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25535867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25535868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25535869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25535870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25535871, 'pht': 3726}}" where mtr_portfolio_id = 25535847 and dashboard_run_id = 2048090 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`=25535847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443763, 0.03458770876734907, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25535847_31-07-2025_11_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25535860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25535861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25535862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25535863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25535864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25535865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25535866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25535867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25535868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25535869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25535870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25535871, '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 = 25536476 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': 3408350, 'mtr_portfolio_id': 25536476, 'created_at': datetime.datetime(2025, 7, 31, 11, 32, 59), 'result': '0.017935229016427377', 'result_long': None, 'result_double': None}] Qualite : 0.017935229016427377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25536476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25536476_31-07-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25536476 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_P25536476_31-07-2025_11_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25536500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25536501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25536502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25536503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25536504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25536505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25536506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25536507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25536508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25536509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25536510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25536511, 'pht': 3726}}" where mtr_portfolio_id = 25536476 and dashboard_run_id = 2048090 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`=25536476 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443764, 0.017935229016427377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25536476_31-07-2025_11_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25536500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25536501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25536502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25536503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25536504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25536505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25536506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25536507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25536508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25536509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25536510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25536511, '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 = 25537126 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': 3408577, 'mtr_portfolio_id': 25537126, 'created_at': datetime.datetime(2025, 7, 31, 11, 46, 59), 'result': '0.03393116796768002', 'result_long': None, 'result_double': None}] Qualite : 0.03393116796768002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25537126 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25537126_31-07-2025_11_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25537126 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_P25537126_31-07-2025_11_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25537136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25537137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25537138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25537139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25537140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25537141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25537142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25537143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25537144, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25537145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25537146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25537147, 'pht': 3726}}" where mtr_portfolio_id = 25537126 and dashboard_run_id = 2048090 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`=25537126 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443765, 0.03393116796768002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25537126_31-07-2025_11_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25537136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25537137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25537138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25537139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25537140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25537141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25537142, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25537143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25537144, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25537145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25537146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25537147, '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 = 25537694 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': 3408753, 'mtr_portfolio_id': 25537694, 'created_at': datetime.datetime(2025, 7, 31, 12, 2, 29), 'result': '0.02797514074672598', 'result_long': None, 'result_double': None}] Qualite : 0.02797514074672598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25537694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25537694_31-07-2025_12_02_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25537694 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_P25537694_31-07-2025_12_02_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25537722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25537723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25537724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25537725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25537726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25537727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25537728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25537729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25537730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25537731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25537732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25537733, 'pht': 3726}}" where mtr_portfolio_id = 25537694 and dashboard_run_id = 2048090 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`=25537694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443766, 0.02797514074672598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25537694_31-07-2025_12_02_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25537722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25537723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25537724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25537725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25537726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25537727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25537728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25537729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25537730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25537731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25537732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25537733, '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 = 25538360 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': 3409014, 'mtr_portfolio_id': 25538360, 'created_at': datetime.datetime(2025, 7, 31, 18, 4, 30), 'result': '0.04239446476108106', 'result_long': None, 'result_double': None}] Qualite : 0.04239446476108106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25538360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25538360_31-07-2025_18_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25538360 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_P25538360_31-07-2025_18_04_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25538377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25538378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25538379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25538380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25538381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25538382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25538383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25538384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25538385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25538386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25538387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25538388, 'pht': 3726}}" where mtr_portfolio_id = 25538360 and dashboard_run_id = 2048090 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`=25538360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443767, 0.04239446476108106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25538360_31-07-2025_18_04_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25538377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25538378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25538379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25538380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25538381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25538382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25538383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25538384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25538385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25538386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25538387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25538388, '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 = 25538914 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': 3409213, 'mtr_portfolio_id': 25538914, 'created_at': datetime.datetime(2025, 7, 31, 18, 6), 'result': '0.05457951694160916', 'result_long': None, 'result_double': None}] Qualite : 0.05457951694160916 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25538914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25538914_31-07-2025_18_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25538914 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_P25538914_31-07-2025_18_06_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25538937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25538938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25538939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25538940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25538941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25538942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25538943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25538944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25538945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25538946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25538947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25538948, 'pht': 3726}}" where mtr_portfolio_id = 25538914 and dashboard_run_id = 2048090 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`=25538914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443769, 0.05457951694160916, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25538914_31-07-2025_18_06_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25538937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25538938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25538939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25538940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25538941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25538942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25538943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25538944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25538945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25538946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25538947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25538948, '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 = 25539526 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': 3409421, 'mtr_portfolio_id': 25539526, 'created_at': datetime.datetime(2025, 7, 31, 18, 6, 28), 'result': '0.03875743385090153', 'result_long': None, 'result_double': None}] Qualite : 0.03875743385090153 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25539526 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25539526_31-07-2025_18_06_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25539526 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_P25539526_31-07-2025_18_06_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25539560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25539561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25539562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25539563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25539564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25539565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25539566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25539567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25539568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25539569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25539570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25539571, 'pht': 3726}}" where mtr_portfolio_id = 25539526 and dashboard_run_id = 2048090 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`=25539526 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443770, 0.03875743385090153, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25539526_31-07-2025_18_06_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25539560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25539561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25539562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25539563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25539564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25539565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25539566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25539567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25539568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25539569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25539570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25539571, '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 = 25540059 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': 3409643, 'mtr_portfolio_id': 25540059, 'created_at': datetime.datetime(2025, 7, 31, 18, 3, 59), 'result': '0.06302732127758968', 'result_long': None, 'result_double': None}] Qualite : 0.06302732127758968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25540059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25540059_31-07-2025_18_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25540059 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_P25540059_31-07-2025_18_04_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25540073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25540074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25540075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25540076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25540078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25540079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25540080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25540081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25540082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25540083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25540084, 'pht': 3726}}" where mtr_portfolio_id = 25540059 and dashboard_run_id = 2048090 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`=25540059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443771, 0.06302732127758968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25540059_31-07-2025_18_04_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25540073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25540074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25540075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25540076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25540078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25540079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25540080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25540081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25540082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25540083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25540084, '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 = 25540490 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': 3409848, 'mtr_portfolio_id': 25540490, 'created_at': datetime.datetime(2025, 7, 31, 13, 16, 58), 'result': '0.12428513722627886', 'result_long': None, 'result_double': None}] Qualite : 0.12428513722627886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25540490 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25540490_31-07-2025_13_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25540490 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_P25540490_31-07-2025_13_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25540529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25540530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25540531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25540532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25540533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25540534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25540535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25540536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25540537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25540539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25540540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25540541, 'pht': 3726}}" where mtr_portfolio_id = 25540490 and dashboard_run_id = 2048090 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`=25540490 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443772, 0.12428513722627886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25540490_31-07-2025_13_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25540529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25540530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25540531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25540532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25540533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25540534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25540535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25540536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25540537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25540539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25540540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25540541, '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 = 25541148 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': 3410029, 'mtr_portfolio_id': 25541148, 'created_at': datetime.datetime(2025, 7, 31, 18, 3, 28), 'result': '0.050678104936128066', 'result_long': None, 'result_double': None}] Qualite : 0.050678104936128066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25541148 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25541148_31-07-2025_18_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25541148 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_P25541148_31-07-2025_18_03_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25541164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25541165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25541166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25541167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25541168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25541169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25541170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25541171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25541172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25541173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25541174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25541175, 'pht': 3726}}" where mtr_portfolio_id = 25541148 and dashboard_run_id = 2048090 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`=25541148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443774, 0.050678104936128066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25541148_31-07-2025_18_03_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25541164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25541165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25541166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25541167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25541168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25541169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25541170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25541171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25541172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25541173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25541174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25541175, '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 = 25541698 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': 3410257, 'mtr_portfolio_id': 25541698, 'created_at': datetime.datetime(2025, 7, 31, 18, 2, 58), 'result': '0.05325742339100534', 'result_long': None, 'result_double': None}] Qualite : 0.05325742339100534 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25541698 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25541698_31-07-2025_18_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25541698 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_P25541698_31-07-2025_18_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25541714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25541715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25541716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25541717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25541718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25541719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25541720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25541721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25541722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25541723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25541724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25541725, 'pht': 3726}}" where mtr_portfolio_id = 25541698 and dashboard_run_id = 2048090 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`=25541698 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443775, 0.05325742339100534, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25541698_31-07-2025_18_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25541714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25541715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25541716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25541717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25541718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25541719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25541720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25541721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25541722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25541723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25541724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25541725, '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 = 25542402 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': 3410501, 'mtr_portfolio_id': 25542402, 'created_at': datetime.datetime(2025, 7, 31, 18, 2, 28), 'result': '0.02856941366263132', 'result_long': None, 'result_double': None}] Qualite : 0.02856941366263132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25542402 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25542402_31-07-2025_18_02_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25542402 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_P25542402_31-07-2025_18_02_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25542446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25542447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25542448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25542449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25542450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25542451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25542452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25542453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25542454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25542455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25542456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25542457, 'pht': 3726}}" where mtr_portfolio_id = 25542402 and dashboard_run_id = 2048090 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`=25542402 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443776, 0.02856941366263132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25542402_31-07-2025_18_02_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25542446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25542447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25542448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25542449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25542450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25542451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25542452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25542453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25542454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25542455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25542456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25542457, '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 = 25542966 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': 3410710, 'mtr_portfolio_id': 25542966, 'created_at': datetime.datetime(2025, 7, 31, 18, 1), 'result': '0.07392929834899516', 'result_long': None, 'result_double': None}] Qualite : 0.07392929834899516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25542966 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25542966_31-07-2025_18_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25542966 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_P25542966_31-07-2025_18_01_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25543000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25543001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25543002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25543003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25543004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25543005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25543006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25543007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25543008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25543009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25543010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25543011, 'pht': 3726}}" where mtr_portfolio_id = 25542966 and dashboard_run_id = 2048090 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`=25542966 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443777, 0.07392929834899516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25542966_31-07-2025_18_01_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25543000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25543001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25543002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25543003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25543004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25543005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25543006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25543007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25543008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25543009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25543010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25543011, '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 = 25543819 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': 3410948, 'mtr_portfolio_id': 25543819, 'created_at': datetime.datetime(2025, 7, 31, 18, 1, 31), 'result': '0.03695468940274182', 'result_long': None, 'result_double': None}] Qualite : 0.03695468940274182 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25543819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25543819_31-07-2025_18_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25543819 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_P25543819_31-07-2025_18_01_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25543838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25543839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25543840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25543841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25543842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25543843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25543844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25543845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25543846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25543847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25543848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25543849, 'pht': 3726}}" where mtr_portfolio_id = 25543819 and dashboard_run_id = 2048090 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`=25543819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443779, 0.03695468940274182, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25543819_31-07-2025_18_01_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25543838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25543839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25543840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25543841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25543842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25543843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25543844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25543845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25543846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25543847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25543848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25543849, '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 = 25544523 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': 3411220, 'mtr_portfolio_id': 25544523, 'created_at': datetime.datetime(2025, 7, 31, 18, 1, 27), 'result': '0.05287990011842377', 'result_long': None, 'result_double': None}] Qualite : 0.05287990011842377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25544523 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25544523_31-07-2025_18_01_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25544523 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_P25544523_31-07-2025_18_01_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25544542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25544543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25544544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25544545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25544546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25544547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25544548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25544549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25544550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25544551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25544552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25544553, 'pht': 3726}}" where mtr_portfolio_id = 25544523 and dashboard_run_id = 2048090 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`=25544523 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443780, 0.05287990011842377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25544523_31-07-2025_18_01_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25544542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25544543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25544544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25544545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25544546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25544547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25544548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25544549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25544550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25544551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25544552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25544553, '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 = 25545130 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': 3411428, 'mtr_portfolio_id': 25545130, 'created_at': datetime.datetime(2025, 7, 31, 18, 1, 59), 'result': '0.0404041093639037', 'result_long': None, 'result_double': None}] Qualite : 0.0404041093639037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25545130 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25545130_31-07-2025_18_02_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25545130 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_P25545130_31-07-2025_18_02_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25545164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25545166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25545167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25545168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25545169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25545170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25545171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25545172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25545173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25545174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25545175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25545176, 'pht': 3726}}" where mtr_portfolio_id = 25545130 and dashboard_run_id = 2048090 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`=25545130 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443781, 0.0404041093639037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25545130_31-07-2025_18_02_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25545164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25545166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25545167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25545168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25545169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25545170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25545171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25545172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25545173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25545174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25545175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25545176, '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 = 25545698 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': 3411649, 'mtr_portfolio_id': 25545698, 'created_at': datetime.datetime(2025, 7, 31, 18, 0, 31), 'result': '0.04020107126896595', 'result_long': None, 'result_double': None}] Qualite : 0.04020107126896595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25545698 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25545698_31-07-2025_18_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25545698 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_P25545698_31-07-2025_18_00_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25545732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25545733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25545734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25545735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25545736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25545737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25545738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25545739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25545740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25545741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25545742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25545743, 'pht': 3726}}" where mtr_portfolio_id = 25545698 and dashboard_run_id = 2048090 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`=25545698 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443782, 0.04020107126896595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25545698_31-07-2025_18_00_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25545732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25545733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25545734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25545735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25545736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25545737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25545738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25545739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25545740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25545741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25545742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25545743, '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 = 25546404 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': 3411866, 'mtr_portfolio_id': 25546404, 'created_at': datetime.datetime(2025, 7, 31, 18, 0, 29), 'result': '0.02678002455914884', 'result_long': None, 'result_double': None}] Qualite : 0.02678002455914884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25546404 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25546404_31-07-2025_18_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25546404 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_P25546404_31-07-2025_18_00_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25546419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25546420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25546421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25546422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25546423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25546424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25546425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25546426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25546427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25546428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25546429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25546430, 'pht': 3726}}" where mtr_portfolio_id = 25546404 and dashboard_run_id = 2048090 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`=25546404 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443783, 0.02678002455914884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25546404_31-07-2025_18_00_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25546419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25546420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25546421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25546422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25546423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25546424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25546425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25546426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25546427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25546428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25546429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25546430, '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 = 25547085 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': 3412105, 'mtr_portfolio_id': 25547085, 'created_at': datetime.datetime(2025, 7, 31, 16, 28, 58), 'result': '0.03193440724542859', 'result_long': None, 'result_double': None}] Qualite : 0.03193440724542859 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25547085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25547085_31-07-2025_16_28_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25547085 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_P25547085_31-07-2025_16_28_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25547094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25547095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25547096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25547097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25547098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25547099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25547100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25547101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25547102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25547103, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25547104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25547105, 'pht': 3726}}" where mtr_portfolio_id = 25547085 and dashboard_run_id = 2048090 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`=25547085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443785, 0.03193440724542859, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25547085_31-07-2025_16_28_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25547094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25547095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25547096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25547097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25547098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25547099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25547100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25547101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25547102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25547103, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25547104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25547105, '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 = 25547583 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': 3412280, 'mtr_portfolio_id': 25547583, 'created_at': datetime.datetime(2025, 7, 31, 16, 27, 31), 'result': '0.0669121481684039', 'result_long': None, 'result_double': None}] Qualite : 0.0669121481684039 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25547583 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25547583_31-07-2025_16_27_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25547583 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_P25547583_31-07-2025_16_27_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25547603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25547604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25547605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25547606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25547607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25547608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25547609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25547610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25547611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25547612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25547613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25547614, 'pht': 3726}}" where mtr_portfolio_id = 25547583 and dashboard_run_id = 2048090 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`=25547583 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443786, 0.0669121481684039, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25547583_31-07-2025_16_27_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25547603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25547604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25547605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25547606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25547607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25547608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25547609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25547610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25547611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25547612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25547613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25547614, '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 = 25548087 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': 3412533, 'mtr_portfolio_id': 25548087, 'created_at': datetime.datetime(2025, 7, 31, 16, 25, 28), 'result': '0.04352682689480914', 'result_long': None, 'result_double': None}] Qualite : 0.04352682689480914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25548087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25548087_31-07-2025_16_25_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25548087 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_P25548087_31-07-2025_16_25_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25548098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25548099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25548100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25548101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25548102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25548103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25548104, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25548105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25548106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25548107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25548108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25548109, 'pht': 3726}}" where mtr_portfolio_id = 25548087 and dashboard_run_id = 2048090 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`=25548087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443787, 0.04352682689480914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25548087_31-07-2025_16_25_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25548098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25548099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25548100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25548101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25548102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25548103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25548104, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25548105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25548106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25548107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25548108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25548109, '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 = 25548742 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': 3412750, 'mtr_portfolio_id': 25548742, 'created_at': datetime.datetime(2025, 7, 31, 16, 32, 58), 'result': '0.02865964411360719', 'result_long': None, 'result_double': None}] Qualite : 0.02865964411360719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25548742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25548742_31-07-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25548742 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_P25548742_31-07-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25548776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25548777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25548778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25548779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25548780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25548781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25548782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25548783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25548784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25548785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25548786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25548787, 'pht': 3726}}" where mtr_portfolio_id = 25548742 and dashboard_run_id = 2048090 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`=25548742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443788, 0.02865964411360719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25548742_31-07-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25548776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25548777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25548778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25548779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25548780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25548781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25548782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25548783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25548784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25548785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25548786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25548787, '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 = 25549357 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': 3412973, 'mtr_portfolio_id': 25549357, 'created_at': datetime.datetime(2025, 7, 31, 16, 49), 'result': '0.041706662773321336', 'result_long': None, 'result_double': None}] Qualite : 0.041706662773321336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25549357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25549357_31-07-2025_16_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25549357 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_P25549357_31-07-2025_16_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25549408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25549409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25549410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25549411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25549412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25549413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25549414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25549415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25549416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25549418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25549419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25549420, 'pht': 3726}}" where mtr_portfolio_id = 25549357 and dashboard_run_id = 2048090 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`=25549357 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443789, 0.041706662773321336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25549357_31-07-2025_16_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25549408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25549409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25549410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25549411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25549412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25549413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25549414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25549415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25549416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25549418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25549419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25549420, '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 = 25550046 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': 3413175, 'mtr_portfolio_id': 25550046, 'created_at': datetime.datetime(2025, 7, 31, 17, 2, 58), 'result': '0.04893904496087988', 'result_long': None, 'result_double': None}] Qualite : 0.04893904496087988 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25550046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25550046_31-07-2025_17_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25550046 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_P25550046_31-07-2025_17_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25550072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25550073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25550074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25550075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25550076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25550077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25550078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25550079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25550080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25550081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25550082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25550084, 'pht': 3726}}" where mtr_portfolio_id = 25550046 and dashboard_run_id = 2048090 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`=25550046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443790, 0.04893904496087988, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25550046_31-07-2025_17_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25550072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25550073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25550074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25550075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25550076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25550077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25550078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25550079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25550080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25550081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25550082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25550084, '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 = 25550578 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': 3413417, 'mtr_portfolio_id': 25550578, 'created_at': datetime.datetime(2025, 7, 31, 17, 18, 59), 'result': '0.015050214427627396', 'result_long': None, 'result_double': None}] Qualite : 0.015050214427627396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25550578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25550578_31-07-2025_17_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25550578 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_P25550578_31-07-2025_17_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25550622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25550623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25550624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25550625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25550626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25550627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25550628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25550629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25550630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25550631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25550632, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25550633, 'pht': 3726}}" where mtr_portfolio_id = 25550578 and dashboard_run_id = 2048090 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`=25550578 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443791, 0.015050214427627396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25550578_31-07-2025_17_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25550622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25550623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25550624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25550625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25550626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25550627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25550628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25550629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25550630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25550631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25550632, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25550633, '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 = 25551369 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': 3413650, 'mtr_portfolio_id': 25551369, 'created_at': datetime.datetime(2025, 7, 31, 18, 5, 27), 'result': '0.037109394280980465', 'result_long': None, 'result_double': None}] Qualite : 0.037109394280980465 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25551369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25551369_31-07-2025_18_05_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25551369 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_P25551369_31-07-2025_18_05_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25551395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25551396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25551397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25551398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25551399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25551400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25551401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25551402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25551403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25551404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25551405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25551406, 'pht': 3726}}" where mtr_portfolio_id = 25551369 and dashboard_run_id = 2048090 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`=25551369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443792, 0.037109394280980465, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25551369_31-07-2025_18_05_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25551395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25551396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25551397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25551398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25551399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25551400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25551401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25551402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25551403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25551404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25551405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25551406, '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 = 25556046 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 = 25556046 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 = 25556046 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25556046 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 = 25556046 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25556046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25556046_31-07-2025_19_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25556046 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_P25556046_31-07-2025_19_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25556068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25556069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25556070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25556071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25556072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25556073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25556074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25556075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25556076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25556077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25556078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25556079, 'pht': 3726}}" where mtr_portfolio_id = 25556046 and dashboard_run_id = 2048090 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 = 25556589 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': 3415170, 'mtr_portfolio_id': 25556589, 'created_at': datetime.datetime(2025, 7, 31, 19, 48, 58), 'result': '0.0312021039925608', 'result_long': None, 'result_double': None}] Qualite : 0.0312021039925608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25556589 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25556589_31-07-2025_19_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25556589 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_P25556589_31-07-2025_19_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25556607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25556608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25556609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25556610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25556612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25556613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25556614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25556615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25556616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25556617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25556618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25556619, 'pht': 3726}}" where mtr_portfolio_id = 25556589 and dashboard_run_id = 2048090 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`=25556589 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443794, 0.0312021039925608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25556589_31-07-2025_19_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25556607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25556608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25556609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25556610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25556612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25556613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25556614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25556615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25556616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25556617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25556618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25556619, '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 = 25557240 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': 3415366, 'mtr_portfolio_id': 25557240, 'created_at': datetime.datetime(2025, 7, 31, 20, 4, 58), 'result': '0.0652657345361735', 'result_long': None, 'result_double': None}] Qualite : 0.0652657345361735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25557240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557240_31-07-2025_20_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25557240 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_P25557240_31-07-2025_20_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25557268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25557269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25557270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25557271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25557272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25557273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25557274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25557275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25557276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25557277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25557278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25557279, 'pht': 3726}}" where mtr_portfolio_id = 25557240 and dashboard_run_id = 2048090 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`=25557240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443795, 0.0652657345361735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557240_31-07-2025_20_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25557268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25557269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25557270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25557271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25557272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25557273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25557274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25557275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25557276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25557277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25557278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25557279, '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 = 25557800 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': 3415584, 'mtr_portfolio_id': 25557800, 'created_at': datetime.datetime(2025, 7, 31, 20, 15), 'result': '0.03653579113300133', 'result_long': None, 'result_double': None}] Qualite : 0.03653579113300133 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25557800 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557800_31-07-2025_20_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25557800 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_P25557800_31-07-2025_20_15_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25557816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25557817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25557818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25557819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25557820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25557821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25557822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25557823, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25557824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25557825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25557826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25557827, 'pht': 3726}}" where mtr_portfolio_id = 25557800 and dashboard_run_id = 2048090 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`=25557800 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13443796, 0.03653579113300133, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25557800_31-07-2025_20_15_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25557816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25557817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25557818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25557819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25557820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25557821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25557822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25557823, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25557824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25557825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25557826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25557827, '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 (25516129,25516552,25516863,25517204,25517620,25518153,25518649,25519140,25519626,25520305,25520841,25521307,25521737,25522256,25522735,25523075,25523385,25523818,25524141,25524518,25524912,25525411,25525840,25526254,25526644,25527147,25527500,25527878,25528260,25528614,25529145,25529519,25529875,25530428,25530844,25531293,25531730,25532281,25532744,25533327,25533798,25534450,25534879,25535278,25535847,25536476,25537126,25537694,25538360,25538914,25539526,25540059,25540490,25541148,25541698,25542402,25542966,25543819,25544523,25545130,25545698,25546404,25547085,25547583,25548087,25548742,25549357,25550046,25550578,25551369,25556046,25556589,25557240,25557800) result : ((1374514567,), (1374514596,), (1374514618,), (1374514639,), (1374514661,), (1374514680,), (1374514915,), (1374514956,), (1374514988,), (1374515009,), (1374515045,), (1374515070,), (1374515272,), (1374515291,), (1374515310,), (1374515331,), (1374515334,), (1374515339,), (1374515640,), (1374515710,), (1374515787,), (1374515863,), (1374515931,), (1374515997,), (1374516495,), (1374516889,), (1374516905,), (1374516906,), (1374516918,), (1374516936,), (1374516943,), (1374517031,), (1374517055,), (1374517078,), (1374517098,), (1374517120,), (1374517139,), (1374517293,), (1374517311,), (1374517331,), (1374517349,), (1374517367,), (1374517385,), (1374517831,), (1374517884,), (1374517941,), (1374517990,), (1374518040,), (1374518091,), (1374518410,), (1374518738,), (1374518781,), (1374518785,), (1374518815,), (1374518834,), (1374518837,), (1374518849,), (1374518851,), (1374518853,), (1374518855,), (1374518857,), (1374518859,), (1374518874,), (1374518876,), (1374518879,), (1374518890,), (1374518906,), (1374518908,), (1374518919,), (1374518920,), (1374518922,), (1374518923,), (1374518925,), (1374518941,), (1374610879,), (1374623165,), (1374623178,), (1374623186,), (1374623190,), (1374623192,), (1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,), (1374623148,), (1374519958,), (1374519980,), (1374519982,), (1374519988,), (1374519990,), (1374519992,), (1374519995,), (1374520003,), (1374520005,), (1374520008,), (1374520011,), (1374520013,), (1374520015,), (1374520029,), (1374520035,), (1374520036,), (1374520037,), (1374520038,), (1374520040,), (1374520049,), (1374520051,), (1374520053,), (1374520055,), (1374520057,), (1374520060,), (1374520067,), (1374520074,), (1374520078,), (1374520080,), (1374520083,), (1374520086,), (1374520113,), (1374520115,), (1374520116,), (1374520118,), (1374520121,), (1374520123,), (1374520131,), (1374520133,), (1374520136,), (1374520139,), (1374520142,), (1374520144,), (1374520156,), (1374520159,), (1374520162,), (1374520165,), (1374520167,), (1374520168,), (1374520178,), (1374520183,), (1374520184,), (1374520186,), (1374520188,), (1374520191,), (1374520200,), (1374520217,), (1374520219,), (1374520221,), (1374520223,), (1374520225,), (1374520227,), (1374520252,), (1374520255,), (1374520258,), (1374520260,), (1374520263,), (1374520266,), (1374520272,), (1374520275,), (1374520279,), (1374520282,), (1374520284,), (1374520287,), (1374520296,), (1374520300,), (1374520311,), (1374520313,), (1374520314,), (1374520317,), (1374623142,), (1374623145,), (1374520325,), (1374520327,), (1374520335,), (1374520339,), (1374520342,), (1374520344,), (1374520354,), (1374520357,), (1374520359,), (1374520360,), (1374520361,), (1374520363,), (1374520375,), (1374520377,), (1374520388,), (1374520391,), (1374520394,), (1374520396,), (1374520413,), (1374520414,), (1374520419,), (1374520420,), (1374520422,), (1374520425,), (1374520438,), (1374520441,), (1374520446,), (1374520449,), (1374520451,), (1374520454,), (1374520479,), (1374520589,), (1374520612,), (1374520626,), (1374520629,), (1374520633,), (1374520634,), (1374520648,), (1374520653,), (1374520655,), (1374520656,), (1374520657,), (1374520658,), (1374520671,), (1374520672,), (1374520694,), (1374520711,), (1374520716,), (1374520722,), (1374520741,), (1374520767,), (1374520806,), (1374520813,), (1374520815,), (1374520818,), (1374520829,), (1374520831,), (1374520833,), (1374520835,), (1374520837,), (1374520840,), (1374520853,), (1374520855,), (1374520857,), (1374520864,), (1374520870,), (1374520882,), (1374520890,), (1374520892,), (1374520898,), (1374520905,), (1374520914,), (1374520919,), (1374520933,), (1374520938,), (1374520940,), (1374520943,), (1374520964,), (1374520987,), (1374521182,), (1374623140,), (1374521368,), (1374521370,), (1374521382,), (1374521401,), (1374521420,), (1374521439,), (1374521548,), (1374521720,), (1374521739,), (1374521769,), (1374521795,), (1374521816,), (1374521838,), (1374521984,), (1374522003,), (1374522025,), (1374522030,), (1374522032,), (1374522039,), (1374522140,), (1374522146,), (1374522155,), (1374522163,), (1374522182,), (1374522203,), (1374522356,), (1374522377,), (1374522395,), (1374522413,), (1374522435,), (1374522453,), (1374522570,), (1374522583,), (1374522610,), (1374522636,), (1374522653,), (1374522672,), (1374522705,), (1374522707,), (1374522709,), (1374522711,), (1374522714,), (1374522718,), (1374522728,), (1374522731,), (1374522734,), (1374522740,), (1374522749,), (1374522755,), (1374522767,), (1374522814,), (1374522833,), (1374522850,), (1374522872,), (1374522881,), (1374522888,), (1374522941,), (1374522943,), (1374522949,), (1374522958,), (1374522960,), (1374522961,), (1374522976,), (1374522978,), (1374522985,), (1374522992,), (1374522993,), (1374522995,), (1374523006,), (1374523007,), (1374523010,), (1374523012,), (1374523014,), (1374523017,), (1374523028,), (1374523030,), (1374523034,), (1374523040,), (1374523048,), (1374523050,), (1374523075,), (1374523076,), (1374523078,), (1374523090,), (1374523098,), (1374523100,), (1374523109,), (1374523112,), (1374523119,), (1374523127,), (1374523128,), (1374523129,), (1374523167,), (1374523175,), (1374523177,), (1374523179,), (1374523181,), (1374523184,), (1374523223,), (1374523239,), (1374523256,), (1374523277,), (1374523294,), (1374523314,), (1374523411,), (1374523497,), (1374523516,), (1374523536,), (1374523555,), (1374523579,), (1374523605,), (1374523618,), (1374523619,), (1374523621,), (1374523629,), (1374523637,), (1374523650,), (1374523816,), (1374523981,), (1374523985,), (1374523989,), (1374524011,), (1374524034,), (1374524056,), (1374524119,), (1374524212,), (1374524232,), (1374524254,), (1374524273,), (1374524280,), (1374524284,), (1374524316,), (1374524317,), (1374524318,), (1374524323,), (1374524342,), (1374524345,), (1374524388,), (1374524390,), (1374524393,), (1374524396,), (1374524405,), (1374524414,), (1374524539,), (1374524559,), (1374524579,), (1374524585,), (1374524594,), (1374524604,), (1374524678,), (1374524681,), (1374524683,), (1374524685,), (1374524695,), (1374524700,), (1374524811,), (1374524827,), (1374524831,), (1374524835,), (1374524838,), (1374524840,), (1374524842,), (1374524849,), (1374524868,), (1374524870,), (1374524872,), (1374524882,), (1374524886,), (1374524888,), (1374524903,), (1374524906,), (1374524908,), (1374524910,), (1374524913,), (1374524916,), (1374524923,), (1374524925,), (1374524927,), (1374524929,), (1374524938,), (1374524948,), (1374524975,), (1374524978,), (1374524984,), (1374524992,), (1374524993,), (1374524995,), (1374525004,), (1374525006,), (1374525008,), (1374525017,), (1374525025,), (1374525028,), (1374525033,), (1374525036,), (1374525039,), (1374525041,), (1374525043,), (1374525045,), (1374525069,), (1374525073,), (1374525076,), (1374525078,), (1374525081,), (1374525084,), (1374525098,), (1374525137,), (1374525145,), (1374525147,), (1374525149,), (1374525151,), (1374525154,), (1374525163,), (1374525165,), (1374525167,), (1374525169,), (1374525171,), (1374525176,), (1374525197,), (1374525200,), (1374525202,), (1374525204,), (1374525206,), (1374525210,), (1374525225,), (1374610833,), (1374623137,), (1374525247,), (1374525271,), (1374525273,), (1374525275,), (1374525277,), (1374525280,), (1374525284,), (1374525292,), (1374525295,), (1374525298,), (1374525300,), (1374525303,), (1374525306,), (1374525314,), (1374525317,), (1374525320,), (1374525322,), (1374525323,), (1374525325,), (1374525334,), (1374525336,), (1374525338,), (1374525340,), (1374525342,), (1374525345,), (1374525359,), (1374525376,), (1374525379,), (1374525382,), (1374525383,), (1374525384,), (1374525385,), (1374525395,), (1374525396,), (1374525397,), (1374525406,), (1374525414,), (1374525417,), (1374525422,), (1374525425,), (1374525428,), (1374525431,), (1374525433,), (1374525436,), (1374525444,), (1374525447,), (1374525450,), (1374525452,), (1374525453,), (1374525455,), (1374525466,), (1374525468,), (1374525469,), (1374525470,), (1374525472,), (1374525474,), (1374525486,), (1374525505,), (1374525508,), (1374525510,), (1374525512,), (1374525513,), (1374525515,), (1374525894,), (1374525920,), (1374525939,), (1374525959,), (1374525985,), (1374526012,), (1374526513,), (1374623123,), (1374623126,), (1374623129,), (1374623133,), (1374526837,), (1374526857,), (1374526887,), (1374526907,), (1374526942,), (1374526965,), (1374527134,), (1374527153,), (1374527169,), (1374527189,), (1374527213,), (1374527218,), (1374527298,), (1374527468,), (1374527474,), (1374527480,), (1374527487,), (1374527499,), (1374527502,), (1374527564,), (1374527566,), (1374527572,), (1374527580,), (1374527586,), (1374527592,), (1374527729,), (1374527916,), (1374527936,), (1374527975,), (1374528009,), (1374528044,), (1374528084,), (1374528312,), (1374528328,), (1374528345,), (1374528356,), (1374528368,), (1374528386,), (1374528483,), (1374528491,), (1374528509,), (1374528538,), (1374528562,), (1374528591,), (1374528685,), (1374528936,), (1374528959,), (1374528980,), (1374529001,), (1374529010,), (1374529022,), (1374529036,), (1374529039,), (1374529047,), (1374529054,), (1374529056,), (1374529059,), (1374529067,), (1374529068,), (1374529072,), (1374529081,), (1374529093,), (1374529102,), (1374529110,), (1374529113,), (1374529115,), (1374529121,), (1374529128,), (1374529142,), (1374623108,), (1374623115,), (1374623117,), (1374623120,), (1374529188,), (1374529191,), (1374529194,), (1374529206,), (1374529210,), (1374529212,), (1374529218,), (1374529220,), (1374529222,), (1374529225,), (1374529252,), (1374529256,), (1374529270,), (1374529273,), (1374529276,), (1374529281,), (1374529294,), (1374529297,), (1374529339,), (1374529363,), (1374529382,), (1374529401,), (1374529419,), (1374529437,), (1374529592,), (1374529610,), (1374529629,), (1374529648,), (1374529667,), (1374529686,), (1374529884,), (1374530015,), (1374530057,), (1374530094,), (1374530117,), (1374530140,), (1374530143,), (1374530199,), (1374530201,), (1374530204,), (1374530209,), (1374530219,), (1374530222,), (1374530229,), (1374530234,), (1374530242,), (1374530246,), (1374530249,), (1374530253,), (1374530262,), (1374530291,), (1374530294,), (1374530297,), (1374530300,), (1374530303,), (1374530305,), (1374530310,), (1374530312,), (1374530314,), (1374530316,), (1374530317,), (1374530318,), (1374530323,), (1374530325,), (1374530327,), (1374530329,), (1374530330,), (1374530332,), (1374530336,), (1374530338,), (1374530341,), (1374530344,), (1374530354,), (1374530362,), (1374530370,), (1374530373,), (1374530384,), (1374530388,), (1374530391,), (1374530394,), (1374530408,), (1374530426,), (1374530429,), (1374530432,), (1374530434,), (1374530436,), (1374530438,), (1374530447,), (1374530448,), (1374530450,), (1374530451,), (1374530458,), (1374530468,), (1374530487,), (1374530490,), (1374530492,), (1374530495,), (1374530496,), (1374530499,), (1374530505,), (1374530507,), (1374530509,), (1374530511,), (1374530513,), (1374530516,), (1374530522,), (1374530525,), (1374530528,), (1374530531,), (1374530532,), (1374530534,), (1374530544,), (1374530545,), (1374530546,), (1374530547,), (1374530548,), (1374530552,), (1374530559,), (1374530562,), (1374530565,), (1374530568,), (1374530570,), (1374530574,), (1374530587,), (1374530590,), (1374530593,), (1374530595,), (1374530596,), (1374530598,), (1374530606,), (1374530609,), (1374530611,), (1374530613,), (1374530615,), (1374530618,), (1374530626,), (1374530644,), (1374530647,), (1374530649,), (1374530650,), (1374530651,), (1374530652,), (1374530660,), (1374530662,), (1374530663,), (1374530664,), (1374530665,), (1374530667,), (1374530681,), (1374530686,), (1374530688,), (1374530689,), (1374530691,), (1374530693,), (1374530700,), (1374530702,), (1374530708,), (1374530711,), (1374530713,), (1374530717,), (1374530727,), (1374530730,), (1374530740,), (1374530742,), (1374530745,), (1374530748,), (1374530759,), (1374530761,), (1374530763,), (1374530766,), (1374530767,), (1374530769,), (1374530776,), (1374530778,), (1374530781,), (1374530784,), (1374530796,), (1374530799,), (1374530807,), (1374530811,), (1374530814,), (1374530817,), (1374530818,), (1374530820,), (1374530828,), (1374530829,), (1374530841,), (1374530848,), (1374530853,), (1374530855,), (1374530876,), (1374530892,), (1374530895,), (1374530898,), (1374530911,), (1374530921,), (1374530928,), (1374530942,), (1374530944,), (1374530946,), (1374530960,), (1374530968,), (1374530977,), (1374530992,), (1374530993,), (1374530997,), (1374531001,), (1374531002,), (1374531005,), (1374531019,), (1374531021,), (1374531023,), (1374531025,), (1374531028,), (1374531032,), (1374531047,), (1374531050,), (1374531053,), (1374531055,), (1374531056,), (1374531057,), (1374531067,), (1374531070,), (1374531078,), (1374531080,), (1374531082,), (1374531086,), (1374531100,), (1374531104,), (1374531111,), (1374531120,), (1374531122,), (1374531124,), (1374531533,), (1374531555,), (1374531574,), (1374531595,), (1374531620,), (1374531646,), (1374623087,), (1374623090,), (1374623096,), (1374623098,), (1374623100,), (1374623103,), (1374623105,), (1374531827,), (1374531835,), (1374531842,), (1374531845,), (1374531859,), (1374531881,), (1374532045,), (1374532080,), (1374532106,), (1374532128,), (1374532148,), (1374532168,), (1374532328,), (1374532356,), (1374532383,), (1374532409,), (1374532434,), (1374532460,), (1374532716,), (1374533034,), (1374533035,), (1374533272,), (1374533300,), (1374533326,), (1374533352,), (1374533376,), (1374533404,), (1374533702,), (1374533832,), (1374533858,), (1374533883,), (1374533906,), (1374533932,), (1374533963,), (1374534125,), (1374534131,), (1374534143,), (1374534145,), (1374534147,), (1374534149,), (1374534167,), (1374534169,), (1374534170,), (1374534171,), (1374534172,), (1374534173,), (1374534228,), (1374534256,), (1374534258,), (1374534260,), (1374534263,), (1374534265,), (1374534286,), (1374534458,), (1374534460,), (1374534461,), (1374534462,), (1374534463,), (1374534465,), (1374534478,), (1374534480,), (1374534482,), (1374534483,), (1374534485,), (1374534488,), (1374534498,), (1374622989,), (1374623076,), (1374623078,), (1374623081,), (1374623084,), (1374534522,), (1374534525,), (1374534526,), (1374534527,), (1374534528,), (1374534530,), (1374534554,), (1374534558,), (1374534569,), (1374534576,), (1374534579,), (1374534582,), (1374534607,), (1374534609,), (1374534611,), (1374534625,), (1374534649,), (1374534674,), (1374534716,), (1374534718,), (1374534720,), (1374534721,), (1374534722,), (1374534724,), (1374534731,), (1374534734,), (1374534737,), (1374534740,), (1374534742,), (1374534745,), (1374534962,), (1374535097,), (1374535099,), (1374535101,), (1374535102,), (1374535104,), (1374535106,), (1374535136,), (1374535175,), (1374535178,), (1374535181,), (1374535184,), (1374535186,), (1374535189,), (1374535197,), (1374535200,), (1374535202,), (1374535204,), (1374535206,), (1374535209,), (1374535222,), (1374535225,), (1374535228,), (1374535230,), (1374535232,), (1374535233,), (1374535244,), (1374535246,), (1374535247,), (1374535248,), (1374535250,), (1374535253,), (1374535263,), (1374535266,), (1374535269,), (1374535271,), (1374535272,), (1374535274,), (1374535282,), (1374535287,), (1374535292,), (1374535294,), (1374535297,), (1374535300,), (1374535309,), (1374535311,), (1374535314,), (1374535316,), (1374535318,), (1374535320,), (1374535343,), (1374622975,), (1374622979,), (1374622982,), (1374622985,), (1374622987,), (1374535362,), (1374535363,), (1374535364,), (1374535365,), (1374535367,), (1374535369,), (1374535377,), (1374535382,), (1374535384,), (1374535386,), (1374535388,), (1374535391,), (1374535394,), (1374535405,), (1374535408,), (1374535411,), (1374535413,), (1374535416,), (1374535419,), (1374535479,), (1374535481,), (1374535483,), (1374535485,), (1374535492,), (1374535551,), (1374535560,), (1374535563,), (1374535566,), (1374535568,), (1374535569,), (1374535571,), (1374535578,), (1374535581,), (1374535584,), (1374535588,), (1374535590,), (1374535592,), (1374535602,), (1374535605,), (1374535607,), (1374535608,), (1374535610,), (1374535612,), (1374535621,), (1374535623,), (1374535625,), (1374535627,), (1374535630,), (1374535634,), (1374535643,), (1374535646,), (1374535649,), (1374535651,), (1374535653,), (1374535655,), (1374535666,), (1374535685,), (1374535689,), (1374535690,), (1374535691,), (1374535693,), (1374535696,), (1374535706,), (1374535709,), (1374535712,), (1374535714,), (1374535715,), (1374535717,), (1374535730,), (1374535733,), (1374535735,), (1374535737,), (1374535739,), (1374535742,), (1374535754,), (1374622945,), (1374622954,), (1374622962,), (1374622965,), (1374535771,), (1374535773,), (1374535775,), (1374535777,), (1374535779,), (1374535781,), (1374535816,), (1374535819,), (1374535821,), (1374535822,), (1374535823,), (1374535824,), (1374535836,), (1374535838,), (1374535840,), (1374535841,), (1374535844,), (1374535847,), (1374535860,), (1374535863,), (1374535866,), (1374535868,), (1374535871,), (1374535874,), (1374535884,), (1374535887,), (1374535890,), (1374535891,), (1374535893,), (1374535895,), (1374535914,), (1374535941,), (1374535944,), (1374535947,), (1374535950,), (1374535952,), (1374535955,), (1374535968,), (1374535984,), (1374535986,), (1374535988,), (1374535990,), (1374535992,), (1374535995,), (1374536008,), (1374536011,), (1374536014,), (1374536017,), (1374536019,), (1374536022,), (1374536033,), (1374536035,), (1374536036,), (1374536037,), (1374536039,), (1374536042,), (1374536055,), (1374536058,), (1374536061,), (1374536062,), (1374536063,), (1374536064,), (1374536088,), (1374536115,), (1374536139,), (1374536165,), (1374536189,), (1374536224,), (1374536679,), (1374536685,), (1374536727,), (1374536754,), (1374536776,), (1374536804,), (1374622897,), (1374622900,), (1374622905,), (1374622909,), (1374622918,), (1374622943,), (1374537303,), (1374537793,), (1374537820,), (1374537848,), (1374537892,), (1374537934,), (1374537983,), (1374538248,), (1374538252,), (1374538255,), (1374538257,), (1374538259,), (1374538261,), (1374538445,), (1374538464,), (1374538469,), (1374538472,), (1374538483,), (1374538511,), (1374538571,), (1374538574,), (1374538582,), (1374538589,), (1374538600,), (1374538605,), (1374538674,), (1374538677,), (1374538679,), (1374538681,), (1374538690,), (1374538701,), (1374538807,), (1374538837,), (1374538840,), (1374538843,), (1374538855,), (1374538856,), (1374538858,), (1374538870,), (1374538874,), (1374538876,), (1374538878,), (1374538882,), (1374538898,), (1374538919,), (1374538922,), (1374538931,), (1374538939,), (1374538940,), (1374538942,), (1374538964,), (1374538981,), (1374538983,), (1374538989,), (1374538997,), (1374538999,), (1374539002,), (1374539019,), (1374539026,), (1374539030,), (1374539032,), (1374539034,), (1374539037,), (1374539049,), (1374539054,), (1374539058,), (1374539073,), (1374539082,), (1374539086,), (1374539109,), (1374622877,), (1374622878,), (1374622881,), (1374622893,), (1374539137,), (1374539175,), (1374539177,), (1374539179,), (1374539181,), (1374539184,), (1374539188,), (1374539204,), (1374539207,), (1374539210,), (1374539212,), (1374539213,), (1374539215,), (1374539234,), (1374539235,), (1374539236,), (1374539237,), (1374539238,), (1374539240,), (1374539260,), (1374539263,), (1374539265,), (1374539266,), (1374539267,), (1374539268,), (1374539298,), (1374539318,), (1374539321,), (1374539329,), (1374539332,), (1374539333,), (1374539335,), (1374539351,), (1374539353,), (1374539355,), (1374539357,), (1374539359,), (1374539361,), (1374539379,), (1374539383,), (1374539385,), (1374539387,), (1374539389,), (1374539392,), (1374539419,), (1374539464,), (1374539466,), (1374539486,), (1374539492,), (1374539493,), (1374539496,), (1374539519,), (1374539520,), (1374539521,), (1374539522,), (1374539524,), (1374539525,), (1374539542,), (1374539545,), (1374539554,), (1374539560,), (1374539566,), (1374539569,), (1374539588,), (1374539590,), (1374539600,), (1374539601,), (1374539603,), (1374539606,), (1374539624,), (1374539627,), (1374539632,), (1374539634,), (1374539636,), (1374539638,), (1374622860,), (1374622868,), (1374622870,), (1374622875,), (1374539663,), (1374539699,), (1374539702,), (1374539704,), (1374539706,), (1374539708,), (1374539710,), (1374539728,), (1374539738,), (1374539743,), (1374539744,), (1374539745,), (1374539747,), (1374539763,), (1374539766,), (1374539774,), (1374539784,), (1374539786,), (1374539788,), (1374539805,), (1374539808,), (1374539810,), (1374539811,), (1374539812,), (1374539813,), (1374539831,), (1374539836,), (1374539844,), (1374539846,), (1374539848,), (1374539850,), (1374539871,), (1374539875,), (1374539877,), (1374539878,), (1374539890,), (1374539894,), (1374539912,), (1374539913,), (1374539914,), (1374539930,), (1374539932,), (1374539935,), (1374539950,), (1374539953,), (1374539955,), (1374539957,), (1374539959,), (1374539961,), (1374539978,), (1374539981,), (1374539984,), (1374539992,), (1374540004,), (1374540006,), (1374540030,), (1374540047,), (1374540050,), (1374540052,), (1374540054,), (1374540056,), (1374540058,), (1374540079,), (1374540081,), (1374540083,), (1374540084,), (1374540086,), (1374540087,), (1374540105,), (1374540107,), (1374540109,), (1374540110,), (1374540111,), (1374540112,), (1374540129,), (1374540132,), (1374540134,), (1374540136,), (1374540137,), (1374540140,), (1374622854,), (1374622857,), (1374540162,), (1374540164,), (1374540168,), (1374540170,), (1374540172,), (1374540175,), (1374540190,), (1374540192,), (1374540193,), (1374540194,), (1374540195,), (1374540196,), (1374540213,), (1374540217,), (1374540219,), (1374540221,), (1374540223,), (1374540224,), (1374540237,), (1374540238,), (1374540240,), (1374540242,), (1374540245,), (1374540249,), (1374540266,), (1374540269,), (1374540271,), (1374540273,), (1374540275,), (1374540278,), (1374540301,), (1374540336,), (1374540338,), (1374540339,), (1374540340,), (1374540342,), (1374540344,), (1374540359,), (1374540362,), (1374540364,), (1374540366,), (1374540367,), (1374540369,), (1374540391,), (1374540393,), (1374540395,), (1374540397,), (1374540398,), (1374540401,), (1374540418,), (1374540421,), (1374540424,), (1374540425,), (1374540426,), (1374540427,), (1374540441,), (1374540444,), (1374540448,), (1374540452,), (1374540454,), (1374540456,), (1374540471,), (1374540476,), (1374540479,), (1374540481,), (1374540483,), (1374540485,), (1374540501,), (1374540504,), (1374540507,), (1374540509,), (1374540520,), (1374540521,), (1374541186,), (1374541238,), (1374541303,), (1374541340,), (1374541368,), (1374541400,), (1374541739,), (1374542186,), (1374542211,), (1374542235,), (1374542260,), (1374542286,), (1374542314,), (1374542427,), (1374542448,), (1374542472,), (1374542496,), (1374542529,), (1374542554,), (1374542662,), (1374542665,), (1374542667,), (1374542669,), (1374542671,), (1374542673,), (1374542690,), (1374542693,), (1374542694,), (1374542695,), (1374542698,), (1374542700,), (1374542721,), (1374542725,), (1374542728,), (1374542730,), (1374542732,), (1374542734,), (1374542750,), (1374542753,), (1374542755,), (1374542756,), (1374542757,), (1374542758,), (1374542776,), (1374542781,), (1374542784,), (1374542788,), (1374542790,), (1374542792,), (1374542807,), (1374542810,), (1374542811,), (1374542814,), (1374542816,), (1374542818,), (1374542832,), (1374542836,), (1374542840,), (1374542842,), (1374542844,), (1374542846,), (1374542871,), (1374542888,), (1374542892,), (1374542904,), (1374542906,), (1374542908,), (1374542910,), (1374542925,), (1374542929,), (1374542931,), (1374542932,), (1374542934,), (1374542936,), (1374542952,), (1374542957,), (1374542969,), (1374542976,), (1374542983,), (1374542985,), (1374543000,), (1374543004,), (1374543012,), (1374543017,), (1374543019,), (1374543022,), (1374622831,), (1374622848,), (1374622849,), (1374622851,), (1374543036,), (1374543047,), (1374543058,), (1374543067,), (1374543072,), (1374543075,), (1374543101,), (1374543127,), (1374543135,), (1374543138,), (1374543141,), (1374543143,), (1374543146,), (1374543155,), (1374543158,), (1374543161,), (1374543163,), (1374543164,), (1374543166,), (1374543217,), (1374543219,), (1374543223,), (1374543224,), (1374543228,), (1374543230,), (1374543313,), (1374543343,), (1374543361,), (1374543362,), (1374543364,), (1374543367,), (1374543370,), (1374543377,), (1374543380,), (1374543382,), (1374543384,), (1374543386,), (1374543389,), (1374543401,), (1374543403,), (1374543405,), (1374543407,), (1374543409,), (1374543412,), (1374543419,), (1374543423,), (1374543426,), (1374543428,), (1374543431,), (1374543434,), (1374543441,), (1374543442,), (1374543444,), (1374543447,), (1374543465,), (1374543473,), (1374543516,), (1374543519,), (1374543520,), (1374543521,), (1374543523,), (1374543526,), (1374543547,), (1374543549,), (1374543550,), (1374543551,), (1374543554,), (1374543558,), (1374543573,), (1374543574,), (1374543576,), (1374543578,), (1374543580,), (1374543584,), (1374543599,), (1374543608,), (1374543612,), (1374543614,), (1374543616,), (1374543619,), (1374549253,), (1374622751,), (1374622767,), (1374622769,), (1374622787,), (1374622816,), (1374622818,), (1374622822,), (1374622826,), (1374622829,), (1374543629,), (1374543655,), (1374543657,), (1374543664,), (1374543669,), (1374543671,), (1374543672,), (1374543688,), (1374543689,), (1374543690,), (1374543691,), (1374543693,), (1374543696,), (1374543707,), (1374543715,), (1374543717,), (1374543718,), (1374543720,), (1374543723,), (1374543737,), (1374543744,), (1374543749,), (1374543750,), (1374543751,), (1374543755,), (1374543766,), (1374543767,), (1374543768,), (1374543769,), (1374543771,), (1374543774,), (1374543794,), (1374543800,), (1374543801,), (1374543802,), (1374543803,), (1374543805,), (1374543824,), (1374543831,), (1374543832,), (1374543833,), (1374543835,), (1374543838,), (1374543848,), (1374543849,), (1374543850,), (1374543851,), (1374543853,), (1374543856,), (1374543870,), (1374543878,), (1374543885,), (1374543886,), (1374543890,), (1374543893,), (1374543912,), (1374543935,), (1374543936,), (1374543937,), (1374543938,), (1374543940,), (1374543941,), (1374543952,), (1374543953,), (1374543954,), (1374543955,), (1374543956,), (1374543958,), (1374543980,), (1374543984,), (1374543985,), (1374543986,), (1374543988,), (1374543991,), (1374544004,), (1374544007,), (1374544008,), (1374544010,), (1374544012,), (1374544013,), (1374622544,), (1374622546,), (1374622547,), (1374622550,), (1374622560,), (1374622563,), (1374622566,), (1374622568,), (1374622614,), (1374622617,), (1374622622,), (1374622625,), (1374622677,), (1374622717,), (1374544027,), (1374544028,), (1374544029,), (1374544030,), (1374544032,), (1374544035,), (1374544038,), (1374544039,), (1374544045,), (1374544050,), (1374544057,), (1374544058,), (1374544060,), (1374544062,), (1374544070,), (1374544077,), (1374544079,), (1374544080,), (1374544082,), (1374544085,), (1374544094,), (1374544112,), (1374544115,), (1374544117,), (1374544119,), (1374544121,), (1374544124,), (1374544148,), (1374544166,), (1374544174,), (1374544181,), (1374544183,), (1374544186,), (1374544188,), (1374544196,), (1374544198,), (1374544200,), (1374544202,), (1374544204,), (1374544207,), (1374544215,), (1374544218,), (1374544220,), (1374544222,), (1374544224,), (1374544227,), (1374544238,), (1374544239,), (1374544241,), (1374544242,), (1374544244,), (1374544246,), (1374544260,), (1374544262,), (1374544264,), (1374544265,), (1374544267,), (1374544269,), (1374544277,), (1374544279,), (1374544293,), (1374544294,), (1374544296,), (1374544299,), (1374544310,), (1374544311,), (1374544312,), (1374544313,), (1374544315,), (1374544318,), (1374544725,), (1374544750,), (1374544776,), (1374544801,), (1374544832,), (1374544850,), (1374545511,), (1374622475,), (1374622476,), (1374622499,), (1374622503,), (1374622526,), (1374622530,), (1374622532,), (1374622537,), (1374622539,), (1374546105,), (1374546141,), (1374546162,), (1374546173,), (1374546199,), (1374546204,), (1374546340,), (1374546342,), (1374546343,), (1374546344,), (1374546345,), (1374546347,), (1374546360,), (1374546362,), (1374546364,), (1374546366,), (1374546368,), (1374546371,), (1374546379,), (1374546381,), (1374546384,), (1374546387,), (1374546389,), (1374546392,), (1374546397,), (1374546398,), (1374546401,), (1374546404,), (1374546406,), (1374546409,), (1374546415,), (1374546421,), (1374546437,), (1374546443,), (1374546446,), (1374546449,), (1374546465,), (1374546467,), (1374546469,), (1374546471,), (1374546475,), (1374546479,), (1374546490,), (1374546492,), (1374546494,), (1374546496,), (1374546499,), (1374546502,), (1374546516,), (1374546518,), (1374546520,), (1374546522,), (1374546524,), (1374546527,), (1374546549,), (1374546567,), (1374546569,), (1374546571,), (1374546572,), (1374546574,), (1374546576,), (1374546586,), (1374546593,), (1374546600,), (1374546601,), (1374546602,), (1374546604,), (1374546619,), (1374546622,), (1374546624,), (1374546625,), (1374546628,), (1374546629,), (1374546639,), (1374546641,), (1374546644,), (1374546646,), (1374546648,), (1374546652,), (1374546661,), (1374546663,), (1374546665,), (1374546667,), (1374546669,), (1374546672,), (1374546678,), (1374546680,), (1374546690,), (1374546692,), (1374546694,), (1374546696,), (1374546717,), (1374546718,), (1374546719,), (1374546720,), (1374546722,), (1374546725,), (1374546735,), (1374546736,), (1374546737,), (1374546738,), (1374546740,), (1374546743,), (1374546752,), (1374546754,), (1374546757,), (1374546758,), (1374546760,), (1374546762,), (1374546784,), (1374546797,), (1374546798,), (1374546799,), (1374546800,), (1374546802,), (1374546805,), (1374546815,), (1374546816,), (1374546817,), (1374546818,), (1374546820,), (1374546823,), (1374546830,), (1374546832,), (1374546834,), (1374546836,), (1374546838,), (1374546841,), (1374546849,), (1374546860,), (1374546862,), (1374546863,), (1374546865,), (1374546868,), (1374546871,), (1374546887,), (1374546888,), (1374546889,), (1374546890,), (1374546891,), (1374546893,), (1374546906,), (1374546907,), (1374546908,), (1374546909,), (1374546910,), (1374546912,), (1374546925,), (1374546949,), (1374546974,), (1374546976,), (1374546978,), (1374546979,), (1374546981,), (1374546983,), (1374546992,), (1374546995,), (1374546998,), (1374546999,), (1374547002,), (1374547005,), (1374547012,), (1374547013,), (1374547015,), (1374547017,), (1374547019,), (1374547022,), (1374547039,), (1374547040,), (1374547041,), (1374547042,), (1374547044,), (1374547048,), (1374547058,), (1374547059,), (1374547060,), (1374547061,), (1374547063,), (1374547066,), (1374547090,), (1374547091,), (1374547092,), (1374547093,), (1374547095,), (1374547098,), (1374547115,), (1374547140,), (1374547143,), (1374547145,), (1374547146,), (1374547148,), (1374547150,), (1374547159,), (1374547161,), (1374547163,), (1374547164,), (1374547165,), (1374547167,), (1374547180,), (1374547182,), (1374547184,), (1374547185,), (1374547187,), (1374547189,), (1374547201,), (1374547233,), (1374547235,), (1374547246,), (1374547248,), (1374547250,), (1374547252,), (1374547261,), (1374547264,), (1374547266,), (1374547268,), (1374547270,), (1374547274,), (1374547284,), (1374547289,), (1374547294,), (1374547296,), (1374547299,), (1374547314,), (1374547318,), (1374547319,), (1374547321,), (1374547323,), (1374547325,), (1374622333,), (1374622335,), (1374622340,), (1374622374,), (1374622378,), (1374622393,), (1374622466,), (1374622472,), (1374622473,), (1374622474,), (1374547339,), (1374547344,), (1374547348,), (1374547349,), (1374547351,), (1374547354,), (1374547366,), (1374547367,), (1374547368,), (1374547369,), (1374547371,), (1374547374,), (1374547394,), (1374547395,), (1374547396,), (1374547397,), (1374547399,), (1374547402,), (1374547413,), (1374547414,), (1374547415,), (1374547416,), (1374547418,), (1374547423,), (1374547433,), (1374547434,), (1374547435,), (1374547436,), (1374547438,), (1374547440,), (1374547459,), (1374547490,), (1374547492,), (1374547494,), (1374547496,), (1374547499,), (1374547502,), (1374547518,), (1374547521,), (1374547522,), (1374547523,), (1374547525,), (1374547527,), (1374547545,), (1374547573,), (1374547581,), (1374547585,), (1374547590,), (1374547592,), (1374547596,), (1374547614,), (1374547615,), (1374547617,), (1374547619,), (1374547622,), (1374547625,), (1374547657,), (1374547659,), (1374547660,), (1374547661,), (1374547662,), (1374547664,), (1374547687,), (1374547697,), (1374547728,), (1374547753,), (1374547791,), (1374547838,), (1374548937,), (1374622022,), (1374622130,), (1374622133,), (1374622212,), (1374622213,), (1374622302,), (1374622306,), (1374622307,), (1374622309,), (1374622311,), (1374622313,), (1374622323,), (1374622327,), (1374622331,), (1374549238,), (1374549242,), (1374549245,), (1374549247,), (1374549251,), (1374549282,), (1374549284,), (1374549287,), (1374549290,), (1374549294,), (1374549299,), (1374549317,), (1374549319,), (1374549320,), (1374549321,), (1374549323,), (1374549326,), (1374549356,), (1374549388,), (1374549390,), (1374549393,), (1374549402,), (1374549406,), (1374549410,), (1374549433,), (1374549441,), (1374549449,), (1374549454,), (1374549457,), (1374549460,), (1374549491,), (1374549492,), (1374549494,), (1374549495,), (1374549496,), (1374549498,), (1374549522,), (1374549524,), (1374549526,), (1374549528,), (1374549531,), (1374549534,), (1374549553,), (1374549556,), (1374549559,), (1374549560,), (1374549562,), (1374549564,), (1374549582,), (1374549584,), (1374549586,), (1374549588,), (1374549591,), (1374549597,), (1374549626,), (1374549649,), (1374549654,), (1374549656,), (1374549658,), (1374549661,), (1374549664,), (1374549683,), (1374549685,), (1374549686,), (1374549687,), (1374549688,), (1374549690,), (1374549712,), (1374549715,), (1374549718,), (1374549720,), (1374549722,), (1374549724,), (1374549743,), (1374549756,), (1374549766,), (1374549775,), (1374549780,), (1374549782,), (1374595422,), (1374621920,), (1374621940,), (1374621941,), (1374621942,), (1374621959,), (1374621968,), (1374621970,), (1374621975,), (1374622002,), (1374622020,), (1374622112,), (1374622124,), (1374622125,), (1374622127,), (1374622128,), (1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,), (1374581041,), (1374621882,), (1374621883,), (1374621884,), (1374621886,), (1374621909,), (1374621912,), (1374621913,), (1374621915,), (1374621917,), (1374621918,), (1374550527,), (1374550528,), (1374550529,), (1374550530,), (1374550532,), (1374550536,), (1374550578,), (1374550584,), (1374550587,), (1374550588,), (1374550589,), (1374550591,), (1374550603,), (1374550605,), (1374550606,), (1374550608,), (1374550609,), (1374550611,), (1374550630,), (1374550632,), (1374550634,), (1374550635,), (1374550637,), (1374550640,), (1374550659,), (1374550662,), (1374550665,), (1374550667,), (1374550669,), (1374550673,), (1374550737,), (1374550825,), (1374550827,), (1374550830,), (1374550833,), (1374550836,), (1374550847,), (1374550867,), (1374550871,), (1374550884,), (1374550888,), (1374550890,), (1374550894,), (1374550909,), (1374550915,), (1374550920,), (1374550922,), (1374550925,), (1374550930,), (1374550947,), (1374551017,), (1374551018,), (1374551019,), (1374551020,), (1374551022,), (1374551050,), (1374551311,), (1374551312,), (1374551313,), (1374551314,), (1374551315,), (1374551318,), (1374551342,), (1374551344,), (1374551346,), (1374551347,), (1374551349,), (1374551352,), (1374551373,), (1374551376,), (1374551383,), (1374551386,), (1374551388,), (1374551402,), (1374621839,), (1374621853,), (1374621854,), (1374621872,), (1374621880,), (1374621881,), (1374551452,), (1374551459,), (1374551467,), (1374551470,), (1374551472,), (1374551475,), (1374551633,), (1374551649,), (1374551658,), (1374551659,), (1374551662,), (1374551666,), (1374551770,), (1374551773,), (1374551775,), (1374551777,), (1374551779,), (1374551782,), (1374551882,), (1374551884,), (1374551886,), (1374551888,), (1374551890,), (1374551894,), (1374551933,), (1374551935,), (1374551943,), (1374551948,), (1374551950,), (1374551953,), (1374552036,), (1374552063,), (1374552073,), (1374552076,), (1374552077,), (1374552079,), (1374552083,), (1374552132,), (1374552138,), (1374552140,), (1374552142,), (1374552144,), (1374552147,), (1374552193,), (1374552217,), (1374552247,), (1374552276,), (1374552310,), (1374552337,), (1374552359,), (1374552360,), (1374552361,), (1374552362,), (1374552364,), (1374552369,), (1374552392,), (1374552393,), (1374552394,), (1374552395,), (1374552397,), (1374552400,), (1374552418,), (1374552419,), (1374552426,), (1374552430,), (1374552431,), (1374552434,), (1374552447,), (1374552448,), (1374552449,), (1374552450,), (1374552452,), (1374552455,), (1374552683,), (1374621831,), (1374621835,), (1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,), (1374554291,), (1374554314,), (1374554343,), (1374554368,), (1374554392,), (1374554418,), (1374554611,), (1374554613,), (1374554615,), (1374554618,), (1374554625,), (1374554628,), (1374554841,), (1374554927,), (1374554930,), (1374554933,), (1374554935,), (1374554938,), (1374554941,), (1374554954,), (1374554959,), (1374554961,), (1374554962,), (1374554964,), (1374554967,), (1374554983,), (1374554985,), (1374554987,), (1374554988,), (1374554990,), (1374554993,), (1374555008,), (1374555011,), (1374555013,), (1374555014,), (1374555015,), (1374555018,), (1374621781,), (1374621791,), (1374621809,), (1374621812,), (1374621821,), (1374621826,), (1374621829,), (1374555033,), (1374555035,), (1374555037,), (1374555038,), (1374555039,), (1374555041,), (1374555065,), (1374555073,), (1374555075,), (1374555076,), (1374555077,), (1374555079,), (1374555093,), (1374555099,), (1374555101,), (1374555103,), (1374555106,), (1374555108,), (1374555123,), (1374555126,), (1374555127,), (1374555134,), (1374555142,), (1374555150,), (1374555166,), (1374555172,), (1374555187,), (1374555189,), (1374555192,), (1374555196,), (1374555245,), (1374555273,), (1374555276,), (1374555283,), (1374555304,), (1374555310,), (1374555313,), (1374555322,), (1374555324,), (1374555326,), (1374555327,), (1374555329,), (1374555332,), (1374555345,), (1374555347,), (1374555356,), (1374555361,), (1374555372,), (1374555375,), (1374555387,), (1374555389,), (1374555391,), (1374555394,), (1374555396,), (1374555399,), (1374555408,), (1374555411,), (1374555413,), (1374555415,), (1374555417,), (1374555420,), (1374555437,), (1374555464,), (1374555473,), (1374555479,), (1374555484,), (1374555487,), (1374555490,), (1374555505,), (1374555507,), (1374555509,), (1374555511,), (1374555513,), (1374555516,), (1374555536,), (1374555539,), (1374555541,), (1374555543,), (1374555545,), (1374555547,), (1374621511,), (1374621515,), (1374621520,), (1374621522,), (1374621524,), (1374621545,), (1374621572,), (1374621577,), (1374621670,), (1374621678,), (1374621712,), (1374621714,), (1374621715,), (1374621717,), (1374621719,), (1374621720,), (1374621722,), (1374621760,), (1374621762,), (1374621771,), (1374621773,), (1374621775,), (1374621777,), (1374555596,), (1374555629,), (1374555630,), (1374555631,), (1374555632,), (1374555634,), (1374555638,), (1374555659,), (1374555660,), (1374555661,), (1374555662,), (1374555664,), (1374555668,), (1374555682,), (1374555683,), (1374555684,), (1374555685,), (1374555687,), (1374555688,), (1374555712,), (1374555715,), (1374555720,), (1374555721,), (1374555723,), (1374555725,), (1374555775,), (1374555777,), (1374555778,), (1374555795,), (1374555810,), (1374555813,), (1374555832,), (1374555833,), (1374555834,), (1374555835,), (1374555838,), (1374555842,), (1374555856,), (1374555859,), (1374555860,), (1374555861,), (1374555863,), (1374555866,), (1374555883,), (1374555884,), (1374555885,), (1374555886,), (1374555887,), (1374555889,), (1374555909,), (1374555911,), (1374555913,), (1374555915,), (1374555918,), (1374555922,), (1374555968,), (1374556020,), (1374556023,), (1374556025,), (1374556026,), (1374556029,), (1374556033,), (1374556048,), (1374556057,), (1374556067,), (1374556070,), (1374556072,), (1374556075,), (1374556091,), (1374556093,), (1374556095,), (1374556097,), (1374556100,), (1374556103,), (1374556166,), (1374556180,), (1374556190,), (1374556195,), (1374556199,), (1374556202,), (1374621468,), (1374621470,), (1374621472,), (1374621495,), (1374621496,), (1374556252,), (1374556278,), (1374556308,), (1374556334,), (1374556360,), (1374556363,), (1374556437,), (1374556458,), (1374556473,), (1374556475,), (1374556476,), (1374556478,), (1374556591,), (1374556601,), (1374556605,), (1374556607,), (1374556610,), (1374556614,), (1374556630,), (1374556633,), (1374556640,), (1374556643,), (1374556644,), (1374556646,), (1374556666,), (1374556674,), (1374556679,), (1374556681,), (1374556684,), (1374556688,), (1374556952,), (1374557106,), (1374557108,), (1374557110,), (1374557112,), (1374557114,), (1374557117,), (1374557138,), (1374557140,), (1374557141,), (1374557142,), (1374557144,), (1374557148,), (1374557172,), (1374557174,), (1374557176,), (1374557178,), (1374557181,), (1374557185,), (1374557216,), (1374557219,), (1374557220,), (1374557222,), (1374557223,), (1374557225,), (1374557242,), (1374557245,), (1374557247,), (1374557250,), (1374557251,), (1374557254,), (1374557292,), (1374557296,), (1374557300,), (1374557301,), (1374557303,), (1374557305,), (1374557573,), (1374557602,), (1374557626,), (1374557651,), (1374557677,), (1374557702,), (1374557890,), (1374557895,), (1374557898,), (1374557902,), (1374557906,), (1374557911,), (1374558105,), (1374621250,), (1374621365,), (1374621370,), (1374621373,), (1374621423,), (1374621425,), (1374621427,), (1374621429,), (1374621438,), (1374621441,), (1374621452,), (1374621455,), (1374621458,), (1374621459,), (1374621462,), (1374621464,), (1374621465,), (1374621467,), (1374558443,), (1374558466,), (1374558494,), (1374558519,), (1374558544,), (1374558571,), (1374558730,), (1374558974,), (1374558999,), (1374559040,), (1374559043,), (1374559045,), (1374559068,), (1374559158,), (1374559161,), (1374559164,), (1374559166,), (1374559169,), (1374559173,), (1374559371,), (1374559412,), (1374559440,), (1374559480,), (1374559498,), (1374559509,), (1374559667,), (1374559686,), (1374559688,), (1374559689,), (1374559712,), (1374559742,), (1374559756,), (1374559776,), (1374559778,), (1374559780,), (1374559781,), (1374559785,), (1374559792,), (1374559793,), (1374559795,), (1374559797,), (1374559799,), (1374559802,), (1374559822,), (1374559828,), (1374559829,), (1374559836,), (1374559862,), (1374559888,), (1374560165,), (1374560190,), (1374560217,), (1374560241,), (1374560265,), (1374560291,), (1374560732,), (1374560808,), (1374560817,), (1374560818,), (1374560819,), (1374560821,), (1374560824,), (1374560832,), (1374560874,), (1374560884,), (1374560894,), (1374560896,), (1374560898,), (1374560900,), (1374560916,), (1374560917,), (1374560918,), (1374560919,), (1374560921,), (1374560924,), (1374560937,), (1374560939,), (1374560940,), (1374560941,), (1374560944,), (1374560947,), (1374560985,), (1374560986,), (1374560987,), (1374560988,), (1374560990,), (1374560993,), (1374561007,), (1374561008,), (1374561009,), (1374561010,), (1374561012,), (1374561015,), (1374561036,), (1374561037,), (1374561038,), (1374561039,), (1374561041,), (1374561043,), (1374561084,), (1374561086,), (1374561088,), (1374561090,), (1374561091,), (1374561093,), (1374561108,), (1374561109,), (1374561110,), (1374561111,), (1374561112,), (1374561114,), (1374561147,), (1374561281,), (1374561282,), (1374561283,), (1374561284,), (1374561333,), (1374561343,), (1374561378,), (1374561379,), (1374561380,), (1374561381,), (1374561383,), (1374561386,), (1374561398,), (1374561399,), (1374561400,), (1374561401,), (1374561403,), (1374561405,), (1374561420,), (1374561421,), (1374561422,), (1374561423,), (1374561425,), (1374561428,), (1374561444,), (1374561445,), (1374561446,), (1374561448,), (1374561450,), (1374561454,), (1374561464,), (1374561466,), (1374561467,), (1374561468,), (1374561469,), (1374561471,), (1374561473,), (1374561489,), (1374561491,), (1374561493,), (1374561494,), (1374561496,), (1374561499,), (1374561510,), (1374561512,), (1374561514,), (1374561515,), (1374561517,), (1374561518,), (1374561533,), (1374561535,), (1374561539,), (1374561541,), (1374561543,), (1374561544,), (1374561616,), (1374561636,), (1374561639,), (1374561641,), (1374561643,), (1374561645,), (1374561647,), (1374561665,), (1374561668,), (1374561671,), (1374561672,), (1374561674,), (1374561677,), (1374561693,), (1374561695,), (1374561697,), (1374561698,), (1374561701,), (1374561704,), (1374561718,), (1374561722,), (1374561748,), (1374561772,), (1374561799,), (1374561830,), (1374561963,), (1374561966,), (1374561968,), (1374561970,), (1374561972,), (1374561975,), (1374561990,), (1374561992,), (1374561994,), (1374561995,), (1374561997,), (1374562000,), (1374562080,), (1374562082,), (1374562103,), (1374562116,), (1374562132,), (1374562138,), (1374562177,), (1374562179,), (1374562181,), (1374562182,), (1374562184,), (1374562187,), (1374562200,), (1374562201,), (1374562205,), (1374562206,), (1374562208,), (1374562211,), (1374562285,), (1374562385,), (1374562413,), (1374562438,), (1374562467,), (1374562493,), (1374562521,), (1374562670,), (1374562874,), (1374562920,), (1374562947,), (1374562948,), (1374562966,), (1374562985,), (1374563061,), (1374563062,), (1374563064,), (1374563065,), (1374563067,), (1374563070,), (1374620867,), (1374620872,), (1374620880,), (1374620883,), (1374620897,), (1374620922,), (1374620948,), (1374620975,), (1374621178,), (1374621203,), (1374621228,), (1374621243,), (1374621246,), (1374621247,), (1374563097,), (1374563098,), (1374563099,), (1374563100,), (1374563101,), (1374563103,), (1374563125,), (1374563127,), (1374563128,), (1374563130,), (1374563146,), (1374563174,), (1374563369,), (1374563371,), (1374563386,), (1374563408,), (1374563410,), (1374563412,), (1374563476,), (1374563480,), (1374563483,), (1374563486,), (1374563487,), (1374563490,), (1374563511,), (1374563514,), (1374563517,), (1374563518,), (1374563520,), (1374563524,), (1374563547,), (1374563624,), (1374563626,), (1374563629,), (1374563631,), (1374563633,), (1374563636,), (1374563651,), (1374563653,), (1374563655,), (1374563656,), (1374563658,), (1374563661,), (1374563682,), (1374563684,), (1374563686,), (1374563688,), (1374563690,), (1374563694,), (1374563708,), (1374563711,), (1374563714,), (1374563716,), (1374563720,), (1374563724,), (1374563737,), (1374563740,), (1374563742,), (1374563743,), (1374563746,), (1374563750,), (1374563762,), (1374563764,), (1374563766,), (1374563767,), (1374563769,), (1374563772,), (1374563914,), (1374563938,), (1374563962,), (1374563985,), (1374564009,), (1374564035,), (1374564641,), (1374618243,), (1374618267,), (1374618291,), (1374618316,), (1374618340,), (1374618766,), (1374618796,), (1374619034,), (1374619086,), (1374619131,), (1374620108,), (1374620151,), (1374620198,), (1374620246,), (1374620301,), (1374620349,), (1374620720,), (1374565298,), (1374565352,), (1374565406,), (1374565466,), (1374565515,), (1374565710,), (1374565780,), (1374565838,), (1374565895,), (1374565971,), (1374566050,), (1374566580,), (1374566593,), (1374566631,), (1374566675,), (1374566687,), (1374566709,), (1374566760,), (1374566768,), (1374566778,), (1374566783,), (1374566787,), (1374566790,), (1374566855,), (1374566879,), (1374566904,), (1374566911,), (1374566920,), (1374566943,), (1374567048,), (1374567075,), (1374567100,), (1374567128,), (1374567153,), (1374567203,), (1374567433,), (1374567596,), (1374567598,), (1374567600,), (1374567602,), (1374567604,), (1374567606,), (1374567622,), (1374567628,), (1374567631,), (1374567632,), (1374567635,), (1374567638,), (1374567648,), (1374567653,), (1374567655,), (1374567657,), (1374567659,), (1374567662,), (1374567694,), (1374567696,), (1374567698,), (1374567700,), (1374567703,), (1374567720,), (1374567807,), (1374567832,), (1374567834,), (1374567836,), (1374567878,), (1374567940,), (1374567971,), (1374567973,), (1374567975,), (1374567976,), (1374567978,), (1374567981,), (1374567991,), (1374567993,), (1374567995,), (1374567997,), (1374567998,), (1374568001,), (1374568011,), (1374568014,), (1374568016,), (1374568017,), (1374568019,), (1374568022,), (1374568036,), (1374568041,), (1374568043,), (1374568044,), (1374568046,), (1374568049,), (1374568060,), (1374568062,), (1374568064,), (1374568065,), (1374568067,), (1374568070,), (1374568089,), (1374568095,), (1374568097,), (1374568099,), (1374568101,), (1374568104,), (1374568116,), (1374568133,), (1374568141,), (1374568143,), (1374568145,), (1374568147,), (1374568151,), (1374568173,), (1374568191,), (1374568195,), (1374568196,), (1374568198,), (1374568200,), (1374568203,), (1374568216,), (1374568219,), (1374568221,), (1374568222,), (1374568224,), (1374568227,), (1374568242,), (1374568245,), (1374568248,), (1374568250,), (1374568251,), (1374568254,), (1374568268,), (1374568275,), (1374568283,), (1374568286,), (1374568287,), (1374568290,), (1374568309,), (1374568311,), (1374568313,), (1374568315,), (1374568316,), (1374568321,), (1374568348,), (1374568351,), (1374568354,), (1374568356,), (1374568359,), (1374568362,), (1374568372,), (1374568376,), (1374568378,), (1374568380,), (1374568381,), (1374568383,), (1374568393,), (1374568395,), (1374568397,), (1374568398,), (1374568400,), (1374568403,), (1374568417,), (1374568419,), (1374568422,), (1374568423,), (1374568425,), (1374568427,), (1374568462,), (1374568484,), (1374568486,), (1374568488,), (1374568490,), (1374568491,), (1374568494,), (1374568514,), (1374568517,), (1374568519,), (1374568521,), (1374568523,), (1374568525,), (1374568538,), (1374568541,), (1374568543,), (1374568545,), (1374568546,), (1374568549,), (1374568562,), (1374568564,), (1374568566,), (1374568569,), (1374568572,), (1374568574,), (1374568583,), (1374568586,), (1374568588,), (1374568590,), (1374568591,), (1374568594,), (1374568629,), (1374568633,), (1374568636,), (1374568639,), (1374568660,), (1374568663,), (1374568686,), (1374568692,), (1374568695,), (1374568698,), (1374568699,), (1374568702,), (1374568720,), (1374568722,), (1374568723,), (1374568737,), (1374568738,), (1374568752,), (1374568803,), (1374568809,), (1374568811,), (1374568813,), (1374568820,), (1374568827,), (1374568900,), (1374568934,), (1374568975,), (1374568999,), (1374569026,), (1374569075,), (1374569106,), (1374569185,), (1374569189,), (1374569193,), (1374569195,), (1374569196,), (1374569198,), (1374569208,), (1374569213,), (1374569220,), (1374569223,), (1374569225,), (1374569228,), (1374569239,), (1374569243,), (1374569245,), (1374569247,), (1374569249,), (1374569251,), (1374569263,), (1374569267,), (1374569269,), (1374569270,), (1374569272,), (1374569273,), (1374569281,), (1374569284,), (1374569285,), (1374569287,), (1374569289,), (1374569292,), (1374569352,), (1374569361,), (1374569371,), (1374569373,), (1374569375,), (1374569400,), (1374569545,), (1374569555,), (1374569571,), (1374569578,), (1374569589,), (1374569592,), (1374569645,), (1374569675,), (1374569698,), (1374569700,), (1374569701,), (1374569702,), (1374569944,), (1374570124,), (1374570127,), (1374570129,), (1374570132,), (1374570134,), (1374570137,), (1374570186,), (1374570190,), (1374570192,), (1374570194,), (1374570196,), (1374570198,), (1374570367,), (1374570381,), (1374570405,), (1374570424,), (1374570445,), (1374570484,), (1374570557,), (1374570561,), (1374570587,), (1374570610,), (1374570635,), (1374570660,), (1374570737,), (1374570741,), (1374570744,), (1374570748,), (1374570750,), (1374570752,), (1374570791,), (1374570798,), (1374570801,), (1374570803,), (1374570806,), (1374570808,), (1374570869,), (1374571069,), (1374571094,), (1374571122,), (1374571151,), (1374571177,), (1374571226,), (1374571778,), (1374572659,), (1374572357,), (1374572396,), (1374572452,), (1374572496,), (1374572533,), (1374572560,), (1374573024,), (1374573082,), (1374573142,), (1374573202,), (1374573255,), (1374573317,), (1374573486,), (1374573504,), (1374573587,), (1374573633,), (1374573660,), (1374573674,), (1374573754,), (1374573756,), (1374573758,), (1374573760,), (1374573761,), (1374573766,), (1374573785,), (1374573790,), (1374573794,), (1374573796,), (1374573798,), (1374573801,), (1374573819,), (1374573847,), (1374573849,), (1374573852,), (1374573854,), (1374573856,), (1374573860,), (1374573870,), (1374573873,), (1374573876,), (1374573877,), (1374573879,), (1374573880,), (1374573897,), (1374573905,), (1374573907,), (1374573908,), (1374573910,), (1374573914,), (1374573937,), (1374573949,), (1374573953,), (1374573956,), (1374573958,), (1374573968,), (1374574203,), (1374574237,), (1374574264,), (1374574289,), (1374574296,), (1374574300,), (1374574358,), (1374574376,), (1374574383,), (1374574384,), (1374574386,), (1374574390,), (1374574416,), (1374574421,), (1374574423,), (1374574424,), (1374574426,), (1374574429,), (1374574442,), (1374574470,), (1374574477,), (1374574479,), (1374574480,), (1374574481,), (1374574482,), (1374574496,), (1374574497,), (1374574498,), (1374574499,), (1374574501,), (1374574509,), (1374574527,), (1374574536,), (1374574539,), (1374574541,), (1374574543,), (1374574546,), (1374574564,), (1374574581,), (1374574605,), (1374574631,), (1374574661,), (1374574688,), (1374574946,), (1374574959,), (1374574966,), (1374574967,), (1374574968,), (1374574975,), (1374575197,), (1374575372,), (1374575380,), (1374575383,), (1374575404,), (1374575434,), (1374575439,), (1374575503,), (1374575504,), (1374575505,), (1374575506,), (1374575507,), (1374575509,), (1374575526,), (1374575535,), (1374575537,), (1374575539,), (1374575543,), (1374575568,), (1374575598,), (1374575601,), (1374575603,), (1374575605,), (1374575607,), (1374575610,), (1374575625,), (1374575634,), (1374575635,), (1374575637,), (1374575639,), (1374575642,), (1374575656,), (1374575657,), (1374575658,), (1374575659,), (1374575660,), (1374575663,), (1374575697,), (1374575704,), (1374575706,), (1374575708,), (1374575710,), (1374575712,), (1374575734,), (1374575738,), (1374575741,), (1374575744,), (1374575746,), (1374575748,), (1374575764,), (1374575774,), (1374575777,), (1374575778,), (1374575779,), (1374575781,), (1374575803,), (1374575822,), (1374575833,), (1374575858,), (1374575883,), (1374575909,), (1374575935,), (1374576037,), (1374576039,), (1374576040,), (1374576042,), (1374576044,), (1374576046,), (1374576074,), (1374576078,), (1374576081,), (1374576083,), (1374576085,), (1374576088,), (1374576108,), (1374576113,), (1374576118,), (1374576121,), (1374576123,), (1374576125,), (1374576296,), (1374576327,), (1374576351,), (1374576366,), (1374576367,), (1374576379,), (1374576467,), (1374576469,), (1374576471,), (1374576472,), (1374576473,), (1374576478,), (1374576495,), (1374576498,), (1374576501,), (1374576503,), (1374576505,), (1374576508,), (1374576662,), (1374576688,), (1374576691,), (1374576692,), (1374576699,), (1374576721,), (1374576834,), (1374576865,), (1374576870,), (1374576871,), (1374576872,), (1374576874,), (1374576930,), (1374577054,), (1374577058,), (1374577068,), (1374577072,), (1374577073,), (1374577075,), (1374577125,), (1374577138,), (1374577164,), (1374577172,), (1374577173,), (1374577186,), (1374577206,), (1374577212,), (1374577214,), (1374577215,), (1374577233,), (1374577265,), (1374577450,), (1374577456,), (1374577462,), (1374577464,), (1374577467,), (1374577497,), (1374577684,), (1374577716,), (1374577741,), (1374577764,), (1374577793,), (1374577817,), (1374577952,), (1374577986,), (1374578010,), (1374578013,), (1374578016,), (1374578017,), (1374578018,), (1374578020,), (1374578043,), (1374578053,), (1374578057,), (1374578060,), (1374578064,), (1374578068,), (1374578173,), (1374578254,), (1374578259,), (1374578262,), (1374578263,), (1374578265,), (1374578267,), (1374578289,), (1374578291,), (1374578313,), (1374578342,), (1374578365,), (1374578369,), (1374578393,), (1374578398,), (1374578400,), (1374578402,), (1374578404,), (1374578408,), (1374578423,), (1374578425,), (1374578428,), (1374578431,), (1374578434,), (1374578438,), (1374578457,), (1374578460,), (1374578464,), (1374578466,), (1374578468,), (1374578469,), (1374578483,), (1374578524,), (1374578530,), (1374578533,), (1374578537,), (1374578558,), (1374578583,), (1374579362,), (1374579415,), (1374579469,), (1374579520,), (1374579548,), (1374579576,), (1374579927,), (1374580352,), (1374580402,), (1374580426,), (1374580472,), (1374580508,), (1374580537,), (1374580912,), (1374580938,), (1374580963,), (1374580991,), (1374581022,), (1374581033,), (1374581039,), (1374581284,), (1374581309,), (1374581328,), (1374581329,), (1374581331,), (1374581341,), (1374581409,), (1374581426,), (1374581429,), (1374581431,), (1374581433,), (1374581435,), (1374581438,), (1374581450,), (1374581454,), (1374581457,), (1374581459,), (1374581462,), (1374581465,), (1374581493,), (1374581505,), (1374581510,), (1374581511,), (1374581514,), (1374581517,), (1374581533,), (1374581535,), (1374581537,), (1374581539,), (1374581541,), (1374581544,), (1374581567,), (1374581574,), (1374581577,), (1374581579,), (1374581582,), (1374581586,), (1374581601,), (1374581621,), (1374581623,), (1374581625,), (1374581627,), (1374581629,), (1374581633,), (1374581693,), (1374581698,), (1374581703,), (1374581706,), (1374581708,), (1374581711,), (1374581728,), (1374581731,), (1374581744,), (1374581748,), (1374581750,), (1374581752,), (1374582031,), (1374582034,), (1374582048,), (1374582050,), (1374582053,), (1374582056,), (1374617913,), (1374618099,), (1374618127,), (1374618217,), (1374582076,), (1374582080,), (1374582094,), (1374582099,), (1374582102,), (1374582106,), (1374582124,), (1374582128,), (1374582131,), (1374582158,), (1374582185,), (1374582214,), (1374582379,), (1374582390,), (1374582394,), (1374582420,), (1374582433,), (1374582436,), (1374582451,), (1374582454,), (1374582456,), (1374582457,), (1374582458,), (1374582460,), (1374582479,), (1374582487,), (1374582490,), (1374582491,), (1374582495,), (1374582499,), (1374582518,), (1374582538,), (1374582550,), (1374582555,), (1374582557,), (1374582560,), (1374582563,), (1374582770,), (1374582796,), (1374582821,), (1374582848,), (1374582873,), (1374582902,), (1374583049,), (1374583074,), (1374583189,), (1374583191,), (1374583197,), (1374583198,), (1374583236,), (1374583399,), (1374583402,), (1374583405,), (1374583414,), (1374583417,), (1374583419,), (1374583440,), (1374583442,), (1374583444,), (1374583446,), (1374583449,), (1374583451,), (1374583628,), (1374583661,), (1374583686,), (1374583709,), (1374583735,), (1374583761,), (1374583873,), (1374583876,), (1374583879,), (1374583881,), (1374583882,), (1374583885,), (1374583904,), (1374583907,), (1374583911,), (1374583912,), (1374583914,), (1374583916,), (1374617232,), (1374617727,), (1374617822,), (1374617823,), (1374617826,), (1374617843,), (1374617847,), (1374617848,), (1374617850,), (1374617878,), (1374617886,), (1374617889,), (1374617891,), (1374617893,), (1374617895,), (1374583937,), (1374583963,), (1374583966,), (1374583969,), (1374583972,), (1374583974,), (1374583977,), (1374583987,), (1374583991,), (1374583993,), (1374583994,), (1374583997,), (1374583999,), (1374584015,), (1374584017,), (1374584019,), (1374584021,), (1374584023,), (1374584027,), (1374584036,), (1374584039,), (1374584042,), (1374584044,), (1374584047,), (1374584050,), (1374584064,), (1374584074,), (1374584077,), (1374584078,), (1374584080,), (1374584084,), (1374584094,), (1374584103,), (1374584110,), (1374584111,), (1374584114,), (1374584117,), (1374584135,), (1374584138,), (1374584140,), (1374584141,), (1374584144,), (1374584147,), (1374584152,), (1374584154,), (1374584156,), (1374584157,), (1374584160,), (1374584164,), (1374584176,), (1374584178,), (1374584180,), (1374584181,), (1374584183,), (1374584186,), (1374584207,), (1374584226,), (1374584233,), (1374584235,), (1374584236,), (1374584239,), (1374584242,), (1374584454,), (1374584478,), (1374584501,), (1374584528,), (1374584560,), (1374584587,), (1374584700,), (1374584731,), (1374584755,), (1374584783,), (1374584810,), (1374584835,), (1374584924,), (1374584927,), (1374584929,), (1374584930,), (1374584932,), (1374584936,), (1374617010,), (1374617040,), (1374617041,), (1374617044,), (1374617046,), (1374617058,), (1374617072,), (1374617075,), (1374617077,), (1374617079,), (1374617081,), (1374617082,), (1374617138,), (1374617210,), (1374617231,), (1374617494,), (1374617520,), (1374584948,), (1374584953,), (1374584959,), (1374584965,), (1374584967,), (1374584970,), (1374584977,), (1374584979,), (1374584981,), (1374584995,), (1374584997,), (1374585001,), (1374585014,), (1374585022,), (1374585027,), (1374585029,), (1374585031,), (1374585035,), (1374585043,), (1374585046,), (1374585048,), (1374585049,), (1374585051,), (1374585054,), (1374585074,), (1374585084,), (1374585086,), (1374585087,), (1374585090,), (1374585093,), (1374585110,), (1374585131,), (1374585139,), (1374585140,), (1374585142,), (1374585144,), (1374585147,), (1374585157,), (1374585159,), (1374585161,), (1374585163,), (1374585164,), (1374585167,), (1374585188,), (1374585191,), (1374585197,), (1374585206,), (1374585212,), (1374585216,), (1374585223,), (1374585230,), (1374585232,), (1374585233,), (1374585236,), (1374585239,), (1374585248,), (1374585251,), (1374585253,), (1374585255,), (1374585257,), (1374585261,), (1374585276,), (1374585278,), (1374585280,), (1374585282,), (1374585285,), (1374585288,), (1374585304,), (1374586027,), (1374586074,), (1374586125,), (1374586170,), (1374586194,), (1374586220,), (1374586992,), (1374589802,), (1374616407,), (1374616410,), (1374616411,), (1374616572,), (1374616573,), (1374616726,), (1374616770,), (1374616802,), (1374616829,), (1374616840,), (1374616856,), (1374616886,), (1374616911,), (1374616934,), (1374616935,), (1374616980,), (1374616994,), (1374617002,), (1374617004,), (1374617005,), (1374617007,), (1374617009,), (1374586626,), (1374586673,), (1374586705,), (1374586757,), (1374586812,), (1374586864,), (1374587129,), (1374587158,), (1374587184,), (1374587211,), (1374587235,), (1374587260,), (1374587696,), (1374588002,), (1374588006,), (1374588010,), (1374588035,), (1374588055,), (1374588062,), (1374588073,), (1374588075,), (1374588077,), (1374588078,), (1374588080,), (1374588084,), (1374588095,), (1374588097,), (1374588099,), (1374588100,), (1374588102,), (1374588106,), (1374588121,), (1374588125,), (1374588127,), (1374588128,), (1374588130,), (1374588133,), (1374588154,), (1374588167,), (1374588174,), (1374588184,), (1374588186,), (1374588190,), (1374588204,), (1374588312,), (1374588315,), (1374588327,), (1374588329,), (1374588348,), (1374588355,), (1374588387,), (1374588493,), (1374588502,), (1374588517,), (1374588532,), (1374588545,), (1374588548,), (1374588612,), (1374588620,), (1374588630,), (1374588636,), (1374588666,), (1374588694,), (1374588726,), (1374588729,), (1374588740,), (1374588741,), (1374588742,), (1374588745,), (1374588763,), (1374588765,), (1374588768,), (1374588770,), (1374588773,), (1374588775,), (1374588813,), (1374588819,), (1374588821,), (1374588822,), (1374588858,), (1374588877,), (1374588939,), (1374588951,), (1374588953,), (1374588955,), (1374588958,), (1374588961,), (1374589096,), (1374589109,), (1374589118,), (1374589128,), (1374589137,), (1374589163,), (1374589209,), (1374589338,), (1374589343,), (1374589358,), (1374589359,), (1374589361,), (1374589363,), (1374589457,), (1374589500,), (1374589504,), (1374589506,), (1374589507,), (1374589509,), (1374589512,), (1374589629,), (1374589642,), (1374589649,), (1374589657,), (1374589667,), (1374589675,), (1374589702,), (1374589708,), (1374589710,), (1374589712,), (1374589714,), (1374589716,), (1374589730,), (1374589732,), (1374589735,), (1374589738,), (1374589741,), (1374589744,), (1374589753,), (1374589761,), (1374589764,), (1374589765,), (1374589768,), (1374589770,), (1374589782,), (1374589784,), (1374589786,), (1374589788,), (1374589789,), (1374589792,), (1374589811,), (1374589815,), (1374589823,), (1374589831,), (1374589834,), (1374589838,), (1374589855,), (1374589856,), (1374589857,), (1374589859,), (1374589860,), (1374589863,), (1374589889,), (1374589890,), (1374589892,), (1374589893,), (1374589894,), (1374589896,), (1374616299,), (1374616314,), (1374616332,), (1374616357,), (1374616367,), (1374616374,), (1374616403,), (1374616404,), (1374616406,), (1374589939,), (1374589941,), (1374589942,), (1374589943,), (1374589945,), (1374589949,), (1374589963,), (1374589973,), (1374589978,), (1374589992,), (1374589993,), (1374589995,), (1374590019,), (1374590021,), (1374590023,), (1374590025,), (1374590027,), (1374590029,), (1374590174,), (1374590209,), (1374590249,), (1374590276,), (1374590301,), (1374590327,), (1374590570,), (1374590740,), (1374590753,), (1374590779,), (1374590804,), (1374590820,), (1374590822,), (1374591179,), (1374591205,), (1374591234,), (1374591263,), (1374591292,), (1374591325,), (1374591395,), (1374591421,), (1374591447,), (1374591473,), (1374591499,), (1374591507,), (1374591606,), (1374591634,), (1374591663,), (1374591670,), (1374591671,), (1374591675,), (1374591716,), (1374591724,), (1374591737,), (1374591739,), (1374591740,), (1374591742,), (1374591806,), (1374591895,), (1374591900,), (1374591905,), (1374591906,), (1374591908,), (1374591909,), (1374591962,), (1374592008,), (1374592021,), (1374592053,), (1374592061,), (1374592064,), (1374592076,), (1374592089,), (1374592114,), (1374592140,), (1374592166,), (1374592193,), (1374592220,), (1374616264,), (1374616267,), (1374616271,), (1374616274,), (1374616285,), (1374616287,), (1374616288,), (1374616289,), (1374616294,), (1374592293,), (1374592295,), (1374592297,), (1374592298,), (1374592300,), (1374592303,), (1374592455,), (1374592474,), (1374592477,), (1374592479,), (1374592480,), (1374592482,), (1374592544,), (1374592546,), (1374592582,), (1374592607,), (1374592635,), (1374592671,), (1374592748,), (1374592751,), (1374592754,), (1374592756,), (1374592757,), (1374592760,), (1374592840,), (1374592850,), (1374592853,), (1374592855,), (1374592857,), (1374592860,), (1374592877,), (1374592879,), (1374592882,), (1374592883,), (1374592884,), (1374592887,), (1374592906,), (1374592992,), (1374592995,), (1374592997,), (1374593016,), (1374593018,), (1374593028,), (1374593163,), (1374593177,), (1374593204,), (1374593215,), (1374593241,), (1374593266,), (1374593633,), (1374593698,), (1374593736,), (1374593743,), (1374593748,), (1374593751,), (1374593771,), (1374593778,), (1374593790,), (1374593792,), (1374593794,), (1374593797,), (1374593811,), (1374593814,), (1374593815,), (1374593817,), (1374593818,), (1374593820,), (1374593845,), (1374593848,), (1374593868,), (1374593894,), (1374593920,), (1374593946,), (1374594661,), (1374615845,), (1374615847,), (1374615858,), (1374616228,), (1374616229,), (1374616242,), (1374616261,), (1374616262,), (1374595300,), (1374595309,), (1374595336,), (1374595365,), (1374595396,), (1374595789,), (1374595841,), (1374595889,), (1374595942,), (1374595980,), (1374596011,), (1374596521,), (1374596559,), (1374596619,), (1374596654,), (1374596686,), (1374596807,), (1374596971,), (1374596975,), (1374596978,), (1374596980,), (1374596983,), (1374596987,), (1374597058,), (1374597071,), (1374597077,), (1374597086,), (1374597089,), (1374597092,), (1374597173,), (1374597185,), (1374597206,), (1374597230,), (1374597246,), (1374597256,), (1374597340,), (1374597366,), (1374597391,), (1374597424,), (1374597449,), (1374597474,), (1374597755,), (1374597778,), (1374597781,), (1374597782,), (1374597784,), (1374597787,), (1374597948,), (1374597996,), (1374598042,), (1374598059,), (1374598063,), (1374598067,), (1374598151,), (1374598279,), (1374598412,), (1374598415,), (1374598417,), (1374598418,), (1374598420,), (1374598423,), (1374598437,), (1374598439,), (1374598440,), (1374598442,), (1374598444,), (1374598447,), (1374598473,), (1374598500,), (1374598527,), (1374598554,), (1374598583,), (1374598613,), (1374598879,), (1374615784,), (1374615786,), (1374615788,), (1374615789,), (1374615827,), (1374615830,), (1374615840,), (1374615842,), (1374615843,), (1374616171,), (1374616214,), (1374616220,), (1374598983,), (1374598986,), (1374598988,), (1374598990,), (1374598992,), (1374598994,), (1374599056,), (1374599058,), (1374599060,), (1374599061,), (1374599063,), (1374599066,), (1374599235,), (1374599263,), (1374599266,), (1374599268,), (1374599270,), (1374599281,), (1374599363,), (1374599389,), (1374599424,), (1374599429,), (1374599440,), (1374599451,), (1374599549,), (1374599572,), (1374599594,), (1374599595,), (1374599596,), (1374599599,), (1374599629,), (1374599632,), (1374599656,), (1374599670,), (1374599693,), (1374599696,), (1374599772,), (1374599796,), (1374599815,), (1374599819,), (1374599822,), (1374599824,), (1374599826,), (1374599842,), (1374599845,), (1374599871,), (1374599897,), (1374599924,), (1374599949,), (1374600011,), (1374600014,), (1374600016,), (1374600017,), (1374600019,), (1374600022,), (1374600048,), (1374600052,), (1374600056,), (1374600059,), (1374600062,), (1374600066,), (1374600077,), (1374600081,), (1374600084,), (1374600087,), (1374600089,), (1374600092,), (1374600112,), (1374600122,), (1374600125,), (1374600127,), (1374600131,), (1374600135,), (1374600173,), (1374600177,), (1374600179,), (1374600181,), (1374600182,), (1374600186,), (1374600220,), (1374600253,), (1374600279,), (1374600306,), (1374600349,), (1374600386,), (1374615713,), (1374615714,), (1374615732,), (1374615736,), (1374615741,), (1374615742,), (1374615743,), (1374615744,), (1374615745,), (1374615747,), (1374600462,), (1374600469,), (1374600497,), (1374600504,), (1374600516,), (1374600519,), (1374600544,), (1374600593,), (1374600595,), (1374600596,), (1374600597,), (1374600602,), (1374600608,), (1374600754,), (1374600780,), (1374600815,), (1374600841,), (1374600850,), (1374600854,), (1374601030,), (1374601056,), (1374601086,), (1374601115,), (1374601155,), (1374601209,), (1374601238,), (1374601241,), (1374601243,), (1374601246,), (1374601250,), (1374601253,), (1374601274,), (1374601281,), (1374601283,), (1374601294,), (1374601300,), (1374601309,), (1374601540,), (1374601567,), (1374601625,), (1374601688,), (1374601714,), (1374601731,), (1374601810,), (1374601859,), (1374601866,), (1374601868,), (1374601869,), (1374601871,), (1374601875,), (1374601901,), (1374601903,), (1374601905,), (1374601907,), (1374601910,), (1374601914,), (1374601991,), (1374602389,), (1374602399,), (1374602406,), (1374602413,), (1374602417,), (1374602421,), (1374602503,), (1374602511,), (1374602515,), (1374602516,), (1374602518,), (1374602520,), (1374602536,), (1374602537,), (1374602539,), (1374602540,), (1374602542,), (1374602547,), (1374615505,), (1374615506,), (1374615508,), (1374615530,), (1374615531,), (1374615533,), (1374615535,), (1374615537,), (1374615539,), (1374615541,), (1374615544,), (1374615571,), (1374615709,), (1374615710,), (1374615711,), (1374615712,), (1374602604,), (1374602612,), (1374602623,), (1374602626,), (1374602629,), (1374602632,), (1374602701,), (1374602702,), (1374602703,), (1374602704,), (1374602707,), (1374602711,), (1374602725,), (1374602727,), (1374602728,), (1374602729,), (1374602745,), (1374602755,), (1374602778,), (1374602780,), (1374602781,), (1374602782,), (1374602783,), (1374602785,), (1374602842,), (1374602843,), (1374602844,), (1374602845,), (1374602847,), (1374602865,), (1374602952,), (1374603005,), (1374603006,), (1374603007,), (1374603008,), (1374603010,), (1374603011,), (1374603082,), (1374603109,), (1374603131,), (1374603132,), (1374603146,), (1374603150,), (1374603246,), (1374603248,), (1374603260,), (1374603271,), (1374603274,), (1374603278,), (1374603364,), (1374603365,), (1374603366,), (1374603367,), (1374603368,), (1374603374,), (1374603466,), (1374603468,), (1374603469,), (1374603471,), (1374603474,), (1374603478,), (1374603492,), (1374603495,), (1374603498,), (1374603501,), (1374603504,), (1374603508,), (1374603681,), (1374603707,), (1374603732,), (1374603755,), (1374603778,), (1374603807,), (1374604602,), (1374604646,), (1374604682,), (1374604714,), (1374604766,), (1374604798,), (1374614842,), (1374614918,), (1374614920,), (1374614935,), (1374614939,), (1374614948,), (1374614955,), (1374615266,), (1374615272,), (1374615292,), (1374615297,), (1374615436,), (1374615442,), (1374615449,), (1374615453,), (1374615454,), (1374615472,), (1374615498,), (1374615501,), (1374615502,), (1374615503,), (1374605096,), (1374605124,), (1374605157,), (1374605183,), (1374605209,), (1374605235,), (1374605389,), (1374605439,), (1374605480,), (1374605507,), (1374605549,), (1374605597,), (1374605720,), (1374605723,), (1374605725,), (1374605727,), (1374605729,), (1374605733,), (1374605754,), (1374605760,), (1374605761,), (1374605763,), (1374605766,), (1374605769,), (1374605791,), (1374605793,), (1374605795,), (1374605797,), (1374605799,), (1374605802,), (1374605816,), (1374605819,), (1374605822,), (1374605823,), (1374605826,), (1374605830,), (1374605843,), (1374605850,), (1374605855,), (1374605856,), (1374605858,), (1374605861,), (1374605878,), (1374605882,), (1374605884,), (1374605885,), (1374605901,), (1374605921,), (1374606066,), (1374606086,), (1374606088,), (1374606090,), (1374606092,), (1374606094,), (1374606111,), (1374606114,), (1374606116,), (1374606118,), (1374606133,), (1374606138,), (1374606198,), (1374606320,), (1374606651,), (1374606682,), (1374606684,), (1374606686,), (1374606688,), (1374606690,), (1374606693,), (1374606710,), (1374606713,), (1374606716,), (1374606720,), (1374606723,), (1374606725,), (1374614768,), (1374614770,), (1374614772,), (1374614774,), (1374614776,), (1374614778,), (1374614799,), (1374614805,), (1374614809,), (1374614812,), (1374614814,), (1374614819,), (1374614822,), (1374614840,), (1374614841,), (1374606740,), (1374606752,), (1374606758,), (1374606759,), (1374606761,), (1374606764,), (1374606799,), (1374606802,), (1374606805,), (1374606808,), (1374606809,), (1374606812,), (1374606850,), (1374606852,), (1374606855,), (1374606856,), (1374606859,), (1374606864,), (1374606986,), (1374607013,), (1374607040,), (1374607066,), (1374607067,), (1374607071,), (1374607082,), (1374607087,), (1374607089,), (1374607091,), (1374607095,), (1374607103,), (1374607121,), (1374607122,), (1374607136,), (1374607166,), (1374607174,), (1374607177,), (1374607268,), (1374607519,), (1374607544,), (1374607567,), (1374607592,), (1374607618,), (1374607623,), (1374607672,), (1374607675,), (1374607678,), (1374607681,), (1374607683,), (1374607686,), (1374607700,), (1374607703,), (1374607705,), (1374607706,), (1374607708,), (1374607711,), (1374607744,), (1374607749,), (1374607752,), (1374607754,), (1374607764,), (1374607792,), (1374607863,), (1374607867,), (1374607868,), (1374607870,), (1374607873,), (1374607877,), (1374607899,), (1374607904,), (1374607906,), (1374607908,), (1374607910,), (1374607914,), (1374607932,), (1374607936,), (1374607940,), (1374607943,), (1374607946,), (1374607950,), (1374607979,), (1374607981,), (1374607983,), (1374607985,), (1374607987,), (1374607992,), (1374614737,), (1374614746,), (1374614750,), (1374614754,), (1374614758,), (1374614761,), (1374608009,), (1374608022,), (1374608024,), (1374608026,), (1374608029,), (1374608031,), (1374608035,), (1374608051,), (1374608054,), (1374608056,), (1374608058,), (1374608059,), (1374608062,), (1374608086,), (1374608088,), (1374608090,), (1374608092,), (1374608095,), (1374608100,), (1374608112,), (1374608114,), (1374608116,), (1374608117,), (1374608120,), (1374608123,), (1374608147,), (1374608151,), (1374608153,), (1374608155,), (1374608157,), (1374608161,), (1374608230,), (1374608233,), (1374608236,), (1374608240,), (1374608244,), (1374608261,), (1374608386,), (1374608389,), (1374608392,), (1374608416,), (1374608420,), (1374608429,), (1374608450,), (1374608453,), (1374608454,), (1374608456,), (1374608459,), (1374608464,), (1374608485,), (1374608491,), (1374608492,), (1374608493,), (1374608494,), (1374608496,), (1374608567,), (1374608577,), (1374608579,), (1374608581,), (1374608600,), (1374608607,), (1374608636,), (1374608826,), (1374608858,), (1374608885,), (1374608918,), (1374608944,), (1374608979,), (1374609092,), (1374609094,), (1374609095,), (1374609096,), (1374609098,), (1374609103,), (1374609163,), (1374609165,), (1374609168,), (1374609169,), (1374609171,), (1374609176,), (1374614358,), (1374614360,), (1374614401,), (1374614404,), (1374614460,), (1374614485,), (1374614511,), (1374614537,), (1374614562,), (1374614588,), (1374614721,), (1374614729,), (1374614731,), (1374609204,), (1374609210,), (1374609217,), (1374609218,), (1374609219,), (1374609222,), (1374609240,), (1374609243,), (1374609246,), (1374609247,), (1374609250,), (1374609255,), (1374609306,), (1374609309,), (1374609310,), (1374609311,), (1374609312,), (1374609314,), (1374609340,), (1374609344,), (1374609351,), (1374609360,), (1374609366,), (1374609368,), (1374609470,), (1374609475,), (1374609476,), (1374609477,), (1374609479,), (1374609480,), (1374609507,), (1374609508,), (1374609509,), (1374609510,), (1374609512,), (1374609515,), (1374609560,), (1374609581,), (1374609582,), (1374609583,), (1374609584,), (1374609585,), (1374609587,), (1374609609,), (1374609610,), (1374609611,), (1374609612,), (1374609613,), (1374609615,), (1374609630,), (1374609632,), (1374609634,), (1374609635,), (1374609636,), (1374609638,), (1374609682,), (1374609683,), (1374609684,), (1374609685,), (1374609687,), (1374609691,), (1374609837,), (1374609838,), (1374609839,), (1374609840,), (1374609842,), (1374609846,), (1374609957,), (1374609980,), (1374610006,), (1374610029,), (1374610054,), (1374610085,), (1374610801,), (1374613763,), (1374614316,), (1374614318,), (1374614320,), (1374614323,), (1374614325,), (1374614336,), (1374614339,), (1374614342,), (1374614350,), (1374614352,), (1374614354,), (1374614357,), (1374611466,), (1374611515,), (1374611543,), (1374611580,), (1374611626,), (1374612025,), (1374612227,), (1374612244,), (1374612267,), (1374612275,), (1374612277,), (1374612280,), (1374612346,), (1374612355,), (1374612363,), (1374612370,), (1374612372,), (1374612376,), (1374612389,), (1374612392,), (1374612395,), (1374612397,), (1374612399,), (1374612403,), (1374612413,), (1374612422,), (1374612430,), (1374612437,), (1374612440,), (1374612443,), (1374612462,), (1374612464,), (1374612466,), (1374612468,), (1374612470,), (1374612474,), (1374612632,), (1374612637,), (1374612640,), (1374612643,), (1374612651,), (1374612665,), (1374612699,), (1374612703,), (1374612705,), (1374612706,), (1374612708,), (1374612711,), (1374612729,), (1374612732,), (1374612734,), (1374612735,), (1374612738,), (1374612741,), (1374612756,), (1374612758,), (1374612760,), (1374612762,), (1374612765,), (1374612768,), (1374612802,), (1374612828,), (1374612831,), (1374612834,), (1374612836,), (1374612838,), (1374612841,), (1374613042,), (1374613056,), (1374613065,), (1374613067,), (1374613084,), (1374613092,), (1374613136,), (1374613139,), (1374613143,), (1374613145,), (1374613146,), (1374613149,), (1374613292,), (1374613293,), (1374613294,), (1374613295,), (1374613305,), (1374613332,), (1374613450,), (1374613471,), (1374613526,), (1374613530,), (1374613540,), (1374613564,), (1374613611,), (1374613658,), (1374613710,), (1374613946,), (1374613947,), (1374613948,), (1374613950,), (1374614278,), (1374614280,), (1374614299,), (1374614302,), (1374614305,), (1374614312,), (1374613169,), (1374613174,), (1374613176,), (1374613178,), (1374613179,), (1374613182,), (1374613209,), (1374613215,), (1374613221,), (1374613226,), (1374613229,), (1374613232,), (1374613431,), (1374613442,), (1374613446,), (1374613448,), (1374613501,), (1374613517,), (1374613520,), (1374613524,), (1374613944,), (1374613945,), (1374614140,), (1374614168,), (1374614186,), (1374614191,), (1374614195,), (1374614201,), (1374614221,), (1374614222,), (1374614245,), (1374614246,), (1374614251,), (1374614257,), (1374614263,), (1374614264,), (1374614268,), (1374614269,), (1374614294,), (1374614296,), (1374614297,), (1374614328,), (1374614330,), (1374614333,), (1374614389,), (1374614392,), (1374614394,), (1374614397,), (1374614688,), (1374614715,), (1374614743,), (1374614784,), (1374614786,), (1374614789,), (1374614792,), (1374614795,), (1374614832,), (1374614835,), (1374614838,), (1374614850,), (1374614854,), (1374614859,), (1374614862,), (1374614866,), (1374614869,), (1374615061,), (1374615034,), (1374615037,), (1374615044,), (1374615053,), (1374615059,), (1374615153,), (1374615154,), (1374615179,), (1374615183,), (1374615208,), (1374615213,), (1374615235,), (1374615246,), (1374615370,), (1374615374,), (1374615378,), (1374615386,), (1374615393,), (1374615399,), (1374615483,), (1374615486,), (1374615490,), (1374615492,), (1374615495,), (1374615518,), (1374615522,), (1374615524,), (1374615527,), (1374615551,), (1374615554,), (1374615558,), (1374615560,), (1374615563,), (1374615605,), (1374615615,), (1374615642,), (1374615653,), (1374615661,), (1374615669,), (1374615719,), (1374615723,), (1374615727,), (1374615729,), (1374615777,), (1374615781,), (1374615809,), (1374615816,), (1374615820,), (1374615823,), (1374615982,), (1374616010,), (1374616046,), (1374616095,), (1374616146,), (1374616202,), (1374616311,), (1374616516,), (1374616517,), (1374616547,), (1374616549,), (1374616562,), (1374616563,), (1374616567,), (1374616568,), (1374616569,), (1374616570,), (1374616692,), (1374616656,), (1374616940,), (1374616950,), (1374616957,), (1374616961,), (1374617022,), (1374617023,), (1374617027,), (1374617028,), (1374617031,), (1374617032,), (1374617035,), (1374617036,), (1374617048,), (1374617049,), (1374617050,), (1374617052,), (1374617055,), (1374617088,), (1374617091,), (1374617109,), (1374617131,), (1374617134,), (1374617182,), (1374617185,), (1374617188,), (1374617190,), (1374617193,), (1374617195,), (1374617197,), (1374617202,), (1374617209,), (1374617304,), (1374617306,), (1374617309,), (1374617314,), (1374617319,), (1374617328,), (1374617393,), (1374617417,), (1374617444,), (1374617469,), (1374617624,), (1374617656,), (1374617682,), (1374617711,), (1374617719,), (1374617781,), (1374617784,), (1374617789,), (1374617792,), (1374617798,), (1374617801,), (1374617812,), (1374617819,), (1374617821,), (1374617837,), (1374617839,), (1374617860,), (1374617868,), (1374617870,), (1374617872,), (1374617875,), (1374617990,), (1374618022,), (1374618048,), (1374618072,), (1374618573,), (1374618626,), (1374618676,), (1374618726,), (1374618935,), (1374618976,), (1374619002,), (1374619508,), (1374619529,), (1374619582,), (1374619632,), (1374619457,), (1374619482,), (1374619828,), (1374619858,), (1374619896,), (1374619926,), (1374619968,), (1374620004,), (1374620546,), (1374620595,), (1374620625,), (1374620661,), (1374620688,), (1374620786,), (1374620795,), (1374620821,), (1374620854,), (1374621097,), (1374621126,), (1374621156,), (1374621171,), (1374621175,), (1374621338,), (1374621340,), (1374621358,), (1374621380,), (1374621392,), (1374621399,), (1374621405,), (1374621407,), (1374621411,), (1374621450,), (1374621482,), (1374621483,), (1374621485,), (1374621486,), (1374621488,), (1374621489,), (1374621491,), (1374621492,), (1374621493,), (1374621494,), (1374621501,), (1374621503,), (1374621504,), (1374621507,), (1374621657,), (1374621658,), (1374621659,), (1374621660,), (1374621699,), (1374621702,), (1374621705,), (1374621708,), (1374621710,), (1374621730,), (1374621733,), (1374621735,), (1374621738,), (1374621740,), (1374621742,), (1374621751,), (1374621753,), (1374621755,), (1374621756,), (1374621797,), (1374621802,), (1374621805,), (1374621807,), (1374621852,), (1374621846,), (1374621848,), (1374621850,), (1374621857,), (1374621859,), (1374621862,), (1374621866,), (1374621869,), (1374621892,), (1374621896,), (1374621900,), (1374621903,), (1374621906,), (1374621931,), (1374621934,), (1374621937,), (1374621945,), (1374621947,), (1374621949,), (1374621951,), (1374621955,), (1374622058,), (1374622078,), (1374622084,), (1374622085,), (1374622086,), (1374622088,), (1374622097,), (1374622100,), (1374622104,), (1374622107,), (1374622110,), (1374622196,), (1374622200,), (1374622202,), (1374622205,), (1374622274,), (1374622277,), (1374622280,), (1374622285,), (1374622289,), (1374622293,), (1374622341,), (1374622342,), (1374622343,), (1374622345,), (1374622348,), (1374622352,), (1374622364,), (1374622367,), (1374622369,), (1374622414,), (1374622420,), (1374622423,), (1374622426,), (1374622460,), (1374622463,), (1374622485,), (1374622488,), (1374622492,), (1374622497,), (1374622517,), (1374622519,), (1374622522,), (1374622554,), (1374622557,), (1374622608,), (1374622611,), (1374627315,), (1374637262,), (1374637264,), (1374637275,), (1374637342,), (1374637346,), (1374637349,), (1374637374,), (1374637398,), (1374637423,), (1374637477,), (1374637478,), (1374637480,), (1374637491,), (1374637524,), (1374637528,), (1374638176,), (1374638290,), (1374638367,), (1374638368,), (1374638370,), (1374638371,), (1374638373,), (1374638374,), (1374638378,), (1374638379,), (1374638381,), (1374638382,), (1374638392,), (1374638395,), (1374638397,), (1374638399,), (1374638415,), (1374638416,), (1374638418,), (1374638420,), (1374638422,), (1374638424,), (1374638460,), (1374638463,), (1374638466,), (1374638467,), (1374638482,), (1374638486,), (1374638489,), (1374638491,), (1374638493,), (1374638494,), (1374638534,), (1374638536,), (1374638570,), (1374638574,), (1374638598,), (1374638611,), (1374638631,), (1374638644,), (1374638939,), (1374638942,), (1374638965,), (1374638990,), (1374639006,), (1374639019,), (1374639071,), (1374639073,), (1374639076,), (1374639080,), (1374639084,), (1374639199,), (1374639196,), (1374639197,), (1374639198,), (1374639219,), (1374639244,), (1374639272,), (1374639293,), (1374639303,), (1374639407,), (1374639411,), (1374639413,), (1374639515,), (1374639518,), (1374639539,), (1374639548,), (1374639590,), (1374639592,), (1374639619,), (1374639621,), (1374639623,), (1374639625,), (1374639626,), (1374639627,), (1374639642,), (1374639645,), (1374639647,), (1374639692,), (1374639694,), (1374639697,), (1374639719,), (1374639721,), (1374639806,), (1374639935,), (1374639938,), (1374639956,), (1374639960,), (1374639963,), (1374639965,), (1374639978,), (1374639980,), (1374640024,), (1374640025,), (1374640026,), (1374640028,), (1374640030,), (1374640031,), (1374640034,), (1374640035,), (1374640055,), (1374640056,), (1374640058,), (1374640059,), (1374640061,), (1374640062,), (1374640065,), (1374640066,), (1374640068,), (1374640069,), (1374640084,), (1374640086,), (1374640088,), (1374640090,), (1374640092,), (1374640094,), (1374640104,), (1374640106,), (1374640108,), (1374640114,), (1374640116,), (1374640118,), (1374640098,), (1374640099,), (1374640101,), (1374640121,), (1374640123,), (1374640124,), (1374640126,), (1374640129,), (1374640131,), (1374640152,), (1374640154,), (1374640157,), (1374640177,), (1374640178,), (1374640181,), (1374640184,), (1374640186,), (1374640212,), (1374640314,), (1374640316,), (1374640319,), (1374640342,), (1374640390,), (1374640468,), (1374640574,), (1374640599,), (1374640624,), (1374641557,), (1374641585,), (1374642118,), (1374642830,), (1374642093,), (1374642097,), (1374642099,), (1374642101,), (1374642421,), (1374642445,), (1374642472,), (1374642496,), (1374642519,), (1374642542,), (1374642636,), (1374642660,), (1374642686,), (1374642712,), (1374642738,), (1374642764,), (1374642927,), (1374642952,), (1374642976,), (1374643003,), (1374643164,), (1374643166,), (1374643174,), (1374643325,), (1374643327,), (1374643331,), (1374643334,), (1374643338,), (1374643340,), (1374643342,), (1374643345,), (1374643371,), (1374643373,), (1374643376,), (1374643380,), (1374643384,), (1374643404,), (1374643407,), (1374643411,), (1374643413,), (1374643416,), (1374643418,), (1374643441,), (1374643445,), (1374643447,), (1374643475,), (1374643476,), (1374643477,), (1374643478,), (1374643480,), (1374643486,), (1374643489,), (1374643491,), (1374643494,), (1374643496,), (1374643515,), (1374643518,), (1374643522,), (1374643525,), (1374643528,), (1374643530,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31072025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25557800]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374643530, 1374643528, 1374643525, 1374643522, 1374643518, 1374643515, 1374643496, 1374643494, 1374643491, 1374643489, 1374643486] map_info['map_portfolio_photo'] : {25557800: [1374643530, 1374643528, 1374643525, 1374643522, 1374643518, 1374643515, 1374643496, 1374643494, 1374643491, 1374643489, 1374643486, 1374643480, 1374643478, 1374643477, 1374643476, 1374643475, 1374643447, 1374643445, 1374643441, 1374643418, 1374643416, 1374643413, 1374643411, 1374643407, 1374643404, 1374643384, 1374643380, 1374643376, 1374643373, 1374643371, 1374643345, 1374643342, 1374643340, 1374643338, 1374643334, 1374643331, 1374643327, 1374643325, 1374643174, 1374643166, 1374643164, 1374643003, 1374642976, 1374642952, 1374642927, 1374642764, 1374642738, 1374642712, 1374642686, 1374642660, 1374642636, 1374642542, 1374642519, 1374642496, 1374642472, 1374642445, 1374642421, 1374642101, 1374642099, 1374642097, 1374642093]} final : True mtd_id 4302 list_pids : [1374643530, 1374643528, 1374643525, 1374643522, 1374643518, 1374643515, 1374643496, 1374643494, 1374643491, 1374643489, 1374643486] Looping around the photos to save general results len do output : 1 /25557800Didn'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, '3415584') ('4302', '25557800', '1374643530', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643528', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643525', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643522', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643518', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643515', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643496', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643494', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643491', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643489', None, None, None, None, None, '3415584') ('4302', None, None, None, None, None, None, None, '3415584') ('4302', '25557800', '1374643486', None, None, None, None, None, '3415584') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25557800', 'None', None, None, None, None, '3415584'), ('4302', '25557800', '1374643530', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643528', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643525', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643522', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643518', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643515', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643496', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643494', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643491', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643489', None, None, None, None, None, '3415584'), ('4302', '25557800', '1374643486', None, None, None, None, None, '3415584')] time used for this insertion : 0.013712882995605469 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.710677623748779 time spend to save output : 0.013957023620605469 total time spend for step 5 : 4.724634647369385 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 (3415584) 2.33user 2.32system 0:13.13elapsed 35%CPU (0avgtext+0avgdata 159028maxresident)k 40inputs+8600outputs (17major+75454minor)pagefaults 0swaps