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 : 3947450 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 (2953614) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2953614) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336675 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2953614'] with mtr_portfolio_ids : ['23336675'] and first list_photo_ids : [] new path : /proc/3947450/ Name: python3 Umask: 0002 State: R (running) Tgid: 3947450 Ngid: 0 Pid: 3947450 PPid: 3947448 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3947450 NSpid: 3947450 NSpgid: 3945416 NSsid: 3945416 VmPeak: 1107216 kB VmSize: 1107216 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98592 kB VmRSS: 98592 kB RssAnon: 60208 kB RssFile: 38384 kB RssShmem: 0 kB VmData: 865964 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 43 nonvoluntary_ctxt_switches: 204 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3947450', 'Ngid': '0', 'Pid': '3947450', 'PPid': '3947448', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3947450', 'NSpid': '3947450', 'NSpgid': '3945416', 'NSsid': '3945416', 'VmPeak': '1107216 kB', 'VmSize': '1107216 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98592 kB', 'VmRSS': '98592 kB', 'RssAnon': '60208 kB', 'RssFile': '38384 kB', 'RssShmem': '0 kB', 'VmData': '865964 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '43', 'nonvoluntary_ctxt_switches': '204'} ('datou_batch_current', '3947450', '1107216', '0', '1107216', '865964', '98592', b'', 'marlene', '2953614') 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 (23336675) 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 (2953614 ) ) 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 (23336675) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1361077132, 'portfolio_id': 23336675}, {'photo_id': 1361077103, 'portfolio_id': 23336675}, {'photo_id': 1361077074, 'portfolio_id': 23336675}, {'photo_id': 1361076796, 'portfolio_id': 23336675}, {'photo_id': 1361076764, 'portfolio_id': 23336675}, {'photo_id': 1361076730, 'portfolio_id': 23336675}, {'photo_id': 1361076697, 'portfolio_id': 23336675}, {'photo_id': 1361076664, 'portfolio_id': 23336675}, {'photo_id': 1361076636, 'portfolio_id': 23336675}, {'photo_id': 1361076340, 'portfolio_id': 23336675}, {'photo_id': 1361076334, 'portfolio_id': 23336675}, {'photo_id': 1361076324, 'portfolio_id': 23336675}, {'photo_id': 1361076321, 'portfolio_id': 23336675}, {'photo_id': 1361076314, 'portfolio_id': 23336675}, {'photo_id': 1361076263, 'portfolio_id': 23336675}, {'photo_id': 1361076258, 'portfolio_id': 23336675}, {'photo_id': 1361076254, 'portfolio_id': 23336675}, {'photo_id': 1361076250, 'portfolio_id': 23336675}, {'photo_id': 1361076225, 'portfolio_id': 23336675}, {'photo_id': 1361076219, 'portfolio_id': 23336675}, {'photo_id': 1361076214, 'portfolio_id': 23336675}, {'photo_id': 1361076210, 'portfolio_id': 23336675}, {'photo_id': 1361076207, 'portfolio_id': 23336675}, {'photo_id': 1361076172, 'portfolio_id': 23336675}, {'photo_id': 1361076161, 'portfolio_id': 23336675}, {'photo_id': 1361076135, 'portfolio_id': 23336675}, {'photo_id': 1361076132, 'portfolio_id': 23336675}, {'photo_id': 1361076129, 'portfolio_id': 23336675}, {'photo_id': 1361076126, 'portfolio_id': 23336675}, {'photo_id': 1361076122, 'portfolio_id': 23336675}, {'photo_id': 1361076011, 'portfolio_id': 23336675}] map_portfolio_id_photo_id: {23336675: [1361077132, 1361077103, 1361077074, 1361076796, 1361076764, 1361076730, 1361076697, 1361076664, 1361076636, 1361076340, 1361076334, 1361076324, 1361076321, 1361076314, 1361076263, 1361076258, 1361076254, 1361076250, 1361076225, 1361076219, 1361076214, 1361076210, 1361076207, 1361076172, 1361076161, 1361076135, 1361076132, 1361076129, 1361076126, 1361076122, 1361076011]} ##### 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.01814436912536621 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon May 26 14:08:29 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 (23336675) 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 : 23336675 get user id for portfolio 23336675 get sub ptf for main ptf 23336675, type 3726 and hashtags ['Carton_brun', 'papier', 'Carton_gris', 'Teint_Dans_La_Masse', 'kraft', 'mal_croppe', 'cartonnette', 'plastique', 'flou', 'autre_refus', 'metal', 'environnement'] 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`=23336675 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','papier','Carton_gris','Teint_Dans_La_Masse','kraft','mal_croppe','cartonnette','plastique','flou','autre_refus','metal','environnement')) 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`=23336675 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','papier','Carton_gris','Teint_Dans_La_Masse','kraft','mal_croppe','cartonnette','plastique','flou','autre_refus','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 23336675, 'sub_port_id': 23336682, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565796, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 57)}, 'plastique': {'main_port_id': 23336675, 'sub_port_id': 23336683, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565797, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 57)}, 'cartonnette': {'main_port_id': 23336675, 'sub_port_id': 23336684, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565798, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 57)}, 'Carton_brun': {'main_port_id': 23336675, 'sub_port_id': 23336685, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565799, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 57)}, 'environnement': {'main_port_id': 23336675, 'sub_port_id': 23336686, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565800, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 23336675, 'sub_port_id': 23336687, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565801, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 57)}, 'kraft': {'main_port_id': 23336675, 'sub_port_id': 23336689, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565802, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 57)}, 'papier': {'main_port_id': 23336675, 'sub_port_id': 23336690, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565803, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 57)}, 'mal_croppe': {'main_port_id': 23336675, 'sub_port_id': 23336691, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565804, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 57)}, 'autre_refus': {'main_port_id': 23336675, 'sub_port_id': 23336692, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565805, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 57)}, 'flou': {'main_port_id': 23336675, 'sub_port_id': 23336693, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565806, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 57)}, 'metal': {'main_port_id': 23336675, 'sub_port_id': 23336694, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565807, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23336682 , 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=23336675 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 (23336682) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336675) result : ((1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,)) 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 23336683 , 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=23336675 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 (23336683) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336675) result : ((1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,)) 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 23336684 , 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=23336675 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 (23336684) result : ((1361076189,), (1361076292,), (1361076945,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336675) result : ((1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,)) 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 23336685 , 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=23336675 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 (23336685) result : ((1361076191,), (1361076294,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336675) result : ((1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,)) 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 23336686 , 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=23336675 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 (23336686) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336675) result : ((1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,)) 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 23336687 , 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=23336675 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 (23336687) result : ((1361076289,), (1361076290,), (1361076291,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336675) result : ((1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,)) 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 23336689 , 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=23336675 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 (23336689) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336675) result : ((1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,)) 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 23336690 , 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=23336675 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 (23336690) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336675) result : ((1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,)) 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 23336691 , 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=23336675 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 (23336691) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336675) result : ((1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,)) 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 23336692 , 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=23336675 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 (23336692) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336675) result : ((1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,)) 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 23336693 , 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=23336675 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 (23336693) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336675) result : ((1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,)) 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 23336694 , 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=23336675 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 (23336694) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336675) result : ((1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,)) 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`=23336675 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','papier','Carton_gris','Teint_Dans_La_Masse','kraft','mal_croppe','cartonnette','plastique','flou','autre_refus','metal','environnement')) 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`=23336675 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','papier','Carton_gris','Teint_Dans_La_Masse','kraft','mal_croppe','cartonnette','plastique','flou','autre_refus','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 23336675, 'sub_port_id': 23336695, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565808, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 58)}, 'plastique': {'main_port_id': 23336675, 'sub_port_id': 23336696, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565809, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 58)}, 'cartonnette': {'main_port_id': 23336675, 'sub_port_id': 23336697, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565810, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 58)}, 'Carton_brun': {'main_port_id': 23336675, 'sub_port_id': 23336698, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565811, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 58)}, 'environnement': {'main_port_id': 23336675, 'sub_port_id': 23336699, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565812, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 23336675, 'sub_port_id': 23336700, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565813, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 58)}, 'kraft': {'main_port_id': 23336675, 'sub_port_id': 23336701, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565814, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 58)}, 'papier': {'main_port_id': 23336675, 'sub_port_id': 23336702, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565815, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 58)}, 'mal_croppe': {'main_port_id': 23336675, 'sub_port_id': 23336703, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565816, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 58)}, 'autre_refus': {'main_port_id': 23336675, 'sub_port_id': 23336704, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565817, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 58)}, 'flou': {'main_port_id': 23336675, 'sub_port_id': 23336705, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565818, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 58)}, 'metal': {'main_port_id': 23336675, 'sub_port_id': 23336706, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565819, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336695,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336682 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336696,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336683 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336697,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336684 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336698,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336685 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336699,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336686 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336700,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336687 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336701,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336689 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336702,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336690 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336703,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336691 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336704,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336692 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336705,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336693 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336706,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336694 lien utilise dans velours : https://www.fotonower.com/velours/23336695,23336696,23336697,23336698,23336699,23336700,23336701,23336702,23336703,23336704,23336705,23336706?tags=Carton_gris,plastique,cartonnette,Carton_brun,environnement,Teint_Dans_La_Masse,kraft,papier,mal_croppe,autre_refus,flou,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23336675]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1361077132, 1361077103, 1361077074, 1361076796, 1361076764, 1361076730, 1361076697, 1361076664, 1361076636, 1361076340, 1361076334, 1361076324, 1361076321, 1361076314] map_info['map_portfolio_photo'] : {23336675: [1361077132, 1361077103, 1361077074, 1361076796, 1361076764, 1361076730, 1361076697, 1361076664, 1361076636, 1361076340, 1361076334, 1361076324, 1361076321, 1361076314, 1361076263, 1361076258, 1361076254, 1361076250, 1361076225, 1361076219, 1361076214, 1361076210, 1361076207, 1361076172, 1361076161, 1361076135, 1361076132, 1361076129, 1361076126, 1361076122, 1361076011]} final : False mtd_id 4302 list_pids : [1361077132, 1361077103, 1361077074, 1361076796, 1361076764, 1361076730, 1361076697, 1361076664, 1361076636, 1361076340, 1361076334, 1361076324, 1361076321, 1361076314] Looping around the photos to save general results len do output : 1 /23336675. 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, '2953614') ('4302', '23336675', '1361077132', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361077103', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361077074', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076796', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076764', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076730', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076697', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076664', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076636', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076340', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076334', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076324', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076321', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076314', None, None, None, None, None, '2953614') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '23336675', "{'Carton_gris': 23336682, 'plastique': 23336683, 'cartonnette': 23336684, 'Carton_brun': 23336685, 'environnement': 23336686, 'Teint_Dans_La_Masse': 23336687, 'kraft': 23336689, 'papier': 23336690, 'mal_croppe': 23336691, 'autre_refus': 23336692, 'flou': 23336693, 'metal': 23336694}", None, None, None, None, '2953614'), ('4302', '23336675', '1361077132', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361077103', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361077074', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076796', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076764', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076730', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076697', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076664', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076636', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076340', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076334', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076324', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076321', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076314', None, None, None, None, None, '2953614')] time used for this insertion : 0.013448476791381836 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3641088008880615 time spend to save output : 0.013823509216308594 total time spend for step 1 : 1.3779323101043701 step2:final Mon May 26 14:08:30 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 (23336675) 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 23336675 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1361076011,1361076135,1361076132,1361076129,1361076126,1361076122,1361076172,1361076161,1361076225,1361076219,1361076214,1361076210,1361076207,1361076263,1361076258,1361076254,1361076250,1361076340,1361076334,1361076324,1361076321,1361076314,1361076796,1361076764,1361076730,1361076697,1361076664,1361076636,1361077132,1361077103,1361077074); 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([23336675]) Inside saveOutput : final : False verbose : True original output for save of step final : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} new output for save of step final : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} [1361077132, 1361077103, 1361077074, 1361076796, 1361076764, 1361076730, 1361076697, 1361076664, 1361076636, 1361076340, 1361076334, 1361076324, 1361076321, 1361076314] map_info['map_portfolio_photo'] : {23336675: [1361077132, 1361077103, 1361077074, 1361076796, 1361076764, 1361076730, 1361076697, 1361076664, 1361076636, 1361076340, 1361076334, 1361076324, 1361076321, 1361076314, 1361076263, 1361076258, 1361076254, 1361076250, 1361076225, 1361076219, 1361076214, 1361076210, 1361076207, 1361076172, 1361076161, 1361076135, 1361076132, 1361076129, 1361076126, 1361076122, 1361076011]} final : False mtd_id 4302 list_pids : [1361077132, 1361077103, 1361077074, 1361076796, 1361076764, 1361076730, 1361076697, 1361076664, 1361076636, 1361076340, 1361076334, 1361076324, 1361076321, 1361076314] Looping around the photos to save general results len do output : 14 /1361077132.Didn't retrieve data . /1361077103.Didn't retrieve data . /1361077074.Didn't retrieve data . /1361076796.Didn't retrieve data . /1361076764.Didn't retrieve data . /1361076730.Didn't retrieve data . /1361076697.Didn't retrieve data . /1361076664.Didn't retrieve data . /1361076636.Didn't retrieve data . /1361076340.Didn't retrieve data . /1361076334.Didn't retrieve data . /1361076324.Didn't retrieve data . /1361076321.Didn't retrieve data . /1361076314.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, '2953614') ('4302', '23336675', '1361077132', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361077103', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361077074', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076796', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076764', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076730', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076697', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076664', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076636', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076340', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076334', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076324', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076321', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076314', None, None, None, None, None, '2953614') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '23336675', '1361077132', '0.027303963426455646', None, None, None, None, '2953614'), ('4302', '23336675', '1361077103', '0.027303963426455646', None, None, None, None, '2953614'), ('4302', '23336675', '1361077074', '0.027303963426455646', None, None, None, None, '2953614'), ('4302', '23336675', '1361076796', '0.027303963426455646', None, None, None, None, '2953614'), ('4302', '23336675', '1361076764', '0.027303963426455646', None, None, None, None, '2953614'), ('4302', '23336675', '1361076730', '0.027303963426455646', None, None, None, None, '2953614'), ('4302', '23336675', '1361076697', '0.027303963426455646', None, None, None, None, '2953614'), ('4302', '23336675', '1361076664', '0.027303963426455646', None, None, None, None, '2953614'), ('4302', '23336675', '1361076636', '0.027303963426455646', None, None, None, None, '2953614'), ('4302', '23336675', '1361076340', '0.027303963426455646', None, None, None, None, '2953614'), ('4302', '23336675', '1361076334', '0.027303963426455646', None, None, None, None, '2953614'), ('4302', '23336675', '1361076324', '0.027303963426455646', None, None, None, None, '2953614'), ('4302', '23336675', '1361076321', '0.027303963426455646', None, None, None, None, '2953614'), ('4302', '23336675', '1361076314', '0.027303963426455646', None, None, None, None, '2953614')] time used for this insertion : 0.014890909194946289 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0659327507019043 time spend to save output : 0.015615701675415039 total time spend for step 2 : 0.08154845237731934 step3:velours_tree Mon May 26 14:08:30 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 : {23336675: [{'Carton_gris': 23336682, 'plastique': 23336683, 'cartonnette': 23336684, 'Carton_brun': 23336685, 'environnement': 23336686, 'Teint_Dans_La_Masse': 23336687, 'kraft': 23336689, 'papier': 23336690, 'mal_croppe': 23336691, 'autre_refus': 23336692, 'flou': 23336693, 'metal': 23336694}]} input_args_next_step : {23336675: ()} output_args : {23336675: [{'Carton_gris': 23336682, 'plastique': 23336683, 'cartonnette': 23336684, 'Carton_brun': 23336685, 'environnement': 23336686, 'Teint_Dans_La_Masse': 23336687, 'kraft': 23336689, 'papier': 23336690, 'mal_croppe': 23336691, 'autre_refus': 23336692, 'flou': 23336693, 'metal': 23336694}]} args : 23336675 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_gris': 23336682, 'plastique': 23336683, 'cartonnette': 23336684, 'Carton_brun': 23336685, 'environnement': 23336686, 'Teint_Dans_La_Masse': 23336687, 'kraft': 23336689, 'papier': 23336690, 'mal_croppe': 23336691, 'autre_refus': 23336692, 'flou': 23336693, 'metal': 23336694},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23336675) 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([23336675]) 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.3767521381378174 time spend to save output : 7.843971252441406e-05 total time spend for step 3 : 0.3768305778503418 step4:send_mail_cod Mon May 26 14:08:30 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 : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} input_args_next_step : {1361077132: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361077132 depend.output_id : 0 input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361077103 depend.output_id : 0 input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361077074 depend.output_id : 0 input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361076796 depend.output_id : 0 input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361076764 depend.output_id : 0 input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361076730 depend.output_id : 0 input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361076697 depend.output_id : 0 input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361076664 depend.output_id : 0 input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361076636 depend.output_id : 0 input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361076340 depend.output_id : 0 input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361076334 depend.output_id : 0 input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361076324 depend.output_id : 0 input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361076321 depend.output_id : 0 input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ()} output_args : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',)} args : 1361076314 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 : {23336675: [{'Carton_gris': 23336682, 'plastique': 23336683, 'cartonnette': 23336684, 'Carton_brun': 23336685, 'environnement': 23336686, 'Teint_Dans_La_Masse': 23336687, 'kraft': 23336689, 'papier': 23336690, 'mal_croppe': 23336691, 'autre_refus': 23336692, 'flou': 23336693, 'metal': 23336694}]} input_args_next_step : {1361077132: ('0.027303963426455646',), 1361077103: ('0.027303963426455646',), 1361077074: ('0.027303963426455646',), 1361076796: ('0.027303963426455646',), 1361076764: ('0.027303963426455646',), 1361076730: ('0.027303963426455646',), 1361076697: ('0.027303963426455646',), 1361076664: ('0.027303963426455646',), 1361076636: ('0.027303963426455646',), 1361076340: ('0.027303963426455646',), 1361076334: ('0.027303963426455646',), 1361076324: ('0.027303963426455646',), 1361076321: ('0.027303963426455646',), 1361076314: ('0.027303963426455646',), 23336675: ()} output_args : {23336675: [{'Carton_gris': 23336682, 'plastique': 23336683, 'cartonnette': 23336684, 'Carton_brun': 23336685, 'environnement': 23336686, 'Teint_Dans_La_Masse': 23336687, 'kraft': 23336689, 'papier': 23336690, 'mal_croppe': 23336691, 'autre_refus': 23336692, 'flou': 23336693, 'metal': 23336694}]} args : 23336675 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.027303963426455646',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23336675) 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 (1361077132,1361077103,1361077074,1361076796,1361076764,1361076730,1361076697,1361076664,1361076636,1361076340,1361076334,1361076324,1361076321,1361076314) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1361076314 begin to download photo : 1361076334 begin to download photo : 1361076664 begin to download photo : 1361076764 begin to download photo : 1361077103 download finish for photo 1361076334 begin to download photo : 1361076340 download finish for photo 1361077103 begin to download photo : 1361077132 download finish for photo 1361076764 begin to download photo : 1361076796 download finish for photo 1361076314 begin to download photo : 1361076321 download finish for photo 1361076664 begin to download photo : 1361076697 download finish for photo 1361076340 begin to download photo : 1361076636 download finish for photo 1361077132 download finish for photo 1361076796 begin to download photo : 1361077074 download finish for photo 1361076321 begin to download photo : 1361076324 download finish for photo 1361076697 begin to download photo : 1361076730 download finish for photo 1361076636 download finish for photo 1361076324 download finish for photo 1361077074 download finish for photo 1361076730 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette233366831748261311/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P23336675_26-05-2025_14_08_31.pdf 23336683 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=23336683 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233366831748261311 23336684 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=23336684 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361076189: '1748261006_1244149_1361076011_a6dda51bad2320d284da97fea79b4fde_rle_crop_3813084926_0.png', 1361076292: '1748261125_1246893_1361076172_b52154a436b903c21ef6d43eb4f61bf9_rle_crop_3813085164_0.png', 1361076945: '1748261246_1251866_1361076321_e43d8ddb575e40918f4101461d653d48_rle_crop_3813085436_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/e9e98896689a3c25225ed69a524b40fe_37557562.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/5ad84a70e77445543bc5d1277718540b_80501160.png change filename to text .imagette233366841748261311/ imagette233366841748261311/1748261125_1246893_1361076172_b52154a436b903c21ef6d43eb4f61bf9_rle_crop_3813085164_0.png.png imagette233366841748261311/1748261006_1244149_1361076011_a6dda51bad2320d284da97fea79b4fde_rle_crop_3813084926_0.png.png imagette233366841748261311/1748261246_1251866_1361076321_e43d8ddb575e40918f4101461d653d48_rle_crop_3813085436_0.png.png imagette233366891748261311/ imagette233366911748261311/ imagette233366921748261311/ imagette233366931748261311/ imagette233366941748261311/ imagette233366821748261311/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/017668607705e96730badcd83498fcd7_96129627.png imagette233366841748261311 23336689 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=23336689 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233366891748261311 23336691 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=23336691 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233366911748261311 23336692 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=23336692 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233366921748261311 23336693 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=23336693 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233366931748261311 23336694 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=23336694 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233366941748261311 23336682 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=23336682 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233366821748261311 23336685 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=23336685 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361076191: '1748261006_1244149_1361076011_a6dda51bad2320d284da97fea79b4fde_rle_crop_3813084927_0.png', 1361076294: '1748261125_1246893_1361076172_b52154a436b903c21ef6d43eb4f61bf9_rle_crop_3813085171_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/9558647e306dc282548bdc62b12d1db3_40195436.png change filename to text .imagette233366851748261311/ imagette233366851748261311/1748261006_1244149_1361076011_a6dda51bad2320d284da97fea79b4fde_rle_crop_3813084927_0.png.png imagette233366851748261311/1748261125_1246893_1361076172_b52154a436b903c21ef6d43eb4f61bf9_rle_crop_3813085171_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/d858f5ced658de807a3235a049a4841e_98030166.png imagette233366851748261311 23336687 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=23336687 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361076289: '1748261125_1246893_1361076132_09f5fb31cd548b047603108feb27ef92_rle_crop_3813085175_0.png', 1361076290: '1748261125_1246893_1361076129_9c1732d49e71f40e5936ceb134d37e32_rle_crop_3813085182_0.png', 1361076291: '1748261125_1246893_1361076126_0b4db52421dd7485003d3160ad20fe0e_rle_crop_3813085189_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/ed8a28deaab7701e57b292b2946329fc_75165277.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/979f19d5ed780ab0a5b8b52762662778_10912238.png change filename to text .imagette233366871748261311/ imagette233366871748261311/1748261125_1246893_1361076132_09f5fb31cd548b047603108feb27ef92_rle_crop_3813085175_0.png.png imagette233366871748261311/1748261125_1246893_1361076129_9c1732d49e71f40e5936ceb134d37e32_rle_crop_3813085182_0.png.png imagette233366871748261311/1748261125_1246893_1361076126_0b4db52421dd7485003d3160ad20fe0e_rle_crop_3813085189_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/0987b6c0f187500096d7cbb39ceb8dab_35024347.png imagette233366871748261311 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23336675 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23336695,23336696,23336697,23336698,23336699,23336700,23336701,23336702,23336703,23336704,23336705,23336706?tags=Carton_gris,plastique,cartonnette,Carton_brun,environnement,Teint_Dans_La_Masse,kraft,papier,mal_croppe,autre_refus,flou,metal your option no_mail is active, we will not send the real mail to your client args[1361077132] : ('0.027303963426455646',) no score found for photo 1361077132 We are sending mail with results at report@fotonower.com args[1361077103] : ('0.027303963426455646',) no score found for photo 1361077103 We are sending mail with results at report@fotonower.com args[1361077074] : ('0.027303963426455646',) no score found for photo 1361077074 We are sending mail with results at report@fotonower.com args[1361076796] : ('0.027303963426455646',) no score found for photo 1361076796 We are sending mail with results at report@fotonower.com args[1361076764] : ('0.027303963426455646',) no score found for photo 1361076764 We are sending mail with results at report@fotonower.com args[1361076730] : ('0.027303963426455646',) no score found for photo 1361076730 We are sending mail with results at report@fotonower.com args[1361076697] : ('0.027303963426455646',) no score found for photo 1361076697 We are sending mail with results at report@fotonower.com args[1361076664] : ('0.027303963426455646',) no score found for photo 1361076664 We are sending mail with results at report@fotonower.com args[1361076636] : ('0.027303963426455646',) no score found for photo 1361076636 We are sending mail with results at report@fotonower.com args[1361076340] : ('0.027303963426455646',) no score found for photo 1361076340 We are sending mail with results at report@fotonower.com args[1361076334] : ('0.027303963426455646',) no score found for photo 1361076334 We are sending mail with results at report@fotonower.com args[1361076324] : ('0.027303963426455646',) no score found for photo 1361076324 We are sending mail with results at report@fotonower.com args[1361076321] : ('0.027303963426455646',) no score found for photo 1361076321 We are sending mail with results at report@fotonower.com args[1361076314] : ('0.027303963426455646',) no score found for photo 1361076314 We are sending mail with results at report@fotonower.com refus_total : 0.027303963426455646 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=23336675 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_P23336675_26-05-2025_14_08_31.pdf results_Auto_P23336675_26-05-2025_14_08_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336675_26-05-2025_14_08_31.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','23336675','results_Auto_P23336675_26-05-2025_14_08_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336675_26-05-2025_14_08_31.pdf','pdf','','0.14','0.027303963426455646') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23336675]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1361077132, 1361077103, 1361077074, 1361076796, 1361076764, 1361076730, 1361076697, 1361076664, 1361076636, 1361076340, 1361076334, 1361076324, 1361076321, 1361076314] map_info['map_portfolio_photo'] : {23336675: [1361077132, 1361077103, 1361077074, 1361076796, 1361076764, 1361076730, 1361076697, 1361076664, 1361076636, 1361076340, 1361076334, 1361076324, 1361076321, 1361076314, 1361076263, 1361076258, 1361076254, 1361076250, 1361076225, 1361076219, 1361076214, 1361076210, 1361076207, 1361076172, 1361076161, 1361076135, 1361076132, 1361076129, 1361076126, 1361076122, 1361076011]} final : False mtd_id 4302 list_pids : [1361077132, 1361077103, 1361077074, 1361076796, 1361076764, 1361076730, 1361076697, 1361076664, 1361076636, 1361076340, 1361076334, 1361076324, 1361076321, 1361076314] 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, '2953614') ('4302', '23336675', '1361077132', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361077103', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361077074', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076796', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076764', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076730', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076697', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076664', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076636', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076340', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076334', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076324', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076321', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076314', None, None, None, None, None, '2953614') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '23336675', '1361077132', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361077103', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361077074', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076796', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076764', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076730', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076697', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076664', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076636', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076340', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076334', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076324', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076321', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076314', None, None, None, None, None, '2953614')] time used for this insertion : 0.013813495635986328 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.113863706588745 time spend to save output : 0.0141448974609375 total time spend for step 4 : 2.1280086040496826 step5:split_time_score Mon May 26 14:08:33 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 : ['23336675'] 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 : [('23336675',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23336675) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1361077103: {'path': 'temp/1748261310_3947450_1361077103_e930561cd21fa3ff288dbbc314769ee7.jpg', 'extension': 'jpg'}, 1361077132: {'path': 'temp/1748261310_3947450_1361077132_f2b6e60745e67cdf619f59aca4db3506.jpg', 'extension': 'jpg'}, 1361076334: {'path': 'temp/1748261310_3947450_1361076334_22aea3dfd029716e5a0f5d242069cfa9.jpg', 'extension': 'jpg'}, 1361076340: {'path': 'temp/1748261310_3947450_1361076340_c10448863ce5f115d63092f171c6f0a2.jpg', 'extension': 'jpg'}, 1361076636: {'path': 'temp/1748261310_3947450_1361076636_f726994c6bae56ffaa5074191f774fa5.jpg', 'extension': 'jpg'}, 1361076314: {'path': 'temp/1748261310_3947450_1361076314_99f81262c72b8e3bc77ecc2a0beee093.jpg', 'extension': 'jpg'}, 1361076321: {'path': 'temp/1748261310_3947450_1361076321_e43d8ddb575e40918f4101461d653d48.jpg', 'extension': 'jpg'}, 1361076324: {'path': 'temp/1748261310_3947450_1361076324_085a223bb2da0eb86a4a8b8b2548f1fa.jpg', 'extension': 'jpg'}, 1361076764: {'path': 'temp/1748261310_3947450_1361076764_5f9e976633cdda5d64af01e1947b71d7.jpg', 'extension': 'jpg'}, 1361076796: {'path': 'temp/1748261310_3947450_1361076796_4bd04b53e90a28c838e2cafe292808ac.jpg', 'extension': 'jpg'}, 1361077074: {'path': 'temp/1748261310_3947450_1361077074_71bfc72f15266d37c2732036e6b66729.jpg', 'extension': 'jpg'}, 1361076664: {'path': 'temp/1748261310_3947450_1361076664_0720ed2464e876f10263a1c6f1916f9e.jpg', 'extension': 'jpg'}, 1361076697: {'path': 'temp/1748261310_3947450_1361076697_e0517ab4a6bd22eaad4e9fc2dc90102e.jpg', 'extension': 'jpg'}, 1361076730: {'path': 'temp/1748261310_3947450_1361076730_c03c74fb73ca6424c89c6b099c6a83f8.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 = 23336675; (('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 = 23336675 group by h (('14', 31),) 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=23336675 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 (23336675) 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 (23336675) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26052025 23336675 Nombre de photos uploadées : 31 / 23040 (0%) 26052025 23336675 Nombre de photos taguées (types de déchets): 0 / 31 (0%) 26052025 23336675 Nombre de photos taguées (volume) : 0 / 31 (0%) [{'photo_id': 1361076011, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/a6dda51bad2320d284da97fea79b4fde.jpg', 'username': None, 'uploaded_at': 1748260867, 'text': 'image_26052025_14_00_13_010192m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361076135, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/9a7e04a6922071a89a9ee7b1afc66e65.jpg', 'username': None, 'uploaded_at': 1748260927, 'text': 'image_26052025_14_00_24_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361076132, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/09f5fb31cd548b047603108feb27ef92.jpg', 'username': None, 'uploaded_at': 1748260927, 'text': 'image_26052025_14_01_04_010155m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361076129, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/9c1732d49e71f40e5936ceb134d37e32.jpg', 'username': None, 'uploaded_at': 1748260927, 'text': 'image_26052025_14_01_13_009125m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ??????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024690628051757812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23336675, '2025-05-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1834524,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02742910385131836 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= 1834524 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23319692, 'dashboard_result_id': 10895098, '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_P23319692_26-05-2025_11_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319704, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23319847, 'dashboard_result_id': 10895099, '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_P23319847_26-05-2025_05_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319859, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23320077, 'dashboard_result_id': 10895100, '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_P23320077_26-05-2025_11_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23320084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320089, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23325134, 'dashboard_result_id': 10895101, '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_P23325134_26-05-2025_11_08_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325387, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23320531, 'dashboard_result_id': 10895102, '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_P23320531_26-05-2025_11_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23320532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320543, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23321016, 'dashboard_result_id': 10895103, '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_P23321016_26-05-2025_11_15_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321028, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23325136, 'dashboard_result_id': 10895104, '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_P23325136_26-05-2025_11_08_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325351, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23321495, 'dashboard_result_id': 10895105, '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_P23321495_26-05-2025_11_15_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321507, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23321641, 'dashboard_result_id': 10895106, '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_P23321641_26-05-2025_11_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321653, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23325138, 'dashboard_result_id': 10895107, '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_P23325138_26-05-2025_11_07_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325314, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23322061, 'dashboard_result_id': 10895108, '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_P23322061_26-05-2025_11_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23322065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322073, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23325141, 'dashboard_result_id': 10895109, '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_P23325141_26-05-2025_11_07_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325277, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23322562, 'dashboard_result_id': 10895110, '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_P23322562_26-05-2025_11_12_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23322571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322583, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23323551, 'dashboard_result_id': 10895111, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323564, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23323111, 'dashboard_result_id': 10895112, '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_P23323111_26-05-2025_11_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323124, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23323520, 'dashboard_result_id': 10895113, '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_P23323520_26-05-2025_09_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323534, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23323923, 'dashboard_result_id': 10895114, '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_P23323923_26-05-2025_11_11_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23323924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323935, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23324068, 'dashboard_result_id': 10895115, '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_P23324068_26-05-2025_11_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23324069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324080, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23324122, 'dashboard_result_id': 10895116, '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_P23324122_26-05-2025_11_10_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324135, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23324402, 'dashboard_result_id': 10895117, '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_P23324402_26-05-2025_11_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324415, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23324563, 'dashboard_result_id': 10895118, '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_P23324563_26-05-2025_11_09_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324576, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23325143, 'dashboard_result_id': 10895119, '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_P23325143_26-05-2025_11_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325162, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23325201, 'dashboard_result_id': 10895120, '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_P23325201_26-05-2025_11_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325214, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23325821, 'dashboard_result_id': 10895121, '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_P23325821_26-05-2025_11_33_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325855, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23326708, 'dashboard_result_id': 10895122, '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_P23326708_26-05-2025_11_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23326719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23326720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23326721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23326722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23326723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23326724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23326725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23326726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23326727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23326728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23326729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23326730, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23327651, 'dashboard_result_id': 10895123, '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_P23327651_26-05-2025_12_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327676, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23328708, 'dashboard_result_id': 10895124, '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_P23328708_26-05-2025_13_59_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23328751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23328752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23328753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23328754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23328755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23328756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23328757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23328758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23328759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23328760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23328761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23328762, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23334996, 'dashboard_result_id': 10895125, '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_P23334996_26-05-2025_13_27_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23334997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23334998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23334999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335008, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23335603, 'dashboard_result_id': 10895126, '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_P23335603_26-05-2025_13_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335623, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23336428, 'dashboard_result_id': 10895127, '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_P23336428_26-05-2025_14_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336452, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843004, 'mtr_portfolio_id': 23336675, 'dashboard_result_id': 10895128, '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_P23336675_26-05-2025_14_06_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336694, '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 = 23319692 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': 2948214, 'mtr_portfolio_id': 23319692, 'created_at': datetime.datetime(2025, 5, 26, 11, 17, 29), 'result': '0.02519662063444177', 'result_long': None, 'result_double': None}] Qualite : 0.02519662063444177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23319692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319692_26-05-2025_11_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23319692 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_P23319692_26-05-2025_11_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319704, 'pht': 3726}}" where mtr_portfolio_id = 23319692 and dashboard_run_id = 1843004 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`=23319692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895098, 0.02519662063444177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319692_26-05-2025_11_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319704, '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 = 23319847 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': 2948254, 'mtr_portfolio_id': 23319847, 'created_at': datetime.datetime(2025, 5, 26, 5, 33, 33), 'result': '0.04429005484375135', 'result_long': None, 'result_double': None}] Qualite : 0.04429005484375135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23319847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319847_26-05-2025_05_33_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23319847 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_P23319847_26-05-2025_05_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319859, 'pht': 3726}}" where mtr_portfolio_id = 23319847 and dashboard_run_id = 1843004 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`=23319847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895099, 0.04429005484375135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319847_26-05-2025_05_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319859, '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 = 23320077 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': 2948365, 'mtr_portfolio_id': 23320077, 'created_at': datetime.datetime(2025, 5, 26, 11, 16, 28), 'result': '0.03387753435924145', 'result_long': None, 'result_double': None}] Qualite : 0.03387753435924145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23320077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320077_26-05-2025_11_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23320077 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_P23320077_26-05-2025_11_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23320084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320089, 'pht': 3726}}" where mtr_portfolio_id = 23320077 and dashboard_run_id = 1843004 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`=23320077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895100, 0.03387753435924145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320077_26-05-2025_11_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23320084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320089, '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 = 23325134 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': 2951444, 'mtr_portfolio_id': 23325134, 'created_at': datetime.datetime(2025, 5, 26, 11, 8, 30), 'result': '0.04692466993136173', 'result_long': None, 'result_double': None}] Qualite : 0.04692466993136173 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325134_26-05-2025_11_08_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325134 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_P23325134_26-05-2025_11_08_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325387, 'pht': 3726}}" where mtr_portfolio_id = 23325134 and dashboard_run_id = 1843004 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`=23325134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895101, 0.04692466993136173, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325134_26-05-2025_11_08_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325387, '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 = 23320531 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': 2948625, 'mtr_portfolio_id': 23320531, 'created_at': datetime.datetime(2025, 5, 26, 11, 15, 59), 'result': '0.05544331765388143', 'result_long': None, 'result_double': None}] Qualite : 0.05544331765388143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23320531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320531_26-05-2025_11_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23320531 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_P23320531_26-05-2025_11_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23320532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320543, 'pht': 3726}}" where mtr_portfolio_id = 23320531 and dashboard_run_id = 1843004 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`=23320531 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895102, 0.05544331765388143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320531_26-05-2025_11_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23320532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320543, '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 = 23321016 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': 2948863, 'mtr_portfolio_id': 23321016, 'created_at': datetime.datetime(2025, 5, 26, 11, 15, 31), 'result': '0.0894193868825305', 'result_long': None, 'result_double': None}] Qualite : 0.0894193868825305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23321016 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321016_26-05-2025_11_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23321016 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_P23321016_26-05-2025_11_15_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321028, 'pht': 3726}}" where mtr_portfolio_id = 23321016 and dashboard_run_id = 1843004 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`=23321016 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895103, 0.0894193868825305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321016_26-05-2025_11_15_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321028, '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 = 23325136 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': 2951445, 'mtr_portfolio_id': 23325136, 'created_at': datetime.datetime(2025, 5, 26, 11, 8, 1), 'result': '0.022613860282363396', 'result_long': None, 'result_double': None}] Qualite : 0.022613860282363396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325136_26-05-2025_11_08_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325136 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_P23325136_26-05-2025_11_08_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325351, 'pht': 3726}}" where mtr_portfolio_id = 23325136 and dashboard_run_id = 1843004 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`=23325136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895104, 0.022613860282363396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325136_26-05-2025_11_08_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325351, '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 = 23321495 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 = 23321495 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 = 23321495 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23321495 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 = 23321495 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 = 23321495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321495_26-05-2025_11_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23321495 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_P23321495_26-05-2025_11_15_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321507, 'pht': 3726}}" where mtr_portfolio_id = 23321495 and dashboard_run_id = 1843004 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 = 23321641 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': 2949196, 'mtr_portfolio_id': 23321641, 'created_at': datetime.datetime(2025, 5, 26, 11, 14, 1), 'result': '0.02985346412270691', 'result_long': None, 'result_double': None}] Qualite : 0.02985346412270691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23321641 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321641_26-05-2025_11_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23321641 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_P23321641_26-05-2025_11_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321653, 'pht': 3726}}" where mtr_portfolio_id = 23321641 and dashboard_run_id = 1843004 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`=23321641 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895106, 0.02985346412270691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321641_26-05-2025_11_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321653, '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 = 23325138 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': 2951446, 'mtr_portfolio_id': 23325138, 'created_at': datetime.datetime(2025, 5, 26, 11, 7, 30), 'result': '0.036139356830812215', 'result_long': None, 'result_double': None}] Qualite : 0.036139356830812215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325138_26-05-2025_11_07_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325138 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_P23325138_26-05-2025_11_07_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325314, 'pht': 3726}}" where mtr_portfolio_id = 23325138 and dashboard_run_id = 1843004 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`=23325138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895107, 0.036139356830812215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325138_26-05-2025_11_07_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325314, '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 = 23322061 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': 2949486, 'mtr_portfolio_id': 23322061, 'created_at': datetime.datetime(2025, 5, 26, 11, 13, 28), 'result': '0.02602303439189305', 'result_long': None, 'result_double': None}] Qualite : 0.02602303439189305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23322061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322061_26-05-2025_11_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23322061 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_P23322061_26-05-2025_11_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23322065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322073, 'pht': 3726}}" where mtr_portfolio_id = 23322061 and dashboard_run_id = 1843004 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`=23322061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895108, 0.02602303439189305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322061_26-05-2025_11_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23322065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322073, '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 = 23325141 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': 2951447, 'mtr_portfolio_id': 23325141, 'created_at': datetime.datetime(2025, 5, 26, 11, 7, 1), 'result': '0.0429633289857965', 'result_long': None, 'result_double': None}] Qualite : 0.0429633289857965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325141_26-05-2025_11_07_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325141 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_P23325141_26-05-2025_11_07_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325277, 'pht': 3726}}" where mtr_portfolio_id = 23325141 and dashboard_run_id = 1843004 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`=23325141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895109, 0.0429633289857965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325141_26-05-2025_11_07_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325277, '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 = 23322562 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': 2949854, 'mtr_portfolio_id': 23322562, 'created_at': datetime.datetime(2025, 5, 26, 11, 12, 29), 'result': '0.02768663961105856', 'result_long': None, 'result_double': None}] Qualite : 0.02768663961105856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23322562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322562_26-05-2025_11_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23322562 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_P23322562_26-05-2025_11_12_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23322571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322583, 'pht': 3726}}" where mtr_portfolio_id = 23322562 and dashboard_run_id = 1843004 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`=23322562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895110, 0.02768663961105856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322562_26-05-2025_11_12_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23322571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322583, '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 = 23323551 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': 2950540, 'mtr_portfolio_id': 23323551, 'created_at': datetime.datetime(2025, 5, 26, 9, 5, 30), 'result': '0.04185348961256268', 'result_long': None, 'result_double': None}] Qualite : 0.04185348961256268 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323551 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%23323551%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323551 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323564, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 23323551 and dashboard_run_id = 1843004 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`=23323551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895111, 0.04185348961256268, "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323564, 'pht': 3726}, 'url_report': ''}") 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 = 23323111 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': 2950232, 'mtr_portfolio_id': 23323111, 'created_at': datetime.datetime(2025, 5, 26, 11, 11, 58), 'result': '0.05436677666639777', 'result_long': None, 'result_double': None}] Qualite : 0.05436677666639777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323111_26-05-2025_11_12_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323111 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_P23323111_26-05-2025_11_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323124, 'pht': 3726}}" where mtr_portfolio_id = 23323111 and dashboard_run_id = 1843004 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`=23323111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895112, 0.05436677666639777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323111_26-05-2025_11_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323124, '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 = 23323520 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': 2950535, 'mtr_portfolio_id': 23323520, 'created_at': datetime.datetime(2025, 5, 26, 9, 3, 28), 'result': '0.05594342227950576', 'result_long': None, 'result_double': None}] Qualite : 0.05594342227950576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323520 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323520_26-05-2025_09_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323520 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_P23323520_26-05-2025_09_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323534, 'pht': 3726}}" where mtr_portfolio_id = 23323520 and dashboard_run_id = 1843004 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`=23323520 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895113, 0.05594342227950576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323520_26-05-2025_09_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323534, '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 = 23323923 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': 2950727, 'mtr_portfolio_id': 23323923, 'created_at': datetime.datetime(2025, 5, 26, 11, 11, 29), 'result': '0.02269183291199363', 'result_long': None, 'result_double': None}] Qualite : 0.02269183291199363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323923 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323923_26-05-2025_11_11_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323923 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_P23323923_26-05-2025_11_11_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23323924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323935, 'pht': 3726}}" where mtr_portfolio_id = 23323923 and dashboard_run_id = 1843004 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`=23323923 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895114, 0.02269183291199363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323923_26-05-2025_11_11_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23323924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323935, '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 = 23324068 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': 2950787, 'mtr_portfolio_id': 23324068, 'created_at': datetime.datetime(2025, 5, 26, 11, 10, 28), 'result': '0.0338376396467845', 'result_long': None, 'result_double': None}] Qualite : 0.0338376396467845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324068_26-05-2025_11_10_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324068 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_P23324068_26-05-2025_11_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23324069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324080, 'pht': 3726}}" where mtr_portfolio_id = 23324068 and dashboard_run_id = 1843004 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`=23324068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895115, 0.0338376396467845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324068_26-05-2025_11_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23324069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324080, '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 = 23324122 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': 2950845, 'mtr_portfolio_id': 23324122, 'created_at': datetime.datetime(2025, 5, 26, 11, 9, 59), 'result': '0.019603365584841985', 'result_long': None, 'result_double': None}] Qualite : 0.019603365584841985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324122 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324122_26-05-2025_11_10_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324122 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_P23324122_26-05-2025_11_10_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324135, 'pht': 3726}}" where mtr_portfolio_id = 23324122 and dashboard_run_id = 1843004 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`=23324122 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895116, 0.019603365584841985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324122_26-05-2025_11_10_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324135, '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 = 23324402 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': 2951013, 'mtr_portfolio_id': 23324402, 'created_at': datetime.datetime(2025, 5, 26, 11, 9, 28), 'result': '0.017948956951831813', 'result_long': None, 'result_double': None}] Qualite : 0.017948956951831813 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324402 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324402_26-05-2025_11_09_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324402 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_P23324402_26-05-2025_11_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324415, 'pht': 3726}}" where mtr_portfolio_id = 23324402 and dashboard_run_id = 1843004 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`=23324402 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895117, 0.017948956951831813, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324402_26-05-2025_11_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324415, '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 = 23324563 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': 2951108, 'mtr_portfolio_id': 23324563, 'created_at': datetime.datetime(2025, 5, 26, 11, 9), 'result': '0.012910999500873472', 'result_long': None, 'result_double': None}] Qualite : 0.012910999500873472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324563_26-05-2025_11_09_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324563 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_P23324563_26-05-2025_11_09_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324576, 'pht': 3726}}" where mtr_portfolio_id = 23324563 and dashboard_run_id = 1843004 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`=23324563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895118, 0.012910999500873472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324563_26-05-2025_11_09_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324576, '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 = 23325143 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': 2951448, 'mtr_portfolio_id': 23325143, 'created_at': datetime.datetime(2025, 5, 26, 11, 6, 32), 'result': '0.0803310808757231', 'result_long': None, 'result_double': None}] Qualite : 0.0803310808757231 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325143 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325143_26-05-2025_11_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325143 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_P23325143_26-05-2025_11_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325162, 'pht': 3726}}" where mtr_portfolio_id = 23325143 and dashboard_run_id = 1843004 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`=23325143 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895119, 0.0803310808757231, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325143_26-05-2025_11_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325162, '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 = 23325201 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': 2951498, 'mtr_portfolio_id': 23325201, 'created_at': datetime.datetime(2025, 5, 26, 11, 19, 33), 'result': '0.052389026009317004', 'result_long': None, 'result_double': None}] Qualite : 0.052389026009317004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325201_26-05-2025_11_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325201 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_P23325201_26-05-2025_11_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325214, 'pht': 3726}}" where mtr_portfolio_id = 23325201 and dashboard_run_id = 1843004 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`=23325201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895120, 0.052389026009317004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325201_26-05-2025_11_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325214, '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 = 23325821 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': 2951771, 'mtr_portfolio_id': 23325821, 'created_at': datetime.datetime(2025, 5, 26, 11, 33, 58), 'result': '0.04660843160354288', 'result_long': None, 'result_double': None}] Qualite : 0.04660843160354288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325821_26-05-2025_11_33_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325821 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_P23325821_26-05-2025_11_33_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325855, 'pht': 3726}}" where mtr_portfolio_id = 23325821 and dashboard_run_id = 1843004 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`=23325821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895121, 0.04660843160354288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325821_26-05-2025_11_33_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325855, '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 = 23326708 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': 2952066, 'mtr_portfolio_id': 23326708, 'created_at': datetime.datetime(2025, 5, 26, 11, 47), 'result': '0.04892546956012179', 'result_long': None, 'result_double': None}] Qualite : 0.04892546956012179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23326708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23326708_26-05-2025_11_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23326708 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_P23326708_26-05-2025_11_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23326719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23326720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23326721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23326722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23326723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23326724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23326725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23326726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23326727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23326728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23326729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23326730, 'pht': 3726}}" where mtr_portfolio_id = 23326708 and dashboard_run_id = 1843004 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`=23326708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895122, 0.04892546956012179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23326708_26-05-2025_11_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23326719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23326720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23326721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23326722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23326723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23326724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23326725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23326726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23326727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23326728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23326729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23326730, '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 = 23327651 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': 2952347, 'mtr_portfolio_id': 23327651, 'created_at': datetime.datetime(2025, 5, 26, 12, 2, 59), 'result': '0.0399187429071831', 'result_long': None, 'result_double': None}] Qualite : 0.0399187429071831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23327651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23327651_26-05-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23327651 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_P23327651_26-05-2025_12_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327676, 'pht': 3726}}" where mtr_portfolio_id = 23327651 and dashboard_run_id = 1843004 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`=23327651 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895123, 0.0399187429071831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23327651_26-05-2025_12_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327676, '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 = 23328708 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': 2952662, 'mtr_portfolio_id': 23328708, 'created_at': datetime.datetime(2025, 5, 26, 13, 59, 58), 'result': '0.05322573463366244', 'result_long': None, 'result_double': None}] Qualite : 0.05322573463366244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23328708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23328708_26-05-2025_13_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23328708 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_P23328708_26-05-2025_13_59_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23328751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23328752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23328753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23328754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23328755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23328756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23328757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23328758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23328759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23328760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23328761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23328762, 'pht': 3726}}" where mtr_portfolio_id = 23328708 and dashboard_run_id = 1843004 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`=23328708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895124, 0.05322573463366244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23328708_26-05-2025_13_59_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23328751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23328752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23328753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23328754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23328755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23328756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23328757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23328758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23328759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23328760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23328761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23328762, '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 = 23334996 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 = 23334996 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 = 23334996 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23334996 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 = 23334996 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 = 23334996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23334996_26-05-2025_13_27_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23334996 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_P23334996_26-05-2025_13_27_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23334997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23334998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23334999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335008, 'pht': 3726}}" where mtr_portfolio_id = 23334996 and dashboard_run_id = 1843004 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 = 23335603 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': 2953477, 'mtr_portfolio_id': 23335603, 'created_at': datetime.datetime(2025, 5, 26, 13, 48, 59), 'result': '0.04992283243862639', 'result_long': None, 'result_double': None}] Qualite : 0.04992283243862639 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23335603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23335603_26-05-2025_13_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23335603 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_P23335603_26-05-2025_13_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335623, 'pht': 3726}}" where mtr_portfolio_id = 23335603 and dashboard_run_id = 1843004 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`=23335603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895126, 0.04992283243862639, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23335603_26-05-2025_13_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335623, '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 = 23336428 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': 2953526, 'mtr_portfolio_id': 23336428, 'created_at': datetime.datetime(2025, 5, 26, 14, 2, 59), 'result': '0.04674909162262245', 'result_long': None, 'result_double': None}] Qualite : 0.04674909162262245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23336428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336428_26-05-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23336428 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_P23336428_26-05-2025_14_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336452, 'pht': 3726}}" where mtr_portfolio_id = 23336428 and dashboard_run_id = 1843004 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`=23336428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895127, 0.04674909162262245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336428_26-05-2025_14_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336452, '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 = 23336675 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': 2953614, 'mtr_portfolio_id': 23336675, 'created_at': datetime.datetime(2025, 5, 26, 14, 8, 30), 'result': '0.027303963426455646', 'result_long': None, 'result_double': None}] Qualite : 0.027303963426455646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23336675 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336675_26-05-2025_14_08_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23336675 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_P23336675_26-05-2025_14_08_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336694, 'pht': 3726}}" where mtr_portfolio_id = 23336675 and dashboard_run_id = 1843004 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`=23336675 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895128, 0.027303963426455646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336675_26-05-2025_14_08_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336694, '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 (23319692,23319847,23320077,23325134,23320531,23321016,23325136,23321495,23321641,23325138,23322061,23325141,23322562,23323551,23323111,23323520,23323923,23324068,23324122,23324402,23324563,23325143,23325201,23325821,23326708,23327651,23328708,23334996,23335603,23336428,23336675) result : ((1361037641,), (1361037643,), (1361037662,), (1361037664,), (1361037666,), (1361037694,), (1361037721,), (1361037723,), (1361037725,), (1361037727,), (1361037747,), (1361037749,), (1361037751,), (1361037753,), (1361037776,), (1361037778,), (1361037780,), (1361037795,), (1361037797,), (1361037799,), (1361037801,), (1361037803,), (1361037804,), (1361037813,), (1361037816,), (1361037818,), (1361037821,), (1361037824,), (1361037827,), (1361037836,), (1361037838,), (1361037840,), (1361037842,), (1361037858,), (1361037859,), (1361037860,), (1361037861,), (1361037862,), (1361037863,), (1361037876,), (1361037878,), (1361037880,), (1361037882,), (1361037884,), (1361037895,), (1361037897,), (1361037899,), (1361037901,), (1361037903,), (1361037915,), (1361037918,), (1361037920,), (1361037922,), (1361037925,), (1361037955,), (1361037947,), (1361037948,), (1361037949,), (1361037951,), (1361037953,), (1361037970,), (1361037972,), (1361037974,), (1361037986,), (1361037988,), (1361037990,), (1361037992,), (1361037994,), (1361038010,), (1361038013,), (1361038015,), (1361038036,), (1361038038,), (1361038040,), (1361038042,), (1361038044,), (1361038046,), (1361038055,), (1361038057,), (1361038059,), (1361038061,), (1361038092,), (1361038094,), (1361038096,), (1361038108,), (1361038110,), (1361038112,), (1361038114,), (1361038116,), (1361038118,), (1361038127,), (1361038129,), (1361038131,), (1361038150,), (1361038152,), (1361038154,), (1361038156,), (1361038159,), (1361038176,), (1361038178,), (1361038179,), (1361038181,), (1361038183,), (1361038193,), (1361038195,), (1361038197,), (1361038208,), (1361038210,), (1361038212,), (1361038214,), (1361038217,), (1361038218,), (1361038232,), (1361038234,), (1361038237,), (1361038272,), (1361038258,), (1361038260,), (1361038263,), (1361038266,), (1361038269,), (1361038294,), (1361038296,), (1361038298,), (1361038300,), (1361038302,), (1361038304,), (1361038313,), (1361038315,), (1361038317,), (1361038319,), (1361038321,), (1361038332,), (1361038334,), (1361038336,), (1361038338,), (1361038340,), (1361038342,), (1361038352,), (1361038354,), (1361038356,), (1361038358,), (1361038371,), (1361038373,), (1361038375,), (1361038377,), (1361038379,), (1361038395,), (1361038398,), (1361038401,), (1361038403,), (1361038416,), (1361038419,), (1361038422,), (1361038425,), (1361038428,), (1361038429,), (1361038441,), (1361038443,), (1361038445,), (1361038447,), (1361038449,), (1361038451,), (1361038464,), (1361038467,), (1361038469,), (1361038472,), (1361038489,), (1361038491,), (1361038493,), (1361038495,), (1361038497,), (1361038499,), (1361038509,), (1361038511,), (1361038513,), (1361038515,), (1361038517,), (1361038527,), (1361038528,), (1361038529,), (1361038530,), (1361038531,), (1361038532,), (1361038544,), (1361038546,), (1361038548,), (1361038564,), (1361038566,), (1361038569,), (1361038571,), (1361038574,), (1361038576,), (1361038601,), (1361038918,), (1361038919,), (1361038920,), (1361038941,), (1361038943,), (1361038945,), (1361038965,), (1361038967,), (1361038969,), (1361038971,), (1361038990,), (1361039024,), (1361039025,), (1361039057,), (1361039059,), (1361039061,), (1361039063,), (1361039065,), (1361039067,), (1361039084,), (1361039086,), (1361039089,), (1361039102,), (1361039104,), (1361039106,), (1361039126,), (1361039129,), (1361039132,), (1361039135,), (1361039138,), (1361039140,), (1361039158,), (1361039161,), (1361039164,), (1361039188,), (1361039192,), (1361039195,), (1361039198,), (1361039203,), (1361039206,), (1361039222,), (1361039225,), (1361039229,), (1361039232,), (1361039236,), (1361039239,), (1361039258,), (1361039260,), (1361039262,), (1361039264,), (1361039288,), (1361039291,), (1361039294,), (1361039297,), (1361039300,), (1361039304,), (1361039325,), (1361039332,), (1361039334,), (1361039338,), (1361039381,), (1361039365,), (1361039368,), (1361039371,), (1361039374,), (1361039378,), (1361039406,), (1361039409,), (1361039412,), (1361039415,), (1361039442,), (1361039446,), (1361039449,), (1361039453,), (1361039457,), (1361039474,), (1361039476,), (1361039478,), (1361039480,), (1361039483,), (1361039507,), (1361039509,), (1361039511,), (1361039513,), (1361039515,), (1361039533,), (1361039535,), (1361039537,), (1361039539,), (1361039541,), (1361039543,), (1361039558,), (1361039561,), (1361039564,), (1361039592,), (1361039595,), (1361039598,), (1361039601,), (1361039604,), (1361039608,), (1361039630,), (1361039631,), (1361039632,), (1361039633,), (1361039635,), (1361039639,), (1361039658,), (1361039661,), (1361039664,), (1361039697,), (1361039699,), (1361039701,), (1361039704,), (1361039709,), (1361039714,), (1361039744,), (1361039748,), (1361039750,), (1361039776,), (1361039779,), (1361039781,), (1361039783,), (1361039787,), (1361039790,), (1361039815,), (1361039818,), (1361039821,), (1361039824,), (1361039827,), (1361039853,), (1361039855,), (1361039858,), (1361039860,), (1361039863,), (1361039867,), (1361039895,), (1361040417,), (1361040420,), (1361040423,), (1361040427,), (1361040431,), (1361040450,), (1361040451,), (1361040453,), (1361040456,), (1361040459,), (1361040481,), (1361040484,), (1361040487,), (1361040491,), (1361040495,), (1361040520,), (1361040522,), (1361040524,), (1361040526,), (1361040528,), (1361040531,), (1361040555,), (1361040557,), (1361040560,), (1361040564,), (1361040590,), (1361040593,), (1361040596,), (1361040600,), (1361040605,), (1361040611,), (1361040633,), (1361040635,), (1361040637,), (1361040640,), (1361040643,), (1361040666,), (1361040669,), (1361040672,), (1361040676,), (1361040680,), (1361040706,), (1361040708,), (1361040710,), (1361040713,), (1361040716,), (1361040741,), (1361040744,), (1361040747,), (1361040751,), (1361040756,), (1361040779,), (1361040781,), (1361040783,), (1361040786,), (1361040788,), (1361040810,), (1361040813,), (1361040816,), (1361040820,), (1361040824,), (1361040847,), (1361040849,), (1361040851,), (1361040854,), (1361040881,), (1361040885,), (1361040889,), (1361040892,), (1361040894,), (1361040897,), (1361040936,), (1361040924,), (1361040926,), (1361040928,), (1361040931,), (1361040954,), (1361040956,), (1361040959,), (1361040963,), (1361040967,), (1361040972,), (1361041002,), (1361041006,), (1361041009,), (1361041012,), (1361041040,), (1361041045,), (1361041054,), (1361041063,), (1361041074,), (1361041077,), (1361041096,), (1361041098,), (1361041101,), (1361041105,), (1361041136,), (1361041139,), (1361041143,), (1361041146,), (1361041149,), (1361041153,), (1361041173,), (1361041177,), (1361041181,), (1361041205,), (1361041207,), (1361041210,), (1361041214,), (1361041221,), (1361041225,), (1361041241,), (1361041243,), (1361041246,), (1361041250,), (1361041273,), (1361041275,), (1361041278,), (1361041282,), (1361041286,), (1361041291,), (1361041317,), (1361041321,), (1361041325,), (1361041328,), (1361041332,), (1361041336,), (1361041363,), (1361041365,), (1361041368,), (1361041372,), (1361041399,), (1361041402,), (1361041406,), (1361041410,), (1361041414,), (1361041417,), (1361041432,), (1361041434,), (1361041437,), (1361041441,), (1361041461,), (1361041465,), (1361041470,), (1361041517,), (1361042075,), (1361042078,), (1361042082,), (1361042115,), (1361042117,), (1361042120,), (1361042124,), (1361042128,), (1361042132,), (1361042147,), (1361042149,), (1361042152,), (1361042178,), (1361042180,), (1361042183,), (1361042187,), (1361042190,), (1361042195,), (1361042215,), (1361042217,), (1361042220,), (1361042224,), (1361042229,), (1361042247,), (1361042249,), (1361042252,), (1361042256,), (1361042260,), (1361042265,), (1361042279,), (1361042282,), (1361042285,), (1361042289,), (1361042308,), (1361042313,), (1361042317,), (1361042320,), (1361042325,), (1361042329,), (1361042345,), (1361042347,), (1361042350,), (1361042354,), (1361042374,), (1361042375,), (1361042377,), (1361042380,), (1361042383,), (1361042386,), (1361042402,), (1361042404,), (1361042407,), (1361042411,), (1361042433,), (1361042435,), (1361042438,), (1361042442,), (1361042460,), (1361042464,), (1361042468,), (1361042472,), (1361042478,), (1361042483,), (1361042500,), (1361042503,), (1361042507,), (1361042510,), (1361042536,), (1361042539,), (1361042543,), (1361042546,), (1361042552,), (1361042557,), (1361042585,), (1361043222,), (1361043228,), (1361043233,), (1361043271,), (1361043275,), (1361043280,), (1361043283,), (1361043286,), (1361043308,), (1361043310,), (1361043313,), (1361043317,), (1361043320,), (1361043324,), (1361043348,), (1361043350,), (1361043353,), (1361043357,), (1361043361,), (1361043386,), (1361043390,), (1361043392,), (1361043395,), (1361043399,), (1361043425,), (1361043427,), (1361043430,), (1361043434,), (1361043439,), (1361043480,), (1361043483,), (1361043487,), (1361043492,), (1361043495,), (1361043528,), (1361043532,), (1361043535,), (1361043538,), (1361043543,), (1361043568,), (1361043572,), (1361043576,), (1361043581,), (1361043585,), (1361043614,), (1361043616,), (1361043619,), (1361043622,), (1361043679,), (1361043681,), (1361043684,), (1361043688,), (1361043695,), (1361043698,), (1361043711,), (1361043713,), (1361043716,), (1361043751,), (1361043754,), (1361043758,), (1361043763,), (1361043767,), (1361043773,), (1361043813,), (1361043815,), (1361043818,), (1361043822,), (1361043847,), (1361043850,), (1361043854,), (1361043857,), (1361043861,), (1361043865,), (1361043892,), (1361044591,), (1361044593,), (1361044596,), (1361044599,), (1361044634,), (1361044637,), (1361044641,), (1361044645,), (1361044649,), (1361044653,), (1361044676,), (1361044678,), (1361044681,), (1361044685,), (1361044723,), (1361044725,), (1361044728,), (1361044732,), (1361044738,), (1361044742,), (1361044766,), (1361044768,), (1361044770,), (1361044774,), (1361044800,), (1361044803,), (1361044806,), (1361044811,), (1361044815,), (1361044820,), (1361044841,), (1361044843,), (1361044846,), (1361044850,), (1361044883,), (1361044887,), (1361044892,), (1361044895,), (1361044900,), (1361044906,), (1361044929,), (1361044932,), (1361044935,), (1361044939,), (1361044965,), (1361044970,), (1361044975,), (1361044981,), (1361044987,), (1361044996,), (1361045058,), (1361045061,), (1361045064,), (1361045067,), (1361045110,), (1361045112,), (1361045115,), (1361045118,), (1361045121,), (1361045145,), (1361045147,), (1361045150,), (1361045154,), (1361045158,), (1361045178,), (1361045180,), (1361045183,), (1361045187,), (1361045213,), (1361045216,), (1361045219,), (1361045222,), (1361045225,), (1361045267,), (1361045251,), (1361045253,), (1361045256,), (1361045260,), (1361045263,), (1361045288,), (1361045291,), (1361045293,), (1361045297,), (1361045324,), (1361045325,), (1361045326,), (1361045328,), (1361045331,), (1361045335,), (1361045359,), (1361045363,), (1361045367,), (1361045371,), (1361045401,), (1361045405,), (1361045410,), (1361045415,), (1361045420,), (1361045488,), (1361045498,), (1361045501,), (1361045503,), (1361045533,), (1361045537,), (1361045541,), (1361045545,), (1361045549,), (1361045577,), (1361045580,), (1361045583,), (1361045586,), (1361045589,), (1361045595,), (1361045636,), (1361045640,), (1361045643,), (1361045692,), (1361045697,), (1361045702,), (1361045707,), (1361045713,), (1361045718,), (1361045742,), (1361045745,), (1361045748,), (1361045787,), (1361045790,), (1361045793,), (1361045799,), (1361045805,), (1361045808,), (1361045827,), (1361045830,), (1361045833,), (1361045874,), (1361045879,), (1361045883,), (1361045889,), (1361045893,), (1361045900,), (1361045948,), (1361043882,), (1361043885,), (1361043888,), (1361043918,), (1361043920,), (1361043923,), (1361043927,), (1361043932,), (1361043937,), (1361043959,), (1361043962,), (1361043966,), (1361043970,), (1361043999,), (1361044002,), (1361044005,), (1361044009,), (1361044013,), (1361044020,), (1361044058,), (1361044064,), (1361044070,), (1361044073,), (1361044151,), (1361044155,), (1361044158,), (1361044162,), (1361044166,), (1361044171,), (1361044188,), (1361044191,), (1361044194,), (1361044198,), (1361044231,), (1361044233,), (1361044235,), (1361044238,), (1361044242,), (1361044269,), (1361044271,), (1361044274,), (1361044278,), (1361044281,), (1361044304,), (1361044308,), (1361044310,), (1361044313,), (1361044316,), (1361044344,), (1361044348,), (1361044354,), (1361044361,), (1361044365,), (1361044371,), (1361044398,), (1361044400,), (1361044403,), (1361044407,), (1361044439,), (1361044442,), (1361044446,), (1361044451,), (1361044456,), (1361044460,), (1361044482,), (1361044484,), (1361044487,), (1361044491,), (1361044531,), (1361044535,), (1361044602,), (1361047251,), (1361047255,), (1361047260,), (1361047302,), (1361047304,), (1361047307,), (1361047310,), (1361047350,), (1361047353,), (1361047357,), (1361047360,), (1361047364,), (1361047367,), (1361047396,), (1361047399,), (1361047402,), (1361047427,), (1361047431,), (1361047435,), (1361047439,), (1361047442,), (1361047472,), (1361047473,), (1361047475,), (1361047478,), (1361047482,), (1361047516,), (1361047519,), (1361047527,), (1361047531,), (1361047534,), (1361047537,), (1361047557,), (1361047559,), (1361047560,), (1361047564,), (1361047567,), (1361047593,), (1361047600,), (1361047605,), (1361047610,), (1361047616,), (1361047621,), (1361047651,), (1361047655,), (1361047657,), (1361047663,), (1361047704,), (1361047707,), (1361047710,), (1361047714,), (1361047717,), (1361047725,), (1361047753,), (1361047756,), (1361047759,), (1361047764,), (1361047789,), (1361047791,), (1361047795,), (1361047799,), (1361047802,), (1361047807,), (1361047830,), (1361047832,), (1361047835,), (1361047839,), (1361047874,), (1361047856,), (1361047862,), (1361047865,), (1361047868,), (1361047871,), (1361047890,), (1361047893,), (1361047897,), (1361047900,), (1361047903,), (1361047920,), (1361047980,), (1361048029,), (1361048063,), (1361048066,), (1361048068,), (1361048071,), (1361048098,), (1361048100,), (1361048103,), (1361048107,), (1361048114,), (1361048116,), (1361048131,), (1361048132,), (1361048135,), (1361048139,), (1361048173,), (1361048175,), (1361048177,), (1361048182,), (1361048186,), (1361048190,), (1361048208,), (1361048210,), (1361048212,), (1361048215,), (1361048222,), (1361048223,), (1361048233,), (1361048237,), (1361048239,), (1361048242,), (1361048261,), (1361048264,), (1361048268,), (1361048271,), (1361048275,), (1361048279,), (1361048305,), (1361048311,), (1361048316,), (1361048321,), (1361048334,), (1361048337,), (1361048339,), (1361048341,), (1361048346,), (1361048399,), (1361048381,), (1361048386,), (1361048389,), (1361048392,), (1361048396,), (1361048435,), (1361048437,), (1361048438,), (1361048440,), (1361048473,), (1361048476,), (1361048479,), (1361048484,), (1361048489,), (1361048524,), (1361048527,), (1361048530,), (1361048533,), (1361048538,), (1361048543,), (1361048578,), (1361048581,), (1361048585,), (1361048593,), (1361048635,), (1361048638,), (1361048641,), (1361048644,), (1361048647,), (1361048652,), (1361048685,), (1361048688,), (1361048692,), (1361048696,), (1361048701,), (1361048720,), (1361048723,), (1361048726,), (1361048728,), (1361048732,), (1361048735,), (1361048757,), (1361048760,), (1361048764,), (1361048768,), (1361048796,), (1361048800,), (1361048804,), (1361048807,), (1361048810,), (1361048813,), (1361048842,), (1361048846,), (1361048849,), (1361048851,), (1361048853,), (1361048881,), (1361048884,), (1361048886,), (1361048893,), (1361048898,), (1361048902,), (1361048920,), (1361048927,), (1361048932,), (1361048938,), (1361048943,), (1361048972,), (1361048975,), (1361048979,), (1361048983,), (1361048989,), (1361048994,), (1361049014,), (1361049018,), (1361049024,), (1361049028,), (1361049035,), (1361049088,), (1361049069,), (1361049072,), (1361049079,), (1361049083,), (1361049117,), (1361049119,), (1361049123,), (1361049127,), (1361049132,), (1361049164,), (1361049168,), (1361049170,), (1361049172,), (1361049175,), (1361049198,), (1361049201,), (1361049204,), (1361049209,), (1361049213,), (1361049229,), (1361049235,), (1361049239,), (1361049248,), (1361049253,), (1361049257,), (1361049281,), (1361049284,), (1361049287,), (1361049328,), (1361049331,), (1361049335,), (1361049340,), (1361049344,), (1361049347,), (1361049365,), (1361049376,), (1361049379,), (1361049383,), (1361049387,), (1361049405,), (1361049408,), (1361049414,), (1361049420,), (1361049425,), (1361049427,), (1361049444,), (1361049447,), (1361049452,), (1361049458,), (1361049500,), (1361049504,), (1361049508,), (1361049509,), (1361049517,), (1361049522,), (1361049552,), (1361049555,), (1361049560,), (1361049565,), (1361049571,), (1361049595,), (1361049596,), (1361049601,), (1361049606,), (1361049611,), (1361049617,), (1361049638,), (1361049641,), (1361049646,), (1361049651,), (1361049675,), (1361049685,), (1361049690,), (1361049697,), (1361049703,), (1361049705,), (1361049747,), (1361049737,), (1361049744,), (1361049780,), (1361049788,), (1361049791,), (1361049797,), (1361049802,), (1361049807,), (1361049834,), (1361049836,), (1361049839,), (1361049881,), (1361049884,), (1361049887,), (1361049890,), (1361049892,), (1361049898,), (1361049926,), (1361049929,), (1361049935,), (1361049984,), (1361049986,), (1361049989,), (1361049993,), (1361049996,), (1361050001,), (1361050019,), (1361050022,), (1361050026,), (1361050065,), (1361050069,), (1361050072,), (1361050077,), (1361050080,), (1361050084,), (1361050112,), (1361050115,), (1361050119,), (1361050124,), (1361050129,), (1361050166,), (1361050169,), (1361050172,), (1361050181,), (1361050187,), (1361050263,), (1361050268,), (1361050272,), (1361050277,), (1361050283,), (1361050287,), (1361050315,), (1361050317,), (1361050320,), (1361050371,), (1361050374,), (1361050378,), (1361050383,), (1361050385,), (1361050391,), (1361050427,), (1361050430,), (1361050432,), (1361050436,), (1361050440,), (1361050472,), (1361050476,), (1361050481,), (1361050486,), (1361050491,), (1361050497,), (1361050529,), (1361038597,), (1361038599,), (1361038616,), (1361038618,), (1361038620,), (1361038622,), (1361038624,), (1361038641,), (1361038643,), (1361038645,), (1361038647,), (1361038649,), (1361038651,), (1361038667,), (1361038670,), (1361038672,), (1361038674,), (1361038690,), (1361038692,), (1361038694,), (1361038696,), (1361038698,), (1361038700,), (1361038711,), (1361038713,), (1361038715,), (1361038717,), (1361038730,), (1361038732,), (1361038734,), (1361038736,), (1361038738,), (1361038740,), (1361038754,), (1361038756,), (1361038758,), (1361038783,), (1361038785,), (1361038787,), (1361038789,), (1361038792,), (1361038795,), (1361038809,), (1361038811,), (1361038813,), (1361038815,), (1361038827,), (1361038829,), (1361038831,), (1361038833,), (1361038835,), (1361038837,), (1361038843,), (1361038851,), (1361038854,), (1361038855,), (1361038863,), (1361038865,), (1361038867,), (1361038869,), (1361038871,), (1361038884,), (1361038887,), (1361038890,), (1361038893,), (1361038898,), (1361038899,), (1361038900,), (1361038902,), (1361038907,), (1361038921,), (1361039881,), (1361039884,), (1361039887,), (1361039891,), (1361039918,), (1361039920,), (1361039922,), (1361039924,), (1361039925,), (1361039950,), (1361039953,), (1361039956,), (1361039960,), (1361039963,), (1361039995,), (1361039997,), (1361039999,), (1361040030,), (1361040032,), (1361040035,), (1361040038,), (1361040042,), (1361040046,), (1361040067,), (1361040070,), (1361040073,), (1361040108,), (1361040112,), (1361040115,), (1361040119,), (1361040125,), (1361040130,), (1361040153,), (1361040156,), (1361040159,), (1361040192,), (1361040194,), (1361040196,), (1361040199,), (1361040203,), (1361040222,), (1361040225,), (1361040228,), (1361040232,), (1361040236,), (1361040264,), (1361040266,), (1361040268,), (1361040271,), (1361040293,), (1361040296,), (1361040299,), (1361040303,), (1361040307,), (1361040310,), (1361040329,), (1361040331,), (1361040333,), (1361040337,), (1361040356,), (1361040359,), (1361040362,), (1361040366,), (1361040370,), (1361040374,), (1361040392,), (1361040395,), (1361040397,), (1361040399,), (1361040401,), (1361040433,), (1361041498,), (1361041501,), (1361041505,), (1361041508,), (1361041514,), (1361041529,), (1361041530,), (1361041533,), (1361041537,), (1361041579,), (1361041581,), (1361041584,), (1361041588,), (1361041591,), (1361041597,), (1361041622,), (1361041624,), (1361041627,), (1361041631,), (1361041668,), (1361041670,), (1361041673,), (1361041677,), (1361041680,), (1361041684,), (1361041728,), (1361041732,), (1361041736,), (1361041742,), (1361041747,), (1361041768,), (1361041771,), (1361041777,), (1361041782,), (1361041785,), (1361041795,), (1361041797,), (1361041800,), (1361041804,), (1361041806,), (1361041830,), (1361041836,), (1361041842,), (1361041848,), (1361041865,), (1361041867,), (1361041870,), (1361041874,), (1361041877,), (1361041882,), (1361041900,), (1361041902,), (1361041905,), (1361041909,), (1361041912,), (1361041917,), (1361041935,), (1361041937,), (1361041940,), (1361041944,), (1361041968,), (1361041971,), (1361041974,), (1361041977,), (1361041981,), (1361041997,), (1361042000,), (1361042003,), (1361042007,), (1361042030,), (1361042034,), (1361042038,), (1361042043,), (1361042047,), (1361042053,), (1361042086,), (1361042576,), (1361042579,), (1361042582,), (1361042612,), (1361042616,), (1361042620,), (1361042625,), (1361042630,), (1361042633,), (1361042657,), (1361042660,), (1361042664,), (1361042669,), (1361042692,), (1361042695,), (1361042698,), (1361042701,), (1361042704,), (1361042727,), (1361042729,), (1361042733,), (1361042762,), (1361042764,), (1361042767,), (1361042769,), (1361042805,), (1361042808,), (1361042852,), (1361042855,), (1361042858,), (1361042862,), (1361042865,), (1361042871,), (1361042899,), (1361042901,), (1361042905,), (1361042910,), (1361042914,), (1361042918,), (1361042945,), (1361042948,), (1361042952,), (1361042957,), (1361042986,), (1361042999,), (1361043003,), (1361043010,), (1361043015,), (1361043019,), (1361043037,), (1361043040,), (1361043044,), (1361043049,), (1361043055,), (1361043077,), (1361043081,), (1361043085,), (1361043089,), (1361043095,), (1361043152,), (1361043158,), (1361043167,), (1361043174,), (1361043180,), (1361043238,), (1361050520,), (1361050522,), (1361050525,), (1361050562,), (1361050565,), (1361050569,), (1361050574,), (1361050580,), (1361050586,), (1361050613,), (1361050616,), (1361050619,), (1361050624,), (1361050664,), (1361050668,), (1361050673,), (1361050677,), (1361050682,), (1361050691,), (1361050725,), (1361050730,), (1361050736,), (1361050742,), (1361050750,), (1361050808,), (1361050811,), (1361050815,), (1361050820,), (1361050825,), (1361050855,), (1361050858,), (1361050861,), (1361050863,), (1361050867,), (1361050870,), (1361050894,), (1361050896,), (1361050898,), (1361050901,), (1361050906,), (1361050933,), (1361050936,), (1361050940,), (1361050945,), (1361050950,), (1361050955,), (1361050978,), (1361050979,), (1361050981,), (1361050984,), (1361051007,), (1361051010,), (1361051015,), (1361051021,), (1361051024,), (1361051031,), (1361051055,), (1361051058,), (1361051061,), (1361051064,), (1361051094,), (1361051096,), (1361051101,), (1361051106,), (1361051111,), (1361051116,), (1361051161,), (1361051166,), (1361051174,), (1361051182,), (1361051190,), (1361051196,), (1361051267,), (1361051251,), (1361051256,), (1361051259,), (1361051263,), (1361051710,), (1361051750,), (1361051754,), (1361051759,), (1361051763,), (1361051820,), (1361051823,), (1361051826,), (1361051830,), (1361051833,), (1361051837,), (1361051867,), (1361051870,), (1361051908,), (1361051911,), (1361051914,), (1361051918,), (1361051921,), (1361051963,), (1361051965,), (1361051969,), (1361051974,), (1361051980,), (1361052226,), (1361052229,), (1361052234,), (1361052322,), (1361052300,), (1361052303,), (1361052307,), (1361052312,), (1361052318,), (1361052345,), (1361052347,), (1361052349,), (1361052353,), (1361052384,), (1361052393,), (1361052399,), (1361052405,), (1361052410,), (1361052415,), (1361052434,), (1361052436,), (1361052439,), (1361052443,), (1361052448,), (1361052452,), (1361052474,), (1361052478,), (1361052483,), (1361052489,), (1361052598,), (1361052622,), (1361052626,), (1361052632,), (1361052637,), (1361052669,), (1361052671,), (1361052674,), (1361052678,), (1361052703,), (1361052706,), (1361052709,), (1361052713,), (1361052718,), (1361052723,), (1361052752,), (1361052755,), (1361052757,), (1361052760,), (1361052763,), (1361052788,), (1361052792,), (1361052797,), (1361052802,), (1361052808,), (1361052813,), (1361053161,), (1361053164,), (1361053168,), (1361053173,), (1361053272,), (1361053290,), (1361053298,), (1361053308,), (1361053314,), (1361053317,), (1361053353,), (1361053356,), (1361053360,), (1361053561,), (1361053578,), (1361053592,), (1361053600,), (1361053608,), (1361053612,), (1361053639,), (1361053642,), (1361053646,), (1361053650,), (1361053698,), (1361053688,), (1361053692,), (1361053696,), (1361053737,), (1361053745,), (1361053751,), (1361053756,), (1361053759,), (1361053806,), (1361053810,), (1361053814,), (1361053818,), (1361053823,), (1361053849,), (1361053852,), (1361053856,), (1361053860,), (1361053893,), (1361053895,), (1361053898,), (1361053902,), (1361053907,), (1361053912,), (1361054218,), (1361054233,), (1361054238,), (1361054243,), (1361054354,), (1361054363,), (1361054367,), (1361054502,), (1361054506,), (1361054511,), (1361054555,), (1361054558,), (1361054562,), (1361054565,), (1361054568,), (1361054574,), (1361054612,), (1361054615,), (1361054618,), (1361054622,), (1361054624,), (1361054641,), (1361054680,), (1361054683,), (1361054725,), (1361054728,), (1361054731,), (1361054734,), (1361054737,), (1361054772,), (1361054779,), (1361054782,), (1361054787,), (1361054792,), (1361054797,), (1361054822,), (1361054815,), (1361054819,), (1361054851,), (1361054854,), (1361054858,), (1361054863,), (1361054867,), (1361054900,), (1361054904,), (1361054907,), (1361054910,), (1361054914,), (1361054918,), (1361054946,), (1361054951,), (1361054956,), (1361054960,), (1361054996,), (1361054999,), (1361055002,), (1361055005,), (1361055009,), (1361055016,), (1361055048,), (1361055051,), (1361055054,), (1361055059,), (1361055091,), (1361055094,), (1361055097,), (1361055099,), (1361055103,), (1361055107,), (1361055136,), (1361055143,), (1361055146,), (1361055149,), (1361055190,), (1361055193,), (1361055197,), (1361055202,), (1361055207,), (1361055211,), (1361055230,), (1361055233,), (1361055236,), (1361055277,), (1361055280,), (1361055283,), (1361055291,), (1361055297,), (1361055301,), (1361055323,), (1361055328,), (1361055332,), (1361055339,), (1361055345,), (1361055349,), (1361055369,), (1361055372,), (1361055375,), (1361055439,), (1361055446,), (1361055450,), (1361055457,), (1361055463,), (1361055469,), (1361055529,), (1361055516,), (1361055520,), (1361055523,), (1361055525,), (1361055614,), (1361055644,), (1361055646,), (1361055649,), (1361055678,), (1361055783,), (1361055785,), (1361055787,), (1361055791,), (1361055795,), (1361055832,), (1361055834,), (1361055838,), (1361055842,), (1361055847,), (1361055958,), (1361055962,), (1361055993,), (1361056017,), (1361056035,), (1361056037,), (1361056099,), (1361056104,), (1361056107,), (1361056110,), (1361056114,), (1361056133,), (1361056136,), (1361056141,), (1361056146,), (1361056154,), (1361056162,), (1361056316,), (1361056319,), (1361056342,), (1361056350,), (1361056356,), (1361056409,), (1361056412,), (1361056415,), (1361056419,), (1361056452,), (1361056455,), (1361056461,), (1361056467,), (1361057273,), (1361073258,), (1361069676,), (1361071425,), (1361073170,), (1361073237,), (1361073587,), (1361073590,), (1361073593,), (1361073810,), (1361073812,), (1361074283,), (1361074394,), (1361074720,), (1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,), (1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26052025': {'nb_upload': 31, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23336675]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361077132, 1361077103, 1361077074, 1361076796, 1361076764, 1361076730, 1361076697, 1361076664, 1361076636, 1361076340, 1361076334, 1361076324, 1361076321, 1361076314] map_info['map_portfolio_photo'] : {23336675: [1361077132, 1361077103, 1361077074, 1361076796, 1361076764, 1361076730, 1361076697, 1361076664, 1361076636, 1361076340, 1361076334, 1361076324, 1361076321, 1361076314, 1361076263, 1361076258, 1361076254, 1361076250, 1361076225, 1361076219, 1361076214, 1361076210, 1361076207, 1361076172, 1361076161, 1361076135, 1361076132, 1361076129, 1361076126, 1361076122, 1361076011]} final : True mtd_id 4302 list_pids : [1361077132, 1361077103, 1361077074, 1361076796, 1361076764, 1361076730, 1361076697, 1361076664, 1361076636, 1361076340, 1361076334, 1361076324, 1361076321, 1361076314] Looping around the photos to save general results len do output : 1 /23336675Didn'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, '2953614') ('4302', '23336675', '1361077132', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361077103', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361077074', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076796', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076764', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076730', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076697', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076664', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076636', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076340', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076334', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076324', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076321', None, None, None, None, None, '2953614') ('4302', None, None, None, None, None, None, None, '2953614') ('4302', '23336675', '1361076314', None, None, None, None, None, '2953614') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '23336675', 'None', None, None, None, None, '2953614'), ('4302', '23336675', '1361077132', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361077103', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361077074', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076796', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076764', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076730', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076697', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076664', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076636', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076340', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076334', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076324', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076321', None, None, None, None, None, '2953614'), ('4302', '23336675', '1361076314', None, None, None, None, None, '2953614')] time used for this insertion : 0.013909101486206055 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.817674160003662 time spend to save output : 0.01419687271118164 total time spend for step 5 : 2.8318710327148438 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 (2953614) 2.46user 2.04system 0:10.30elapsed 43%CPU (0avgtext+0avgdata 160892maxresident)k 144inputs+9240outputs (0major+78030minor)pagefaults 0swaps