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 : 2696454 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 (2598424) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2598424) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20643020 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2598424'] with mtr_portfolio_ids : ['20643020'] and first list_photo_ids : [] new path : /proc/2696454/ Name: python3 Umask: 0002 State: R (running) Tgid: 2696454 Ngid: 0 Pid: 2696454 PPid: 2696453 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2696454 NSpid: 2696454 NSpgid: 2695090 NSsid: 2695090 VmPeak: 1106824 kB VmSize: 1106824 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98624 kB VmRSS: 98624 kB RssAnon: 59768 kB RssFile: 38856 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 4/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: 52 nonvoluntary_ctxt_switches: 121 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2696454', 'Ngid': '0', 'Pid': '2696454', 'PPid': '2696453', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2696454', 'NSpid': '2696454', 'NSpgid': '2695090', 'NSsid': '2695090', 'VmPeak': '1106824 kB', 'VmSize': '1106824 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98624 kB', 'VmRSS': '98624 kB', 'RssAnon': '59768 kB', 'RssFile': '38856 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '4/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': '52', 'nonvoluntary_ctxt_switches': '121'} ('datou_batch_current', '2696454', '1106824', '0', '1106824', '865576', '98624', b'', 'marlene', '2598424') 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 (20643020) 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 (2598424 ) ) 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 (20643020) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338358354, 'portfolio_id': 20643020}, {'photo_id': 1338357816, 'portfolio_id': 20643020}, {'photo_id': 1338357552, 'portfolio_id': 20643020}, {'photo_id': 1338357550, 'portfolio_id': 20643020}, {'photo_id': 1338357545, 'portfolio_id': 20643020}, {'photo_id': 1338357495, 'portfolio_id': 20643020}, {'photo_id': 1338357492, 'portfolio_id': 20643020}, {'photo_id': 1338357489, 'portfolio_id': 20643020}, {'photo_id': 1338357457, 'portfolio_id': 20643020}, {'photo_id': 1338357454, 'portfolio_id': 20643020}, {'photo_id': 1338357449, 'portfolio_id': 20643020}, {'photo_id': 1338357418, 'portfolio_id': 20643020}, {'photo_id': 1338357413, 'portfolio_id': 20643020}, {'photo_id': 1338357406, 'portfolio_id': 20643020}, {'photo_id': 1338357403, 'portfolio_id': 20643020}, {'photo_id': 1338357400, 'portfolio_id': 20643020}, {'photo_id': 1338357372, 'portfolio_id': 20643020}, {'photo_id': 1338357368, 'portfolio_id': 20643020}, {'photo_id': 1338357364, 'portfolio_id': 20643020}, {'photo_id': 1338357324, 'portfolio_id': 20643020}, {'photo_id': 1338357321, 'portfolio_id': 20643020}, {'photo_id': 1338357319, 'portfolio_id': 20643020}, {'photo_id': 1338357315, 'portfolio_id': 20643020}, {'photo_id': 1338357311, 'portfolio_id': 20643020}, {'photo_id': 1338357308, 'portfolio_id': 20643020}, {'photo_id': 1338357088, 'portfolio_id': 20643020}, {'photo_id': 1338357085, 'portfolio_id': 20643020}] map_portfolio_id_photo_id: {20643020: [1338358354, 1338357816, 1338357552, 1338357550, 1338357545, 1338357495, 1338357492, 1338357489, 1338357457, 1338357454, 1338357449, 1338357418, 1338357413, 1338357406, 1338357403, 1338357400, 1338357372, 1338357368, 1338357364, 1338357324, 1338357321, 1338357319, 1338357315, 1338357311, 1338357308, 1338357088, 1338357085]} ##### 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.026635408401489258 #### 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 Wed Feb 19 06:01: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 (20643020) 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 : 20643020 get user id for portfolio 20643020 get sub ptf for main ptf 20643020, type 3726 and hashtags ['papier', 'cartonnette', 'Teint_Dans_La_Masse', 'Carton_brun', 'kraft', 'Carton_gris', 'plastique', 'mal_croppe', 'autre_refus', 'flou', 'environnement', 'metal'] 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`=20643020 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Teint_Dans_La_Masse','Carton_brun','kraft','Carton_gris','plastique','mal_croppe','autre_refus','flou','environnement','metal')) 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`=20643020 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Teint_Dans_La_Masse','Carton_brun','kraft','Carton_gris','plastique','mal_croppe','autre_refus','flou','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20643020, 'sub_port_id': 20643026, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296494, 'last_updated_at': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 58)}, 'cartonnette': {'main_port_id': 20643020, 'sub_port_id': 20643027, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296495, 'last_updated_at': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20643020, 'sub_port_id': 20643028, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296496, 'last_updated_at': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 58)}, 'environnement': {'main_port_id': 20643020, 'sub_port_id': 20643029, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296497, 'last_updated_at': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 58)}, 'metal': {'main_port_id': 20643020, 'sub_port_id': 20643030, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296498, 'last_updated_at': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 58)}, 'papier': {'main_port_id': 20643020, 'sub_port_id': 20643031, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296499, 'last_updated_at': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 58)}, 'autre_refus': {'main_port_id': 20643020, 'sub_port_id': 20643032, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296500, 'last_updated_at': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 58)}, 'plastique': {'main_port_id': 20643020, 'sub_port_id': 20643033, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296501, 'last_updated_at': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 58)}, 'Carton_brun': {'main_port_id': 20643020, 'sub_port_id': 20643034, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296502, 'last_updated_at': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 58)}, 'flou': {'main_port_id': 20643020, 'sub_port_id': 20643035, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296503, 'last_updated_at': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 58)}, 'kraft': {'main_port_id': 20643020, 'sub_port_id': 20643036, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296504, 'last_updated_at': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 58)}, 'Carton_gris': {'main_port_id': 20643020, 'sub_port_id': 20643037, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296505, 'last_updated_at': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20643026 , 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=20643020 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 (20643026) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20643020) result : ((1338357085,), (1338357088,), (1338357308,), (1338357311,), (1338357315,), (1338357319,), (1338357321,), (1338357324,), (1338357364,), (1338357368,), (1338357372,), (1338357400,), (1338357403,), (1338357406,), (1338357413,), (1338357418,), (1338357449,), (1338357454,), (1338357457,), (1338357489,), (1338357492,), (1338357495,), (1338357545,), (1338357550,), (1338357552,), (1338357816,), (1338358354,)) 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 (1338357400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20643027 , 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=20643020 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 (20643027) result : ((1338357503,), (1338357504,), (1338357505,), (1338357624,), (1338357625,), (1338357626,), (1338357631,), (1338363641,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20643020) result : ((1338357085,), (1338357088,), (1338357308,), (1338357311,), (1338357315,), (1338357319,), (1338357321,), (1338357324,), (1338357364,), (1338357368,), (1338357372,), (1338357400,), (1338357403,), (1338357406,), (1338357413,), (1338357418,), (1338357449,), (1338357454,), (1338357457,), (1338357489,), (1338357492,), (1338357495,), (1338357545,), (1338357550,), (1338357552,), (1338357816,), (1338358354,)) 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 (1338357400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20643028 , 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=20643020 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 (20643028) result : ((1338357353,), (1338357354,), (1338357497,), (1338357498,), (1338357499,), (1338357500,), (1338357597,), (1338357598,), (1338357599,), (1338357617,), (1338357618,), (1338357619,), (1338357620,), (1338357627,), (1338357648,), (1338357649,), (1338363329,), (1338363330,), (1338363331,), (1338363638,), (1338363639,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20643020) result : ((1338357085,), (1338357088,), (1338357308,), (1338357311,), (1338357315,), (1338357319,), (1338357321,), (1338357324,), (1338357364,), (1338357368,), (1338357372,), (1338357400,), (1338357403,), (1338357406,), (1338357413,), (1338357418,), (1338357449,), (1338357454,), (1338357457,), (1338357489,), (1338357492,), (1338357495,), (1338357545,), (1338357550,), (1338357552,), (1338357816,), (1338358354,)) 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 (1338357400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20643029 , 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=20643020 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 (20643029) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20643020) result : ((1338357085,), (1338357088,), (1338357308,), (1338357311,), (1338357315,), (1338357319,), (1338357321,), (1338357324,), (1338357364,), (1338357368,), (1338357372,), (1338357400,), (1338357403,), (1338357406,), (1338357413,), (1338357418,), (1338357449,), (1338357454,), (1338357457,), (1338357489,), (1338357492,), (1338357495,), (1338357545,), (1338357550,), (1338357552,), (1338357816,), (1338358354,)) 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 (1338357400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20643030 , 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=20643020 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 (20643030) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20643020) result : ((1338357085,), (1338357088,), (1338357308,), (1338357311,), (1338357315,), (1338357319,), (1338357321,), (1338357324,), (1338357364,), (1338357368,), (1338357372,), (1338357400,), (1338357403,), (1338357406,), (1338357413,), (1338357418,), (1338357449,), (1338357454,), (1338357457,), (1338357489,), (1338357492,), (1338357495,), (1338357545,), (1338357550,), (1338357552,), (1338357816,), (1338358354,)) 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 (1338357400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20643031 , 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=20643020 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 (20643031) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20643020) result : ((1338357085,), (1338357088,), (1338357308,), (1338357311,), (1338357315,), (1338357319,), (1338357321,), (1338357324,), (1338357364,), (1338357368,), (1338357372,), (1338357400,), (1338357403,), (1338357406,), (1338357413,), (1338357418,), (1338357449,), (1338357454,), (1338357457,), (1338357489,), (1338357492,), (1338357495,), (1338357545,), (1338357550,), (1338357552,), (1338357816,), (1338358354,)) 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 (1338357400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20643032 , 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=20643020 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 (20643032) result : ((1338357600,), (1338357601,), (1338357602,), (1338357630,), (1338363333,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20643020) result : ((1338357085,), (1338357088,), (1338357308,), (1338357311,), (1338357315,), (1338357319,), (1338357321,), (1338357324,), (1338357364,), (1338357368,), (1338357372,), (1338357400,), (1338357403,), (1338357406,), (1338357413,), (1338357418,), (1338357449,), (1338357454,), (1338357457,), (1338357489,), (1338357492,), (1338357495,), (1338357545,), (1338357550,), (1338357552,), (1338357816,), (1338358354,)) 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 (1338357400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20643033 , 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=20643020 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 (20643033) result : ((1338357451,), (1338357452,), (1338357507,), (1338357508,), (1338357628,), (1338357629,), (1338363335,), (1338363338,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20643020) result : ((1338357085,), (1338357088,), (1338357308,), (1338357311,), (1338357315,), (1338357319,), (1338357321,), (1338357324,), (1338357364,), (1338357368,), (1338357372,), (1338357400,), (1338357403,), (1338357406,), (1338357413,), (1338357418,), (1338357449,), (1338357454,), (1338357457,), (1338357489,), (1338357492,), (1338357495,), (1338357545,), (1338357550,), (1338357552,), (1338357816,), (1338358354,)) 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 (1338357400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20643034 , 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=20643020 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 (20643034) result : ((1338357606,), (1338357607,), (1338357632,), (1338357653,), (1338363340,), (1338363341,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20643020) result : ((1338357085,), (1338357088,), (1338357308,), (1338357311,), (1338357315,), (1338357319,), (1338357321,), (1338357324,), (1338357364,), (1338357368,), (1338357372,), (1338357400,), (1338357403,), (1338357406,), (1338357413,), (1338357418,), (1338357449,), (1338357454,), (1338357457,), (1338357489,), (1338357492,), (1338357495,), (1338357545,), (1338357550,), (1338357552,), (1338357816,), (1338358354,)) 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 (1338357400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20643035 , 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=20643020 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 (20643035) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20643020) result : ((1338357085,), (1338357088,), (1338357308,), (1338357311,), (1338357315,), (1338357319,), (1338357321,), (1338357324,), (1338357364,), (1338357368,), (1338357372,), (1338357400,), (1338357403,), (1338357406,), (1338357413,), (1338357418,), (1338357449,), (1338357454,), (1338357457,), (1338357489,), (1338357492,), (1338357495,), (1338357545,), (1338357550,), (1338357552,), (1338357816,), (1338358354,)) 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 (1338357400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20643036 , 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=20643020 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 (20643036) result : ((1338363342,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20643020) result : ((1338357085,), (1338357088,), (1338357308,), (1338357311,), (1338357315,), (1338357319,), (1338357321,), (1338357324,), (1338357364,), (1338357368,), (1338357372,), (1338357400,), (1338357403,), (1338357406,), (1338357413,), (1338357418,), (1338357449,), (1338357454,), (1338357457,), (1338357489,), (1338357492,), (1338357495,), (1338357545,), (1338357550,), (1338357552,), (1338357816,), (1338358354,)) 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 (1338357400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20643037 , 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=20643020 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 (20643037) result : ((1338357501,), (1338357502,), (1338357603,), (1338357621,), (1338357622,), (1338357650,), (1338357651,), (1338363334,), (1338363339,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20643020) result : ((1338357085,), (1338357088,), (1338357308,), (1338357311,), (1338357315,), (1338357319,), (1338357321,), (1338357324,), (1338357364,), (1338357368,), (1338357372,), (1338357400,), (1338357403,), (1338357406,), (1338357413,), (1338357418,), (1338357449,), (1338357454,), (1338357457,), (1338357489,), (1338357492,), (1338357495,), (1338357545,), (1338357550,), (1338357552,), (1338357816,), (1338358354,)) 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 (1338357400) and cspi.crop_hashtag_id = chi.id; 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`=20643020 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Teint_Dans_La_Masse','Carton_brun','kraft','Carton_gris','plastique','mal_croppe','autre_refus','flou','environnement','metal')) 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`=20643020 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Teint_Dans_La_Masse','Carton_brun','kraft','Carton_gris','plastique','mal_croppe','autre_refus','flou','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20643020, 'sub_port_id': 20643038, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296506, 'last_updated_at': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 59)}, 'cartonnette': {'main_port_id': 20643020, 'sub_port_id': 20643039, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296507, 'last_updated_at': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20643020, 'sub_port_id': 20643040, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296508, 'last_updated_at': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 59)}, 'environnement': {'main_port_id': 20643020, 'sub_port_id': 20643041, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296509, 'last_updated_at': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 59)}, 'metal': {'main_port_id': 20643020, 'sub_port_id': 20643042, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296510, 'last_updated_at': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 59)}, 'papier': {'main_port_id': 20643020, 'sub_port_id': 20643043, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296511, 'last_updated_at': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 59)}, 'autre_refus': {'main_port_id': 20643020, 'sub_port_id': 20643044, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296512, 'last_updated_at': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 59)}, 'plastique': {'main_port_id': 20643020, 'sub_port_id': 20643045, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296513, 'last_updated_at': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 59)}, 'Carton_brun': {'main_port_id': 20643020, 'sub_port_id': 20643046, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296514, 'last_updated_at': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 59)}, 'flou': {'main_port_id': 20643020, 'sub_port_id': 20643047, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296515, 'last_updated_at': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 59)}, 'kraft': {'main_port_id': 20643020, 'sub_port_id': 20643048, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296516, 'last_updated_at': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 16, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 59)}, 'Carton_gris': {'main_port_id': 20643020, 'sub_port_id': 20643049, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13296517, 'last_updated_at': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 16, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20643038,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20643026 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20643039,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20643027 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20643040,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20643028 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20643041,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20643029 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20643042,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20643030 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20643043,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20643031 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20643044,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20643032 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20643045,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20643033 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20643046,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20643034 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20643047,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20643035 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20643048,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20643036 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20643049,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20643037 lien utilise dans velours : https://www.fotonower.com/velours/20643038,20643039,20643040,20643041,20643042,20643043,20643044,20643045,20643046,20643047,20643048,20643049?tags=mal_croppe,cartonnette,Teint_Dans_La_Masse,environnement,metal,papier,autre_refus,plastique,Carton_brun,flou,kraft,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20643020]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338358354, 1338357816, 1338357552, 1338357550, 1338357545, 1338357495, 1338357492, 1338357489, 1338357457, 1338357454, 1338357449, 1338357418, 1338357413, 1338357406, 1338357403, 1338357400, 1338357372, 1338357368, 1338357364, 1338357324, 1338357321, 1338357319, 1338357315, 1338357311, 1338357308, 1338357088, 1338357085] map_info['map_portfolio_photo'] : {20643020: [1338358354, 1338357816, 1338357552, 1338357550, 1338357545, 1338357495, 1338357492, 1338357489, 1338357457, 1338357454, 1338357449, 1338357418, 1338357413, 1338357406, 1338357403, 1338357400, 1338357372, 1338357368, 1338357364, 1338357324, 1338357321, 1338357319, 1338357315, 1338357311, 1338357308, 1338357088, 1338357085]} final : False mtd_id 4302 list_pids : [1338358354, 1338357816, 1338357552, 1338357550, 1338357545, 1338357495, 1338357492, 1338357489, 1338357457, 1338357454, 1338357449, 1338357418, 1338357413, 1338357406, 1338357403, 1338357400, 1338357372, 1338357368, 1338357364, 1338357324, 1338357321, 1338357319, 1338357315, 1338357311, 1338357308, 1338357088, 1338357085] Looping around the photos to save general results len do output : 1 /20643020. 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, '2598424') ('4302', '20643020', '1338358354', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357816', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357552', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357550', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357545', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357495', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357492', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357489', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357457', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357454', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357449', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357418', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357413', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357406', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357403', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357400', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357372', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357368', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357364', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357324', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357321', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357319', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357315', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357311', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357308', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357088', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357085', None, None, None, None, None, '2598424') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 28 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, '20643020', "{'mal_croppe': 20643026, 'cartonnette': 20643027, 'Teint_Dans_La_Masse': 20643028, 'environnement': 20643029, 'metal': 20643030, 'papier': 20643031, 'autre_refus': 20643032, 'plastique': 20643033, 'Carton_brun': 20643034, 'flou': 20643035, 'kraft': 20643036, 'Carton_gris': 20643037}", None, None, None, None, '2598424'), ('4302', '20643020', '1338358354', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357816', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357552', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357550', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357545', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357495', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357492', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357489', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357457', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357454', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357449', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357418', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357413', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357406', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357403', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357400', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357372', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357368', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357364', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357324', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357321', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357319', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357315', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357311', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357308', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357088', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357085', None, None, None, None, None, '2598424')] time used for this insertion : 0.3776087760925293 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7453193664550781 time spend to save output : 0.3780050277709961 total time spend for step 1 : 1.1233243942260742 step2:final Wed Feb 19 06:01: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 (20643020) 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 20643020 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338357088,1338357085,1338357324,1338357321,1338357319,1338357315,1338357311,1338357308,1338357372,1338357368,1338357364,1338357418,1338357413,1338357406,1338357403,1338357400,1338357457,1338357454,1338357449,1338357495,1338357492,1338357489,1338357552,1338357550,1338357545,1338358354,1338357816); 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([20643020]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} new output for save of step final : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} [1338358354, 1338357816, 1338357552, 1338357550, 1338357545, 1338357495, 1338357492, 1338357489, 1338357457, 1338357454, 1338357449, 1338357418, 1338357413, 1338357406, 1338357403, 1338357400, 1338357372, 1338357368, 1338357364, 1338357324, 1338357321, 1338357319, 1338357315, 1338357311, 1338357308, 1338357088, 1338357085] map_info['map_portfolio_photo'] : {20643020: [1338358354, 1338357816, 1338357552, 1338357550, 1338357545, 1338357495, 1338357492, 1338357489, 1338357457, 1338357454, 1338357449, 1338357418, 1338357413, 1338357406, 1338357403, 1338357400, 1338357372, 1338357368, 1338357364, 1338357324, 1338357321, 1338357319, 1338357315, 1338357311, 1338357308, 1338357088, 1338357085]} final : False mtd_id 4302 list_pids : [1338358354, 1338357816, 1338357552, 1338357550, 1338357545, 1338357495, 1338357492, 1338357489, 1338357457, 1338357454, 1338357449, 1338357418, 1338357413, 1338357406, 1338357403, 1338357400, 1338357372, 1338357368, 1338357364, 1338357324, 1338357321, 1338357319, 1338357315, 1338357311, 1338357308, 1338357088, 1338357085] Looping around the photos to save general results len do output : 27 /1338358354.Didn't retrieve data . /1338357816.Didn't retrieve data . /1338357552.Didn't retrieve data . /1338357550.Didn't retrieve data . /1338357545.Didn't retrieve data . /1338357495.Didn't retrieve data . /1338357492.Didn't retrieve data . /1338357489.Didn't retrieve data . /1338357457.Didn't retrieve data . /1338357454.Didn't retrieve data . /1338357449.Didn't retrieve data . /1338357418.Didn't retrieve data . /1338357413.Didn't retrieve data . /1338357406.Didn't retrieve data . /1338357403.Didn't retrieve data . /1338357400.Didn't retrieve data . /1338357372.Didn't retrieve data . /1338357368.Didn't retrieve data . /1338357364.Didn't retrieve data . /1338357324.Didn't retrieve data . /1338357321.Didn't retrieve data . /1338357319.Didn't retrieve data . /1338357315.Didn't retrieve data . /1338357311.Didn't retrieve data . /1338357308.Didn't retrieve data . /1338357088.Didn't retrieve data . /1338357085.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, '2598424') ('4302', '20643020', '1338358354', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357816', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357552', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357550', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357545', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357495', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357492', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357489', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357457', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357454', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357449', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357418', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357413', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357406', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357403', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357400', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357372', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357368', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357364', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357324', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357321', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357319', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357315', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357311', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357308', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357088', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357085', None, None, None, None, None, '2598424') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 81 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', '20643020', '1338358354', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357816', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357552', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357550', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357545', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357495', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357492', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357489', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357457', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357454', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357449', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357418', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357413', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357406', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357403', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357400', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357372', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357368', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357364', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357324', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357321', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357319', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357315', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357311', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357308', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357088', '0.03721859257393691', None, None, None, None, '2598424'), ('4302', '20643020', '1338357085', '0.03721859257393691', None, None, None, None, '2598424')] time used for this insertion : 0.024724721908569336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07111501693725586 time spend to save output : 0.025892972946166992 total time spend for step 2 : 0.09700798988342285 step3:velours_tree Wed Feb 19 06:01: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 : {20643020: [{'mal_croppe': 20643026, 'cartonnette': 20643027, 'Teint_Dans_La_Masse': 20643028, 'environnement': 20643029, 'metal': 20643030, 'papier': 20643031, 'autre_refus': 20643032, 'plastique': 20643033, 'Carton_brun': 20643034, 'flou': 20643035, 'kraft': 20643036, 'Carton_gris': 20643037}]} input_args_next_step : {20643020: ()} output_args : {20643020: [{'mal_croppe': 20643026, 'cartonnette': 20643027, 'Teint_Dans_La_Masse': 20643028, 'environnement': 20643029, 'metal': 20643030, 'papier': 20643031, 'autre_refus': 20643032, 'plastique': 20643033, 'Carton_brun': 20643034, 'flou': 20643035, 'kraft': 20643036, 'Carton_gris': 20643037}]} args : 20643020 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'mal_croppe': 20643026, 'cartonnette': 20643027, 'Teint_Dans_La_Masse': 20643028, 'environnement': 20643029, 'metal': 20643030, 'papier': 20643031, 'autre_refus': 20643032, 'plastique': 20643033, 'Carton_brun': 20643034, 'flou': 20643035, 'kraft': 20643036, 'Carton_gris': 20643037},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20643020) 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([20643020]) 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.5429129600524902 time spend to save output : 8.0108642578125e-05 total time spend for step 3 : 0.5429930686950684 step4:send_mail_cod Wed Feb 19 06:01: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 : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} input_args_next_step : {1338358354: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338358354 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357816 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357552 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357550 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357545 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357495 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357492 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357489 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357457 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357454 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357449 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357418 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357413 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357406 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357403 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357400 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357372 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357368 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357364 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357324 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357321 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357319 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357315 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357311 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357308 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357088 depend.output_id : 0 input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ()} output_args : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',)} args : 1338357085 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 : {20643020: [{'mal_croppe': 20643026, 'cartonnette': 20643027, 'Teint_Dans_La_Masse': 20643028, 'environnement': 20643029, 'metal': 20643030, 'papier': 20643031, 'autre_refus': 20643032, 'plastique': 20643033, 'Carton_brun': 20643034, 'flou': 20643035, 'kraft': 20643036, 'Carton_gris': 20643037}]} input_args_next_step : {1338358354: ('0.03721859257393691',), 1338357816: ('0.03721859257393691',), 1338357552: ('0.03721859257393691',), 1338357550: ('0.03721859257393691',), 1338357545: ('0.03721859257393691',), 1338357495: ('0.03721859257393691',), 1338357492: ('0.03721859257393691',), 1338357489: ('0.03721859257393691',), 1338357457: ('0.03721859257393691',), 1338357454: ('0.03721859257393691',), 1338357449: ('0.03721859257393691',), 1338357418: ('0.03721859257393691',), 1338357413: ('0.03721859257393691',), 1338357406: ('0.03721859257393691',), 1338357403: ('0.03721859257393691',), 1338357400: ('0.03721859257393691',), 1338357372: ('0.03721859257393691',), 1338357368: ('0.03721859257393691',), 1338357364: ('0.03721859257393691',), 1338357324: ('0.03721859257393691',), 1338357321: ('0.03721859257393691',), 1338357319: ('0.03721859257393691',), 1338357315: ('0.03721859257393691',), 1338357311: ('0.03721859257393691',), 1338357308: ('0.03721859257393691',), 1338357088: ('0.03721859257393691',), 1338357085: ('0.03721859257393691',), 20643020: ()} output_args : {20643020: [{'mal_croppe': 20643026, 'cartonnette': 20643027, 'Teint_Dans_La_Masse': 20643028, 'environnement': 20643029, 'metal': 20643030, 'papier': 20643031, 'autre_refus': 20643032, 'plastique': 20643033, 'Carton_brun': 20643034, 'flou': 20643035, 'kraft': 20643036, 'Carton_gris': 20643037}]} args : 20643020 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 :28, first value : ('0.03721859257393691',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20643020) 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 (1338358354,1338357816,1338357552,1338357550,1338357545,1338357495,1338357492,1338357489,1338357457,1338357454,1338357449,1338357418,1338357413,1338357406,1338357403,1338357400,1338357372,1338357368,1338357364,1338357324,1338357321,1338357319,1338357315,1338357311,1338357308,1338357088,1338357085) Found this number of photos: 27 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338357085 begin to download photo : 1338357321 begin to download photo : 1338357403 begin to download photo : 1338357457 begin to download photo : 1338357552 download finish for photo 1338357085 begin to download photo : 1338357088 download finish for photo 1338357403 begin to download photo : 1338357406 download finish for photo 1338357321 begin to download photo : 1338357324 download finish for photo 1338357457 begin to download photo : 1338357489 download finish for photo 1338357552 begin to download photo : 1338357816 download finish for photo 1338357406 begin to download photo : 1338357413 download finish for photo 1338357088 begin to download photo : 1338357308 download finish for photo 1338357324 begin to download photo : 1338357364 download finish for photo 1338357489 begin to download photo : 1338357492 download finish for photo 1338357413 begin to download photo : 1338357418 download finish for photo 1338357816 begin to download photo : 1338358354 download finish for photo 1338357364 begin to download photo : 1338357368 download finish for photo 1338357308 begin to download photo : 1338357311 download finish for photo 1338357492 begin to download photo : 1338357495 download finish for photo 1338358354 download finish for photo 1338357418 begin to download photo : 1338357449 download finish for photo 1338357368 begin to download photo : 1338357372 download finish for photo 1338357311 begin to download photo : 1338357315 download finish for photo 1338357495 begin to download photo : 1338357545 download finish for photo 1338357449 begin to download photo : 1338357454 download finish for photo 1338357315 begin to download photo : 1338357319 download finish for photo 1338357372 begin to download photo : 1338357400 download finish for photo 1338357545 begin to download photo : 1338357550 download finish for photo 1338357454 download finish for photo 1338357400 download finish for photo 1338357319 download finish for photo 1338357550 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette206430261739941291/ length of list_filenames : 27 ; length of list_pids : 27 ; length of list_args : 27 results_Auto_P20643020_19-02-2025_06_01_31.pdf 20643026 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=20643026 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206430261739941291 20643027 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=20643027 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338357503: '1739893772_160208_1338357319_5eabe19612df8eb5bf9bd7d2042c6c59_rle_crop_3679125252_0.png', 1338357504: '1739893772_160208_1338357315_3fd05f32d6271e448ceaf2d8432f0145_rle_crop_3679125320_0.png', 1338357505: '1739893772_160208_1338357311_83d495f3e41fcd8c2a53e06dc550ca43_rle_crop_3679125487_0.png', 1338357624: '1739893954_164903_1338357319_5eabe19612df8eb5bf9bd7d2042c6c59_rle_crop_3679125252_0.png', 1338357625: '1739893954_164903_1338357315_3fd05f32d6271e448ceaf2d8432f0145_rle_crop_3679125320_0.png', 1338357626: '1739893954_164903_1338357311_83d495f3e41fcd8c2a53e06dc550ca43_rle_crop_3679125487_0.png', 1338357631: '1739893991_165376_1338357545_efc8a25debc91402bf2b6832918afad6_rle_crop_3679127171_0.png', 1338363641: '1739896333_205970_1338357324_7d779c8bc3648188999091c7715b396e_rle_crop_3679163809_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8a90717a57e2def1fdc9e2af8c63c6c4_87696576.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/f37c2b55aede5075acc889bf3b5e4367_47267846.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/f0d6b4da4071546dd7b1e5eb932755cc_84213000.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8a90717a57e2def1fdc9e2af8c63c6c4_27602329.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/f37c2b55aede5075acc889bf3b5e4367_37884129.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/f0d6b4da4071546dd7b1e5eb932755cc_19604399.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/56542b7ddc68f3e0b8601544d00dfbc4_96933481.png change filename to text .imagette206430271739941291/ imagette206430271739941291/1739893772_160208_1338357319_5eabe19612df8eb5bf9bd7d2042c6c59_rle_crop_3679125252_0.png.png imagette206430271739941291/1739896333_205970_1338357324_7d779c8bc3648188999091c7715b396e_rle_crop_3679163809_0.png.png imagette206430271739941291/1739893954_164903_1338357315_3fd05f32d6271e448ceaf2d8432f0145_rle_crop_3679125320_0.png.png imagette206430271739941291/1739893991_165376_1338357545_efc8a25debc91402bf2b6832918afad6_rle_crop_3679127171_0.png.png imagette206430271739941291/1739893772_160208_1338357311_83d495f3e41fcd8c2a53e06dc550ca43_rle_crop_3679125487_0.png.png imagette206430271739941291/1739893954_164903_1338357311_83d495f3e41fcd8c2a53e06dc550ca43_rle_crop_3679125487_0.png.png imagette206430271739941291/1739893772_160208_1338357315_3fd05f32d6271e448ceaf2d8432f0145_rle_crop_3679125320_0.png.png imagette206430271739941291/1739893954_164903_1338357319_5eabe19612df8eb5bf9bd7d2042c6c59_rle_crop_3679125252_0.png.png imagette206430301739941292/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/945d8502ad67f3d4b31abd7652540802_17089046.png imagette206430271739941291 20643030 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=20643030 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206430301739941292 20643032 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=20643032 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338357600: '1739893932_164583_1338357403_1453fcd6683f74b41f92917e32d6b5b4_rle_crop_3679126949_0.png', 1338357601: '1739893932_164583_1338357400_1778f609ab5a17172b03331e33acf1df_rle_crop_3679127037_0.png', 1338357602: '1739893932_164583_1338357400_1778f609ab5a17172b03331e33acf1df_rle_crop_3679127039_0.png', 1338357630: '1739893991_165376_1338357550_e216126ce5e93dccb86d035a463bd94f_rle_crop_3679127146_0.png', 1338363333: '1739896234_204170_1338357449_9fc7803be5d6cd08481b7974707e9d56_rle_crop_3679126411_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/2a5f014bd90cecda03f1e3711c65b27f_1106675.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/504b8a8ea4db7c1135c3a75dcbfb1181_81665113.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/399bac3e8557872ccbbb6f2a60a3e3c5_96754568.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/dd9bc614ab79a25973ee012319bf3ec4_4276929.png change filename to text .imagette206430321739941292/ imagette206430321739941292/1739896234_204170_1338357449_9fc7803be5d6cd08481b7974707e9d56_rle_crop_3679126411_0.png.png imagette206430321739941292/1739893932_164583_1338357403_1453fcd6683f74b41f92917e32d6b5b4_rle_crop_3679126949_0.png.png imagette206430321739941292/1739893991_165376_1338357550_e216126ce5e93dccb86d035a463bd94f_rle_crop_3679127146_0.png.png imagette206430321739941292/1739893932_164583_1338357400_1778f609ab5a17172b03331e33acf1df_rle_crop_3679127037_0.png.png imagette206430321739941292/1739893932_164583_1338357400_1778f609ab5a17172b03331e33acf1df_rle_crop_3679127039_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/098d7180cbe8e4415544adea248384e4_4723694.png imagette206430321739941292 20643033 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=20643033 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338357451: '1739893751_159914_1338357368_eb8ca23d9a97a424c2920d38793e6bea_rle_crop_3679124915_0.png', 1338357452: '1739893751_159914_1338357364_ff290002e83918bfe27513d5bce53d3a_rle_crop_3679124923_0.png', 1338357507: '1739893772_160208_1338357315_3fd05f32d6271e448ceaf2d8432f0145_rle_crop_3679125321_0.png', 1338357508: '1739893772_160208_1338357311_83d495f3e41fcd8c2a53e06dc550ca43_rle_crop_3679125491_0.png', 1338357628: '1739893954_164903_1338357315_3fd05f32d6271e448ceaf2d8432f0145_rle_crop_3679125321_0.png', 1338357629: '1739893954_164903_1338357311_83d495f3e41fcd8c2a53e06dc550ca43_rle_crop_3679125491_0.png', 1338363335: '1739896252_204615_1338357368_eb8ca23d9a97a424c2920d38793e6bea_rle_crop_3679124915_0.png', 1338363338: '1739896252_204615_1338357364_ff290002e83918bfe27513d5bce53d3a_rle_crop_3679124923_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/4ab37eaa0d30e3b673f58f5f83f624e9_74708977.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/bdc92d5bad71f6f09eea134b01a6021e_84052966.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/c1708253ae6fd68e4d11cd28b7bca114_47146394.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/0d76557e46f787763a48d0f3a555bbfe_11530500.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/c1708253ae6fd68e4d11cd28b7bca114_5857984.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/0d76557e46f787763a48d0f3a555bbfe_94158389.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/4ab37eaa0d30e3b673f58f5f83f624e9_41113937.png change filename to text .imagette206430331739941293/ imagette206430331739941293/1739893954_164903_1338357315_3fd05f32d6271e448ceaf2d8432f0145_rle_crop_3679125321_0.png.png imagette206430331739941293/1739896252_204615_1338357364_ff290002e83918bfe27513d5bce53d3a_rle_crop_3679124923_0.png.png imagette206430331739941293/1739893751_159914_1338357364_ff290002e83918bfe27513d5bce53d3a_rle_crop_3679124923_0.png.png imagette206430331739941293/1739896252_204615_1338357368_eb8ca23d9a97a424c2920d38793e6bea_rle_crop_3679124915_0.png.png imagette206430331739941293/1739893954_164903_1338357311_83d495f3e41fcd8c2a53e06dc550ca43_rle_crop_3679125491_0.png.png imagette206430331739941293/1739893772_160208_1338357311_83d495f3e41fcd8c2a53e06dc550ca43_rle_crop_3679125491_0.png.png imagette206430331739941293/1739893751_159914_1338357368_eb8ca23d9a97a424c2920d38793e6bea_rle_crop_3679124915_0.png.png imagette206430331739941293/1739893772_160208_1338357315_3fd05f32d6271e448ceaf2d8432f0145_rle_crop_3679125321_0.png.png imagette206430351739941294/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/bdc92d5bad71f6f09eea134b01a6021e_41845085.png imagette206430331739941293 20643035 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=20643035 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206430351739941294 20643036 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=20643036 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338363342: '1739896234_204170_1338357454_e28f0b051d0b753102629c4170613246_rle_crop_3679126358_0.png'} change filename to text .imagette206430361739941294/ imagette206430361739941294/1739896234_204170_1338357454_e28f0b051d0b753102629c4170613246_rle_crop_3679126358_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/7727d65754ab067343a8fddc0b7a1c63_41116735.png imagette206430361739941294 20643028 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=20643028 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338357618: '1739893954_164903_1338357315_3fd05f32d6271e448ceaf2d8432f0145_rle_crop_3679125323_0.png', 1338363639: '1739896333_205970_1338357085_7358a00704e1a135bb1a7043b18c1b0f_rle_crop_3679124124_0.png', 1338363638: '1739896333_205970_1338357088_0c0b25d49ae3519c0535ffa42e9f0176_rle_crop_3679124033_0.png', 1338363331: '1739896234_204170_1338357449_9fc7803be5d6cd08481b7974707e9d56_rle_crop_3679126425_0.png', 1338363330: '1739896234_204170_1338357454_e28f0b051d0b753102629c4170613246_rle_crop_3679126364_0.png', 1338363329: '1739896234_204170_1338357495_083cc45da0d75dea971d0221ee2a33e4_rle_crop_3679163106_0.png', 1338357649: '1739894013_165647_1338357489_c40b47babe91be18eeaeea34b2449209_rle_crop_3679127533_0.png', 1338357648: '1739894013_165647_1338357552_2cfbc93ab46a37a6785441e966acf52f_rle_crop_3679127492_0.png', 1338357627: '1739893991_165376_1338357550_e216126ce5e93dccb86d035a463bd94f_rle_crop_3679127151_0.png', 1338357620: '1739893954_164903_1338357308_57b5c94476f67a21135620f0c9918211_rle_crop_3679125515_0.png', 1338357619: '1739893954_164903_1338357311_83d495f3e41fcd8c2a53e06dc550ca43_rle_crop_3679125493_0.png', 1338357353: '1739893633_156369_1338357088_0c0b25d49ae3519c0535ffa42e9f0176_rle_crop_3679124033_0.png', 1338357617: '1739893954_164903_1338357372_3543b55e74c8527a12aaa9488c34d286_rle_crop_3679125235_0.png', 1338357599: '1739893932_164583_1338357400_1778f609ab5a17172b03331e33acf1df_rle_crop_3679127046_0.png', 1338357598: '1739893932_164583_1338357403_1453fcd6683f74b41f92917e32d6b5b4_rle_crop_3679126953_0.png', 1338357597: '1739893932_164583_1338357457_73c67516cf1485577f77aa70d0fe4e97_rle_crop_3679126889_0.png', 1338357500: '1739893772_160208_1338357308_57b5c94476f67a21135620f0c9918211_rle_crop_3679125515_0.png', 1338357499: '1739893772_160208_1338357311_83d495f3e41fcd8c2a53e06dc550ca43_rle_crop_3679125493_0.png', 1338357498: '1739893772_160208_1338357315_3fd05f32d6271e448ceaf2d8432f0145_rle_crop_3679125323_0.png', 1338357497: '1739893772_160208_1338357372_3543b55e74c8527a12aaa9488c34d286_rle_crop_3679125235_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/84fc2cc7638668c76644c74a39470125_42219272.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/73d8d17c51e4c98a5add7e0b4141edd7_17852663.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/0c84c842fd922d7bf5001005510d7af5_66450212.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8744d1d4102f1b73e204aad2e24e4f4a_79893180.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/278c8b40a0f5a227f141028847fa4514_38546376.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/25591ca90c497f5996fc3775313a38ef_8451615.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/dfc7e63e5d7a5cc2f5fb2887445bf199_5113430.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/ce85e38e71fc0cabda177a66287b6552_91311600.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/982056589b9ba49df3bf3b13da991902_58720542.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/61434a2023b8cc2961d944b64af09358_29141390.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/dafceb55a276de1a6b4085642e071af4_62007800.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/0c84c842fd922d7bf5001005510d7af5_39680071.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/1bd3180682efdea6b996a448dcc43682_72010267.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/ee5e306f29d33cdc740f89fac61883bf_81530887.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8600f969adbe4b4f7ba65fa96d7271a6_56460451.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/c01fabdcb45d3727218793ddab68af0e_28866039.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/61434a2023b8cc2961d944b64af09358_47701248.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/dafceb55a276de1a6b4085642e071af4_39275267.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/84fc2cc7638668c76644c74a39470125_25029028.png change filename to text .imagette206430281739941294/ imagette206430281739941294/1739893954_164903_1338357308_57b5c94476f67a21135620f0c9918211_rle_crop_3679125515_0.png.png imagette206430281739941294/1739893991_165376_1338357550_e216126ce5e93dccb86d035a463bd94f_rle_crop_3679127151_0.png.png imagette206430281739941294/1739894013_165647_1338357552_2cfbc93ab46a37a6785441e966acf52f_rle_crop_3679127492_0.png.png imagette206430281739941294/1739894013_165647_1338357489_c40b47babe91be18eeaeea34b2449209_rle_crop_3679127533_0.png.png imagette206430281739941294/1739893954_164903_1338357311_83d495f3e41fcd8c2a53e06dc550ca43_rle_crop_3679125493_0.png.png imagette206430281739941294/1739893772_160208_1338357315_3fd05f32d6271e448ceaf2d8432f0145_rle_crop_3679125323_0.png.png imagette206430281739941294/1739893772_160208_1338357308_57b5c94476f67a21135620f0c9918211_rle_crop_3679125515_0.png.png imagette206430281739941294/1739893954_164903_1338357372_3543b55e74c8527a12aaa9488c34d286_rle_crop_3679125235_0.png.png imagette206430281739941294/1739893772_160208_1338357372_3543b55e74c8527a12aaa9488c34d286_rle_crop_3679125235_0.png.png imagette206430281739941294/1739893633_156369_1338357088_0c0b25d49ae3519c0535ffa42e9f0176_rle_crop_3679124033_0.png.png imagette206430281739941294/1739893932_164583_1338357400_1778f609ab5a17172b03331e33acf1df_rle_crop_3679127046_0.png.png imagette206430281739941294/1739896333_205970_1338357088_0c0b25d49ae3519c0535ffa42e9f0176_rle_crop_3679124033_0.png.png imagette206430281739941294/1739893954_164903_1338357315_3fd05f32d6271e448ceaf2d8432f0145_rle_crop_3679125323_0.png.png imagette206430281739941294/1739893932_164583_1338357403_1453fcd6683f74b41f92917e32d6b5b4_rle_crop_3679126953_0.png.png imagette206430281739941294/1739896234_204170_1338357449_9fc7803be5d6cd08481b7974707e9d56_rle_crop_3679126425_0.png.png imagette206430281739941294/1739896234_204170_1338357454_e28f0b051d0b753102629c4170613246_rle_crop_3679126364_0.png.png imagette206430281739941294/1739896333_205970_1338357085_7358a00704e1a135bb1a7043b18c1b0f_rle_crop_3679124124_0.png.png imagette206430281739941294/1739893772_160208_1338357311_83d495f3e41fcd8c2a53e06dc550ca43_rle_crop_3679125493_0.png.png imagette206430281739941294/1739896234_204170_1338357495_083cc45da0d75dea971d0221ee2a33e4_rle_crop_3679163106_0.png.png imagette206430281739941294/1739893932_164583_1338357457_73c67516cf1485577f77aa70d0fe4e97_rle_crop_3679126889_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/1bd3180682efdea6b996a448dcc43682_80848854.png imagette206430281739941294 20643034 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=20643034 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338357606: '1739893932_164583_1338357403_1453fcd6683f74b41f92917e32d6b5b4_rle_crop_3679126950_0.png', 1338357607: '1739893932_164583_1338357400_1778f609ab5a17172b03331e33acf1df_rle_crop_3679127042_0.png', 1338357632: '1739893991_165376_1338357550_e216126ce5e93dccb86d035a463bd94f_rle_crop_3679127153_0.png', 1338357653: '1739894013_165647_1338357552_2cfbc93ab46a37a6785441e966acf52f_rle_crop_3679127491_0.png', 1338363340: '1739896234_204170_1338357454_e28f0b051d0b753102629c4170613246_rle_crop_3679126361_0.png', 1338363341: '1739896234_204170_1338357449_9fc7803be5d6cd08481b7974707e9d56_rle_crop_3679126418_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/f47fc35a99c3f6add70ebc3f2ae4b3dc_74554299.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/01fc38b296de6af7ac1661509253f2e4_68314402.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/6d7c97d978c20df9505bc52781fa3993_11124126.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/4d92db882b6926badff7a587973e9f33_8685058.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/c0ff477eaef4704f1101f7d37e2d9cf0_22974370.png change filename to text .imagette206430341739941296/ imagette206430341739941296/1739896234_204170_1338357449_9fc7803be5d6cd08481b7974707e9d56_rle_crop_3679126418_0.png.png imagette206430341739941296/1739893932_164583_1338357400_1778f609ab5a17172b03331e33acf1df_rle_crop_3679127042_0.png.png imagette206430341739941296/1739896234_204170_1338357454_e28f0b051d0b753102629c4170613246_rle_crop_3679126361_0.png.png imagette206430341739941296/1739893932_164583_1338357403_1453fcd6683f74b41f92917e32d6b5b4_rle_crop_3679126950_0.png.png imagette206430341739941296/1739894013_165647_1338357552_2cfbc93ab46a37a6785441e966acf52f_rle_crop_3679127491_0.png.png imagette206430341739941296/1739893991_165376_1338357550_e216126ce5e93dccb86d035a463bd94f_rle_crop_3679127153_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/45986fee44ecf78218c4916aab40d302_25335822.png imagette206430341739941296 20643037 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=20643037 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338357501: '1739893772_160208_1338357372_3543b55e74c8527a12aaa9488c34d286_rle_crop_3679125226_0.png', 1338357502: '1739893772_160208_1338357319_5eabe19612df8eb5bf9bd7d2042c6c59_rle_crop_3679125253_0.png', 1338357603: '1739893932_164583_1338357457_73c67516cf1485577f77aa70d0fe4e97_rle_crop_3679126879_0.png', 1338357621: '1739893954_164903_1338357372_3543b55e74c8527a12aaa9488c34d286_rle_crop_3679125226_0.png', 1338357622: '1739893954_164903_1338357319_5eabe19612df8eb5bf9bd7d2042c6c59_rle_crop_3679125253_0.png', 1338357650: '1739894013_165647_1338357489_c40b47babe91be18eeaeea34b2449209_rle_crop_3679127538_0.png', 1338357651: '1739894013_165647_1338357489_c40b47babe91be18eeaeea34b2449209_rle_crop_3679127535_0.png', 1338363334: '1739896234_204170_1338357449_9fc7803be5d6cd08481b7974707e9d56_rle_crop_3679126414_0.png', 1338363339: '1739896234_204170_1338357449_9fc7803be5d6cd08481b7974707e9d56_rle_crop_3679126424_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/348b4f4e66a3f1495890a1955230a646_6825554.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/92a225e1d29d13827b802ecb4e96fc00_25795524.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/9be9a8b30b6fe633487bc460fb375c44_34030223.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/348b4f4e66a3f1495890a1955230a646_77885786.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/92a225e1d29d13827b802ecb4e96fc00_88673210.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/aaa0fe664e3db56deb387e86561410a9_8781897.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/cb7c4dd688b6c15923188ca12680f5d9_78487084.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/ab5170c793921d87cc4d60fe793cd166_62050831.png change filename to text .imagette206430371739941297/ imagette206430371739941297/1739894013_165647_1338357489_c40b47babe91be18eeaeea34b2449209_rle_crop_3679127538_0.png.png imagette206430371739941297/1739894013_165647_1338357489_c40b47babe91be18eeaeea34b2449209_rle_crop_3679127535_0.png.png imagette206430371739941297/1739893772_160208_1338357319_5eabe19612df8eb5bf9bd7d2042c6c59_rle_crop_3679125253_0.png.png imagette206430371739941297/1739893954_164903_1338357319_5eabe19612df8eb5bf9bd7d2042c6c59_rle_crop_3679125253_0.png.png imagette206430371739941297/1739893932_164583_1338357457_73c67516cf1485577f77aa70d0fe4e97_rle_crop_3679126879_0.png.png imagette206430371739941297/1739896234_204170_1338357449_9fc7803be5d6cd08481b7974707e9d56_rle_crop_3679126414_0.png.png imagette206430371739941297/1739896234_204170_1338357449_9fc7803be5d6cd08481b7974707e9d56_rle_crop_3679126424_0.png.png imagette206430371739941297/1739893772_160208_1338357372_3543b55e74c8527a12aaa9488c34d286_rle_crop_3679125226_0.png.png imagette206430371739941297/1739893954_164903_1338357372_3543b55e74c8527a12aaa9488c34d286_rle_crop_3679125226_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/f8e3d9cb3980ef60ab3c69b374fa00f2_93778275.png imagette206430371739941297 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20643020 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20643038,20643039,20643040,20643041,20643042,20643043,20643044,20643045,20643046,20643047,20643048,20643049?tags=mal_croppe,cartonnette,Teint_Dans_La_Masse,environnement,metal,papier,autre_refus,plastique,Carton_brun,flou,kraft,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1338358354] : ('0.03721859257393691',) no score found for photo 1338358354 We are sending mail with results at report@fotonower.com args[1338357816] : ('0.03721859257393691',) no score found for photo 1338357816 We are sending mail with results at report@fotonower.com args[1338357552] : ('0.03721859257393691',) no score found for photo 1338357552 We are sending mail with results at report@fotonower.com args[1338357550] : ('0.03721859257393691',) no score found for photo 1338357550 We are sending mail with results at report@fotonower.com args[1338357545] : ('0.03721859257393691',) no score found for photo 1338357545 We are sending mail with results at report@fotonower.com args[1338357495] : ('0.03721859257393691',) no score found for photo 1338357495 We are sending mail with results at report@fotonower.com args[1338357492] : ('0.03721859257393691',) no score found for photo 1338357492 We are sending mail with results at report@fotonower.com args[1338357489] : ('0.03721859257393691',) no score found for photo 1338357489 We are sending mail with results at report@fotonower.com args[1338357457] : ('0.03721859257393691',) no score found for photo 1338357457 We are sending mail with results at report@fotonower.com args[1338357454] : ('0.03721859257393691',) no score found for photo 1338357454 We are sending mail with results at report@fotonower.com args[1338357449] : ('0.03721859257393691',) no score found for photo 1338357449 We are sending mail with results at report@fotonower.com args[1338357418] : ('0.03721859257393691',) no score found for photo 1338357418 We are sending mail with results at report@fotonower.com args[1338357413] : ('0.03721859257393691',) no score found for photo 1338357413 We are sending mail with results at report@fotonower.com args[1338357406] : ('0.03721859257393691',) no score found for photo 1338357406 We are sending mail with results at report@fotonower.com args[1338357403] : ('0.03721859257393691',) no score found for photo 1338357403 We are sending mail with results at report@fotonower.com args[1338357400] : ('0.03721859257393691',) no score found for photo 1338357400 We are sending mail with results at report@fotonower.com args[1338357372] : ('0.03721859257393691',) no score found for photo 1338357372 We are sending mail with results at report@fotonower.com args[1338357368] : ('0.03721859257393691',) no score found for photo 1338357368 We are sending mail with results at report@fotonower.com args[1338357364] : ('0.03721859257393691',) no score found for photo 1338357364 We are sending mail with results at report@fotonower.com args[1338357324] : ('0.03721859257393691',) no score found for photo 1338357324 We are sending mail with results at report@fotonower.com args[1338357321] : ('0.03721859257393691',) no score found for photo 1338357321 We are sending mail with results at report@fotonower.com args[1338357319] : ('0.03721859257393691',) no score found for photo 1338357319 We are sending mail with results at report@fotonower.com args[1338357315] : ('0.03721859257393691',) no score found for photo 1338357315 We are sending mail with results at report@fotonower.com args[1338357311] : ('0.03721859257393691',) no score found for photo 1338357311 We are sending mail with results at report@fotonower.com args[1338357308] : ('0.03721859257393691',) no score found for photo 1338357308 We are sending mail with results at report@fotonower.com args[1338357088] : ('0.03721859257393691',) no score found for photo 1338357088 We are sending mail with results at report@fotonower.com args[1338357085] : ('0.03721859257393691',) no score found for photo 1338357085 We are sending mail with results at report@fotonower.com refus_total : 0.03721859257393691 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=20643020 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'mal_croppe' After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20643020]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338358354, 1338357816, 1338357552, 1338357550, 1338357545, 1338357495, 1338357492, 1338357489, 1338357457, 1338357454, 1338357449, 1338357418, 1338357413, 1338357406, 1338357403, 1338357400, 1338357372, 1338357368, 1338357364, 1338357324, 1338357321, 1338357319, 1338357315, 1338357311, 1338357308, 1338357088, 1338357085] map_info['map_portfolio_photo'] : {20643020: [1338358354, 1338357816, 1338357552, 1338357550, 1338357545, 1338357495, 1338357492, 1338357489, 1338357457, 1338357454, 1338357449, 1338357418, 1338357413, 1338357406, 1338357403, 1338357400, 1338357372, 1338357368, 1338357364, 1338357324, 1338357321, 1338357319, 1338357315, 1338357311, 1338357308, 1338357088, 1338357085]} final : False mtd_id 4302 list_pids : [1338358354, 1338357816, 1338357552, 1338357550, 1338357545, 1338357495, 1338357492, 1338357489, 1338357457, 1338357454, 1338357449, 1338357418, 1338357413, 1338357406, 1338357403, 1338357400, 1338357372, 1338357368, 1338357364, 1338357324, 1338357321, 1338357319, 1338357315, 1338357311, 1338357308, 1338357088, 1338357085] 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, '2598424') ('4302', '20643020', '1338358354', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357816', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357552', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357550', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357545', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357495', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357492', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357489', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357457', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357454', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357449', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357418', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357413', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357406', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357403', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357400', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357372', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357368', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357364', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357324', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357321', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357319', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357315', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357311', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357308', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357088', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357085', None, None, None, None, None, '2598424') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '20643020', '1338358354', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357816', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357552', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357550', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357545', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357495', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357492', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357489', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357457', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357454', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357449', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357418', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357413', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357406', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357403', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357400', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357372', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357368', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357364', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357324', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357321', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357319', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357315', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357311', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357308', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357088', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357085', None, None, None, None, None, '2598424')] time used for this insertion : 0.11031150817871094 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.584126234054565 time spend to save output : 0.11060452461242676 total time spend for step 4 : 7.694730758666992 step5:split_time_score Wed Feb 19 06:01:38 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 : ['20643020'] 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 : [('20643020',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20643020) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338357552: {'path': 'temp/1739941290_2696454_1338357552_2cfbc93ab46a37a6785441e966acf52f.jpg', 'extension': 'jpg'}, 1338357816: {'path': 'temp/1739941290_2696454_1338357816_0df0f01110c27f84c4709850daeffd14.jpg', 'extension': 'jpg'}, 1338358354: {'path': 'temp/1739941290_2696454_1338358354_7534b062e3a7d583c3169ffeab298e33.jpg', 'extension': 'jpg'}, 1338357403: {'path': 'temp/1739941290_2696454_1338357403_1453fcd6683f74b41f92917e32d6b5b4.jpg', 'extension': 'jpg'}, 1338357406: {'path': 'temp/1739941290_2696454_1338357406_9ce887c4c43143448ace76b46f176a91.jpg', 'extension': 'jpg'}, 1338357413: {'path': 'temp/1739941290_2696454_1338357413_16e6a2ffe99ac5432c9fa6c60c2d6912.jpg', 'extension': 'jpg'}, 1338357418: {'path': 'temp/1739941290_2696454_1338357418_d98a66dd2d635511e55f5688ff1fe795.jpg', 'extension': 'jpg'}, 1338357449: {'path': 'temp/1739941290_2696454_1338357449_9fc7803be5d6cd08481b7974707e9d56.jpg', 'extension': 'jpg'}, 1338357454: {'path': 'temp/1739941290_2696454_1338357454_e28f0b051d0b753102629c4170613246.jpg', 'extension': 'jpg'}, 1338357321: {'path': 'temp/1739941290_2696454_1338357321_c0846f3c10fecc1996f6ea3f647dccf2.jpg', 'extension': 'jpg'}, 1338357324: {'path': 'temp/1739941290_2696454_1338357324_7d779c8bc3648188999091c7715b396e.jpg', 'extension': 'jpg'}, 1338357364: {'path': 'temp/1739941290_2696454_1338357364_ff290002e83918bfe27513d5bce53d3a.jpg', 'extension': 'jpg'}, 1338357368: {'path': 'temp/1739941290_2696454_1338357368_eb8ca23d9a97a424c2920d38793e6bea.jpg', 'extension': 'jpg'}, 1338357372: {'path': 'temp/1739941290_2696454_1338357372_3543b55e74c8527a12aaa9488c34d286.jpg', 'extension': 'jpg'}, 1338357400: {'path': 'temp/1739941290_2696454_1338357400_1778f609ab5a17172b03331e33acf1df.jpg', 'extension': 'jpg'}, 1338357085: {'path': 'temp/1739941290_2696454_1338357085_7358a00704e1a135bb1a7043b18c1b0f.jpg', 'extension': 'jpg'}, 1338357088: {'path': 'temp/1739941290_2696454_1338357088_0c0b25d49ae3519c0535ffa42e9f0176.jpg', 'extension': 'jpg'}, 1338357308: {'path': 'temp/1739941290_2696454_1338357308_57b5c94476f67a21135620f0c9918211.jpg', 'extension': 'jpg'}, 1338357311: {'path': 'temp/1739941290_2696454_1338357311_83d495f3e41fcd8c2a53e06dc550ca43.jpg', 'extension': 'jpg'}, 1338357315: {'path': 'temp/1739941290_2696454_1338357315_3fd05f32d6271e448ceaf2d8432f0145.jpg', 'extension': 'jpg'}, 1338357319: {'path': 'temp/1739941290_2696454_1338357319_5eabe19612df8eb5bf9bd7d2042c6c59.jpg', 'extension': 'jpg'}, 1338357457: {'path': 'temp/1739941290_2696454_1338357457_73c67516cf1485577f77aa70d0fe4e97.jpg', 'extension': 'jpg'}, 1338357489: {'path': 'temp/1739941290_2696454_1338357489_c40b47babe91be18eeaeea34b2449209.jpg', 'extension': 'jpg'}, 1338357492: {'path': 'temp/1739941290_2696454_1338357492_9c9f87baffc2a5634e67970af9400bec.jpg', 'extension': 'jpg'}, 1338357495: {'path': 'temp/1739941290_2696454_1338357495_083cc45da0d75dea971d0221ee2a33e4.jpg', 'extension': 'jpg'}, 1338357545: {'path': 'temp/1739941290_2696454_1338357545_efc8a25debc91402bf2b6832918afad6.jpg', 'extension': 'jpg'}, 1338357550: {'path': 'temp/1739941290_2696454_1338357550_e216126ce5e93dccb86d035a463bd94f.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 = 20643020; (('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 = 20643020 group by h (('16', 27),) 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=20643020 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 (20643020) 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 (20643020) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18022025 20643020 Nombre de photos uploadées : 27 / 23040 (0%) 18022025 20643020 Nombre de photos taguées (types de déchets): 0 / 27 (0%) 18022025 20643020 Nombre de photos taguées (volume) : 0 / 27 (0%) [{'photo_id': 1338357088, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/0c0b25d49ae3519c0535ffa42e9f0176.jpg', 'username': None, 'uploaded_at': 1739893566, 'text': 'image_18022025_16_45_04_010144m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338357085, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/7358a00704e1a135bb1a7043b18c1b0f.jpg', 'username': None, 'uploaded_at': 1739893566, 'text': 'image_18022025_16_45_24_010135m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1338357324, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/7d779c8bc3648188999091c7715b396e.jpg', 'username': None, 'uploaded_at': 1739893627, 'text': 'image_18022025_16_45_54_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1338357321, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/c0846f3c10fecc1996f6ea3f647dccf2.jpg', 'username': None, 'uploaded_at': 1739893627, 'text': 'image_18022025_16_46_04_010154m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ??????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001222372055053711 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20643020, '2025-02-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1609467,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.032695770263671875 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= 1609467 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20627257, 'dashboard_result_id': 8964716, '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_P20627257_18-02-2025_05_17_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20627258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20627259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20627260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20627261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20627262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20627263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20627264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20627265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20627266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20627267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20627268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20627269, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20627333, 'dashboard_result_id': 8964717, '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_P20627333_18-02-2025_05_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20627335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20627336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20627337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20627338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20627339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20627340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20627341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20627342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20627343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20627344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20627345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20627346, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20627623, 'dashboard_result_id': 8964718, '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_P20627623_18-02-2025_05_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20627625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20627626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20627627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20627628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20627629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20627630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20627631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20627632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20627633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20627634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20627635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20627636, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20628039, 'dashboard_result_id': 8964719, '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_P20628039_18-02-2025_06_01_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20628065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20628066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20628067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20628068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20628069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20628070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20628071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20628072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20628073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20628074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20628075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20628076, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20658008, 'dashboard_result_id': 8964720, '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_P20658008_19-02-2025_05_37_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658192, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658201, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20658009, 'dashboard_result_id': 8964721, '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_P20658009_19-02-2025_05_38_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658225, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20658010, 'dashboard_result_id': 8964722, '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_P20658010_19-02-2025_05_38_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658273, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20658011, 'dashboard_result_id': 8964723, '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_P20658011_19-02-2025_05_39_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658176, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20658012, 'dashboard_result_id': 8964724, '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_P20658012_19-02-2025_05_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658152, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20658013, 'dashboard_result_id': 8964725, '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_P20658013_19-02-2025_05_40_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658116, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658119, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658127, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20658014, 'dashboard_result_id': 8964726, '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_P20658014_19-02-2025_05_41_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20658016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658043, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20658015, 'dashboard_result_id': 8964727, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658100, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658103, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20628629, 'dashboard_result_id': 8964728, '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_P20628629_18-02-2025_09_01_12.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20628637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20628638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20628639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20628640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20628641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20628642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20628643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20628644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20628645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20628646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20628647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20628648, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20628631, 'dashboard_result_id': 8964729, '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_P20628631_18-02-2025_09_02_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20628779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20628780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20628781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20628782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20628783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20628784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20628785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20628786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20628787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20628788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20628789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20628790, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20628634, 'dashboard_result_id': 8964730, '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_P20628634_18-02-2025_09_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20628723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20628724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20628725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20628726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20628727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20628728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20628729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20628730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20628731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20628732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20628733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20628734, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20630461, 'dashboard_result_id': 8964731, '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_P20630461_18-02-2025_09_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20630463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20630464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20630465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20630466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20630467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20630468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20630469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20630470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20630471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20630472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20630473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20630474, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20630937, 'dashboard_result_id': 8964732, '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_P20630937_18-02-2025_10_04_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20630938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20630939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20630940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20630941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20630942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20630943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20630944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20630945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20630946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20630947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20630948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20630949, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20631279, 'dashboard_result_id': 8964733, '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_P20631279_18-02-2025_10_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20631281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20631282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20631283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20631284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20631285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20631286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20631287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20631288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20631289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20631290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20631291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20631292, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20631638, 'dashboard_result_id': 8964734, '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_P20631638_18-02-2025_10_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20631642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20631643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20631644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20631645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20631646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20631647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20631648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20631649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20631650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20631651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20631652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20631653, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20632085, 'dashboard_result_id': 8964735, '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_P20632085_18-02-2025_10_49_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20632116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20632117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20632118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20632119, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20632120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20632121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20632122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20632123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20632124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20632125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20632126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20632127, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20632783, 'dashboard_result_id': 8964736, '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_P20632783_18-02-2025_11_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20632818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20632819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20632820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20632821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20632822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20632823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20632824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20632825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20632826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20632827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20632828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20632829, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20633499, 'dashboard_result_id': 8964737, '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_P20633499_18-02-2025_11_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20633555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20633556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20633557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20633558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20633559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20633560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20633561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20633562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20633563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20633564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20633565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20633566, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20634216, 'dashboard_result_id': 8964738, '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_P20634216_18-02-2025_11_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20634247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20634248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20634249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20634250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20634251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20634252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20634253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20634254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20634255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20634256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20634257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20634258, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20634860, 'dashboard_result_id': 8964739, '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_P20634860_18-02-2025_11_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20634869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20634870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20634871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20634872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20634873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20634874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20634875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20634876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20634877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20634878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20634879, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20634880, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20635587, 'dashboard_result_id': 8964740, '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_P20635587_18-02-2025_12_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20635593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20635594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20635595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20635596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20635597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20635598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20635599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20635600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20635601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20635602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20635603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20635604, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20636115, 'dashboard_result_id': 8964741, '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_P20636115_18-02-2025_13_00_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20636123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20636124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20636125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20636126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20636127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20636128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20636129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20636130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20636131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20636132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20636133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20636134, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20637505, 'dashboard_result_id': 8964742, '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_P20637505_18-02-2025_14_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20637507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20637508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20637509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20637510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20637511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20637512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20637513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20637514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20637515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20637516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20637517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20637518, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20637752, 'dashboard_result_id': 8964743, '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_P20637752_18-02-2025_14_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20637753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20637754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20637755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20637756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20637757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20637758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20637759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20637760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20637761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20637762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20637763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20637764, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20638012, 'dashboard_result_id': 8964744, '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_P20638012_18-02-2025_14_34_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20638016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20638017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20638018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20638019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20638020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20638021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20638022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20638023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20638024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20638025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20638026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20638027, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20638733, 'dashboard_result_id': 8964745, '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_P20638733_18-02-2025_14_49_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20638736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20638737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20638738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20638739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20638740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20638741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20638742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20638743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20638744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20638745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20638746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20638747, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20639212, 'dashboard_result_id': 8964746, '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_P20639212_18-02-2025_15_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20639264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20639265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20639266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20639267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20639268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20639269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20639270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20639271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20639272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20639273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20639274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20639275, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20639909, 'dashboard_result_id': 8964747, '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_P20639909_18-02-2025_15_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20639936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20639937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20639938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20639939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20639940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20639941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20639942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20639943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20639944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20639945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20639946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20639947, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20640740, 'dashboard_result_id': 8964748, '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_P20640740_18-02-2025_15_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20640743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20640744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20640745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20640746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20640747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20640748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20640749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20640750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20640751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20640752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20640753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20640754, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20640945, 'dashboard_result_id': 8964749, '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_P20640945_18-02-2025_16_02_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20640974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20640975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20640976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20640977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20640978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20640979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20640980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20640981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20640982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20640983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20640984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20640985, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20641544, 'dashboard_result_id': 8964750, '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_P20641544_18-02-2025_16_16_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20641546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20641547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20641548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20641549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20641550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20641551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20641552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20641553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20641554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20641555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20641556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20641557, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20641942, 'dashboard_result_id': 8964751, '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_P20641942_18-02-2025_16_35_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20641983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20641984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20641985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20641986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20641987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20641988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20641989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20641990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20641993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20641999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20642005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20642006, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20642636, 'dashboard_result_id': 8964752, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 20642639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20642640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20642641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20642642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20642643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20642644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20642645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20642646, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20642647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20642648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20642649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20642650, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20643020, 'dashboard_result_id': 8964753, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20643026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20643027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20643028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20643029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20643030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20643031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20643032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20643033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20643034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20643035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20643036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20643037, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20643840, 'dashboard_result_id': 8964754, '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_P20643840_18-02-2025_17_07_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20643842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20643843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20643844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20643845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20643846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20643847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20643848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20643849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20643850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20643851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20643852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20643853, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20644649, 'dashboard_result_id': 8964755, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20644700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20644701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20644702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20644703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20644704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20644705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20644706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20644707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20644708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20644709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20644710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20644711, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20646322, 'dashboard_result_id': 8964756, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20646325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20646326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20646327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20646328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20646329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20646330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20646331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20646332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20646333, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20646334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20646335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20646336, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20647473, 'dashboard_result_id': 8964757, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20647477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20647478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20647479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20647480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20647481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20647482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20647483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20647484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20647485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20647486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20647487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20647488, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20647549, 'dashboard_result_id': 8964758, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20647576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20647577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20647578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20647579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20647580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20647581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20647582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20647583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20647584, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20647585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20647586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20647587, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20648298, 'dashboard_result_id': 8964759, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20648302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20648303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20648304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20648305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20648306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20648307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20648308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20648309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20648310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20648311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20648312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20648313, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20649026, 'dashboard_result_id': 8964760, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20649031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20649032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20649033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20649034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20649035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20649036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20649037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20649038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20649039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20649040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20649041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20649042, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20649585, 'dashboard_result_id': 8964761, '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_P20649585_18-02-2025_19_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20649622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20649623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20649624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20649625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20649626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20649627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20649628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20649629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20649630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20649631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20649632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20649633, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20650403, 'dashboard_result_id': 8964762, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20650467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20650468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20650469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20650470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20650471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20650472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20650473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20650474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20650475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20650476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20650477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20650478, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20650930, 'dashboard_result_id': 8964763, '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_P20650930_18-02-2025_20_05_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20650956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20650957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20650958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20650959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20650960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20650961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20650962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20650963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20650964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20650965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20650966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20650967, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20651748, 'dashboard_result_id': 8964764, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20651800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20651801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20651802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20651803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20651804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20651805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20651806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20651807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20651808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20651809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20651810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20651811, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20652673, 'dashboard_result_id': 8964765, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20652701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20652702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20652703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20652704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20652705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20652706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20652707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20652708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20652709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20652710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20652711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20652712, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1619894, 'mtr_portfolio_id': 20654148, 'dashboard_result_id': 8964766, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 20654224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20654225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20654226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20654227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20654228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20654229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20654230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20654231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20654232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20654233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20654234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20654235, 'pht': 3726}, 'url_report': ''}"}] 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 = 20627257 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': 2598387, 'mtr_portfolio_id': 20627257, 'created_at': datetime.datetime(2025, 2, 19, 5, 34, 28), 'result': '0.06786332216492437', 'result_long': None, 'result_double': None}] Qualite : 0.06786332216492437 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20627257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20627257_18-02-2025_05_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20627257 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_P20627257_18-02-2025_05_17_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20627258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20627259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20627260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20627261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20627262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20627263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20627264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20627265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20627266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20627267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20627268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20627269, 'pht': 3726}}" where mtr_portfolio_id = 20627257 and dashboard_run_id = 1619894 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`=20627257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964716, 0.06786332216492437, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20627257_18-02-2025_05_17_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20627258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20627259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20627260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20627261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20627262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20627263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20627264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20627265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20627266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20627267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20627268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20627269, '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 = 20627333 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': 2598388, 'mtr_portfolio_id': 20627333, 'created_at': datetime.datetime(2025, 2, 19, 5, 35, 30), 'result': '0.04336382705580075', 'result_long': None, 'result_double': None}] Qualite : 0.04336382705580075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20627333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20627333_18-02-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20627333 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_P20627333_18-02-2025_05_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20627335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20627336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20627337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20627338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20627339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20627340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20627341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20627342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20627343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20627344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20627345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20627346, 'pht': 3726}}" where mtr_portfolio_id = 20627333 and dashboard_run_id = 1619894 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`=20627333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964717, 0.04336382705580075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20627333_18-02-2025_05_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20627335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20627336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20627337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20627338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20627339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20627340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20627341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20627342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20627343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20627344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20627345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20627346, '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 = 20627623 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': 2598389, 'mtr_portfolio_id': 20627623, 'created_at': datetime.datetime(2025, 2, 19, 5, 35, 58), 'result': '0.05919266691197089', 'result_long': None, 'result_double': None}] Qualite : 0.05919266691197089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20627623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20627623_18-02-2025_05_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20627623 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_P20627623_18-02-2025_05_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20627625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20627626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20627627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20627628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20627629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20627630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20627631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20627632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20627633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20627634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20627635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20627636, 'pht': 3726}}" where mtr_portfolio_id = 20627623 and dashboard_run_id = 1619894 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`=20627623 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964718, 0.05919266691197089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20627623_18-02-2025_05_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20627625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20627626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20627627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20627628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20627629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20627630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20627631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20627632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20627633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20627634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20627635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20627636, '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 = 20628039 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': 2598390, 'mtr_portfolio_id': 20628039, 'created_at': datetime.datetime(2025, 2, 19, 5, 36, 59), 'result': '0.04592422613157095', 'result_long': None, 'result_double': None}] Qualite : 0.04592422613157095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20628039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20628039_18-02-2025_06_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20628039 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_P20628039_18-02-2025_06_01_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20628065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20628066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20628067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20628068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20628069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20628070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20628071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20628072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20628073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20628074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20628075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20628076, 'pht': 3726}}" where mtr_portfolio_id = 20628039 and dashboard_run_id = 1619894 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`=20628039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964719, 0.04592422613157095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20628039_18-02-2025_06_01_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20628065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20628066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20628067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20628068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20628069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20628070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20628071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20628072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20628073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20628074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20628075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20628076, '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 = 20658008 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 = 20658008 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 = 20658008 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20658008 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 = 20658008 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 = 20658008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20658008_19-02-2025_05_37_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20658008 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_P20658008_19-02-2025_05_37_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658192, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658201, 'pht': 3726}}" where mtr_portfolio_id = 20658008 and dashboard_run_id = 1619894 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 = 20658009 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 = 20658009 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 = 20658009 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20658009 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 = 20658009 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 = 20658009 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20658009_19-02-2025_05_38_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20658009 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_P20658009_19-02-2025_05_38_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658225, 'pht': 3726}}" where mtr_portfolio_id = 20658009 and dashboard_run_id = 1619894 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 = 20658010 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 = 20658010 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 = 20658010 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20658010 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 = 20658010 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 = 20658010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20658010_19-02-2025_05_38_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20658010 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_P20658010_19-02-2025_05_38_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658273, 'pht': 3726}}" where mtr_portfolio_id = 20658010 and dashboard_run_id = 1619894 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 = 20658011 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 = 20658011 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 = 20658011 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20658011 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 = 20658011 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 = 20658011 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20658011_19-02-2025_05_39_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20658011 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_P20658011_19-02-2025_05_39_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658176, 'pht': 3726}}" where mtr_portfolio_id = 20658011 and dashboard_run_id = 1619894 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 = 20658012 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 = 20658012 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 = 20658012 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20658012 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 = 20658012 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 = 20658012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20658012_19-02-2025_05_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20658012 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_P20658012_19-02-2025_05_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658152, 'pht': 3726}}" where mtr_portfolio_id = 20658012 and dashboard_run_id = 1619894 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 = 20658013 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 = 20658013 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 = 20658013 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20658013 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 = 20658013 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 = 20658013 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20658013_19-02-2025_05_40_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20658013 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_P20658013_19-02-2025_05_40_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658116, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658119, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658127, 'pht': 3726}}" where mtr_portfolio_id = 20658013 and dashboard_run_id = 1619894 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 = 20658014 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 = 20658014 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 = 20658014 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20658014 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 = 20658014 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 = 20658014 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20658014_19-02-2025_05_41_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20658014 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_P20658014_19-02-2025_05_41_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20658016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658043, 'pht': 3726}}" where mtr_portfolio_id = 20658014 and dashboard_run_id = 1619894 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 = 20658015 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': 2598398, 'mtr_portfolio_id': 20658015, 'created_at': datetime.datetime(2025, 2, 19, 5, 41, 59), 'result': '0.044077613849228384', 'result_long': None, 'result_double': None}] Qualite : 0.044077613849228384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20658015 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20658015%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20658015 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658100, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658103, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20658015 and dashboard_run_id = 1619894 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`=20658015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964727, 0.044077613849228384, "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20658092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20658093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20658094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20658095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20658096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20658097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20658098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20658099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20658100, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20658101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20658102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20658103, '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 = 20628629 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': 2598399, 'mtr_portfolio_id': 20628629, 'created_at': datetime.datetime(2025, 2, 19, 5, 42, 32), 'result': '0.04380007162847265', 'result_long': None, 'result_double': None}] Qualite : 0.04380007162847265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20628629 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20628629_18-02-2025_09_01_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20628629 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_P20628629_18-02-2025_09_01_12.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20628637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20628638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20628639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20628640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20628641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20628642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20628643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20628644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20628645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20628646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20628647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20628648, 'pht': 3726}}" where mtr_portfolio_id = 20628629 and dashboard_run_id = 1619894 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`=20628629 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964728, 0.04380007162847265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20628629_18-02-2025_09_01_12.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20628637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20628638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20628639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20628640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20628641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20628642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20628643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20628644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20628645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20628646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20628647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20628648, '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 = 20628631 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': 2598400, 'mtr_portfolio_id': 20628631, 'created_at': datetime.datetime(2025, 2, 19, 5, 43, 31), 'result': '0.04680249392401498', 'result_long': None, 'result_double': None}] Qualite : 0.04680249392401498 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20628631 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20628631_18-02-2025_09_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20628631 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_P20628631_18-02-2025_09_02_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20628779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20628780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20628781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20628782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20628783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20628784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20628785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20628786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20628787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20628788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20628789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20628790, 'pht': 3726}}" where mtr_portfolio_id = 20628631 and dashboard_run_id = 1619894 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`=20628631 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964729, 0.04680249392401498, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20628631_18-02-2025_09_02_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20628779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20628780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20628781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20628782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20628783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20628784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20628785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20628786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20628787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20628788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20628789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20628790, '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 = 20628634 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': 2598401, 'mtr_portfolio_id': 20628634, 'created_at': datetime.datetime(2025, 2, 19, 5, 43, 58), 'result': '0.04381779789964485', 'result_long': None, 'result_double': None}] Qualite : 0.04381779789964485 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20628634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20628634_18-02-2025_09_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20628634 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_P20628634_18-02-2025_09_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20628723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20628724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20628725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20628726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20628727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20628728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20628729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20628730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20628731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20628732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20628733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20628734, 'pht': 3726}}" where mtr_portfolio_id = 20628634 and dashboard_run_id = 1619894 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`=20628634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964730, 0.04381779789964485, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20628634_18-02-2025_09_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20628723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20628724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20628725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20628726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20628727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20628728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20628729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20628730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20628731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20628732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20628733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20628734, '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 = 20630461 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': 2598402, 'mtr_portfolio_id': 20630461, 'created_at': datetime.datetime(2025, 2, 19, 5, 44, 29), 'result': '0.054182376021172214', 'result_long': None, 'result_double': None}] Qualite : 0.054182376021172214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20630461 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20630461_18-02-2025_09_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20630461 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_P20630461_18-02-2025_09_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20630463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20630464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20630465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20630466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20630467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20630468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20630469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20630470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20630471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20630472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20630473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20630474, 'pht': 3726}}" where mtr_portfolio_id = 20630461 and dashboard_run_id = 1619894 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`=20630461 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964731, 0.054182376021172214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20630461_18-02-2025_09_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20630463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20630464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20630465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20630466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20630467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20630468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20630469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20630470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20630471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20630472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20630473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20630474, '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 = 20630937 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': 2598403, 'mtr_portfolio_id': 20630937, 'created_at': datetime.datetime(2025, 2, 19, 5, 45, 28), 'result': '0.0645033228694953', 'result_long': None, 'result_double': None}] Qualite : 0.0645033228694953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20630937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20630937_18-02-2025_10_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20630937 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_P20630937_18-02-2025_10_04_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20630938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20630939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20630940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20630941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20630942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20630943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20630944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20630945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20630946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20630947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20630948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20630949, 'pht': 3726}}" where mtr_portfolio_id = 20630937 and dashboard_run_id = 1619894 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`=20630937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964732, 0.0645033228694953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20630937_18-02-2025_10_04_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20630938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20630939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20630940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20630941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20630942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20630943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20630944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20630945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20630946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20630947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20630948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20630949, '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 = 20631279 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': 2598404, 'mtr_portfolio_id': 20631279, 'created_at': datetime.datetime(2025, 2, 19, 5, 45, 59), 'result': '0.03124142374065303', 'result_long': None, 'result_double': None}] Qualite : 0.03124142374065303 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20631279 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20631279_18-02-2025_10_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20631279 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_P20631279_18-02-2025_10_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20631281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20631282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20631283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20631284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20631285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20631286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20631287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20631288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20631289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20631290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20631291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20631292, 'pht': 3726}}" where mtr_portfolio_id = 20631279 and dashboard_run_id = 1619894 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`=20631279 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964733, 0.03124142374065303, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20631279_18-02-2025_10_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20631281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20631282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20631283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20631284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20631285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20631286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20631287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20631288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20631289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20631290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20631291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20631292, '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 = 20631638 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': 2598405, 'mtr_portfolio_id': 20631638, 'created_at': datetime.datetime(2025, 2, 19, 5, 46, 29), 'result': '0.03379308903271706', 'result_long': None, 'result_double': None}] Qualite : 0.03379308903271706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20631638 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20631638_18-02-2025_10_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20631638 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_P20631638_18-02-2025_10_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20631642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20631643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20631644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20631645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20631646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20631647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20631648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20631649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20631650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20631651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20631652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20631653, 'pht': 3726}}" where mtr_portfolio_id = 20631638 and dashboard_run_id = 1619894 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`=20631638 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964734, 0.03379308903271706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20631638_18-02-2025_10_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20631642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20631643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20631644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20631645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20631646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20631647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20631648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20631649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20631650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20631651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20631652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20631653, '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 = 20632085 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': 2598406, 'mtr_portfolio_id': 20632085, 'created_at': datetime.datetime(2025, 2, 19, 5, 47, 30), 'result': '0.04969121902486216', 'result_long': None, 'result_double': None}] Qualite : 0.04969121902486216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20632085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20632085_18-02-2025_10_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20632085 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_P20632085_18-02-2025_10_49_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20632116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20632117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20632118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20632119, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20632120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20632121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20632122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20632123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20632124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20632125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20632126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20632127, 'pht': 3726}}" where mtr_portfolio_id = 20632085 and dashboard_run_id = 1619894 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`=20632085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964735, 0.04969121902486216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20632085_18-02-2025_10_49_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20632116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20632117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20632118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20632119, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20632120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20632121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20632122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20632123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20632124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20632125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20632126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20632127, '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 = 20632783 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': 2598407, 'mtr_portfolio_id': 20632783, 'created_at': datetime.datetime(2025, 2, 19, 5, 48), 'result': '0.04659890423695298', 'result_long': None, 'result_double': None}] Qualite : 0.04659890423695298 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20632783 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20632783_18-02-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20632783 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_P20632783_18-02-2025_11_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20632818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20632819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20632820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20632821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20632822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20632823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20632824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20632825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20632826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20632827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20632828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20632829, 'pht': 3726}}" where mtr_portfolio_id = 20632783 and dashboard_run_id = 1619894 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`=20632783 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964736, 0.04659890423695298, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20632783_18-02-2025_11_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20632818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20632819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20632820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20632821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20632822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20632823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20632824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20632825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20632826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20632827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20632828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20632829, '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 = 20633499 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': 2598408, 'mtr_portfolio_id': 20633499, 'created_at': datetime.datetime(2025, 2, 19, 5, 48, 29), 'result': '0.038079490108832915', 'result_long': None, 'result_double': None}] Qualite : 0.038079490108832915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20633499 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20633499_18-02-2025_11_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20633499 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_P20633499_18-02-2025_11_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20633555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20633556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20633557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20633558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20633559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20633560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20633561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20633562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20633563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20633564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20633565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20633566, 'pht': 3726}}" where mtr_portfolio_id = 20633499 and dashboard_run_id = 1619894 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`=20633499 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964737, 0.038079490108832915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20633499_18-02-2025_11_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20633555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20633556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20633557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20633558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20633559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20633560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20633561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20633562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20633563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20633564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20633565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20633566, '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 = 20634216 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': 2598409, 'mtr_portfolio_id': 20634216, 'created_at': datetime.datetime(2025, 2, 19, 5, 49, 58), 'result': '0.042296328626101616', 'result_long': None, 'result_double': None}] Qualite : 0.042296328626101616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20634216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20634216_18-02-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20634216 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_P20634216_18-02-2025_11_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20634247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20634248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20634249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20634250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20634251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20634252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20634253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20634254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20634255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20634256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20634257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20634258, 'pht': 3726}}" where mtr_portfolio_id = 20634216 and dashboard_run_id = 1619894 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`=20634216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964738, 0.042296328626101616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20634216_18-02-2025_11_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20634247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20634248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20634249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20634250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20634251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20634252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20634253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20634254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20634255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20634256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20634257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20634258, '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 = 20634860 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': 2598410, 'mtr_portfolio_id': 20634860, 'created_at': datetime.datetime(2025, 2, 19, 5, 50, 32), 'result': '0.035875557958438435', 'result_long': None, 'result_double': None}] Qualite : 0.035875557958438435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20634860 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20634860_18-02-2025_11_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20634860 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_P20634860_18-02-2025_11_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20634869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20634870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20634871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20634872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20634873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20634874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20634875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20634876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20634877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20634878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20634879, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20634880, 'pht': 3726}}" where mtr_portfolio_id = 20634860 and dashboard_run_id = 1619894 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`=20634860 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964739, 0.035875557958438435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20634860_18-02-2025_11_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20634869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20634870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20634871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20634872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20634873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20634874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20634875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20634876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20634877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20634878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20634879, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20634880, '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 = 20635587 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': 2598411, 'mtr_portfolio_id': 20635587, 'created_at': datetime.datetime(2025, 2, 19, 5, 51, 30), 'result': '0.05219095687750132', 'result_long': None, 'result_double': None}] Qualite : 0.05219095687750132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20635587 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20635587_18-02-2025_12_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20635587 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_P20635587_18-02-2025_12_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20635593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20635594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20635595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20635596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20635597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20635598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20635599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20635600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20635601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20635602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20635603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20635604, 'pht': 3726}}" where mtr_portfolio_id = 20635587 and dashboard_run_id = 1619894 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`=20635587 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964740, 0.05219095687750132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20635587_18-02-2025_12_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20635593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20635594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20635595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20635596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20635597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20635598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20635599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20635600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20635601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20635602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20635603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20635604, '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 = 20636115 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': 2598412, 'mtr_portfolio_id': 20636115, 'created_at': datetime.datetime(2025, 2, 19, 5, 51, 58), 'result': '0.03872738011734282', 'result_long': None, 'result_double': None}] Qualite : 0.03872738011734282 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20636115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20636115_18-02-2025_13_00_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20636115 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_P20636115_18-02-2025_13_00_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20636123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20636124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20636125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20636126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20636127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20636128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20636129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20636130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20636131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20636132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20636133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20636134, 'pht': 3726}}" where mtr_portfolio_id = 20636115 and dashboard_run_id = 1619894 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`=20636115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964741, 0.03872738011734282, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20636115_18-02-2025_13_00_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20636123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20636124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20636125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20636126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20636127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20636128, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20636129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20636130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20636131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20636132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20636133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20636134, '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 = 20637505 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': 2598413, 'mtr_portfolio_id': 20637505, 'created_at': datetime.datetime(2025, 2, 19, 5, 52, 31), 'result': '0.02499973836582598', 'result_long': None, 'result_double': None}] Qualite : 0.02499973836582598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20637505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20637505_18-02-2025_14_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20637505 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_P20637505_18-02-2025_14_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20637507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20637508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20637509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20637510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20637511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20637512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20637513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20637514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20637515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20637516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20637517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20637518, 'pht': 3726}}" where mtr_portfolio_id = 20637505 and dashboard_run_id = 1619894 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`=20637505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964742, 0.02499973836582598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20637505_18-02-2025_14_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20637507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20637508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20637509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20637510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20637511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20637512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20637513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20637514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20637515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20637516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20637517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20637518, '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 = 20637752 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': 2598414, 'mtr_portfolio_id': 20637752, 'created_at': datetime.datetime(2025, 2, 19, 5, 54, 30), 'result': '0.0464626605951296', 'result_long': None, 'result_double': None}] Qualite : 0.0464626605951296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20637752 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20637752_18-02-2025_14_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20637752 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_P20637752_18-02-2025_14_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20637753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20637754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20637755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20637756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20637757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20637758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20637759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20637760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20637761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20637762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20637763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20637764, 'pht': 3726}}" where mtr_portfolio_id = 20637752 and dashboard_run_id = 1619894 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`=20637752 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964743, 0.0464626605951296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20637752_18-02-2025_14_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20637753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20637754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20637755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20637756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20637757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20637758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20637759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20637760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20637761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20637762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20637763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20637764, '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 = 20638012 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': 2598415, 'mtr_portfolio_id': 20638012, 'created_at': datetime.datetime(2025, 2, 19, 5, 55, 30), 'result': '0.04245985668534336', 'result_long': None, 'result_double': None}] Qualite : 0.04245985668534336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20638012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20638012_18-02-2025_14_34_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20638012 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_P20638012_18-02-2025_14_34_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20638016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20638017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20638018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20638019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20638020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20638021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20638022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20638023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20638024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20638025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20638026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20638027, 'pht': 3726}}" where mtr_portfolio_id = 20638012 and dashboard_run_id = 1619894 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`=20638012 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964744, 0.04245985668534336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20638012_18-02-2025_14_34_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20638016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20638017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20638018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20638019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20638020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20638021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20638022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20638023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20638024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20638025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20638026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20638027, '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 = 20638733 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': 2598416, 'mtr_portfolio_id': 20638733, 'created_at': datetime.datetime(2025, 2, 19, 5, 55, 59), 'result': '0.06203339353207986', 'result_long': None, 'result_double': None}] Qualite : 0.06203339353207986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20638733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20638733_18-02-2025_14_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20638733 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_P20638733_18-02-2025_14_49_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20638736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20638737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20638738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20638739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20638740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20638741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20638742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20638743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20638744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20638745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20638746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20638747, 'pht': 3726}}" where mtr_portfolio_id = 20638733 and dashboard_run_id = 1619894 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`=20638733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964745, 0.06203339353207986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20638733_18-02-2025_14_49_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20638736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20638737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20638738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20638739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20638740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20638741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20638742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20638743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20638744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20638745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20638746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20638747, '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 = 20639212 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': 2598417, 'mtr_portfolio_id': 20639212, 'created_at': datetime.datetime(2025, 2, 19, 5, 56, 27), 'result': '0.03009404394799576', 'result_long': None, 'result_double': None}] Qualite : 0.03009404394799576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20639212 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20639212_18-02-2025_15_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20639212 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_P20639212_18-02-2025_15_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20639264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20639265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20639266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20639267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20639268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20639269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20639270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20639271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20639272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20639273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20639274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20639275, 'pht': 3726}}" where mtr_portfolio_id = 20639212 and dashboard_run_id = 1619894 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`=20639212 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964746, 0.03009404394799576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20639212_18-02-2025_15_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20639264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20639265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20639266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20639267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20639268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20639269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20639270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20639271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20639272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20639273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20639274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20639275, '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 = 20639909 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': 2598418, 'mtr_portfolio_id': 20639909, 'created_at': datetime.datetime(2025, 2, 19, 5, 57, 28), 'result': '0.03768618696052333', 'result_long': None, 'result_double': None}] Qualite : 0.03768618696052333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20639909 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20639909_18-02-2025_15_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20639909 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_P20639909_18-02-2025_15_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20639936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20639937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20639938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20639939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20639940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20639941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20639942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20639943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20639944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20639945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20639946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20639947, 'pht': 3726}}" where mtr_portfolio_id = 20639909 and dashboard_run_id = 1619894 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`=20639909 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964747, 0.03768618696052333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20639909_18-02-2025_15_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20639936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20639937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20639938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20639939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20639940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20639941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20639942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20639943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20639944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20639945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20639946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20639947, '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 = 20640740 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': 2598419, 'mtr_portfolio_id': 20640740, 'created_at': datetime.datetime(2025, 2, 19, 5, 57, 59), 'result': '0.03366029774532248', 'result_long': None, 'result_double': None}] Qualite : 0.03366029774532248 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20640740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20640740_18-02-2025_15_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20640740 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_P20640740_18-02-2025_15_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20640743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20640744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20640745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20640746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20640747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20640748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20640749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20640750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20640751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20640752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20640753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20640754, 'pht': 3726}}" where mtr_portfolio_id = 20640740 and dashboard_run_id = 1619894 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`=20640740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964748, 0.03366029774532248, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20640740_18-02-2025_15_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20640743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20640744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20640745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20640746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20640747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20640748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20640749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20640750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20640751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20640752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20640753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20640754, '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 = 20640945 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': 2598420, 'mtr_portfolio_id': 20640945, 'created_at': datetime.datetime(2025, 2, 19, 5, 58, 30), 'result': '0.05116194989198609', 'result_long': None, 'result_double': None}] Qualite : 0.05116194989198609 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20640945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20640945_18-02-2025_16_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20640945 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_P20640945_18-02-2025_16_02_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20640974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20640975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20640976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20640977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20640978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20640979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20640980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20640981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20640982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20640983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20640984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20640985, 'pht': 3726}}" where mtr_portfolio_id = 20640945 and dashboard_run_id = 1619894 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`=20640945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964749, 0.05116194989198609, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20640945_18-02-2025_16_02_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20640974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20640975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20640976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20640977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20640978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20640979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20640980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20640981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20640982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20640983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20640984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20640985, '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 = 20641544 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': 2598421, 'mtr_portfolio_id': 20641544, 'created_at': datetime.datetime(2025, 2, 19, 5, 59, 32), 'result': '0.0508147019811851', 'result_long': None, 'result_double': None}] Qualite : 0.0508147019811851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20641544 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20641544_18-02-2025_16_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20641544 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_P20641544_18-02-2025_16_16_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20641546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20641547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20641548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20641549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20641550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20641551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20641552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20641553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20641554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20641555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20641556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20641557, 'pht': 3726}}" where mtr_portfolio_id = 20641544 and dashboard_run_id = 1619894 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`=20641544 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964750, 0.0508147019811851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20641544_18-02-2025_16_16_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20641546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20641547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20641548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20641549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20641550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20641551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20641552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20641553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20641554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20641555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20641556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20641557, '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 = 20641942 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': 2598422, 'mtr_portfolio_id': 20641942, 'created_at': datetime.datetime(2025, 2, 19, 6, 0), 'result': '0.043765433753402846', 'result_long': None, 'result_double': None}] Qualite : 0.043765433753402846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20641942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20641942_18-02-2025_16_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20641942 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_P20641942_18-02-2025_16_35_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20641983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20641984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20641985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20641986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20641987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20641988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20641989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20641990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20641993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20641999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20642005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20642006, 'pht': 3726}}" where mtr_portfolio_id = 20641942 and dashboard_run_id = 1619894 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`=20641942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964751, 0.043765433753402846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20641942_18-02-2025_16_35_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20641983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20641984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20641985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20641986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20641987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20641988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20641989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20641990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20641993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20641999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20642005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20642006, '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 = 20642636 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': 2598423, 'mtr_portfolio_id': 20642636, 'created_at': datetime.datetime(2025, 2, 19, 6, 0, 29), 'result': '0.052099359413391645', 'result_long': None, 'result_double': None}] Qualite : 0.052099359413391645 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20642636 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20642636%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20642636 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': 20642639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20642640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20642641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20642642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20642643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20642644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20642645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20642646, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20642647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20642648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20642649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20642650, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20642636 and dashboard_run_id = 1619894 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`=20642636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964752, 0.052099359413391645, "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 20642639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20642640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20642641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20642642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20642643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20642644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20642645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20642646, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20642647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20642648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20642649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20642650, '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 = 20643020 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': 2598424, 'mtr_portfolio_id': 20643020, 'created_at': datetime.datetime(2025, 2, 19, 6, 1, 30), 'result': '0.03721859257393691', 'result_long': None, 'result_double': None}] Qualite : 0.03721859257393691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20643020 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20643020%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20643020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20643026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20643027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20643028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20643029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20643030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20643031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20643032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20643033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20643034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20643035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20643036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20643037, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20643020 and dashboard_run_id = 1619894 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`=20643020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964753, 0.03721859257393691, "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20643026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20643027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20643028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20643029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20643030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20643031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20643032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20643033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20643034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20643035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20643036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20643037, '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 = 20643840 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': 2597070, 'mtr_portfolio_id': 20643840, 'created_at': datetime.datetime(2025, 2, 18, 17, 16, 59), 'result': '0.03877945402777816', 'result_long': None, 'result_double': None}] Qualite : 0.03877945402777816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20643840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20643840_18-02-2025_17_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20643840 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_P20643840_18-02-2025_17_07_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20643842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20643843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20643844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20643845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20643846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20643847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20643848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20643849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20643850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20643851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20643852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20643853, 'pht': 3726}}" where mtr_portfolio_id = 20643840 and dashboard_run_id = 1619894 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`=20643840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964754, 0.03877945402777816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20643840_18-02-2025_17_07_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20643842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20643843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20643844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20643845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20643846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20643847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20643848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20643849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20643850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20643851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20643852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20643853, '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 = 20644649 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': 2597104, 'mtr_portfolio_id': 20644649, 'created_at': datetime.datetime(2025, 2, 18, 17, 33), 'result': '0.054395406318915346', 'result_long': None, 'result_double': None}] Qualite : 0.054395406318915346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20644649 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20644649%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20644649 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20644700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20644701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20644702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20644703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20644704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20644705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20644706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20644707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20644708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20644709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20644710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20644711, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20644649 and dashboard_run_id = 1619894 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`=20644649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964755, 0.054395406318915346, "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20644700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20644701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20644702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20644703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20644704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20644705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20644706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20644707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20644708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20644709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20644710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20644711, '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 = 20646322 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': 2597213, 'mtr_portfolio_id': 20646322, 'created_at': datetime.datetime(2025, 2, 18, 18, 44, 29), 'result': '0.03682277761171508', 'result_long': None, 'result_double': None}] Qualite : 0.03682277761171508 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20646322 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20646322%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20646322 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20646325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20646326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20646327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20646328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20646329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20646330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20646331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20646332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20646333, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20646334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20646335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20646336, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20646322 and dashboard_run_id = 1619894 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`=20646322 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964756, 0.03682277761171508, "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20646325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20646326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20646327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20646328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20646329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20646330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20646331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20646332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20646333, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20646334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20646335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20646336, '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 = 20647473 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': 2597291, 'mtr_portfolio_id': 20647473, 'created_at': datetime.datetime(2025, 2, 18, 18, 47), 'result': '0.03163335488112646', 'result_long': None, 'result_double': None}] Qualite : 0.03163335488112646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20647473 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20647473%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20647473 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20647477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20647478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20647479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20647480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20647481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20647482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20647483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20647484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20647485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20647486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20647487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20647488, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20647473 and dashboard_run_id = 1619894 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`=20647473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964757, 0.03163335488112646, "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20647477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20647478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20647479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20647480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20647481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20647482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20647483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20647484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20647485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20647486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20647487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20647488, '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 = 20647549 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': 2597297, 'mtr_portfolio_id': 20647549, 'created_at': datetime.datetime(2025, 2, 18, 19, 2, 57), 'result': '0.0416374154977994', 'result_long': None, 'result_double': None}] Qualite : 0.0416374154977994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20647549 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20647549%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20647549 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20647576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20647577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20647578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20647579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20647580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20647581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20647582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20647583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20647584, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20647585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20647586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20647587, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20647549 and dashboard_run_id = 1619894 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`=20647549 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964758, 0.0416374154977994, "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20647576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20647577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20647578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20647579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20647580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20647581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20647582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20647583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20647584, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20647585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20647586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20647587, '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 = 20648298 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': 2597345, 'mtr_portfolio_id': 20648298, 'created_at': datetime.datetime(2025, 2, 18, 19, 17), 'result': '0.03799289322438351', 'result_long': None, 'result_double': None}] Qualite : 0.03799289322438351 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20648298 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20648298%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20648298 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20648302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20648303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20648304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20648305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20648306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20648307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20648308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20648309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20648310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20648311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20648312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20648313, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20648298 and dashboard_run_id = 1619894 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`=20648298 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964759, 0.03799289322438351, "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20648302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20648303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20648304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20648305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20648306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20648307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20648308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20648309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20648310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20648311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20648312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20648313, '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 = 20649026 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': 2597379, 'mtr_portfolio_id': 20649026, 'created_at': datetime.datetime(2025, 2, 18, 19, 35), 'result': '0.035756524315015366', 'result_long': None, 'result_double': None}] Qualite : 0.035756524315015366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20649026 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20649026%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20649026 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20649031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20649032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20649033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20649034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20649035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20649036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20649037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20649038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20649039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20649040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20649041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20649042, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20649026 and dashboard_run_id = 1619894 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`=20649026 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964760, 0.035756524315015366, "{'max_time_prod_two_photos': 0, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20649031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20649032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20649033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20649034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20649035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20649036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20649037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20649038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20649039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20649040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20649041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20649042, '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 = 20649585 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': 2597414, 'mtr_portfolio_id': 20649585, 'created_at': datetime.datetime(2025, 2, 18, 19, 46, 59), 'result': '0.03892261891815917', 'result_long': None, 'result_double': None}] Qualite : 0.03892261891815917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20649585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20649585_18-02-2025_19_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20649585 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_P20649585_18-02-2025_19_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20649622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20649623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20649624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20649625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20649626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20649627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20649628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20649629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20649630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20649631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20649632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20649633, 'pht': 3726}}" where mtr_portfolio_id = 20649585 and dashboard_run_id = 1619894 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`=20649585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964761, 0.03892261891815917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20649585_18-02-2025_19_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20649622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20649623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20649624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20649625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20649626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20649627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20649628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20649629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20649630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20649631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20649632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20649633, '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 = 20650403 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': 2597455, 'mtr_portfolio_id': 20650403, 'created_at': datetime.datetime(2025, 2, 18, 20, 2, 57), 'result': '0.04600657526929947', 'result_long': None, 'result_double': None}] Qualite : 0.04600657526929947 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20650403 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20650403%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20650403 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20650467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20650468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20650469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20650470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20650471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20650472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20650473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20650474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20650475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20650476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20650477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20650478, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20650403 and dashboard_run_id = 1619894 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`=20650403 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964762, 0.04600657526929947, "{'max_time_prod_two_photos': 0, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20650467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20650468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20650469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20650470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20650471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20650472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20650473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20650474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20650475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20650476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20650477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20650478, '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 = 20650930 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': 2597490, 'mtr_portfolio_id': 20650930, 'created_at': datetime.datetime(2025, 2, 18, 20, 18, 58), 'result': '0.03599330427141201', 'result_long': None, 'result_double': None}] Qualite : 0.03599330427141201 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20650930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20650930_18-02-2025_20_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20650930 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_P20650930_18-02-2025_20_05_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20650956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20650957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20650958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20650959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20650960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20650961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20650962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20650963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20650964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20650965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20650966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20650967, 'pht': 3726}}" where mtr_portfolio_id = 20650930 and dashboard_run_id = 1619894 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`=20650930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964763, 0.03599330427141201, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20650930_18-02-2025_20_05_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20650956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20650957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20650958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20650959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20650960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20650961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20650962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20650963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20650964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20650965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20650966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20650967, '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 = 20651748 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': 2597537, 'mtr_portfolio_id': 20651748, 'created_at': datetime.datetime(2025, 2, 18, 20, 32, 59), 'result': '0.050668646704690054', 'result_long': None, 'result_double': None}] Qualite : 0.050668646704690054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20651748 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20651748%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20651748 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20651800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20651801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20651802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20651803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20651804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20651805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20651806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20651807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20651808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20651809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20651810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20651811, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20651748 and dashboard_run_id = 1619894 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`=20651748 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964764, 0.050668646704690054, "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20651800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20651801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20651802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20651803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20651804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20651805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20651806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20651807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20651808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20651809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20651810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20651811, '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 = 20652673 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': 2597581, 'mtr_portfolio_id': 20652673, 'created_at': datetime.datetime(2025, 2, 18, 21, 7), 'result': '0.03600070585191295', 'result_long': None, 'result_double': None}] Qualite : 0.03600070585191295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20652673 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20652673%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20652673 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20652701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20652702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20652703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20652704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20652705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20652706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20652707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20652708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20652709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20652710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20652711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20652712, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20652673 and dashboard_run_id = 1619894 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`=20652673 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964765, 0.03600070585191295, "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20652701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20652702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20652703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20652704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20652705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20652706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20652707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20652708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20652709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20652710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20652711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20652712, '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 = 20654148 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': 2597668, 'mtr_portfolio_id': 20654148, 'created_at': datetime.datetime(2025, 2, 18, 21, 19), 'result': '0.026416458550533737', 'result_long': None, 'result_double': None}] Qualite : 0.026416458550533737 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20654148 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20654148%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20654148 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': 20654224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20654225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20654226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20654227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20654228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20654229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20654230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20654231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20654232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20654233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20654234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20654235, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20654148 and dashboard_run_id = 1619894 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`=20654148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8964766, 0.026416458550533737, "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 20654224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20654225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20654226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20654227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20654228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20654229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20654230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20654231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20654232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20654233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20654234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20654235, 'pht': 3726}, 'url_report': ''}") 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 (20627257,20627333,20627623,20628039,20658008,20658009,20658010,20658011,20658012,20658013,20658014,20658015,20628629,20628631,20628634,20630461,20630937,20631279,20631638,20632085,20632783,20633499,20634216,20634860,20635587,20636115,20637505,20637752,20638012,20638733,20639212,20639909,20640740,20640945,20641544,20641942,20642636,20643020,20643840,20644649,20646322,20647473,20647549,20648298,20649026,20649585,20650403,20650930,20651748,20652673,20654148) result : ((1338290931,), (1338290951,), (1338290982,), (1338291036,), (1338291208,), (1338291226,), (1338291533,), (1338291666,), (1338291685,), (1338291687,), (1338291802,), (1338291804,), (1338291822,), (1338291871,), (1338291873,), (1338291902,), (1338291903,), (1338291922,), (1338291924,), (1338291925,), (1338291945,), (1338291947,), (1338292657,), (1338292660,), (1338292662,), (1338292691,), (1338292679,), (1338292683,), (1338292685,), (1338292947,), (1338292948,), (1338292949,), (1338292950,), (1338292971,), (1338292972,), (1338292973,), (1338292974,), (1338293125,), (1338293182,), (1338293183,), (1338293184,), (1338293203,), (1338293204,), (1338293205,), (1338293206,), (1338293213,), (1338293219,), (1338293242,), (1338293243,), (1338293244,), (1338293245,), (1338293247,), (1338293249,), (1338293365,), (1338293461,), (1338293528,), (1338293556,), (1338293557,), (1338293558,), (1338293559,), (1338293561,), (1338293562,), (1338293584,), (1338293622,), (1338293629,), (1338293641,), (1338293651,), (1338293653,), (1338293779,), (1338293788,), (1338293790,), (1338293793,), (1338293806,), (1338293808,), (1338293810,), (1338293812,), (1338293815,), (1338293847,), (1338293849,), (1338293851,), (1338293853,), (1338293855,), (1338293870,), (1338293872,), (1338293875,), (1338293927,), (1338293929,), (1338293931,), (1338293933,), (1338293936,), (1338293938,), (1338293960,), (1338293964,), (1338293971,), (1338293975,), (1338293978,), (1338294010,), (1338294001,), (1338294003,), (1338294005,), (1338294007,), (1338294024,), (1338294050,), (1338294119,), (1338294204,), (1338294269,), (1338294651,), (1338294653,), (1338294655,), (1338294657,), (1338294659,), (1338294662,), (1338294702,), (1338294704,), (1338294706,), (1338294708,), (1338294733,), (1338294735,), (1338294738,), (1338294740,), (1338294742,), (1338294745,), (1338294757,), (1338294759,), (1338294761,), (1338294763,), (1338294765,), (1338294788,), (1338294790,), (1338294792,), (1338294794,), (1338294832,), (1338294835,), (1338294838,), (1338294842,), (1338294846,), (1338294849,), (1338294864,), (1338294868,), (1338294871,), (1338294874,), (1338294904,), (1338294906,), (1338294908,), (1338294919,), (1338294956,), (1338294960,), (1338294966,), (1338294968,), (1338294990,), (1338295012,), (1338295014,), (1338295016,), (1338295018,), (1338295041,), (1338295043,), (1338295408,), (1338295413,), (1338295417,), (1338295424,), (1338295430,), (1338295433,), (1338295434,), (1338295456,), (1338299997,), (1338299999,), (1338300002,), (1338300005,), (1338300008,), (1338300029,), (1338300030,), (1338300032,), (1338300034,), (1338300035,), (1338300038,), (1338300061,), (1338300063,), (1338300090,), (1338300091,), (1338300093,), (1338300094,), (1338300095,), (1338300099,), (1338300120,), (1338300123,), (1338300126,), (1338300128,), (1338300130,), (1338300152,), (1338300153,), (1338300155,), (1338300157,), (1338300187,), (1338300189,), (1338300192,), (1338300194,), (1338300196,), (1338300199,), (1338300222,), (1338300224,), (1338300226,), (1338300252,), (1338300255,), (1338300259,), (1338300263,), (1338300266,), (1338300270,), (1338300287,), (1338300289,), (1338300292,), (1338300295,), (1338300316,), (1338300319,), (1338300323,), (1338300327,), (1338300330,), (1338300333,), (1338300348,), (1338300350,), (1338300352,), (1338300355,), (1338300358,), (1338300379,), (1338300382,), (1338300386,), (1338300390,), (1338300392,), (1338300411,), (1338300414,), (1338300417,), (1338300420,), (1338300423,), (1338300426,), (1338300444,), (1338300447,), (1338300451,), (1338300455,), (1338300493,), (1338300479,), (1338300481,), (1338300483,), (1338300486,), (1338300489,), (1338300511,), (1338300514,), (1338300517,), (1338300519,), (1338300542,), (1338300545,), (1338300549,), (1338300555,), (1338300560,), (1338300565,), (1338300574,), (1338300581,), (1338300583,), (1338300586,), (1338300590,), (1338300593,), (1338300603,), (1338300605,), (1338300608,), (1338300628,), (1338300630,), (1338300632,), (1338300634,), (1338300636,), (1338300641,), (1338300654,), (1338300657,), (1338300660,), (1338300663,), (1338300684,), (1338300686,), (1338300689,), (1338300692,), (1338300695,), (1338300699,), (1338300714,), (1338300716,), (1338300719,), (1338300738,), (1338300740,), (1338300742,), (1338300744,), (1338300747,), (1338300763,), (1338300765,), (1338300768,), (1338300773,), (1338300777,), (1338300780,), (1338300796,), (1338300798,), (1338300801,), (1338300804,), (1338300829,), (1338300833,), (1338300837,), (1338300841,), (1338300845,), (1338300861,), (1338300863,), (1338300865,), (1338300868,), (1338300871,), (1338300892,), (1338300895,), (1338300924,), (1338300922,), (1338300946,), (1338300948,), (1338300950,), (1338300953,), (1338300957,), (1338300960,), (1338300974,), (1338300977,), (1338300980,), (1338300983,), (1338301007,), (1338301009,), (1338301012,), (1338301015,), (1338301019,), (1338301022,), (1338301046,), (1338301048,), (1338301050,), (1338301052,), (1338301077,), (1338301079,), (1338301082,), (1338301085,), (1338301088,), (1338301110,), (1338301111,), (1338301113,), (1338301115,), (1338301117,), (1338301143,), (1338301144,), (1338301146,), (1338301175,), (1338301176,), (1338301178,), (1338301180,), (1338301181,), (1338301183,), (1338301207,), (1338301208,), (1338301210,), (1338301236,), (1338301237,), (1338301239,), (1338301241,), (1338301242,), (1338301244,), (1338301269,), (1338301270,), (1338301272,), (1338301273,), (1338301299,), (1338301334,), (1338301338,), (1338301345,), (1338301351,), (1338301358,), (1338301364,), (1338301375,), (1338301377,), (1338301382,), (1338301387,), (1338301389,), (1338301413,), (1338303198,), (1338303803,), (1338303806,), (1338303809,), (1338303812,), (1338303831,), (1338303834,), (1338303837,), (1338303840,), (1338303843,), (1338303876,), (1338303880,), (1338303884,), (1338303907,), (1338303910,), (1338303917,), (1338303920,), (1338303945,), (1338303948,), (1338303976,), (1338303980,), (1338303987,), (1338303997,), (1338304121,), (1338304123,), (1338304127,), (1338304130,), (1338304133,), (1338304167,), (1338304174,), (1338304186,), (1338304193,), (1338304196,), (1338304199,), (1338304217,), (1338304220,), (1338304225,), (1338304262,), (1338304264,), (1338304267,), (1338304272,), (1338304276,), (1338304280,), (1338304301,), (1338304304,), (1338304307,), (1338304311,), (1338304314,), (1338304318,), (1338304348,), (1338304351,), (1338304355,), (1338304382,), (1338304387,), (1338304391,), (1338304418,), (1338304423,), (1338304428,), (1338304432,), (1338304465,), (1338304470,), (1338304507,), (1338304543,), (1338304546,), (1338304553,), (1338304564,), (1338304733,), (1338304738,), (1338304957,), (1338304991,), (1338305027,), (1338305205,), (1338305415,), (1338305447,), (1338306747,), (1338306717,), (1338306875,), (1338306878,), (1338307769,), (1338307840,), (1338307902,), (1338307904,), (1338307937,), (1338307978,), (1338307982,), (1338307987,), (1338307991,), (1338308021,), (1338308025,), (1338308029,), (1338308032,), (1338308037,), (1338308123,), (1338308129,), (1338308134,), (1338308138,), (1338308204,), (1338308208,), (1338308212,), (1338308216,), (1338308221,), (1338308267,), (1338308276,), (1338308279,), (1338308283,), (1338308309,), (1338308313,), (1338308345,), (1338308368,), (1338308374,), (1338308420,), (1338308422,), (1338308426,), (1338308430,), (1338308434,), (1338308438,), (1338308459,), (1338308539,), (1338308630,), (1338308656,), (1338308659,), (1338308710,), (1338308700,), (1338308703,), (1338308707,), (1338308736,), (1338308746,), (1338309125,), (1338309127,), (1338309256,), (1338309291,), (1338309293,), (1338309297,), (1338309299,), (1338309302,), (1338309341,), (1338309342,), (1338309344,), (1338309368,), (1338309411,), (1338309419,), (1338309422,), (1338309469,), (1338309470,), (1338309503,), (1338309505,), (1338309507,), (1338309508,), (1338309509,), (1338309511,), (1338309541,), (1338309543,), (1338309549,), (1338309551,), (1338309588,), (1338309590,), (1338309591,), (1338309593,), (1338309596,), (1338309600,), (1338309760,), (1338309761,), (1338309765,), (1338309768,), (1338309796,), (1338309798,), (1338309811,), (1338309814,), (1338309817,), (1338309819,), (1338309862,), (1338309864,), (1338309867,), (1338309872,), (1338309930,), (1338309934,), (1338309938,), (1338309943,), (1338309946,), (1338309949,), (1338309999,), (1338309985,), (1338309988,), (1338309991,), (1338309992,), (1338309995,), (1338310052,), (1338310061,), (1338310064,), (1338310109,), (1338310112,), (1338310115,), (1338310118,), (1338310122,), (1338310147,), (1338310149,), (1338310153,), (1338310156,), (1338310205,), (1338310206,), (1338310209,), (1338310212,), (1338310217,), (1338310389,), (1338310393,), (1338310397,), (1338310407,), (1338310412,), (1338310420,), (1338310574,), (1338310793,), (1338310973,), (1338311189,), (1338311384,), (1338311453,), (1338311462,), (1338311479,), (1338311497,), (1338311696,), (1338311699,), (1338311704,), (1338311710,), (1338311715,), (1338311744,), (1338311746,), (1338311749,), (1338311751,), (1338311783,), (1338311785,), (1338311788,), (1338311790,), (1338311793,), (1338311796,), (1338311828,), (1338311829,), (1338311832,), (1338311834,), (1338311891,), (1338311893,), (1338311896,), (1338311960,), (1338311965,), (1338311969,), (1338311973,), (1338311974,), (1338312004,), (1338312053,), (1338312057,), (1338312062,), (1338312064,), (1338312279,), (1338312242,), (1338312253,), (1338312257,), (1338312263,), (1338312275,), (1338312306,), (1338312310,), (1338312319,), (1338312331,), (1338312366,), (1338312370,), (1338312374,), (1338312379,), (1338312381,), (1338312460,), (1338312463,), (1338312467,), (1338313098,), (1338313103,), (1338313105,), (1338313108,), (1338313111,), (1338313143,), (1338313148,), (1338313151,), (1338313173,), (1338313176,), (1338313179,), (1338313254,), (1338313270,), (1338313272,), (1338313315,), (1338313317,), (1338313319,), (1338313333,), (1338313334,), (1338313341,), (1338313387,), (1338313389,), (1338313394,), (1338313400,), (1338313444,), (1338313447,), (1338313450,), (1338313451,), (1338313525,), (1338313531,), (1338313532,), (1338313535,), (1338313537,), (1338313581,), (1338313582,), (1338313584,), (1338313586,), (1338313666,), (1338313667,), (1338313670,), (1338313672,), (1338313779,), (1338313784,), (1338313788,), (1338313863,), (1338313861,), (1338313973,), (1338313975,), (1338313978,), (1338313982,), (1338314077,), (1338314078,), (1338314081,), (1338314084,), (1338314118,), (1338314120,), (1338314123,), (1338314125,), (1338314126,), (1338314131,), (1338314157,), (1338314158,), (1338314203,), (1338314204,), (1338314206,), (1338314217,), (1338314225,), (1338314233,), (1338314974,), (1338314977,), (1338314980,), (1338314985,), (1338315060,), (1338315137,), (1338315247,), (1338315254,), (1338315330,), (1338315517,), (1338315518,), (1338315520,), (1338315521,), (1338315524,), (1338315528,), (1338315552,), (1338315554,), (1338315558,), (1338315570,), (1338315572,), (1338315581,), (1338315623,), (1338315625,), (1338315627,), (1338315630,), (1338315633,), (1338315670,), (1338315706,), (1338315708,), (1338315710,), (1338315712,), (1338315752,), (1338315753,), (1338315755,), (1338315757,), (1338315805,), (1338315807,), (1338315809,), (1338315810,), (1338315812,), (1338315815,), (1338315865,), (1338315867,), (1338315869,), (1338315873,), (1338315876,), (1338315956,), (1338315929,), (1338315932,), (1338315935,), (1338315936,), (1338315992,), (1338315994,), (1338315997,), (1338316000,), (1338316002,), (1338316009,), (1338316036,), (1338316038,), (1338316061,), (1338316063,), (1338316068,), (1338316437,), (1338316500,), (1338316503,), (1338316638,), (1338316640,), (1338316724,), (1338316728,), (1338316732,), (1338316737,), (1338316739,), (1338316775,), (1338316779,), (1338316783,), (1338316787,), (1338316795,), (1338316847,), (1338316859,), (1338316862,), (1338316981,), (1338317011,), (1338317014,), (1338317016,), (1338317052,), (1338317054,), (1338317057,), (1338317059,), (1338317062,), (1338317064,), (1338317090,), (1338317091,), (1338317093,), (1338317100,), (1338317140,), (1338317142,), (1338317144,), (1338317146,), (1338317148,), (1338317624,), (1338317625,), (1338317628,), (1338317631,), (1338317828,), (1338317852,), (1338317904,), (1338317911,), (1338317949,), (1338317996,), (1338317997,), (1338317999,), (1338318009,), (1338318013,), (1338318032,), (1338318034,), (1338318039,), (1338318041,), (1338318104,), (1338318093,), (1338318096,), (1338318099,), (1338318102,), (1338318133,), (1338318134,), (1338318136,), (1338318167,), (1338318168,), (1338318170,), (1338318203,), (1338318204,), (1338318206,), (1338318226,), (1338318227,), (1338318229,), (1338318231,), (1338318232,), (1338318766,), (1338318797,), (1338318878,), (1338318888,), (1338318921,), (1338318925,), (1338319007,), (1338319009,), (1338319011,), (1338319013,), (1338319040,), (1338319041,), (1338319043,), (1338319045,), (1338319047,), (1338319049,), (1338319075,), (1338319076,), (1338319078,), (1338319080,), (1338319263,), (1338319267,), (1338319269,), (1338319292,), (1338319294,), (1338319297,), (1338319300,), (1338319323,), (1338319326,), (1338319337,), (1338319339,), (1338319341,), (1338319344,), (1338319357,), (1338319359,), (1338319362,), (1338319365,), (1338319385,), (1338319387,), (1338319888,), (1338319580,), (1338319978,), (1338319981,), (1338319992,), (1338319996,), (1338319998,), (1338320001,), (1338320095,), (1338320098,), (1338320102,), (1338320112,), (1338320122,), (1338321052,), (1338321124,), (1338321145,), (1338321149,), (1338321370,), (1338321374,), (1338321380,), (1338321383,), (1338321602,), (1338321607,), (1338321611,), (1338321614,), (1338321618,), (1338321645,), (1338321648,), (1338321653,), (1338321657,), (1338321741,), (1338321746,), (1338321750,), (1338321754,), (1338321822,), (1338321825,), (1338321829,), (1338321832,), (1338321836,), (1338321839,), (1338321860,), (1338321863,), (1338322028,), (1338322043,), (1338322112,), (1338322110,), (1338322139,), (1338322142,), (1338322184,), (1338322193,), (1338322196,), (1338322213,), (1338322313,), (1338322316,), (1338322425,), (1338322485,), (1338322575,), (1338322721,), (1338322725,), (1338322729,), (1338322731,), (1338322733,), (1338322753,), (1338322756,), (1338322759,), (1338322763,), (1338322766,), (1338322769,), (1338323435,), (1338323439,), (1338323443,), (1338323445,), (1338323448,), (1338323674,), (1338323677,), (1338323680,), (1338323684,), (1338323748,), (1338323752,), (1338323848,), (1338323859,), (1338323863,), (1338323866,), (1338323886,), (1338323889,), (1338323893,), (1338323897,), (1338323972,), (1338327767,), (1338336443,), (1338336479,), (1338336482,), (1338336485,), (1338336543,), (1338336590,), (1338336633,), (1338336745,), (1338336849,), (1338336942,), (1338337031,), (1338337088,), (1338337109,), (1338338909,), (1338339074,), (1338339133,), (1338339135,), (1338339136,), (1338339168,), (1338339170,), (1338339204,), (1338339205,), (1338339207,), (1338339209,), (1338339210,), (1338339237,), (1338339238,), (1338339240,), (1338339242,), (1338339245,), (1338339271,), (1338339272,), (1338339274,), (1338339298,), (1338339299,), (1338339301,), (1338339303,), (1338339304,), (1338339307,), (1338339332,), (1338339334,), (1338339423,), (1338339523,), (1338339617,), (1338339973,), (1338339978,), (1338340006,), (1338340008,), (1338340010,), (1338340013,), (1338340015,), (1338340016,), (1338340033,), (1338340035,), (1338340038,), (1338340041,), (1338340045,), (1338340083,), (1338340070,), (1338340075,), (1338340078,), (1338340080,), (1338340305,), (1338340306,), (1338340363,), (1338340365,), (1338340368,), (1338340370,), (1338340426,), (1338340429,), (1338340435,), (1338340440,), (1338340519,), (1338340522,), (1338340525,), (1338340561,), (1338340563,), (1338340566,), (1338340568,), (1338340618,), (1338340619,), (1338340622,), (1338340629,), (1338341646,), (1338341704,), (1338341796,), (1338341857,), (1338341947,), (1338342421,), (1338342440,), (1338342473,), (1338342495,), (1338342522,), (1338342523,), (1338342524,), (1338342526,), (1338342539,), (1338342565,), (1338342567,), (1338342578,), (1338342580,), (1338342581,), (1338342715,), (1338342785,), (1338342860,), (1338342880,), (1338342916,), (1338342918,), (1338342920,), (1338342921,), (1338342924,), (1338342927,), (1338342945,), (1338342947,), (1338342994,), (1338342998,), (1338343000,), (1338344096,), (1338343972,), (1338343973,), (1338343974,), (1338344091,), (1338344195,), (1338344196,), (1338344247,), (1338344248,), (1338344250,), (1338344252,), (1338344253,), (1338344325,), (1338344327,), (1338344328,), (1338344330,), (1338344333,), (1338344336,), (1338344354,), (1338344355,), (1338344357,), (1338344359,), (1338344387,), (1338344391,), (1338344397,), (1338344402,), (1338344405,), (1338344451,), (1338344455,), (1338344457,), (1338344459,), (1338344460,), (1338344487,), (1338344488,), (1338344490,), (1338344497,), (1338344505,), (1338344530,), (1338344533,), (1338344535,), (1338344564,), (1338344567,), (1338344571,), (1338344577,), (1338344583,), (1338344586,), (1338344630,), (1338344631,), (1338344633,), (1338344635,), (1338344638,), (1338344659,), (1338344660,), (1338344662,), (1338344664,), (1338344665,), (1338344715,), (1338344718,), (1338344742,), (1338344745,), (1338344755,), (1338344924,), (1338344780,), (1338344783,), (1338344785,), (1338344808,), (1338345004,), (1338345021,), (1338345023,), (1338345041,), (1338345045,), (1338345046,), (1338345086,), (1338345087,), (1338345089,), (1338345091,), (1338345131,), (1338345134,), (1338345136,), (1338345138,), (1338345140,), (1338345142,), (1338345157,), (1338345159,), (1338345161,), (1338345188,), (1338345197,), (1338345200,), (1338345201,), (1338345204,), (1338345236,), (1338345239,), (1338345242,), (1338345245,), (1338345247,), (1338345277,), (1338345283,), (1338345383,), (1338345425,), (1338345429,), (1338345450,), (1338345451,), (1338345485,), (1338345487,), (1338345489,), (1338345491,), (1338345494,), (1338345511,), (1338345515,), (1338345516,), (1338345518,), (1338345539,), (1338345541,), (1338345543,), (1338345545,), (1338345613,), (1338345627,), (1338345652,), (1338345662,), (1338345688,), (1338345718,), (1338345720,), (1338345723,), (1338345726,), (1338345729,), (1338345788,), (1338345777,), (1338345781,), (1338345784,), (1338345969,), (1338346371,), (1338346374,), (1338346377,), (1338346412,), (1338346414,), (1338346417,), (1338346420,), (1338346425,), (1338346458,), (1338346476,), (1338346679,), (1338346846,), (1338346986,), (1338347155,), (1338347157,), (1338347160,), (1338347163,), (1338347165,), (1338347272,), (1338347336,), (1338347395,), (1338347401,), (1338347405,), (1338347504,), (1338347507,), (1338347512,), (1338347517,), (1338347535,), (1338347547,), (1338347549,), (1338347573,), (1338347590,), (1338347597,), (1338347628,), (1338347630,), (1338347738,), (1338347741,), (1338347744,), (1338347748,), (1338347751,), (1338347820,), (1338347822,), (1338347825,), (1338347867,), (1338347880,), (1338347882,), (1338347885,), (1338347888,), (1338347890,), (1338347915,), (1338347917,), (1338347920,), (1338347943,), (1338347946,), (1338347949,), (1338347952,), (1338347954,), (1338347973,), (1338349314,), (1338349393,), (1338349394,), (1338349396,), (1338349566,), (1338349571,), (1338349573,), (1338349617,), (1338349620,), (1338349622,), (1338349624,), (1338349627,), (1338349640,), (1338349643,), (1338349646,), (1338349649,), (1338349653,), (1338349654,), (1338349665,), (1338349667,), (1338349669,), (1338349671,), (1338349674,), (1338349690,), (1338349691,), (1338349693,), (1338349727,), (1338349728,), (1338349734,), (1338349742,), (1338349759,), (1338349763,), (1338349827,), (1338349829,), (1338349831,), (1338349840,), (1338349844,), (1338349872,), (1338349933,), (1338349928,), (1338349929,), (1338349931,), (1338349956,), (1338349957,), (1338349959,), (1338349961,), (1338349987,), (1338349988,), (1338349990,), (1338349992,), (1338349994,), (1338350322,), (1338350323,), (1338350325,), (1338350327,), (1338350350,), (1338350351,), (1338350353,), (1338350355,), (1338350376,), (1338350383,), (1338350387,), (1338350389,), (1338350451,), (1338350453,), (1338350468,), (1338350472,), (1338350538,), (1338350541,), (1338350578,), (1338350657,), (1338350660,), (1338350683,), (1338350688,), (1338350692,), (1338350696,), (1338350812,), (1338350815,), (1338350822,), (1338350824,), (1338350992,), (1338350998,), (1338351004,), (1338351015,), (1338351027,), (1338351087,), (1338351074,), (1338351077,), (1338351080,), (1338351083,), (1338351109,), (1338351112,), (1338351115,), (1338351117,), (1338351128,), (1338351151,), (1338351198,), (1338351244,), (1338351259,), (1338351715,), (1338351793,), (1338351986,), (1338352078,), (1338352081,), (1338352255,), (1338352263,), (1338352267,), (1338352359,), (1338352362,), (1338352390,), (1338352392,), (1338352396,), (1338352425,), (1338352427,), (1338352433,), (1338352436,), (1338352466,), (1338352467,), (1338352471,), (1338352572,), (1338352576,), (1338352581,), (1338352642,), (1338352649,), (1338352652,), (1338352689,), (1338352694,), (1338352697,), (1338352699,), (1338352709,), (1338352713,), (1338352771,), (1338352773,), (1338352776,), (1338352779,), (1338352784,), (1338352795,), (1338352883,), (1338352886,), (1338352889,), (1338352893,), (1338353031,), (1338352977,), (1338352980,), (1338352982,), (1338352984,), (1338353096,), (1338353104,), (1338353114,), (1338353128,), (1338353136,), (1338353317,), (1338353384,), (1338353387,), (1338353390,), (1338353439,), (1338353441,), (1338353463,), (1338353468,), (1338353482,), (1338353576,), (1338353579,), (1338353630,), (1338353637,), (1338353641,), (1338353642,), (1338353725,), (1338353727,), (1338353730,), (1338353955,), (1338354179,), (1338355074,), (1338355175,), (1338355179,), (1338355205,), (1338355208,), (1338355211,), (1338355256,), (1338355260,), (1338355274,), (1338355283,), (1338355287,), (1338355290,), (1338355347,), (1338355348,), (1338355350,), (1338355351,), (1338355411,), (1338356399,), (1338356392,), (1338356394,), (1338356397,), (1338356418,), (1338356422,), (1338356425,), (1338356428,), (1338356432,), (1338356453,), (1338356458,), (1338356462,), (1338356682,), (1338356685,), (1338356711,), (1338356719,), (1338356723,), (1338356726,), (1338356729,), (1338356732,), (1338356778,), (1338356786,), (1338356792,), (1338356825,), (1338356829,), (1338356833,), (1338356835,), (1338356852,), (1338356855,), (1338356857,), (1338356865,), (1338356913,), (1338356916,), (1338356919,), (1338356923,), (1338356943,), (1338356946,), (1338356953,), (1338356961,), (1338356965,), (1338356991,), (1338356994,), (1338356998,), (1338357006,), (1338357014,), (1338357042,), (1338357045,), (1338357053,), (1338357059,), (1338357096,), (1338357085,), (1338357088,), (1338357308,), (1338357311,), (1338357315,), (1338357319,), (1338357321,), (1338357324,), (1338357364,), (1338357368,), (1338357372,), (1338357400,), (1338357403,), (1338357406,), (1338357413,), (1338357418,), (1338357449,), (1338357454,), (1338357457,), (1338357489,), (1338357492,), (1338357495,), (1338357545,), (1338357550,), (1338357552,), (1338357816,), (1338358354,), (1338358343,), (1338358346,), (1338358349,), (1338358352,), (1338358371,), (1338359576,), (1338359579,), (1338359582,), (1338359735,), (1338359997,), (1338360001,), (1338360002,), (1338360005,), (1338360008,), (1338360012,), (1338360683,), (1338360932,), (1338360934,), (1338361005,), (1338361025,), (1338361150,), (1338361453,), (1338361461,), (1338361465,), (1338361468,), (1338361470,), (1338361498,), (1338361499,), (1338361502,), (1338361506,), (1338361508,), (1338361527,), (1338361530,), (1338361533,), (1338361574,), (1338361575,), (1338361578,), (1338361581,), (1338361585,), (1338361587,), (1338361613,), (1338361615,), (1338361618,), (1338361621,), (1338361633,), (1338361646,), (1338361647,), (1338361650,), (1338361653,), (1338361655,), (1338361658,), (1338361696,), (1338361697,), (1338361730,), (1338361743,), (1338361862,), (1338361856,), (1338361857,), (1338361859,), (1338361861,), (1338362142,), (1338362145,), (1338362147,), (1338362314,), (1338362317,), (1338362319,), (1338362339,), (1338362423,), (1338362519,), (1338362616,), (1338362621,), (1338362624,), (1338362626,), (1338362658,), (1338362660,), (1338362755,), (1338362784,), (1338362785,), (1338362789,), (1338362791,), (1338362973,), (1338362986,), (1338362987,), (1338362990,), (1338362992,), (1338363019,), (1338363041,), (1338363045,), (1338363047,), (1338363073,), (1338363102,), (1338363104,), (1338363106,), (1338363108,), (1338363130,), (1338363131,), (1338363133,), (1338363135,), (1338363139,), (1338363160,), (1338363163,), (1338363166,), (1338363167,), (1338363220,), (1338363221,), (1338363224,), (1338363286,), (1338363293,), (1338363296,), (1338363306,), (1338363309,), (1338363325,), (1338366640,), (1338366641,), (1338367309,), (1338367409,), (1338367504,), (1338367589,), (1338367791,), (1338367798,), (1338367815,), (1338367854,), (1338367855,), (1338367868,), (1338367913,), (1338367923,), (1338367924,), (1338367933,), (1338367935,), (1338367969,), (1338367971,), (1338367973,), (1338367996,), (1338367997,), (1338368000,), (1338368020,), (1338368042,), (1338368044,), (1338368048,), (1338368050,), (1338368069,), (1338368070,), (1338368072,), (1338368074,), (1338368097,), (1338370687,), (1338370229,), (1338370679,), (1338370684,), (1338370764,), (1338370766,), (1338370769,), (1338370783,), (1338371274,), (1338371310,), (1338371396,), (1338371388,), (1338371390,), (1338371419,), (1338371421,), (1338371424,), (1338371427,), (1338371429,), (1338371438,), (1338371709,), (1338371800,), (1338371803,), (1338371830,), (1338371943,), (1338371944,), (1338371948,), (1338371950,), (1338371978,), (1338371980,), (1338371983,), (1338371988,), (1338372009,), (1338372018,), (1338372127,), (1338372130,), (1338372133,), (1338372134,), (1338372289,), (1338372332,), (1338372377,), (1338372790,), (1338372799,), (1338372804,), (1338372810,), (1338372815,), (1338372832,), (1338372841,), (1338372844,), (1338372849,), (1338372851,), (1338372871,), (1338372873,), (1338372881,), (1338372885,), (1338372921,), (1338372923,), (1338372926,), (1338372928,), (1338372964,), (1338372966,), (1338372969,), (1338372971,), (1338372973,), (1338373116,), (1338373120,), (1338373124,), (1338373129,), (1338373148,), (1338373166,), (1338373168,), (1338373173,), (1338373194,), (1338373189,), (1338373192,), (1338373218,), (1338373219,), (1338373220,), (1338373222,), (1338373227,), (1338373237,), (1338373255,), (1338373256,), (1338373258,), (1338373284,), (1338373440,), (1338373782,), (1338373825,), (1338373847,), (1338373895,), (1338373909,), (1338373912,), (1338373927,), (1338373932,), (1338373934,), (1338373951,), (1338373953,), (1338373961,), (1338373966,), (1338373993,), (1338373997,), (1338374001,), (1338374003,), (1338374030,), (1338374032,), (1338374035,), (1338374057,), (1338374061,), (1338374065,), (1338374088,), (1338374090,), (1338374094,), (1338374096,), (1338374102,), (1338374106,), (1338374119,), (1338374120,), (1338374122,), (1338374124,), (1338374179,), (1338374181,), (1338374183,), (1338374185,), (1338374213,), (1338374216,), (1338374219,), (1338374239,), (1338374253,), (1338374262,), (1338374265,), (1338374272,), (1338374299,), (1338374301,), (1338374303,), (1338374306,), (1338374331,), (1338374332,), (1338374335,), (1338374341,), (1338374357,), (1338374365,), (1338374554,), (1338374389,), (1338374391,), (1338374399,), (1338374738,), (1338374810,), (1338374825,), (1338374891,), (1338374899,), (1338374901,), (1338374903,), (1338374905,), (1338374907,), (1338374924,), (1338374925,), (1338374927,), (1338374929,), (1338374931,), (1338374973,), (1338374974,), (1338374976,), (1338374978,), (1338375024,), (1338375025,), (1338375027,), (1338375029,), (1338375031,), (1338375076,), (1338375077,), (1338375079,), (1338375084,), (1338375282,), (1338375283,), (1338375285,), (1338375383,), (1338375385,), (1338376295,), (1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,), (1338377079,), (1338377081,), (1338377083,), (1338377085,), (1338377089,), (1338377124,), (1338377116,), (1338377117,), (1338377151,), (1338377152,), (1338377159,), (1338377258,), (1338377465,), (1338377470,), (1338377472,), (1338377473,), (1338377475,), (1338377961,), (1338377966,), (1338377974,), (1338377982,), (1338377983,), (1338377985,), (1338378027,), (1338378031,), (1338378034,), (1338378039,), (1338378041,), (1338378061,), (1338378065,), (1338378069,), (1338378073,), (1338378076,), (1338378079,), (1338378116,), (1338378118,), (1338378121,), (1338378147,), (1338378157,), (1338378247,), (1338378248,), (1338378285,), (1338378286,), (1338378330,), (1338378332,), (1338378334,), (1338378336,), (1338378337,), (1338378339,), (1338378365,), (1338378366,), (1338378368,), (1338378370,), (1338378372,), (1338378374,), (1338378401,), (1338378402,), (1338378404,), (1338378439,), (1338378441,), (1338378443,), (1338378445,), (1338378447,), (1338378450,), (1338378461,), (1338378462,), (1338378464,), (1338378468,), (1338378474,), (1338378476,), (1338378510,), (1338378515,), (1338378518,), (1338378522,), (1338378540,), (1338378542,), (1338378567,), (1338378558,), (1338378560,), (1338378562,), (1338378564,), (1338378565,), (1338378581,), (1338378582,), (1338378585,), (1338378610,), (1338378611,), (1338378641,), (1338378660,), (1338379026,), (1338379045,), (1338379047,), (1338379049,), (1338379270,), (1338379286,), (1338379296,), (1338379298,), (1338379300,), (1338379310,), (1338379449,), (1338379453,), (1338379455,), (1338379457,), (1338379458,), (1338379473,), (1338379474,), (1338379476,), (1338379508,), (1338379509,), (1338379511,), (1338379750,), (1338379901,), (1338379902,), (1338379906,), (1338379954,), (1338379955,), (1338379968,), (1338379982,), (1338379996,), (1338379999,), (1338380002,), (1338380005,), (1338380007,), (1338380088,), (1338380089,), (1338380091,), (1338380209,), (1338380210,), (1338380211,), (1338380213,), (1338380215,), (1338380218,), (1338380323,), (1338380305,), (1338380310,), (1338380317,), (1338380322,), (1338380335,), (1338380339,), (1338380343,), (1338380356,), (1338380364,), (1338380387,), (1338380422,), (1338380495,), (1338380508,), (1338380512,), (1338380514,), (1338380549,), (1338380657,), (1338380770,), (1338381010,), (1338381178,), (1338381351,), (1338381353,), (1338381355,), (1338381357,), (1338381361,), (1338381403,), (1338381430,), (1338381431,), (1338381433,), (1338381436,), (1338381438,), (1338381441,), (1338381454,), (1338381457,), (1338381465,), (1338381471,), (1338381489,), (1338381490,), (1338381492,), (1338381494,), (1338381496,), (1338381504,), (1338381604,), (1338381697,), (1338381790,), (1338381883,), (1338381969,), (1338382199,), (1338382225,), (1338382227,), (1338382228,), (1338382230,), (1338382260,), (1338382261,), (1338382263,), (1338382265,), (1338382266,), (1338382268,), (1338382521,), (1338382522,), (1338382525,), (1338382531,), (1338382574,), (1338382578,), (1338382581,), (1338382583,), (1338382587,), (1338382591,), (1338382601,), (1338382602,), (1338382604,), (1338382607,), (1338382610,), (1338382627,), (1338382634,), (1338382642,), (1338382656,), (1338382737,), (1338382725,), (1338382728,), (1338382731,), (1338382734,), (1338382980,), (1338382981,), (1338382983,), (1338382989,), (1338382993,), (1338383463,), (1338383519,), (1338383528,), (1338383541,), (1338383542,), (1338383638,), (1338383640,), (1338383645,), (1338383648,), (1338383672,), (1338383673,), (1338383675,), (1338383678,), (1338383682,), (1338383768,), (1338383770,), (1338383775,), (1338383779,), (1338383982,), (1338384007,), (1338384021,), (1338384031,), (1338384039,), (1338384099,), (1338384101,), (1338384103,), (1338384104,), (1338384105,), (1338384111,), (1338384127,), (1338384128,), (1338384130,), (1338384152,), (1338384153,), (1338384155,), (1338384157,), (1338384159,), (1338384166,), (1338384167,), (1338384169,), (1338384171,), (1338386903,), (1338386837,), (1338386897,), (1338387109,), (1338387116,), (1338387193,), (1338387284,), (1338387286,), (1338387375,), (1338295452,), (1338295454,), (1338295524,), (1338295579,), (1338295632,), (1338295656,), (1338295708,), (1338295773,), (1338295775,), (1338295777,), (1338295779,), (1338295781,), (1338295783,), (1338296370,), (1338296372,), (1338296374,), (1338296376,), (1338296600,), (1338296602,), (1338296640,), (1338296644,), (1338296660,), (1338296662,), (1338296664,), (1338296666,), (1338296668,), (1338296670,), (1338296685,), (1338296688,), (1338296691,), (1338296694,), (1338296708,), (1338296710,), (1338296712,), (1338296715,), (1338296718,), (1338296730,), (1338296732,), (1338296734,), (1338296736,), (1338296739,), (1338296742,), (1338296759,), (1338296761,), (1338296763,), (1338296765,), (1338296781,), (1338296783,), (1338296785,), (1338296787,), (1338296789,), (1338296811,), (1338296812,), (1338296813,), (1338296831,), (1338296832,), (1338296833,), (1338296834,), (1338296836,), (1338296837,), (1338296853,), (1338296854,), (1338296855,), (1338296856,), (1338296858,), (1338296860,), (1338296877,), (1338296879,), (1338296880,), (1338296881,), (1338296907,), (1338296900,), (1338296901,), (1338296902,), (1338296903,), (1338296905,), (1338296924,), (1338296925,), (1338296927,), (1338296928,), (1338296943,), (1338296944,), (1338296945,), (1338296947,), (1338296950,), (1338296954,), (1338296970,), (1338296971,), (1338296973,), (1338296976,), (1338296978,), (1338296982,), (1338296997,), (1338296999,), (1338297001,), (1338297004,), (1338297007,), (1338297022,), (1338297024,), (1338297025,), (1338297026,), (1338297028,), (1338297030,), (1338297047,), (1338297048,), (1338297049,), (1338297050,), (1338297069,), (1338297070,), (1338297071,), (1338297072,), (1338297073,), (1338297075,), (1338297093,), (1338297094,), (1338297095,), (1338297096,), (1338297098,), (1338297100,), (1338297117,), (1338297118,), (1338297119,), (1338297120,), (1338297139,), (1338297140,), (1338297141,), (1338297142,), (1338297143,), (1338297145,), (1338297163,), (1338297164,), (1338297165,), (1338297166,), (1338297190,), (1338297192,), (1338297194,), (1338297196,), (1338297197,), (1338297199,), (1338297219,), (1338297220,), (1338297221,), (1338297222,), (1338297224,), (1338297225,), (1338297243,), (1338297244,), (1338297246,), (1338297283,), (1338297282,), (1338297302,), (1338297303,), (1338297304,), (1338297305,), (1338297328,), (1338297329,), (1338297331,), (1338297334,), (1338297337,), (1338297341,), (1338297353,), (1338297355,), (1338297357,), (1338297359,), (1338297374,), (1338297377,), (1338297378,), (1338297382,), (1338297397,), (1338297399,), (1338297400,), (1338297404,), (1338297406,), (1338297424,), (1338297428,), (1338297429,), (1338297432,), (1338297450,), (1338297453,), (1338297456,), (1338297458,), (1338297461,), (1338297475,), (1338297477,), (1338297479,), (1338297482,), (1338297485,), (1338297489,), (1338297498,), (1338297501,), (1338297518,), (1338297520,), (1338297522,), (1338297525,), (1338297543,), (1338297546,), (1338297549,), (1338297554,), (1338297557,), (1338297566,), (1338297571,), (1338297573,), (1338297576,), (1338297581,), (1338297591,), (1338297593,), (1338297597,), (1338297600,), (1338297631,), (1338297619,), (1338297621,), (1338297624,), (1338297626,), (1338297628,), (1338297643,), (1338297648,), (1338297651,), (1338297653,), (1338297666,), (1338297669,), (1338297672,), (1338297675,), (1338297678,), (1338297689,), (1338297692,), (1338297694,), (1338297696,), (1338297699,), (1338297704,), (1338297716,), (1338297719,), (1338297721,), (1338297738,), (1338297740,), (1338297742,), (1338297744,), (1338297745,), (1338297750,), (1338297762,), (1338297764,), (1338297766,), (1338297768,), (1338297770,), (1338297782,), (1338297789,), (1338297792,), (1338297798,), (1338297809,), (1338297811,), (1338297813,), (1338297815,), (1338297818,), (1338297822,), (1338297831,), (1338297834,), (1338297836,), (1338297837,), (1338297840,), (1338297845,), (1338297860,), (1338297862,), (1338297880,), (1338297881,), (1338297883,), (1338297884,), (1338297903,), (1338297904,), (1338297905,), (1338297907,), (1338297925,), (1338297929,), (1338297934,), (1338297946,), (1338297948,), (1338297951,), (1338297952,), (1338297954,), (1338297980,), (1338297958,), (1338297963,), (1338297967,), (1338297971,), (1338297976,), (1338297994,), (1338297998,), (1338298002,), (1338298025,), (1338298027,), (1338298031,), (1338298034,), (1338298039,), (1338298044,), (1338298057,), (1338298059,), (1338298061,), (1338298064,), (1338298067,), (1338298072,), (1338298089,), (1338298092,), (1338298095,), (1338298096,), (1338298119,), (1338298122,), (1338298125,), (1338298127,), (1338298130,), (1338298149,), (1338298151,), (1338298153,), (1338298155,), (1338298159,), (1338298180,), (1338298184,), (1338298186,), (1338298189,), (1338298191,), (1338298214,), (1338298217,), (1338298219,), (1338298222,), (1338298224,), (1338298229,), (1338298246,), (1338298251,), (1338298257,), (1338298262,), (1338298269,), (1338298277,), (1338298283,), (1338298285,), (1338298286,), (1338298292,), (1338298297,), (1338298306,), (1338298322,), (1338298325,), (1338298327,), (1338298329,), (1338298331,), (1338298336,), (1338298349,), (1338298355,), (1338298359,), (1338298364,), (1338298367,), (1338298369,), (1338298608,), (1338298612,), (1338298617,), (1338298621,), (1338298643,), (1338298647,), (1338298650,), (1338298653,), (1338298656,), (1338298660,), (1338298673,), (1338298677,), (1338298680,), (1338298684,), (1338298705,), (1338298709,), (1338298713,), (1338298716,), (1338298721,), (1338298726,), (1338298736,), (1338298740,), (1338298745,), (1338298748,), (1338298755,), (1338298768,), (1338298771,), (1338298797,), (1338298801,), (1338298803,), (1338298808,), (1338298811,), (1338298828,), (1338298831,), (1338298835,), (1338298840,), (1338298844,), (1338298861,), (1338298864,), (1338298867,), (1338298869,), (1338298902,), (1338298893,), (1338298898,), (1338298921,), (1338298930,), (1338298933,), (1338298936,), (1338298939,), (1338298943,), (1338298955,), (1338298958,), (1338298961,), (1338298964,), (1338298987,), (1338298993,), (1338298994,), (1338298999,), (1338299004,), (1338299009,), (1338299028,), (1338299033,), (1338299039,), (1338299045,), (1338299051,), (1338299054,), (1338299067,), (1338299071,), (1338299100,), (1338299103,), (1338299130,), (1338299134,), (1338299136,), (1338299140,), (1338299143,), (1338299162,), (1338299198,), (1338299264,), (1338299268,), (1338299272,), (1338299276,), (1338299280,), (1338299306,), (1338299310,), (1338299315,), (1338299348,), (1338299353,), (1338299358,), (1338299363,), (1338299369,), (1338299401,), (1338299391,), (1338299395,), (1338299398,), (1338299429,), (1338299433,), (1338299438,), (1338299443,), (1338299448,), (1338299472,), (1338299475,), (1338299477,), (1338299480,), (1338299513,), (1338299517,), (1338299522,), (1338299526,), (1338299529,), (1338299558,), (1338299564,), (1338299569,), (1338299575,), (1338299582,), (1338299587,), (1338299606,), (1338299610,), (1338299615,), (1338299620,), (1338299648,), (1338299652,), (1338299656,), (1338299660,), (1338299692,), (1338299697,), (1338299702,), (1338299706,), (1338299709,), (1338299739,), (1338299742,), (1338299746,), (1338299750,), (1338299787,), (1338299791,), (1338299795,), (1338299799,), (1338299803,), (1338299806,), (1338299832,), (1338299837,), (1338299874,), (1338299878,), (1338300010,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18022025': {'nb_upload': 27, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20643020]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338358354, 1338357816, 1338357552, 1338357550, 1338357545, 1338357495, 1338357492, 1338357489, 1338357457, 1338357454, 1338357449, 1338357418, 1338357413, 1338357406, 1338357403, 1338357400, 1338357372, 1338357368, 1338357364, 1338357324, 1338357321, 1338357319, 1338357315, 1338357311, 1338357308, 1338357088, 1338357085] map_info['map_portfolio_photo'] : {20643020: [1338358354, 1338357816, 1338357552, 1338357550, 1338357545, 1338357495, 1338357492, 1338357489, 1338357457, 1338357454, 1338357449, 1338357418, 1338357413, 1338357406, 1338357403, 1338357400, 1338357372, 1338357368, 1338357364, 1338357324, 1338357321, 1338357319, 1338357315, 1338357311, 1338357308, 1338357088, 1338357085]} final : True mtd_id 4302 list_pids : [1338358354, 1338357816, 1338357552, 1338357550, 1338357545, 1338357495, 1338357492, 1338357489, 1338357457, 1338357454, 1338357449, 1338357418, 1338357413, 1338357406, 1338357403, 1338357400, 1338357372, 1338357368, 1338357364, 1338357324, 1338357321, 1338357319, 1338357315, 1338357311, 1338357308, 1338357088, 1338357085] Looping around the photos to save general results len do output : 1 /20643020Didn'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, '2598424') ('4302', '20643020', '1338358354', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357816', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357552', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357550', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357545', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357495', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357492', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357489', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357457', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357454', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357449', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357418', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357413', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357406', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357403', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357400', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357372', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357368', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357364', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357324', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357321', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357319', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357315', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357311', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357308', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357088', None, None, None, None, None, '2598424') ('4302', None, None, None, None, None, None, None, '2598424') ('4302', '20643020', '1338357085', None, None, None, None, None, '2598424') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 28 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, '20643020', 'None', None, None, None, None, '2598424'), ('4302', '20643020', '1338358354', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357816', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357552', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357550', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357545', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357495', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357492', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357489', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357457', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357454', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357449', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357418', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357413', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357406', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357403', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357400', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357372', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357368', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357364', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357324', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357321', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357319', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357315', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357311', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357308', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357088', None, None, None, None, None, '2598424'), ('4302', '20643020', '1338357085', None, None, None, None, None, '2598424')] time used for this insertion : 0.5669960975646973 save_final save missing photos in datou_result : time spend for datou_step_exec : 13.277811050415039 time spend to save output : 0.5673439502716064 total time spend for step 5 : 13.845155000686646 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 (2598424) 2.28user 2.51system 0:26.54elapsed 18%CPU (0avgtext+0avgdata 150716maxresident)k 83104inputs+23264outputs (313major+72486minor)pagefaults 0swaps