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 : 3438428 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 (2547759) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2547759) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20231025 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2547759'] with mtr_portfolio_ids : ['20231025'] and first list_photo_ids : [] new path : /proc/3438428/ Name: python3 Umask: 0002 State: R (running) Tgid: 3438428 Ngid: 0 Pid: 3438428 PPid: 3438427 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3438428 NSpid: 3438428 NSpgid: 3425904 NSsid: 3425904 VmPeak: 1106660 kB VmSize: 1106660 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99692 kB VmRSS: 99692 kB RssAnon: 59740 kB RssFile: 39952 kB RssShmem: 0 kB VmData: 865412 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 95 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3438428', 'Ngid': '0', 'Pid': '3438428', 'PPid': '3438427', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3438428', 'NSpid': '3438428', 'NSpgid': '3425904', 'NSsid': '3425904', 'VmPeak': '1106660 kB', 'VmSize': '1106660 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99692 kB', 'VmRSS': '99692 kB', 'RssAnon': '59740 kB', 'RssFile': '39952 kB', 'RssShmem': '0 kB', 'VmData': '865412 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '95', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '3438428', '1106660', '0', '1106660', '865412', '99692', b'', 'marlene', '2547759') 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 (20231025) 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 (2547759 ) ) 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 (20231025) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1334749389, 'portfolio_id': 20231025}, {'photo_id': 1334749388, 'portfolio_id': 20231025}, {'photo_id': 1334749387, 'portfolio_id': 20231025}, {'photo_id': 1334684336, 'portfolio_id': 20231025}, {'photo_id': 1334684332, 'portfolio_id': 20231025}, {'photo_id': 1334684262, 'portfolio_id': 20231025}, {'photo_id': 1334683710, 'portfolio_id': 20231025}, {'photo_id': 1334683685, 'portfolio_id': 20231025}, {'photo_id': 1334683683, 'portfolio_id': 20231025}, {'photo_id': 1334683196, 'portfolio_id': 20231025}, {'photo_id': 1334683193, 'portfolio_id': 20231025}, {'photo_id': 1334683190, 'portfolio_id': 20231025}, {'photo_id': 1334683187, 'portfolio_id': 20231025}, {'photo_id': 1334683185, 'portfolio_id': 20231025}, {'photo_id': 1334683167, 'portfolio_id': 20231025}, {'photo_id': 1334683164, 'portfolio_id': 20231025}, {'photo_id': 1334683162, 'portfolio_id': 20231025}, {'photo_id': 1334683160, 'portfolio_id': 20231025}, {'photo_id': 1334683123, 'portfolio_id': 20231025}, {'photo_id': 1334683121, 'portfolio_id': 20231025}, {'photo_id': 1334683117, 'portfolio_id': 20231025}, {'photo_id': 1334683113, 'portfolio_id': 20231025}, {'photo_id': 1334683111, 'portfolio_id': 20231025}, {'photo_id': 1334682982, 'portfolio_id': 20231025}, {'photo_id': 1334682979, 'portfolio_id': 20231025}, {'photo_id': 1334682967, 'portfolio_id': 20231025}, {'photo_id': 1334682904, 'portfolio_id': 20231025}, {'photo_id': 1334682862, 'portfolio_id': 20231025}, {'photo_id': 1334682371, 'portfolio_id': 20231025}, {'photo_id': 1334682366, 'portfolio_id': 20231025}, {'photo_id': 1334682362, 'portfolio_id': 20231025}, {'photo_id': 1334682340, 'portfolio_id': 20231025}, {'photo_id': 1334682273, 'portfolio_id': 20231025}, {'photo_id': 1334682223, 'portfolio_id': 20231025}, {'photo_id': 1334680993, 'portfolio_id': 20231025}, {'photo_id': 1334680991, 'portfolio_id': 20231025}, {'photo_id': 1334680989, 'portfolio_id': 20231025}, {'photo_id': 1334680988, 'portfolio_id': 20231025}, {'photo_id': 1334680912, 'portfolio_id': 20231025}, {'photo_id': 1334680858, 'portfolio_id': 20231025}, {'photo_id': 1334680856, 'portfolio_id': 20231025}, {'photo_id': 1334680854, 'portfolio_id': 20231025}, {'photo_id': 1334680853, 'portfolio_id': 20231025}, {'photo_id': 1334680727, 'portfolio_id': 20231025}, {'photo_id': 1334680723, 'portfolio_id': 20231025}, {'photo_id': 1334680721, 'portfolio_id': 20231025}, {'photo_id': 1334680581, 'portfolio_id': 20231025}, {'photo_id': 1334680575, 'portfolio_id': 20231025}, {'photo_id': 1334680574, 'portfolio_id': 20231025}, {'photo_id': 1334679298, 'portfolio_id': 20231025}, {'photo_id': 1334679220, 'portfolio_id': 20231025}, {'photo_id': 1334679132, 'portfolio_id': 20231025}, {'photo_id': 1334679053, 'portfolio_id': 20231025}, {'photo_id': 1334678966, 'portfolio_id': 20231025}, {'photo_id': 1334678952, 'portfolio_id': 20231025}, {'photo_id': 1334678948, 'portfolio_id': 20231025}, {'photo_id': 1334678938, 'portfolio_id': 20231025}, {'photo_id': 1334678660, 'portfolio_id': 20231025}] map_portfolio_id_photo_id: {20231025: [1334749389, 1334749388, 1334749387, 1334684336, 1334684332, 1334684262, 1334683710, 1334683685, 1334683683, 1334683196, 1334683193, 1334683190, 1334683187, 1334683185, 1334683167, 1334683164, 1334683162, 1334683160, 1334683123, 1334683121, 1334683117, 1334683113, 1334683111, 1334682982, 1334682979, 1334682967, 1334682904, 1334682862, 1334682371, 1334682366, 1334682362, 1334682340, 1334682273, 1334682223, 1334680993, 1334680991, 1334680989, 1334680988, 1334680912, 1334680858, 1334680856, 1334680854, 1334680853, 1334680727, 1334680723, 1334680721, 1334680581, 1334680575, 1334680574, 1334679298, 1334679220, 1334679132, 1334679053, 1334678966, 1334678952, 1334678948, 1334678938, 1334678660]} ##### 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.29879236221313477 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Sat Feb 8 10:36:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20231025) 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 : 20231025 get user id for portfolio 20231025 get sub ptf for main ptf 20231025, type 3726 and hashtags ['Carton_gris', 'cartonnette', 'plastique', 'metal', 'papier', 'Teint_Dans_La_Masse', 'autre_refus', 'environnement', 'flou', 'kraft', 'mal_croppe', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20231025 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','plastique','metal','papier','Teint_Dans_La_Masse','autre_refus','environnement','flou','kraft','mal_croppe','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20231025 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','plastique','metal','papier','Teint_Dans_La_Masse','autre_refus','environnement','flou','kraft','mal_croppe','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20231025, 'sub_port_id': 20231034, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933053, 'last_updated_at': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 3)}, 'Carton_gris': {'main_port_id': 20231025, 'sub_port_id': 20231035, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933054, 'last_updated_at': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 3)}, 'mal_croppe': {'main_port_id': 20231025, 'sub_port_id': 20231036, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933055, 'last_updated_at': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 3)}, 'flou': {'main_port_id': 20231025, 'sub_port_id': 20231037, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933056, 'last_updated_at': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 3)}, 'plastique': {'main_port_id': 20231025, 'sub_port_id': 20231038, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933057, 'last_updated_at': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 3)}, 'cartonnette': {'main_port_id': 20231025, 'sub_port_id': 20231039, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933058, 'last_updated_at': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 3)}, 'kraft': {'main_port_id': 20231025, 'sub_port_id': 20231040, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933059, 'last_updated_at': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 3)}, 'papier': {'main_port_id': 20231025, 'sub_port_id': 20231041, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933060, 'last_updated_at': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 3)}, 'autre_refus': {'main_port_id': 20231025, 'sub_port_id': 20231042, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933061, 'last_updated_at': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 3)}, 'metal': {'main_port_id': 20231025, 'sub_port_id': 20231043, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933062, 'last_updated_at': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 3)}, 'environnement': {'main_port_id': 20231025, 'sub_port_id': 20231044, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933063, 'last_updated_at': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 20231025, 'sub_port_id': 20231045, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933064, 'last_updated_at': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 3)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20231034 , 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=20231025 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 (20231034) result : ((1334680913,), (1334680914,), (1334680915,), (1334682395,), (1334682396,), (1334682397,), (1334683525,), (1334683526,), (1334683876,), (1334683877,), (1334684145,), (1334684146,), (1334684526,), (1334684555,), (1334684607,), (1334684608,), (1334694328,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20231025) result : ((1334678660,), (1334678938,), (1334678948,), (1334678952,), (1334678966,), (1334679053,), (1334679132,), (1334679220,), (1334679298,), (1334680574,), (1334680575,), (1334680581,), (1334680721,), (1334680723,), (1334680727,), (1334680853,), (1334680854,), (1334680856,), (1334680858,), (1334680912,), (1334680988,), (1334680989,), (1334680991,), (1334680993,), (1334682223,), (1334682273,), (1334682340,), (1334682362,), (1334682366,), (1334682371,), (1334682862,), (1334682904,), (1334682967,), (1334682979,), (1334682982,), (1334683111,), (1334683113,), (1334683117,), (1334683121,), (1334683123,), (1334683160,), (1334683162,), (1334683164,), (1334683167,), (1334683185,), (1334683187,), (1334683190,), (1334683193,), (1334683196,), (1334683683,), (1334683685,), (1334683710,), (1334684262,), (1334684332,), (1334684336,), (1334749387,), (1334749388,), (1334749389,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20231035 , 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=20231025 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 (20231035) result : ((1334680875,), (1334682392,), (1334682393,), (1334682394,), (1334683521,), (1334683835,), (1334683902,), (1334683904,), (1334684554,), (1334693017,), (1334693018,), (1334694318,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20231025) result : ((1334678660,), (1334678938,), (1334678948,), (1334678952,), (1334678966,), (1334679053,), (1334679132,), (1334679220,), (1334679298,), (1334680574,), (1334680575,), (1334680581,), (1334680721,), (1334680723,), (1334680727,), (1334680853,), (1334680854,), (1334680856,), (1334680858,), (1334680912,), (1334680988,), (1334680989,), (1334680991,), (1334680993,), (1334682223,), (1334682273,), (1334682340,), (1334682362,), (1334682366,), (1334682371,), (1334682862,), (1334682904,), (1334682967,), (1334682979,), (1334682982,), (1334683111,), (1334683113,), (1334683117,), (1334683121,), (1334683123,), (1334683160,), (1334683162,), (1334683164,), (1334683167,), (1334683185,), (1334683187,), (1334683190,), (1334683193,), (1334683196,), (1334683683,), (1334683685,), (1334683710,), (1334684262,), (1334684332,), (1334684336,), (1334749387,), (1334749388,), (1334749389,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20231036 , 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=20231025 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 (20231036) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20231025) result : ((1334678660,), (1334678938,), (1334678948,), (1334678952,), (1334678966,), (1334679053,), (1334679132,), (1334679220,), (1334679298,), (1334680574,), (1334680575,), (1334680581,), (1334680721,), (1334680723,), (1334680727,), (1334680853,), (1334680854,), (1334680856,), (1334680858,), (1334680912,), (1334680988,), (1334680989,), (1334680991,), (1334680993,), (1334682223,), (1334682273,), (1334682340,), (1334682362,), (1334682366,), (1334682371,), (1334682862,), (1334682904,), (1334682967,), (1334682979,), (1334682982,), (1334683111,), (1334683113,), (1334683117,), (1334683121,), (1334683123,), (1334683160,), (1334683162,), (1334683164,), (1334683167,), (1334683185,), (1334683187,), (1334683190,), (1334683193,), (1334683196,), (1334683683,), (1334683685,), (1334683710,), (1334684262,), (1334684332,), (1334684336,), (1334749387,), (1334749388,), (1334749389,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20231037 , 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=20231025 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 (20231037) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20231025) result : ((1334678660,), (1334678938,), (1334678948,), (1334678952,), (1334678966,), (1334679053,), (1334679132,), (1334679220,), (1334679298,), (1334680574,), (1334680575,), (1334680581,), (1334680721,), (1334680723,), (1334680727,), (1334680853,), (1334680854,), (1334680856,), (1334680858,), (1334680912,), (1334680988,), (1334680989,), (1334680991,), (1334680993,), (1334682223,), (1334682273,), (1334682340,), (1334682362,), (1334682366,), (1334682371,), (1334682862,), (1334682904,), (1334682967,), (1334682979,), (1334682982,), (1334683111,), (1334683113,), (1334683117,), (1334683121,), (1334683123,), (1334683160,), (1334683162,), (1334683164,), (1334683167,), (1334683185,), (1334683187,), (1334683190,), (1334683193,), (1334683196,), (1334683683,), (1334683685,), (1334683710,), (1334684262,), (1334684332,), (1334684336,), (1334749387,), (1334749388,), (1334749389,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20231038 , 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=20231025 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 (20231038) result : ((1334680829,), (1334680916,), (1334683909,), (1334683911,), (1334683912,), (1334683913,), (1334684558,), (1334684559,), (1334684560,), (1334694329,), (1334694330,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20231025) result : ((1334678660,), (1334678938,), (1334678948,), (1334678952,), (1334678966,), (1334679053,), (1334679132,), (1334679220,), (1334679298,), (1334680574,), (1334680575,), (1334680581,), (1334680721,), (1334680723,), (1334680727,), (1334680853,), (1334680854,), (1334680856,), (1334680858,), (1334680912,), (1334680988,), (1334680989,), (1334680991,), (1334680993,), (1334682223,), (1334682273,), (1334682340,), (1334682362,), (1334682366,), (1334682371,), (1334682862,), (1334682904,), (1334682967,), (1334682979,), (1334682982,), (1334683111,), (1334683113,), (1334683117,), (1334683121,), (1334683123,), (1334683160,), (1334683162,), (1334683164,), (1334683167,), (1334683185,), (1334683187,), (1334683190,), (1334683193,), (1334683196,), (1334683683,), (1334683685,), (1334683710,), (1334684262,), (1334684332,), (1334684336,), (1334749387,), (1334749388,), (1334749389,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20231039 , 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=20231025 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 (20231039) result : ((1334683853,), (1334683925,), (1334683927,), (1334693020,), (1334693021,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20231025) result : ((1334678660,), (1334678938,), (1334678948,), (1334678952,), (1334678966,), (1334679053,), (1334679132,), (1334679220,), (1334679298,), (1334680574,), (1334680575,), (1334680581,), (1334680721,), (1334680723,), (1334680727,), (1334680853,), (1334680854,), (1334680856,), (1334680858,), (1334680912,), (1334680988,), (1334680989,), (1334680991,), (1334680993,), (1334682223,), (1334682273,), (1334682340,), (1334682362,), (1334682366,), (1334682371,), (1334682862,), (1334682904,), (1334682967,), (1334682979,), (1334682982,), (1334683111,), (1334683113,), (1334683117,), (1334683121,), (1334683123,), (1334683160,), (1334683162,), (1334683164,), (1334683167,), (1334683185,), (1334683187,), (1334683190,), (1334683193,), (1334683196,), (1334683683,), (1334683685,), (1334683710,), (1334684262,), (1334684332,), (1334684336,), (1334749387,), (1334749388,), (1334749389,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20231040 , 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=20231025 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 (20231040) result : ((1334684148,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20231025) result : ((1334678660,), (1334678938,), (1334678948,), (1334678952,), (1334678966,), (1334679053,), (1334679132,), (1334679220,), (1334679298,), (1334680574,), (1334680575,), (1334680581,), (1334680721,), (1334680723,), (1334680727,), (1334680853,), (1334680854,), (1334680856,), (1334680858,), (1334680912,), (1334680988,), (1334680989,), (1334680991,), (1334680993,), (1334682223,), (1334682273,), (1334682340,), (1334682362,), (1334682366,), (1334682371,), (1334682862,), (1334682904,), (1334682967,), (1334682979,), (1334682982,), (1334683111,), (1334683113,), (1334683117,), (1334683121,), (1334683123,), (1334683160,), (1334683162,), (1334683164,), (1334683167,), (1334683185,), (1334683187,), (1334683190,), (1334683193,), (1334683196,), (1334683683,), (1334683685,), (1334683710,), (1334684262,), (1334684332,), (1334684336,), (1334749387,), (1334749388,), (1334749389,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20231041 , 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=20231025 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 (20231041) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20231025) result : ((1334678660,), (1334678938,), (1334678948,), (1334678952,), (1334678966,), (1334679053,), (1334679132,), (1334679220,), (1334679298,), (1334680574,), (1334680575,), (1334680581,), (1334680721,), (1334680723,), (1334680727,), (1334680853,), (1334680854,), (1334680856,), (1334680858,), (1334680912,), (1334680988,), (1334680989,), (1334680991,), (1334680993,), (1334682223,), (1334682273,), (1334682340,), (1334682362,), (1334682366,), (1334682371,), (1334682862,), (1334682904,), (1334682967,), (1334682979,), (1334682982,), (1334683111,), (1334683113,), (1334683117,), (1334683121,), (1334683123,), (1334683160,), (1334683162,), (1334683164,), (1334683167,), (1334683185,), (1334683187,), (1334683190,), (1334683193,), (1334683196,), (1334683683,), (1334683685,), (1334683710,), (1334684262,), (1334684332,), (1334684336,), (1334749387,), (1334749388,), (1334749389,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20231042 , 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=20231025 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 (20231042) result : ((1334680826,), (1334680860,), (1334680861,), (1334682390,), (1334682391,), (1334683493,), (1334683495,), (1334683496,), (1334683831,), (1334683832,), (1334683883,), (1334683884,), (1334684553,), (1334684606,), (1334693015,), (1334693016,), (1334694327,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20231025) result : ((1334678660,), (1334678938,), (1334678948,), (1334678952,), (1334678966,), (1334679053,), (1334679132,), (1334679220,), (1334679298,), (1334680574,), (1334680575,), (1334680581,), (1334680721,), (1334680723,), (1334680727,), (1334680853,), (1334680854,), (1334680856,), (1334680858,), (1334680912,), (1334680988,), (1334680989,), (1334680991,), (1334680993,), (1334682223,), (1334682273,), (1334682340,), (1334682362,), (1334682366,), (1334682371,), (1334682862,), (1334682904,), (1334682967,), (1334682979,), (1334682982,), (1334683111,), (1334683113,), (1334683117,), (1334683121,), (1334683123,), (1334683160,), (1334683162,), (1334683164,), (1334683167,), (1334683185,), (1334683187,), (1334683190,), (1334683193,), (1334683196,), (1334683683,), (1334683685,), (1334683710,), (1334684262,), (1334684332,), (1334684336,), (1334749387,), (1334749388,), (1334749389,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20231043 , 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=20231025 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 (20231043) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20231025) result : ((1334678660,), (1334678938,), (1334678948,), (1334678952,), (1334678966,), (1334679053,), (1334679132,), (1334679220,), (1334679298,), (1334680574,), (1334680575,), (1334680581,), (1334680721,), (1334680723,), (1334680727,), (1334680853,), (1334680854,), (1334680856,), (1334680858,), (1334680912,), (1334680988,), (1334680989,), (1334680991,), (1334680993,), (1334682223,), (1334682273,), (1334682340,), (1334682362,), (1334682366,), (1334682371,), (1334682862,), (1334682904,), (1334682967,), (1334682979,), (1334682982,), (1334683111,), (1334683113,), (1334683117,), (1334683121,), (1334683123,), (1334683160,), (1334683162,), (1334683164,), (1334683167,), (1334683185,), (1334683187,), (1334683190,), (1334683193,), (1334683196,), (1334683683,), (1334683685,), (1334683710,), (1334684262,), (1334684332,), (1334684336,), (1334749387,), (1334749388,), (1334749389,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20231044 , 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=20231025 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 (20231044) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20231025) result : ((1334678660,), (1334678938,), (1334678948,), (1334678952,), (1334678966,), (1334679053,), (1334679132,), (1334679220,), (1334679298,), (1334680574,), (1334680575,), (1334680581,), (1334680721,), (1334680723,), (1334680727,), (1334680853,), (1334680854,), (1334680856,), (1334680858,), (1334680912,), (1334680988,), (1334680989,), (1334680991,), (1334680993,), (1334682223,), (1334682273,), (1334682340,), (1334682362,), (1334682366,), (1334682371,), (1334682862,), (1334682904,), (1334682967,), (1334682979,), (1334682982,), (1334683111,), (1334683113,), (1334683117,), (1334683121,), (1334683123,), (1334683160,), (1334683162,), (1334683164,), (1334683167,), (1334683185,), (1334683187,), (1334683190,), (1334683193,), (1334683196,), (1334683683,), (1334683685,), (1334683710,), (1334684262,), (1334684332,), (1334684336,), (1334749387,), (1334749388,), (1334749389,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20231045 , 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=20231025 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 (20231045) result : ((1334680825,), (1334680859,), (1334682381,), (1334682382,), (1334682383,), (1334682384,), (1334682385,), (1334682387,), (1334682388,), (1334683828,), (1334683829,), (1334683844,), (1334683845,), (1334683847,), (1334683848,), (1334683849,), (1334683851,), (1334684139,), (1334684140,), (1334684141,), (1334693009,), (1334693010,), (1334694316,), (1334694317,), (1334694326,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20231025) result : ((1334678660,), (1334678938,), (1334678948,), (1334678952,), (1334678966,), (1334679053,), (1334679132,), (1334679220,), (1334679298,), (1334680574,), (1334680575,), (1334680581,), (1334680721,), (1334680723,), (1334680727,), (1334680853,), (1334680854,), (1334680856,), (1334680858,), (1334680912,), (1334680988,), (1334680989,), (1334680991,), (1334680993,), (1334682223,), (1334682273,), (1334682340,), (1334682362,), (1334682366,), (1334682371,), (1334682862,), (1334682904,), (1334682967,), (1334682979,), (1334682982,), (1334683111,), (1334683113,), (1334683117,), (1334683121,), (1334683123,), (1334683160,), (1334683162,), (1334683164,), (1334683167,), (1334683185,), (1334683187,), (1334683190,), (1334683193,), (1334683196,), (1334683683,), (1334683685,), (1334683710,), (1334684262,), (1334684332,), (1334684336,), (1334749387,), (1334749388,), (1334749389,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20231025 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','plastique','metal','papier','Teint_Dans_La_Masse','autre_refus','environnement','flou','kraft','mal_croppe','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20231025 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','plastique','metal','papier','Teint_Dans_La_Masse','autre_refus','environnement','flou','kraft','mal_croppe','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20231025, 'sub_port_id': 20231046, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933065, 'last_updated_at': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 4)}, 'Carton_gris': {'main_port_id': 20231025, 'sub_port_id': 20231047, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933066, 'last_updated_at': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 4)}, 'mal_croppe': {'main_port_id': 20231025, 'sub_port_id': 20231048, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933067, 'last_updated_at': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 4)}, 'flou': {'main_port_id': 20231025, 'sub_port_id': 20231049, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933068, 'last_updated_at': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 4)}, 'plastique': {'main_port_id': 20231025, 'sub_port_id': 20231050, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933069, 'last_updated_at': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 4)}, 'cartonnette': {'main_port_id': 20231025, 'sub_port_id': 20231051, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933070, 'last_updated_at': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 4)}, 'kraft': {'main_port_id': 20231025, 'sub_port_id': 20231052, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933071, 'last_updated_at': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 4)}, 'papier': {'main_port_id': 20231025, 'sub_port_id': 20231053, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933072, 'last_updated_at': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 4)}, 'autre_refus': {'main_port_id': 20231025, 'sub_port_id': 20231054, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933073, 'last_updated_at': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 4)}, 'metal': {'main_port_id': 20231025, 'sub_port_id': 20231055, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933074, 'last_updated_at': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 4)}, 'environnement': {'main_port_id': 20231025, 'sub_port_id': 20231056, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933075, 'last_updated_at': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 22, 49, 4), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 4)}, 'Teint_Dans_La_Masse': {'main_port_id': 20231025, 'sub_port_id': 20231057, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12933076, 'last_updated_at': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 4, 23, 0, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 4, 22, 49, 4)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20231046,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20231034 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20231047,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20231035 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20231048,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20231036 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20231049,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20231037 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20231050,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20231038 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20231051,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20231039 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20231052,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20231040 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20231053,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20231041 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20231054,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20231042 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20231055,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20231043 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20231056,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20231044 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20231057,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20231045 lien utilise dans velours : https://www.fotonower.com/velours/20231046,20231047,20231048,20231049,20231050,20231051,20231052,20231053,20231054,20231055,20231056,20231057?tags=Carton_brun,Carton_gris,mal_croppe,flou,plastique,cartonnette,kraft,papier,autre_refus,metal,environnement,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20231025]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1334749389, 1334749388, 1334749387] map_info['map_portfolio_photo'] : {20231025: [1334749389, 1334749388, 1334749387, 1334684336, 1334684332, 1334684262, 1334683710, 1334683685, 1334683683, 1334683196, 1334683193, 1334683190, 1334683187, 1334683185, 1334683167, 1334683164, 1334683162, 1334683160, 1334683123, 1334683121, 1334683117, 1334683113, 1334683111, 1334682982, 1334682979, 1334682967, 1334682904, 1334682862, 1334682371, 1334682366, 1334682362, 1334682340, 1334682273, 1334682223, 1334680993, 1334680991, 1334680989, 1334680988, 1334680912, 1334680858, 1334680856, 1334680854, 1334680853, 1334680727, 1334680723, 1334680721, 1334680581, 1334680575, 1334680574, 1334679298, 1334679220, 1334679132, 1334679053, 1334678966, 1334678952, 1334678948, 1334678938, 1334678660]} final : False mtd_id 4302 list_pids : [1334749389, 1334749388, 1334749387] Looping around the photos to save general results len do output : 1 /20231025. 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, '2547759') ('4302', '20231025', '1334749389', None, None, None, None, None, '2547759') ('4302', None, None, None, None, None, None, None, '2547759') ('4302', '20231025', '1334749388', None, None, None, None, None, '2547759') ('4302', None, None, None, None, None, None, None, '2547759') ('4302', '20231025', '1334749387', None, None, None, None, None, '2547759') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '20231025', "{'Carton_brun': 20231034, 'Carton_gris': 20231035, 'mal_croppe': 20231036, 'flou': 20231037, 'plastique': 20231038, 'cartonnette': 20231039, 'kraft': 20231040, 'papier': 20231041, 'autre_refus': 20231042, 'metal': 20231043, 'environnement': 20231044, 'Teint_Dans_La_Masse': 20231045}", None, None, None, None, '2547759'), ('4302', '20231025', '1334749389', None, None, None, None, None, '2547759'), ('4302', '20231025', '1334749388', None, None, None, None, None, '2547759'), ('4302', '20231025', '1334749387', None, None, None, None, None, '2547759')] time used for this insertion : 0.0260775089263916 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.438748359680176 time spend to save output : 0.026316165924072266 total time spend for step 1 : 5.465064525604248 step2:final Sat Feb 8 10:37:05 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 (20231025) 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 20231025 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1334678966,1334678952,1334678660,1334678948,1334678938,1334679298,1334679220,1334679132,1334679053,1334680581,1334680575,1334680574,1334680727,1334680723,1334680721,1334680912,1334680858,1334680856,1334680854,1334680853,1334680993,1334680991,1334680989,1334680988,1334682371,1334682366,1334682362,1334682340,1334682273,1334682223,1334682982,1334682979,1334682967,1334682904,1334682862,1334683123,1334683121,1334683117,1334683113,1334683111,1334683167,1334683164,1334683162,1334683160,1334683196,1334683193,1334683190,1334683187,1334683185,1334683710,1334683685,1334683683,1334684336,1334684332,1334684262,1334749389,1334749388,1334749387); 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([20231025]) Inside saveOutput : final : False verbose : True original output for save of step final : {1334749389: ('0.04954297956273841',), 1334749388: ('0.04954297956273841',), 1334749387: ('0.04954297956273841',)} new output for save of step final : {1334749389: ('0.04954297956273841',), 1334749388: ('0.04954297956273841',), 1334749387: ('0.04954297956273841',)} [1334749389, 1334749388, 1334749387] map_info['map_portfolio_photo'] : {20231025: [1334749389, 1334749388, 1334749387, 1334684336, 1334684332, 1334684262, 1334683710, 1334683685, 1334683683, 1334683196, 1334683193, 1334683190, 1334683187, 1334683185, 1334683167, 1334683164, 1334683162, 1334683160, 1334683123, 1334683121, 1334683117, 1334683113, 1334683111, 1334682982, 1334682979, 1334682967, 1334682904, 1334682862, 1334682371, 1334682366, 1334682362, 1334682340, 1334682273, 1334682223, 1334680993, 1334680991, 1334680989, 1334680988, 1334680912, 1334680858, 1334680856, 1334680854, 1334680853, 1334680727, 1334680723, 1334680721, 1334680581, 1334680575, 1334680574, 1334679298, 1334679220, 1334679132, 1334679053, 1334678966, 1334678952, 1334678948, 1334678938, 1334678660]} final : False mtd_id 4302 list_pids : [1334749389, 1334749388, 1334749387] Looping around the photos to save general results len do output : 3 /1334749389.Didn't retrieve data . /1334749388.Didn't retrieve data . /1334749387.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, '2547759') ('4302', '20231025', '1334749389', None, None, None, None, None, '2547759') ('4302', None, None, None, None, None, None, None, '2547759') ('4302', '20231025', '1334749388', None, None, None, None, None, '2547759') ('4302', None, None, None, None, None, None, None, '2547759') ('4302', '20231025', '1334749387', None, None, None, None, None, '2547759') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '20231025', '1334749389', '0.04954297956273841', None, None, None, None, '2547759'), ('4302', '20231025', '1334749388', '0.04954297956273841', None, None, None, None, '2547759'), ('4302', '20231025', '1334749387', '0.04954297956273841', None, None, None, None, '2547759')] time used for this insertion : 0.013669729232788086 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4966609477996826 time spend to save output : 0.013948917388916016 total time spend for step 2 : 1.5106098651885986 step3:velours_tree Sat Feb 8 10:37:06 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 : {20231025: [{'Carton_brun': 20231034, 'Carton_gris': 20231035, 'mal_croppe': 20231036, 'flou': 20231037, 'plastique': 20231038, 'cartonnette': 20231039, 'kraft': 20231040, 'papier': 20231041, 'autre_refus': 20231042, 'metal': 20231043, 'environnement': 20231044, 'Teint_Dans_La_Masse': 20231045}]} input_args_next_step : {20231025: ()} output_args : {20231025: [{'Carton_brun': 20231034, 'Carton_gris': 20231035, 'mal_croppe': 20231036, 'flou': 20231037, 'plastique': 20231038, 'cartonnette': 20231039, 'kraft': 20231040, 'papier': 20231041, 'autre_refus': 20231042, 'metal': 20231043, 'environnement': 20231044, 'Teint_Dans_La_Masse': 20231045}]} args : 20231025 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 20231034, 'Carton_gris': 20231035, 'mal_croppe': 20231036, 'flou': 20231037, 'plastique': 20231038, 'cartonnette': 20231039, 'kraft': 20231040, 'papier': 20231041, 'autre_refus': 20231042, 'metal': 20231043, 'environnement': 20231044, 'Teint_Dans_La_Masse': 20231045},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20231025) 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([20231025]) 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.4620332717895508 time spend to save output : 4.5299530029296875e-05 total time spend for step 3 : 0.4620785713195801 step4:send_mail_cod Sat Feb 8 10:37:07 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 : {1334749389: ('0.04954297956273841',), 1334749388: ('0.04954297956273841',), 1334749387: ('0.04954297956273841',)} input_args_next_step : {1334749389: ()} output_args : {1334749389: ('0.04954297956273841',), 1334749388: ('0.04954297956273841',), 1334749387: ('0.04954297956273841',)} args : 1334749389 depend.output_id : 0 input_args_next_step : {1334749389: ('0.04954297956273841',), 1334749388: ()} output_args : {1334749389: ('0.04954297956273841',), 1334749388: ('0.04954297956273841',), 1334749387: ('0.04954297956273841',)} args : 1334749388 depend.output_id : 0 input_args_next_step : {1334749389: ('0.04954297956273841',), 1334749388: ('0.04954297956273841',), 1334749387: ()} output_args : {1334749389: ('0.04954297956273841',), 1334749388: ('0.04954297956273841',), 1334749387: ('0.04954297956273841',)} args : 1334749387 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 : {20231025: [{'Carton_brun': 20231034, 'Carton_gris': 20231035, 'mal_croppe': 20231036, 'flou': 20231037, 'plastique': 20231038, 'cartonnette': 20231039, 'kraft': 20231040, 'papier': 20231041, 'autre_refus': 20231042, 'metal': 20231043, 'environnement': 20231044, 'Teint_Dans_La_Masse': 20231045}]} input_args_next_step : {1334749389: ('0.04954297956273841',), 1334749388: ('0.04954297956273841',), 1334749387: ('0.04954297956273841',), 20231025: ()} output_args : {20231025: [{'Carton_brun': 20231034, 'Carton_gris': 20231035, 'mal_croppe': 20231036, 'flou': 20231037, 'plastique': 20231038, 'cartonnette': 20231039, 'kraft': 20231040, 'papier': 20231041, 'autre_refus': 20231042, 'metal': 20231043, 'environnement': 20231044, 'Teint_Dans_La_Masse': 20231045}]} args : 20231025 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 :4, first value : ('0.04954297956273841',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20231025) 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 (1334749389,1334749388,1334749387) Found this number of photos: 3 ##### Call download_photos : nb_thread : 5 begin to download photo : 1334749387 begin to download photo : 1334749388 begin to download photo : 1334749389 download finish for photo 1334749389 download finish for photo 1334749387 download finish for photo 1334749388 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette202310361739007427/ imagette202310371739007427/ length of list_filenames : 3 ; length of list_pids : 3 ; length of list_args : 3 results_Auto_P20231025_08-02-2025_10_37_07.pdf 20231036 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=20231036 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202310361739007427 20231037 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=20231037 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202310371739007427 20231038 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=20231038 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334680829: '1738705793_2009919_1334679053_b8ea9a58432680747a087e3df1a1cc98_rle_crop_3654319697_0.png', 1334680916: '1738705773_2009795_1334678952_d5fcb403a52325507e7f961df17e323d_rle_crop_3654319737_0.png', 1334683909: '1738706192_2023291_1334682366_dc1eee44133f077c78461c5bd344beb0_rle_crop_3654330860_0.png', 1334683911: '1738706192_2023291_1334682362_5708a6f20f07a79c47ffe5739c3b0072_rle_crop_3654330915_0.png', 1334683912: '1738706192_2023291_1334682273_7e8563def699973689bed8e9b614f08b_rle_crop_3654330958_0.png', 1334683913: '1738706192_2023291_1334682223_4c4fed271cc171b2d382dde10bb9b08b_rle_crop_3654331003_0.png', 1334684558: '1738706494_2037548_1334684336_3d68fe4c00a13c378b6a53cbe447170f_rle_crop_3654341980_0.png', 1334684559: '1738706494_2037548_1334684336_3d68fe4c00a13c378b6a53cbe447170f_rle_crop_3654341981_0.png', 1334684560: '1738706494_2037548_1334683683_fed8ff5dc78e92a03ebe939c33587400_rle_crop_3654342526_0.png', 1334694329: '1738708651_2121208_1334679053_b8ea9a58432680747a087e3df1a1cc98_rle_crop_3654410435_0.png', 1334694330: '1738708651_2121208_1334679053_b8ea9a58432680747a087e3df1a1cc98_bib_crop_3654319697_0.jpg'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/5ebaf6e9fd8d2b9ea71521bee8390c5c_56321521.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/bfb12fab2677464bb52bf62b4075cd9d_25661783.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/2037d323d2424f567bd91acd3aced052_22340474.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/c1b24202b02bb28c4b78e97291745759_21612860.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/e562ef06aad2f70ac39a6e95b7d29108_47958698.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/dac05b47f90a556780b8867b433c13cd_17217911.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/6bf0ff3c4e7b1c55db5d061b859ead73_61868596.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/cf1fd90e2016f1f6f63d86f6ee4d18a6_85744503.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/a382c45f4472afadd4bc3d06012ae289_13637252.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/9705339b7f88356b13b9e3f94bc6fd32_24048478.png change filename to text .imagette202310381739007427/ imagette202310381739007427/1738706192_2023291_1334682366_dc1eee44133f077c78461c5bd344beb0_rle_crop_3654330860_0.png.png imagette202310381739007427/1738705793_2009919_1334679053_b8ea9a58432680747a087e3df1a1cc98_rle_crop_3654319697_0.png.png imagette202310381739007427/1738708651_2121208_1334679053_b8ea9a58432680747a087e3df1a1cc98_rle_crop_3654410435_0.png.png imagette202310381739007427/1738706192_2023291_1334682362_5708a6f20f07a79c47ffe5739c3b0072_rle_crop_3654330915_0.png.png imagette202310381739007427/1738706192_2023291_1334682223_4c4fed271cc171b2d382dde10bb9b08b_rle_crop_3654331003_0.png.png imagette202310381739007427/1738706494_2037548_1334683683_fed8ff5dc78e92a03ebe939c33587400_rle_crop_3654342526_0.png.png imagette202310381739007427/1738708651_2121208_1334679053_b8ea9a58432680747a087e3df1a1cc98_bib_crop_3654319697_0.jpg.jpg imagette202310381739007427/1738706494_2037548_1334684336_3d68fe4c00a13c378b6a53cbe447170f_rle_crop_3654341980_0.png.png imagette202310381739007427/1738706192_2023291_1334682273_7e8563def699973689bed8e9b614f08b_rle_crop_3654330958_0.png.png imagette202310381739007427/1738705773_2009795_1334678952_d5fcb403a52325507e7f961df17e323d_rle_crop_3654319737_0.png.png imagette202310381739007427/1738706494_2037548_1334684336_3d68fe4c00a13c378b6a53cbe447170f_rle_crop_3654341981_0.png.png wget -O 11.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/c5f1f3af77b99ae1d7f8464962c460ca_38731377.jpg imagette202310381739007427 20231039 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=20231039 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334683853: '1738706192_2023291_1334682340_9d1c60ad5f0621c59e3aedc4f558d4f9_rle_crop_3654330926_0.png', 1334683925: '1738706212_2023489_1334680858_328af7332e38ce13c1ccda66e05329a6_rle_crop_3654330945_0.png', 1334683927: '1738706212_2023489_1334680853_5b8ffdacc6e7b8427a7f4a4bd4dfc495_rle_crop_3654331148_0.png', 1334693020: '1738708354_2105735_1334683164_a03d70cba17b9c27afb9ff24b116e542_rle_crop_3654403449_0.png', 1334693021: '1738708354_2105735_1334683164_a03d70cba17b9c27afb9ff24b116e542_rle_crop_3654403448_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/d6ff7fda877947091e2239298a889288_21545948.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/2bea494bf1f8c81323fda73c806a7899_61065131.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/4ea49de3dac8a20f19ca46754dcdfd49_13730900.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/9589f26cd6f6918f8899336150dbd3a8_94239018.png change filename to text .imagette202310391739007429/ imagette202310391739007429/1738708354_2105735_1334683164_a03d70cba17b9c27afb9ff24b116e542_rle_crop_3654403448_0.png.png imagette202310391739007429/1738708354_2105735_1334683164_a03d70cba17b9c27afb9ff24b116e542_rle_crop_3654403449_0.png.png imagette202310391739007429/1738706212_2023489_1334680853_5b8ffdacc6e7b8427a7f4a4bd4dfc495_rle_crop_3654331148_0.png.png imagette202310391739007429/1738706212_2023489_1334680858_328af7332e38ce13c1ccda66e05329a6_rle_crop_3654330945_0.png.png imagette202310391739007429/1738706192_2023291_1334682340_9d1c60ad5f0621c59e3aedc4f558d4f9_rle_crop_3654330926_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/664f1dabb370fcfb5f0bb8153bbe7213_17276255.png imagette202310391739007429 20231040 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=20231040 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334684148: '1738706272_2024694_1334683167_f88af2746e9a3d1d6c80ca91874c3467_rle_crop_3654331209_0.png'} change filename to text .imagette202310401739007430/ imagette202310401739007430/1738706272_2024694_1334683167_f88af2746e9a3d1d6c80ca91874c3467_rle_crop_3654331209_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/8a2f06fcb07199cb883655ba2407ccb9_86204112.png imagette202310401739007430 20231042 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=20231042 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334683831: '1738706192_2023291_1334682366_dc1eee44133f077c78461c5bd344beb0_rle_crop_3654330856_0.png', 1334694327: '1738708651_2121208_1334679053_b8ea9a58432680747a087e3df1a1cc98_rle_crop_3654319703_0.png', 1334693016: '1738708354_2105735_1334683196_8919882b318b81b129072b4d140ac551_rle_crop_3654403412_0.png', 1334693015: '1738708354_2105735_1334683196_8919882b318b81b129072b4d140ac551_rle_crop_3654403408_0.png', 1334684606: '1738706513_2037812_1334683187_e41bf382d1b602a1c1948b41a7b28f21_rle_crop_3654332814_0.png', 1334684553: '1738706494_2037548_1334684336_3d68fe4c00a13c378b6a53cbe447170f_rle_crop_3654341978_0.png', 1334683884: '1738706212_2023489_1334680853_5b8ffdacc6e7b8427a7f4a4bd4dfc495_rle_crop_3654331142_0.png', 1334683883: '1738706212_2023489_1334680993_5358333324c82c58d19d260e79785846_rle_crop_3654330890_0.png', 1334683832: '1738706192_2023291_1334682362_5708a6f20f07a79c47ffe5739c3b0072_rle_crop_3654330909_0.png', 1334680826: '1738705793_2009919_1334679053_b8ea9a58432680747a087e3df1a1cc98_rle_crop_3654319703_0.png', 1334683496: '1738706171_2022992_1334682862_8f90e7fad8ea0b48c691d1452ce37de9_rle_crop_3654330318_0.png', 1334683495: '1738706171_2022992_1334682967_5ffb8c8fbf57760cdf1ba4b19f52d472_rle_crop_3654330297_0.png', 1334683493: '1738706171_2022992_1334682979_b2910b540f54b060fff77884f9600a77_rle_crop_3654330028_0.png', 1334682391: '1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325014_0.png', 1334682390: '1738705913_2011422_1334680727_aebcb66d4d7fd5caed528ab2f677c399_rle_crop_3654324993_0.png', 1334680861: '1738705773_2009795_1334678952_d5fcb403a52325507e7f961df17e323d_rle_crop_3654319738_0.png', 1334680860: '1738705773_2009795_1334678966_39f20b3781d929db1ada1f9dbae5ee45_rle_crop_3654319724_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/694b920eb11295df21fd45bdc3fa3a34_56746185.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/19eaeb143f8c7fe49004edd9d00e4943_30758119.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/f4271ecdbf204029d4e37c8624d45d98_81325989.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/851dbcc17c9116b82164d8b86f52f81c_401511.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/d2a60af7d4746ced1decc149f3aab6f9_62071753.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/8e3eadc216a3500b5df2bee7442cce84_16791489.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/6406c92d8c911654332354b2d24892a3_43551976.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/3d2656b500013f00ab6477fa939775ef_38196680.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/920e1c0cebcc466134c0062066ddd273_36619769.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/19eaeb143f8c7fe49004edd9d00e4943_43118021.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/250c8c3ffb30afe7192e6bbe25fd07d4_85490313.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/0dd73bfa2be38396cfe1f726b1c15e72_48913668.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/905d4dd65402844702b79f053e487305_30217387.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/c75f3d447933e6885a63d92c066264d4_9023203.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/0182765becd300023940b18a6821a388_54453703.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/fec6a8190682997ddc7eb3294fd8ac6b_18401955.png change filename to text .imagette202310421739007430/ imagette202310421739007430/1738706171_2022992_1334682862_8f90e7fad8ea0b48c691d1452ce37de9_rle_crop_3654330318_0.png.png imagette202310421739007430/1738705773_2009795_1334678952_d5fcb403a52325507e7f961df17e323d_rle_crop_3654319738_0.png.png imagette202310421739007430/1738708354_2105735_1334683196_8919882b318b81b129072b4d140ac551_rle_crop_3654403408_0.png.png imagette202310421739007430/1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325014_0.png.png imagette202310421739007430/1738706192_2023291_1334682366_dc1eee44133f077c78461c5bd344beb0_rle_crop_3654330856_0.png.png imagette202310421739007430/1738706212_2023489_1334680993_5358333324c82c58d19d260e79785846_rle_crop_3654330890_0.png.png imagette202310421739007430/1738708354_2105735_1334683196_8919882b318b81b129072b4d140ac551_rle_crop_3654403412_0.png.png imagette202310421739007430/1738706494_2037548_1334684336_3d68fe4c00a13c378b6a53cbe447170f_rle_crop_3654341978_0.png.png imagette202310421739007430/1738706171_2022992_1334682967_5ffb8c8fbf57760cdf1ba4b19f52d472_rle_crop_3654330297_0.png.png imagette202310421739007430/1738706513_2037812_1334683187_e41bf382d1b602a1c1948b41a7b28f21_rle_crop_3654332814_0.png.png imagette202310421739007430/1738708651_2121208_1334679053_b8ea9a58432680747a087e3df1a1cc98_rle_crop_3654319703_0.png.png imagette202310421739007430/1738706212_2023489_1334680853_5b8ffdacc6e7b8427a7f4a4bd4dfc495_rle_crop_3654331142_0.png.png imagette202310421739007430/1738705793_2009919_1334679053_b8ea9a58432680747a087e3df1a1cc98_rle_crop_3654319703_0.png.png imagette202310421739007430/1738706171_2022992_1334682979_b2910b540f54b060fff77884f9600a77_rle_crop_3654330028_0.png.png imagette202310421739007430/1738706192_2023291_1334682362_5708a6f20f07a79c47ffe5739c3b0072_rle_crop_3654330909_0.png.png imagette202310421739007430/1738705913_2011422_1334680727_aebcb66d4d7fd5caed528ab2f677c399_rle_crop_3654324993_0.png.png imagette202310421739007430/1738705773_2009795_1334678966_39f20b3781d929db1ada1f9dbae5ee45_rle_crop_3654319724_0.png.png imagette202310431739007433/ wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/5b4f3c695abe3d444ce5d3b18585929d_3343114.png imagette202310421739007430 20231043 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=20231043 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202310431739007433 20231034 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=20231034 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334683876: '1738706192_2023291_1334682362_5708a6f20f07a79c47ffe5739c3b0072_rle_crop_3654330911_0.png', 1334694328: '1738708651_2121208_1334680581_1b1283ecbfb6d274c87002323928acc1_rle_crop_3654410417_0.png', 1334684608: '1738706513_2037812_1334683185_29411d4f60a44d0ff1da851d04d33079_rle_crop_3654332827_0.png', 1334684607: '1738706513_2037812_1334683185_29411d4f60a44d0ff1da851d04d33079_rle_crop_3654332829_0.png', 1334684555: '1738706494_2037548_1334683685_e4ad023763164b3fa93f6a06e10ee402_rle_crop_3654341987_0.png', 1334684526: '1738706474_2037256_1334684332_42f845bc5f8e0282ca14d4bf376ebb67_rle_crop_3654338399_0.png', 1334684146: '1738706272_2024694_1334683113_ab62580fc1f6201629096ce4abbc6688_rle_crop_3654331313_0.png', 1334684145: '1738706272_2024694_1334683117_6d6d46794cd52f490500cc31e42f6c00_rle_crop_3654331274_0.png', 1334683877: '1738706192_2023291_1334682273_7e8563def699973689bed8e9b614f08b_rle_crop_3654330954_0.png', 1334680913: '1738705773_2009795_1334678966_39f20b3781d929db1ada1f9dbae5ee45_rle_crop_3654319729_0.png', 1334683526: '1738706171_2022992_1334682862_8f90e7fad8ea0b48c691d1452ce37de9_rle_crop_3654330320_0.png', 1334683525: '1738706171_2022992_1334682904_02c436cd20da40c623cc404d8e6a6c1a_rle_crop_3654330307_0.png', 1334682397: '1738705913_2011422_1334680574_2a7915d8e782a7f0e516aac39bd4df81_rle_crop_3654325032_0.png', 1334682396: '1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325019_0.png', 1334682395: '1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325017_0.png', 1334680915: '1738705773_2009795_1334678660_15fe8a0212a3e14b19b9cc5c2bda262b_rle_crop_3654319792_0.png', 1334680914: '1738705773_2009795_1334678938_a030b307eafae4dfd14de328d534df5f_rle_crop_3654319776_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/f48ca8dc49bc86933514b824b032a5e8_18597583.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/abe302906a1a9a63600bc458404c6953_82416860.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/955b2781158f6e570b32f1526167bb34_78027155.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/c0a4ba14673fe1901f493b2323839744_86949674.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/64e6a887922e9c880daaab7e4669d049_28315099.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/c396730297ad4ed8217fa13a9c7fb9b0_46407485.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/1a5b280a81ec2fc1202d6e7bd19ef479_77737519.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/633967ea778481e7eb52ad90b48d3eb6_55920939.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/db52f60abbba8c0e96d7161b5db09683_28860440.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/caa4562ce0a5639eedc96ab4cfbc79d4_34858281.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/c96c3222985f445b760c06a3bfd325a1_32198633.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/21c29e24e1ffdbc897f1654599f53395_28124448.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/4b257fbeb7884d48fa7eb725581a032f_90441160.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/f768f6dbbddbb619cf60558b925616cb_24990309.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/50ea8c1407c7f4abbc67559d41ca227d_792297.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/781c6eb7c77703e146bc40e92f33c569_61071362.png change filename to text .imagette202310341739007433/ imagette202310341739007433/1738705913_2011422_1334680574_2a7915d8e782a7f0e516aac39bd4df81_rle_crop_3654325032_0.png.png imagette202310341739007433/1738705773_2009795_1334678966_39f20b3781d929db1ada1f9dbae5ee45_rle_crop_3654319729_0.png.png imagette202310341739007433/1738706272_2024694_1334683113_ab62580fc1f6201629096ce4abbc6688_rle_crop_3654331313_0.png.png imagette202310341739007433/1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325017_0.png.png imagette202310341739007433/1738706171_2022992_1334682904_02c436cd20da40c623cc404d8e6a6c1a_rle_crop_3654330307_0.png.png imagette202310341739007433/1738706513_2037812_1334683185_29411d4f60a44d0ff1da851d04d33079_rle_crop_3654332829_0.png.png imagette202310341739007433/1738705773_2009795_1334678660_15fe8a0212a3e14b19b9cc5c2bda262b_rle_crop_3654319792_0.png.png imagette202310341739007433/1738706513_2037812_1334683185_29411d4f60a44d0ff1da851d04d33079_rle_crop_3654332827_0.png.png imagette202310341739007433/1738708651_2121208_1334680581_1b1283ecbfb6d274c87002323928acc1_rle_crop_3654410417_0.png.png imagette202310341739007433/1738706192_2023291_1334682273_7e8563def699973689bed8e9b614f08b_rle_crop_3654330954_0.png.png imagette202310341739007433/1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325019_0.png.png imagette202310341739007433/1738706192_2023291_1334682362_5708a6f20f07a79c47ffe5739c3b0072_rle_crop_3654330911_0.png.png imagette202310341739007433/1738706272_2024694_1334683117_6d6d46794cd52f490500cc31e42f6c00_rle_crop_3654331274_0.png.png imagette202310341739007433/1738706171_2022992_1334682862_8f90e7fad8ea0b48c691d1452ce37de9_rle_crop_3654330320_0.png.png imagette202310341739007433/1738705773_2009795_1334678938_a030b307eafae4dfd14de328d534df5f_rle_crop_3654319776_0.png.png imagette202310341739007433/1738706494_2037548_1334683685_e4ad023763164b3fa93f6a06e10ee402_rle_crop_3654341987_0.png.png imagette202310341739007433/1738706474_2037256_1334684332_42f845bc5f8e0282ca14d4bf376ebb67_rle_crop_3654338399_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/e2ad53df990ae03a18f71df08363018e_45459198.png imagette202310341739007433 20231035 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=20231035 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334680875: '1738705773_2009795_1334679298_bc183bd5f91017810d6bb6d93842a38e_rle_crop_3654319709_0.png', 1334682392: '1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325011_0.png', 1334682393: '1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325018_0.png', 1334682394: '1738705913_2011422_1334680574_2a7915d8e782a7f0e516aac39bd4df81_rle_crop_3654325031_0.png', 1334683521: '1738706171_2022992_1334682979_b2910b540f54b060fff77884f9600a77_rle_crop_3654330029_0.png', 1334683835: '1738706192_2023291_1334682362_5708a6f20f07a79c47ffe5739c3b0072_rle_crop_3654330908_0.png', 1334683902: '1738706212_2023489_1334680858_328af7332e38ce13c1ccda66e05329a6_rle_crop_3654330943_0.png', 1334683904: '1738706212_2023489_1334680856_9ffd4f32f38e5594101238798425fe28_rle_crop_3654330972_0.png', 1334684554: '1738706494_2037548_1334683683_fed8ff5dc78e92a03ebe939c33587400_rle_crop_3654342518_0.png', 1334693017: '1738708354_2105735_1334683196_8919882b318b81b129072b4d140ac551_rle_crop_3654403409_0.png', 1334693018: '1738708354_2105735_1334683162_6446452a35ebf00e6aa99388cbc5fb24_rle_crop_3654403495_0.png', 1334694318: '1738708633_2121071_1334680723_d7ceab1de2a5f90d5c54a5ff2b71100d_rle_crop_3654410349_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/d14e5fc676bd5f40174496e8a035296f_17956220.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/0adc2460474abf2dfb76e44cdb55c786_39161117.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/114123ab60e9254e891f50956f3abf1c_60466391.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/51fc89fa6793da401383435054cab14b_25835466.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/ac7504563332ea6f88642437c0fbb265_85731677.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/b55e1208f728f373d01cc3ef7c7ebc36_29514730.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/885e7ad34f705f77d372ce0b6c7844bf_97472393.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/bc094170b1695dd2b4ffccfab12d941d_99487112.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/9d5248a00a830637b24aa8612cacc6be_71236701.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/902a2d00f18907eccb784f3bab22f7a4_74798908.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/1cd6f74d58e3bd4c36bd0a7be0b3a24a_45377038.png change filename to text .imagette202310351739007434/ imagette202310351739007434/1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325018_0.png.png imagette202310351739007434/1738705913_2011422_1334680574_2a7915d8e782a7f0e516aac39bd4df81_rle_crop_3654325031_0.png.png imagette202310351739007434/1738708354_2105735_1334683196_8919882b318b81b129072b4d140ac551_rle_crop_3654403409_0.png.png imagette202310351739007434/1738706212_2023489_1334680856_9ffd4f32f38e5594101238798425fe28_rle_crop_3654330972_0.png.png imagette202310351739007434/1738706212_2023489_1334680858_328af7332e38ce13c1ccda66e05329a6_rle_crop_3654330943_0.png.png imagette202310351739007434/1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325011_0.png.png imagette202310351739007434/1738708354_2105735_1334683162_6446452a35ebf00e6aa99388cbc5fb24_rle_crop_3654403495_0.png.png imagette202310351739007434/1738706171_2022992_1334682979_b2910b540f54b060fff77884f9600a77_rle_crop_3654330029_0.png.png imagette202310351739007434/1738706192_2023291_1334682362_5708a6f20f07a79c47ffe5739c3b0072_rle_crop_3654330908_0.png.png imagette202310351739007434/1738706494_2037548_1334683683_fed8ff5dc78e92a03ebe939c33587400_rle_crop_3654342518_0.png.png imagette202310351739007434/1738708633_2121071_1334680723_d7ceab1de2a5f90d5c54a5ff2b71100d_rle_crop_3654410349_0.png.png imagette202310351739007434/1738705773_2009795_1334679298_bc183bd5f91017810d6bb6d93842a38e_rle_crop_3654319709_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/1fe744db6d384b9b59c3415cc2b502bf_59639661.png imagette202310351739007434 20231045 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=20231045 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334683845: '1738706212_2023489_1334680854_055dd170438dfb6fe1573bd067633489_rle_crop_3654330990_0.png', 1334694326: '1738708651_2121208_1334679053_b8ea9a58432680747a087e3df1a1cc98_rle_crop_3654319704_0.png', 1334694317: '1738708633_2121071_1334680723_d7ceab1de2a5f90d5c54a5ff2b71100d_rle_crop_3654410347_0.png', 1334694316: '1738708633_2121071_1334680912_51f7af67309dfae99b9e85b38e225b24_rle_crop_3654410271_0.png', 1334693010: '1738708354_2105735_1334683160_a1dcf60926ab5af7af8d972101afe44f_rle_crop_3654403549_0.png', 1334693009: '1738708354_2105735_1334683196_8919882b318b81b129072b4d140ac551_rle_crop_3654403415_0.png', 1334684141: '1738706272_2024694_1334683113_ab62580fc1f6201629096ce4abbc6688_rle_crop_3654331315_0.png', 1334684140: '1738706272_2024694_1334683117_6d6d46794cd52f490500cc31e42f6c00_rle_crop_3654331278_0.png', 1334684139: '1738706272_2024694_1334683117_6d6d46794cd52f490500cc31e42f6c00_rle_crop_3654331275_0.png', 1334683851: '1738706212_2023489_1334680853_5b8ffdacc6e7b8427a7f4a4bd4dfc495_rle_crop_3654331141_0.png', 1334683849: '1738706212_2023489_1334680853_5b8ffdacc6e7b8427a7f4a4bd4dfc495_rle_crop_3654331151_0.png', 1334683848: '1738706212_2023489_1334680853_5b8ffdacc6e7b8427a7f4a4bd4dfc495_rle_crop_3654331150_0.png', 1334683847: '1738706212_2023489_1334680854_055dd170438dfb6fe1573bd067633489_rle_crop_3654330986_0.png', 1334680825: '1738705793_2009919_1334679053_b8ea9a58432680747a087e3df1a1cc98_rle_crop_3654319704_0.png', 1334683844: '1738706212_2023489_1334680993_5358333324c82c58d19d260e79785846_rle_crop_3654330895_0.png', 1334683829: '1738706192_2023291_1334682273_7e8563def699973689bed8e9b614f08b_rle_crop_3654330955_0.png', 1334683828: '1738706192_2023291_1334682366_dc1eee44133f077c78461c5bd344beb0_rle_crop_3654330858_0.png', 1334682388: '1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325016_0.png', 1334682387: '1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325020_0.png', 1334682385: '1738705913_2011422_1334680727_aebcb66d4d7fd5caed528ab2f677c399_rle_crop_3654324996_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/0a69a0b3ec6b3c838ad489960d118201_94875611.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/a0540f96091124b2a24e3cb158979adf_45100458.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/3a6e9b3dea6d0df4b7ce21f95bc23d18_88643878.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/beefd9c0d7ba46bc77b454165a3c5ff0_54416123.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/2bec684518971992a456938515175a18_56616580.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/cdd9d7a5c563a711451d6ed0d509b5a5_66036961.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/bdc807804920a37413c714e7aaa5349b_73189195.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/c1e9946d4282103e05161f1b034447bc_76908729.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/58cc7cb5f14a955dfc1ebca7d8321bb6_17680285.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/cab0b59c4ed9abd66e1848c2b77d5ea4_77247594.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/9b58bbbc31430d6d1cf6374d8455a9bb_81899633.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/c6c2cfe00555592bbc7de4788f3cbacb_51501268.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/ceb14d10a9ef0bf01241b26e5d9f99e7_25178551.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/a0540f96091124b2a24e3cb158979adf_36639812.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/56b6823f0a80743830b069ef7060eb3e_22756401.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/46673bf8ac2de8d1368a561666e0e723_94748322.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/b43e5fd5ddcd07ba5cfe63bea840eda3_94808653.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/b9dc73743e75b30ac32045948f9edb18_18060700.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/93f60937c85921fc01730b10f44fe0d1_74778281.png change filename to text .imagette202310451739007436/ imagette202310451739007436/1738708651_2121208_1334679053_b8ea9a58432680747a087e3df1a1cc98_rle_crop_3654319704_0.png.png imagette202310451739007436/1738706212_2023489_1334680853_5b8ffdacc6e7b8427a7f4a4bd4dfc495_rle_crop_3654331151_0.png.png imagette202310451739007436/1738705913_2011422_1334680727_aebcb66d4d7fd5caed528ab2f677c399_rle_crop_3654324996_0.png.png imagette202310451739007436/1738706192_2023291_1334682273_7e8563def699973689bed8e9b614f08b_rle_crop_3654330955_0.png.png imagette202310451739007436/1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325016_0.png.png imagette202310451739007436/1738708354_2105735_1334683160_a1dcf60926ab5af7af8d972101afe44f_rle_crop_3654403549_0.png.png imagette202310451739007436/1738706212_2023489_1334680854_055dd170438dfb6fe1573bd067633489_rle_crop_3654330986_0.png.png imagette202310451739007436/1738706192_2023291_1334682366_dc1eee44133f077c78461c5bd344beb0_rle_crop_3654330858_0.png.png imagette202310451739007436/1738706212_2023489_1334680854_055dd170438dfb6fe1573bd067633489_rle_crop_3654330990_0.png.png imagette202310451739007436/1738708354_2105735_1334683196_8919882b318b81b129072b4d140ac551_rle_crop_3654403415_0.png.png imagette202310451739007436/1738708633_2121071_1334680723_d7ceab1de2a5f90d5c54a5ff2b71100d_rle_crop_3654410347_0.png.png imagette202310451739007436/1738706272_2024694_1334683117_6d6d46794cd52f490500cc31e42f6c00_rle_crop_3654331278_0.png.png imagette202310451739007436/1738705913_2011422_1334680575_7a3dcec785686dfd1a3d09e60f2e9e9c_rle_crop_3654325020_0.png.png imagette202310451739007436/1738705793_2009919_1334679053_b8ea9a58432680747a087e3df1a1cc98_rle_crop_3654319704_0.png.png imagette202310451739007436/1738706272_2024694_1334683117_6d6d46794cd52f490500cc31e42f6c00_rle_crop_3654331275_0.png.png imagette202310451739007436/1738706212_2023489_1334680993_5358333324c82c58d19d260e79785846_rle_crop_3654330895_0.png.png imagette202310451739007436/1738706272_2024694_1334683113_ab62580fc1f6201629096ce4abbc6688_rle_crop_3654331315_0.png.png imagette202310451739007436/1738708633_2121071_1334680912_51f7af67309dfae99b9e85b38e225b24_rle_crop_3654410271_0.png.png imagette202310451739007436/1738706212_2023489_1334680853_5b8ffdacc6e7b8427a7f4a4bd4dfc495_rle_crop_3654331150_0.png.png imagette202310451739007436/1738706212_2023489_1334680853_5b8ffdacc6e7b8427a7f4a4bd4dfc495_rle_crop_3654331141_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/b9aab2d08740fc693e177d736629f012_8134672.png imagette202310451739007436 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20231025 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20231046,20231047,20231048,20231049,20231050,20231051,20231052,20231053,20231054,20231055,20231056,20231057?tags=Carton_brun,Carton_gris,mal_croppe,flou,plastique,cartonnette,kraft,papier,autre_refus,metal,environnement,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1334749389] : ('0.04954297956273841',) no score found for photo 1334749389 apple ('0.04954297956273841',) We are sending mail with results at report@fotonower.com args[1334749388] : ('0.04954297956273841',) no score found for photo 1334749388 apple ('0.04954297956273841',) We are sending mail with results at report@fotonower.com args[1334749387] : ('0.04954297956273841',) no score found for photo 1334749387 apple ('0.04954297956273841',) We are sending mail with results at report@fotonower.com refus_total : 0.04954297956273841 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=20231025 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20231025_08-02-2025_10_37_07.pdf results_Auto_P20231025_08-02-2025_10_37_07.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20231025_08-02-2025_10_37_07.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20231025','results_Auto_P20231025_08-02-2025_10_37_07.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20231025_08-02-2025_10_37_07.pdf','pdf','','0.32','0.04954297956273841') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20231025]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1334749389, 1334749388, 1334749387] map_info['map_portfolio_photo'] : {20231025: [1334749389, 1334749388, 1334749387, 1334684336, 1334684332, 1334684262, 1334683710, 1334683685, 1334683683, 1334683196, 1334683193, 1334683190, 1334683187, 1334683185, 1334683167, 1334683164, 1334683162, 1334683160, 1334683123, 1334683121, 1334683117, 1334683113, 1334683111, 1334682982, 1334682979, 1334682967, 1334682904, 1334682862, 1334682371, 1334682366, 1334682362, 1334682340, 1334682273, 1334682223, 1334680993, 1334680991, 1334680989, 1334680988, 1334680912, 1334680858, 1334680856, 1334680854, 1334680853, 1334680727, 1334680723, 1334680721, 1334680581, 1334680575, 1334680574, 1334679298, 1334679220, 1334679132, 1334679053, 1334678966, 1334678952, 1334678948, 1334678938, 1334678660]} final : False mtd_id 4302 list_pids : [1334749389, 1334749388, 1334749387] 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, '2547759') ('4302', '20231025', '1334749389', None, None, None, None, None, '2547759') ('4302', None, None, None, None, None, None, None, '2547759') ('4302', '20231025', '1334749388', None, None, None, None, None, '2547759') ('4302', None, None, None, None, None, None, None, '2547759') ('4302', '20231025', '1334749387', None, None, None, None, None, '2547759') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20231025', '1334749389', None, None, None, None, None, '2547759'), ('4302', '20231025', '1334749388', None, None, None, None, None, '2547759'), ('4302', '20231025', '1334749387', None, None, None, None, None, '2547759')] time used for this insertion : 0.012499332427978516 save_final save missing photos in datou_result : time spend for datou_step_exec : 12.717921733856201 time spend to save output : 0.012688398361206055 total time spend for step 4 : 12.730610132217407 step5:split_time_score Sat Feb 8 10:37:20 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 : ['20231025'] 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 : [('20231025',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20231025) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1334749389: {'path': 'temp/1739007427_3438428_1334749389_956bf391d0ab84aff6be9eb584a7cf4d.jpg', 'extension': 'jpg'}, 1334749387: {'path': 'temp/1739007427_3438428_1334749387_9159e946fa926ad5237ab0fa99cdcdce.jpg', 'extension': 'jpg'}, 1334749388: {'path': 'temp/1739007427_3438428_1334749388_af8a6ba151c9c57102a39156a2f006b9.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 = 20231025; (('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 = 20231025 group by h (('22', 58),) 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=20231025 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 (20231025) 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 (20231025) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04022025 20231025 Nombre de photos uploadées : 58 / 23040 (0%) 04022025 20231025 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 04022025 20231025 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1334678966, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/39f20b3781d929db1ada1f9dbae5ee45.jpg', 'username': None, 'uploaded_at': 1738705577, 'text': 'image_04022025_22_45_04_009136m0.jpg 1e-05 for time 1, id_amount 4 this amount prod time diff : 1e-05'}, {'photo_id': 1334678952, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/d5fcb403a52325507e7f961df17e323d.jpg', 'username': None, 'uploaded_at': 1738705577, 'text': 'image_04022025_22_45_14_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1334678660, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/15fe8a0212a3e14b19b9cc5c2bda262b.jpg', 'username': None, 'uploaded_at': 1738705563, 'text': 'image_04022025_22_45_24_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1334678948, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/4/ab8bacbb0c30e427ccbfaf0db0117d2f.jpg', 'username': None, 'uploaded_at': 1738705577, 'text': 'image_04022025_22_45_34_010137m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002650737762451172 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20231025, '2025-02-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1575286,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02528691291809082 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= 1575286 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20200617, 'dashboard_result_id': 8775824, '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_P20200617_04-02-2025_08_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20200621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20200622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20200623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20200624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20200625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20200626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20200627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20200628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20200629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20200630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20200631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20200632, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20200932, 'dashboard_result_id': 8775825, '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_P20200932_04-02-2025_08_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20200938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20200939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20200940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20200941, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20200942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20200943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20200944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20200945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20200946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20200947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20200948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20200949, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20201187, 'dashboard_result_id': 8775826, '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_P20201187_04-02-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20201196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20201197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20201198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20201199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20201200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20201201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20201202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20201203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20201204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20201205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20201206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20201207, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20203010, 'dashboard_result_id': 8775827, '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_P20203010_04-02-2025_09_49_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20203012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20203013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20203014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20203015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20203016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20203017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20203018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20203019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20203020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20203021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20203022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20203023, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20203352, 'dashboard_result_id': 8775828, '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_P20203352_04-02-2025_10_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20203361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20203362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20203363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20203364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20203365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20203366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20203367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20203368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20203369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20203370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20203371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20203372, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20203720, 'dashboard_result_id': 8775829, '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_P20203720_04-02-2025_10_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20203729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20203730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20203731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20203732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20203733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20203734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20203735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20203736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20203737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20203738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20203739, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20203740, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20204389, 'dashboard_result_id': 8775830, '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_P20204389_04-02-2025_10_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20204444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20204445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20204446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20204447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20204448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20204449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20204450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20204451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20204452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20204453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20204454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20204455, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20204996, 'dashboard_result_id': 8775831, '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_P20204996_04-02-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20205052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20205053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20205054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20205055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20205056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20205057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20205058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20205059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20205060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20205061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20205062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20205063, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20205929, 'dashboard_result_id': 8775832, '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_P20205929_04-02-2025_11_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20205934, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20205935, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20205936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20205937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20205938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20205939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20205940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20205941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20205942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20205943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20205944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20205945, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20206399, 'dashboard_result_id': 8775833, '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_P20206399_04-02-2025_11_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20206406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20206407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20206408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20206409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20206410, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20206411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20206412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20206413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20206414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20206415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20206416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20206417, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20206709, 'dashboard_result_id': 8775834, '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_P20206709_04-02-2025_11_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20206718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20206719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20206720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20206721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20206722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20206723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20206724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20206725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20206726, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20206727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20206728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20206729, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20207132, 'dashboard_result_id': 8775835, '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_P20207132_04-02-2025_11_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20207223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20207224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20207225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20207226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20207227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20207228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20207229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20207230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20207231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20207232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20207233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20207234, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20210404, 'dashboard_result_id': 8775836, '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_P20210404_04-02-2025_13_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20210405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20210406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20210407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20210408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20210409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20210410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20210411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20210412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20210413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20210414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20210415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20210416, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20210620, 'dashboard_result_id': 8775837, '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_P20210620_04-02-2025_14_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20210622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20210623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20210624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20210625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20210626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20210627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20210628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20210629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20210630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20210631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20210632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20210633, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20210882, 'dashboard_result_id': 8775838, '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_P20210882_04-02-2025_14_16_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20210890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20210891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20210892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20210893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20210894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20210895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20210896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20210897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20210898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20210899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20210900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20210901, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20211089, 'dashboard_result_id': 8775839, '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_P20211089_04-02-2025_14_32_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20211098, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20211099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20211100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20211101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20211102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20211103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20211104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20211105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20211106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20211107, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20211108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20211109, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20211676, 'dashboard_result_id': 8775840, '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_P20211676_04-02-2025_14_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20211678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20211679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20211680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20211681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20211682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20211683, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20211684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20211685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20211686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20211687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20211688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20211689, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20212336, 'dashboard_result_id': 8775841, '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_P20212336_04-02-2025_15_03_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20212404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20212406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20212407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20212408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20212409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20212410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20212411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20212412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20212413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20212414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20212415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20212416, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20213225, 'dashboard_result_id': 8775842, '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_P20213225_04-02-2025_15_19_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20213233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20213234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20213235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20213236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20213237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20213238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20213239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20213240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20213241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20213242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20213243, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20213244, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20213877, 'dashboard_result_id': 8775843, '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_P20213877_04-02-2025_15_33_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20213957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20213958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20213959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20213960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20213961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20213962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20213963, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20213964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20213965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20213966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20213967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20213968, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20214615, 'dashboard_result_id': 8775844, '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_P20214615_04-02-2025_15_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20214622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20214623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20214624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20214625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20214626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20214627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20214628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20214629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20214630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20214631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20214632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20214633, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20215220, 'dashboard_result_id': 8775845, '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_P20215220_04-02-2025_16_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20215225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20215226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20215227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20215228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20215229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20215230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20215231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20215232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20215233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20215234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20215235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20215236, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20215739, 'dashboard_result_id': 8775846, '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_P20215739_04-02-2025_16_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20215792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20215793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20215794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20215795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20215796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20215797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20215798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20215799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20215800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20215801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20215802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20215803, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20216292, 'dashboard_result_id': 8775847, '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_P20216292_04-02-2025_16_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20216333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20216334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20216335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20216336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20216337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20216338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20216339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20216340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20216341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20216342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20216343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20216344, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20217004, 'dashboard_result_id': 8775848, '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_P20217004_04-02-2025_16_48_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20217014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20217015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20217016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20217017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20217018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20217019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20217020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20217021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20217022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20217023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20217024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20217025, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20217792, 'dashboard_result_id': 8775849, '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_P20217792_04-02-2025_17_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20217801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20217802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20217803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20217804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20217805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20217806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20217807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20217808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20217809, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20217810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20217811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20217812, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20218534, 'dashboard_result_id': 8775850, '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_P20218534_04-02-2025_17_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20218538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20218539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20218540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20218541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20218542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20218543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20218544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20218545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20218546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20218547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20218548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20218549, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20218946, 'dashboard_result_id': 8775851, '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_P20218946_04-02-2025_17_50_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20218979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20218980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20218981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20218982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20218983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20218984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20218985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20218986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20218987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20218988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20218989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20218990, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20220417, 'dashboard_result_id': 8775852, '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_P20220417_04-02-2025_18_16_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20220445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20220446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20220447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20220448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20220449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20220450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20220451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20220452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20220453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20220454, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20220455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20220456, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20220809, 'dashboard_result_id': 8775853, '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_P20220809_04-02-2025_18_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20220850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20220851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20220852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20220853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20220854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20220855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20220856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20220857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20220858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20220859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20220860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20220861, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20221425, 'dashboard_result_id': 8775854, '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_P20221425_04-02-2025_18_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20221515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20221516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20221517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20221518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20221519, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20221520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20221521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20221522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20221523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20221524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20221525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20221526, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20222000, 'dashboard_result_id': 8775855, '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_P20222000_04-02-2025_19_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20222016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20222017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20222018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20222019, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20222020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20222021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20222022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20222023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20222024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20222025, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20222026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20222027, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20222746, 'dashboard_result_id': 8775856, '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_P20222746_04-02-2025_19_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20222815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20222816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20222817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20222818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20222819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20222820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20222821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20222822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20222823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20222824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20222825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20222826, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20223512, 'dashboard_result_id': 8775857, '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_P20223512_04-02-2025_19_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20223568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20223569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20223570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20223571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20223572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20223573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20223574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20223575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20223576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20223577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20223578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20223579, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20224457, 'dashboard_result_id': 8775858, '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_P20224457_04-02-2025_19_46_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20224499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20224500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20224501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20224502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20224503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20224504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20224505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20224506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20224507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20224508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20224509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20224510, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20225220, 'dashboard_result_id': 8775859, '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_P20225220_04-02-2025_20_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20225224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20225225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20225226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20225227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20225228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20225229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20225230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20225231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20225232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20225233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20225234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20225235, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20225760, 'dashboard_result_id': 8775860, '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_P20225760_04-02-2025_20_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20225769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20225770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20225771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20225772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20225773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20225774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20225775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20225776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20225777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20225778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20225779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20225780, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20226944, 'dashboard_result_id': 8775861, '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_P20226944_04-02-2025_20_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20226951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20226952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20226953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20226954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20226955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20226956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20226957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20226958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20226959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20226960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20226961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20226962, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20226990, 'dashboard_result_id': 8775862, '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_P20226990_04-02-2025_21_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20226999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20227000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20227001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20227002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20227003, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20227004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20227005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20227006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20227007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20227008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20227009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20227010, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20228358, 'dashboard_result_id': 8775863, '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_P20228358_04-02-2025_21_46_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20228360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20228361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20228362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20228363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20228364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20228365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20228366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20228367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20228368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20228369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20228370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20228371, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20228641, 'dashboard_result_id': 8775864, '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_P20228641_04-02-2025_22_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20228645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20228646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20228647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20228648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20228649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20228650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20228651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20228652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20228653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20228654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20228655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20228656, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20229074, 'dashboard_result_id': 8775865, '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_P20229074_04-02-2025_22_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20229115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20229116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20229117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20229118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20229119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20229120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20229121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20229122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20229123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20229124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20229125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20229126, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20229623, 'dashboard_result_id': 8775866, '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_P20229623_04-02-2025_22_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20229631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20229632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20229633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20229634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20229635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20229636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20229637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20229638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20229639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20229640, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20229641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20229642, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20230358, 'dashboard_result_id': 8775867, '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_P20230358_04-02-2025_22_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20230403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20230404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20230405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20230406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20230407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20230408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20230409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20230410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20230411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20230412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20230413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20230414, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20231025, 'dashboard_result_id': 8775868, '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_P20231025_04-02-2025_23_00_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20231034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20231035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20231036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20231037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20231038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20231039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20231040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20231041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20231042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20231043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20231044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20231045, 'pht': 3726}}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20359619, 'dashboard_result_id': 8775869, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20359620, 'dashboard_result_id': 8775870, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1575286, 'dashboard_run_id': 1596238, 'mtr_portfolio_id': 20359621, 'dashboard_result_id': 8775871, '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_P20359621_08-02-2025_10_35_37.pdf'}"}] 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 = 20200617 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 = 20200617 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 = 20200617 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20200617 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 = 20200617 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 = 20200617 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20200617_04-02-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20200617 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_P20200617_04-02-2025_08_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20200621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20200622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20200623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20200624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20200625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20200626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20200627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20200628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20200629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20200630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20200631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20200632, 'pht': 3726}}" where mtr_portfolio_id = 20200617 and dashboard_run_id = 1596238 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 = 20200932 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': 2543332, 'mtr_portfolio_id': 20200932, 'created_at': datetime.datetime(2025, 2, 4, 8, 46, 30), 'result': '0.05916659667235159', 'result_long': None, 'result_double': None}] Qualite : 0.05916659667235159 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20200932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20200932_04-02-2025_08_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20200932 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_P20200932_04-02-2025_08_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20200938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20200939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20200940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20200941, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20200942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20200943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20200944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20200945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20200946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20200947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20200948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20200949, 'pht': 3726}}" where mtr_portfolio_id = 20200932 and dashboard_run_id = 1596238 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`=20200932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775825, 0.05916659667235159, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20200932_04-02-2025_08_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20200938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20200939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20200940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20200941, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20200942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20200943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20200944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20200945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20200946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20200947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20200948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20200949, '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 = 20201187 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': 2543400, 'mtr_portfolio_id': 20201187, 'created_at': datetime.datetime(2025, 2, 4, 9, 2, 58), 'result': '0.0635840022857794', 'result_long': None, 'result_double': None}] Qualite : 0.0635840022857794 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20201187 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20201187_04-02-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20201187 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_P20201187_04-02-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20201196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20201197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20201198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20201199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20201200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20201201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20201202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20201203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20201204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20201205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20201206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20201207, 'pht': 3726}}" where mtr_portfolio_id = 20201187 and dashboard_run_id = 1596238 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`=20201187 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775826, 0.0635840022857794, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20201187_04-02-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20201196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20201197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20201198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20201199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20201200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20201201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20201202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20201203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20201204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20201205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20201206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20201207, '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 = 20203010 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': 2543749, 'mtr_portfolio_id': 20203010, 'created_at': datetime.datetime(2025, 2, 4, 9, 49, 2), 'result': '0.09337427178253399', 'result_long': None, 'result_double': None}] Qualite : 0.09337427178253399 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20203010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20203010_04-02-2025_09_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20203010 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_P20203010_04-02-2025_09_49_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20203012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20203013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20203014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20203015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20203016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20203017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20203018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20203019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20203020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20203021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20203022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20203023, 'pht': 3726}}" where mtr_portfolio_id = 20203010 and dashboard_run_id = 1596238 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`=20203010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775827, 0.09337427178253399, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20203010_04-02-2025_09_49_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20203012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20203013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20203014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20203015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20203016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20203017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20203018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20203019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20203020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20203021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20203022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20203023, '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 = 20203352 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': 2543788, 'mtr_portfolio_id': 20203352, 'created_at': datetime.datetime(2025, 2, 4, 10, 3), 'result': '0.06393767045625236', 'result_long': None, 'result_double': None}] Qualite : 0.06393767045625236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20203352 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20203352_04-02-2025_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20203352 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_P20203352_04-02-2025_10_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20203361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20203362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20203363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20203364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20203365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20203366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20203367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20203368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20203369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20203370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20203371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20203372, 'pht': 3726}}" where mtr_portfolio_id = 20203352 and dashboard_run_id = 1596238 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`=20203352 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775828, 0.06393767045625236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20203352_04-02-2025_10_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20203361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20203362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20203363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20203364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20203365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20203366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20203367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20203368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20203369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20203370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20203371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20203372, '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 = 20203720 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': 2543930, 'mtr_portfolio_id': 20203720, 'created_at': datetime.datetime(2025, 2, 4, 10, 18, 58), 'result': '0.03798284246689678', 'result_long': None, 'result_double': None}] Qualite : 0.03798284246689678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20203720 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20203720_04-02-2025_10_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20203720 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_P20203720_04-02-2025_10_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20203729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20203730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20203731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20203732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20203733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20203734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20203735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20203736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20203737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20203738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20203739, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20203740, 'pht': 3726}}" where mtr_portfolio_id = 20203720 and dashboard_run_id = 1596238 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`=20203720 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775829, 0.03798284246689678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20203720_04-02-2025_10_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20203729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20203730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20203731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20203732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20203733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20203734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20203735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20203736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20203737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20203738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20203739, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20203740, '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 = 20204389 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': 2544078, 'mtr_portfolio_id': 20204389, 'created_at': datetime.datetime(2025, 2, 4, 10, 32, 58), 'result': '0.03919166521860279', 'result_long': None, 'result_double': None}] Qualite : 0.03919166521860279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20204389 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20204389_04-02-2025_10_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20204389 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_P20204389_04-02-2025_10_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20204444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20204445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20204446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20204447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20204448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20204449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20204450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20204451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20204452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20204453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20204454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20204455, 'pht': 3726}}" where mtr_portfolio_id = 20204389 and dashboard_run_id = 1596238 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`=20204389 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775830, 0.03919166521860279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20204389_04-02-2025_10_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20204444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20204445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20204446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20204447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20204448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20204449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20204450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20204451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20204452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20204453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20204454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20204455, '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 = 20204996 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': 2544198, 'mtr_portfolio_id': 20204996, 'created_at': datetime.datetime(2025, 2, 4, 10, 46, 59), 'result': '0.04426650733035826', 'result_long': None, 'result_double': None}] Qualite : 0.04426650733035826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20204996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20204996_04-02-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20204996 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_P20204996_04-02-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20205052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20205053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20205054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20205055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20205056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20205057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20205058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20205059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20205060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20205061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20205062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20205063, 'pht': 3726}}" where mtr_portfolio_id = 20204996 and dashboard_run_id = 1596238 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`=20204996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775831, 0.04426650733035826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20204996_04-02-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20205052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20205053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20205054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20205055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20205056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20205057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20205058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20205059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20205060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20205061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20205062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20205063, '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 = 20205929 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': 2544312, 'mtr_portfolio_id': 20205929, 'created_at': datetime.datetime(2025, 2, 4, 11, 2, 58), 'result': '0.04488027930434235', 'result_long': None, 'result_double': None}] Qualite : 0.04488027930434235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20205929 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20205929_04-02-2025_11_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20205929 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_P20205929_04-02-2025_11_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20205934, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20205935, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20205936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20205937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20205938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20205939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20205940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20205941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20205942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20205943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20205944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20205945, 'pht': 3726}}" where mtr_portfolio_id = 20205929 and dashboard_run_id = 1596238 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`=20205929 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775832, 0.04488027930434235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20205929_04-02-2025_11_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20205934, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20205935, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20205936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20205937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20205938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20205939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20205940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20205941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20205942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20205943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20205944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20205945, '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 = 20206399 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 = 20206399 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 = 20206399 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20206399 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 = 20206399 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 = 20206399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20206399_04-02-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20206399 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_P20206399_04-02-2025_11_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20206406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20206407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20206408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20206409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20206410, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20206411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20206412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20206413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20206414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20206415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20206416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20206417, 'pht': 3726}}" where mtr_portfolio_id = 20206399 and dashboard_run_id = 1596238 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 = 20206709 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': 2544468, 'mtr_portfolio_id': 20206709, 'created_at': datetime.datetime(2025, 2, 4, 11, 33), 'result': '0.04108067827319418', 'result_long': None, 'result_double': None}] Qualite : 0.04108067827319418 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20206709 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20206709_04-02-2025_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20206709 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_P20206709_04-02-2025_11_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20206718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20206719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20206720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20206721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20206722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20206723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20206724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20206725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20206726, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20206727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20206728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20206729, 'pht': 3726}}" where mtr_portfolio_id = 20206709 and dashboard_run_id = 1596238 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`=20206709 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775834, 0.04108067827319418, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20206709_04-02-2025_11_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20206718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20206719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20206720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20206721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20206722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20206723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20206724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20206725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20206726, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20206727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20206728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20206729, '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 = 20207132 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': 2544603, 'mtr_portfolio_id': 20207132, 'created_at': datetime.datetime(2025, 2, 4, 11, 50, 30), 'result': '0.032070021769827595', 'result_long': None, 'result_double': None}] Qualite : 0.032070021769827595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20207132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20207132_04-02-2025_11_50_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20207132 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_P20207132_04-02-2025_11_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20207223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20207224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20207225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20207226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20207227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20207228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20207229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20207230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20207231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20207232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20207233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20207234, 'pht': 3726}}" where mtr_portfolio_id = 20207132 and dashboard_run_id = 1596238 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`=20207132 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775835, 0.032070021769827595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20207132_04-02-2025_11_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20207223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20207224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20207225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20207226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20207227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20207228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20207229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20207230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20207231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20207232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20207233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20207234, '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 = 20210404 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': 2545019, 'mtr_portfolio_id': 20210404, 'created_at': datetime.datetime(2025, 2, 4, 13, 49), 'result': '0.03843257297422166', 'result_long': None, 'result_double': None}] Qualite : 0.03843257297422166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20210404 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20210404_04-02-2025_13_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20210404 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_P20210404_04-02-2025_13_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20210405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20210406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20210407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20210408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20210409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20210410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20210411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20210412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20210413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20210414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20210415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20210416, 'pht': 3726}}" where mtr_portfolio_id = 20210404 and dashboard_run_id = 1596238 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`=20210404 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775836, 0.03843257297422166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20210404_04-02-2025_13_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20210405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20210406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20210407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20210408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20210409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20210410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20210411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20210412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20210413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20210414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20210415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20210416, '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 = 20210620 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': 2545042, 'mtr_portfolio_id': 20210620, 'created_at': datetime.datetime(2025, 2, 4, 14, 2, 59), 'result': '0.03889481833300162', 'result_long': None, 'result_double': None}] Qualite : 0.03889481833300162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20210620 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20210620_04-02-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20210620 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_P20210620_04-02-2025_14_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20210622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20210623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20210624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20210625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20210626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20210627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20210628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20210629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20210630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20210631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20210632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20210633, 'pht': 3726}}" where mtr_portfolio_id = 20210620 and dashboard_run_id = 1596238 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`=20210620 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775837, 0.03889481833300162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20210620_04-02-2025_14_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20210622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20210623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20210624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20210625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20210626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20210627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20210628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20210629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20210630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20210631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20210632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20210633, '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 = 20210882 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': 2545078, 'mtr_portfolio_id': 20210882, 'created_at': datetime.datetime(2025, 2, 4, 14, 16, 31), 'result': '0.10240062902150908', 'result_long': None, 'result_double': None}] Qualite : 0.10240062902150908 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20210882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20210882_04-02-2025_14_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20210882 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_P20210882_04-02-2025_14_16_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20210890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20210891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20210892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20210893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20210894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20210895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20210896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20210897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20210898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20210899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20210900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20210901, 'pht': 3726}}" where mtr_portfolio_id = 20210882 and dashboard_run_id = 1596238 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`=20210882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775838, 0.10240062902150908, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20210882_04-02-2025_14_16_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20210890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20210891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20210892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20210893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20210894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20210895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20210896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20210897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20210898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20210899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20210900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20210901, '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 = 20211089 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': 2545158, 'mtr_portfolio_id': 20211089, 'created_at': datetime.datetime(2025, 2, 4, 14, 32, 57), 'result': '0.053707048311202495', 'result_long': None, 'result_double': None}] Qualite : 0.053707048311202495 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20211089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20211089_04-02-2025_14_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20211089 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_P20211089_04-02-2025_14_32_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20211098, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20211099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20211100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20211101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20211102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20211103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20211104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20211105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20211106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20211107, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20211108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20211109, 'pht': 3726}}" where mtr_portfolio_id = 20211089 and dashboard_run_id = 1596238 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`=20211089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775839, 0.053707048311202495, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20211089_04-02-2025_14_32_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20211098, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20211099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20211100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20211101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20211102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20211103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20211104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20211105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20211106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20211107, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20211108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20211109, '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 = 20211676 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': 2545329, 'mtr_portfolio_id': 20211676, 'created_at': datetime.datetime(2025, 2, 4, 14, 46, 58), 'result': '0.04127843289012307', 'result_long': None, 'result_double': None}] Qualite : 0.04127843289012307 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20211676 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20211676_04-02-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20211676 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_P20211676_04-02-2025_14_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20211678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20211679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20211680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20211681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20211682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20211683, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20211684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20211685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20211686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20211687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20211688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20211689, 'pht': 3726}}" where mtr_portfolio_id = 20211676 and dashboard_run_id = 1596238 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`=20211676 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775840, 0.04127843289012307, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20211676_04-02-2025_14_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20211678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20211679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20211680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20211681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20211682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20211683, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20211684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20211685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20211686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20211687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20211688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20211689, '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 = 20212336 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': 2545419, 'mtr_portfolio_id': 20212336, 'created_at': datetime.datetime(2025, 2, 4, 15, 3, 2), 'result': '0.05705715123471774', 'result_long': None, 'result_double': None}] Qualite : 0.05705715123471774 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20212336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20212336_04-02-2025_15_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20212336 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_P20212336_04-02-2025_15_03_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20212404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20212406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20212407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20212408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20212409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20212410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20212411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20212412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20212413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20212414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20212415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20212416, 'pht': 3726}}" where mtr_portfolio_id = 20212336 and dashboard_run_id = 1596238 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`=20212336 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775841, 0.05705715123471774, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20212336_04-02-2025_15_03_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20212404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20212406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20212407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20212408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20212409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20212410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20212411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20212412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20212413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20212414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20212415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20212416, '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 = 20213225 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': 2545558, 'mtr_portfolio_id': 20213225, 'created_at': datetime.datetime(2025, 2, 4, 15, 19, 5), 'result': '0.05344258298077514', 'result_long': None, 'result_double': None}] Qualite : 0.05344258298077514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20213225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20213225_04-02-2025_15_19_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20213225 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_P20213225_04-02-2025_15_19_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20213233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20213234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20213235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20213236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20213237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20213238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20213239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20213240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20213241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20213242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20213243, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20213244, 'pht': 3726}}" where mtr_portfolio_id = 20213225 and dashboard_run_id = 1596238 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`=20213225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775842, 0.05344258298077514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20213225_04-02-2025_15_19_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20213233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20213234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20213235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20213236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20213237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20213238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20213239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20213240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20213241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20213242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20213243, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20213244, '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 = 20213877 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': 2545633, 'mtr_portfolio_id': 20213877, 'created_at': datetime.datetime(2025, 2, 4, 15, 33, 2), 'result': '0.06666851618069478', 'result_long': None, 'result_double': None}] Qualite : 0.06666851618069478 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20213877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20213877_04-02-2025_15_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20213877 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_P20213877_04-02-2025_15_33_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20213957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20213958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20213959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20213960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20213961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20213962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20213963, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20213964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20213965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20213966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20213967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20213968, 'pht': 3726}}" where mtr_portfolio_id = 20213877 and dashboard_run_id = 1596238 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`=20213877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775843, 0.06666851618069478, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20213877_04-02-2025_15_33_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20213957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20213958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20213959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20213960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20213961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20213962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20213963, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20213964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20213965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20213966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20213967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20213968, '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 = 20214615 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': 2545685, 'mtr_portfolio_id': 20214615, 'created_at': datetime.datetime(2025, 2, 4, 15, 46, 59), 'result': '0.037335801129740304', 'result_long': None, 'result_double': None}] Qualite : 0.037335801129740304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20214615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20214615_04-02-2025_15_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20214615 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_P20214615_04-02-2025_15_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20214622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20214623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20214624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20214625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20214626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20214627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20214628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20214629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20214630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20214631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20214632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20214633, 'pht': 3726}}" where mtr_portfolio_id = 20214615 and dashboard_run_id = 1596238 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`=20214615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775844, 0.037335801129740304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20214615_04-02-2025_15_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20214622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20214623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20214624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20214625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20214626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20214627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20214628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20214629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20214630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20214631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20214632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20214633, '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 = 20215220 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': 2545738, 'mtr_portfolio_id': 20215220, 'created_at': datetime.datetime(2025, 2, 4, 16, 2, 59), 'result': '0.04466626224677005', 'result_long': None, 'result_double': None}] Qualite : 0.04466626224677005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20215220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20215220_04-02-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20215220 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_P20215220_04-02-2025_16_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20215225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20215226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20215227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20215228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20215229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20215230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20215231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20215232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20215233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20215234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20215235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20215236, 'pht': 3726}}" where mtr_portfolio_id = 20215220 and dashboard_run_id = 1596238 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`=20215220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775845, 0.04466626224677005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20215220_04-02-2025_16_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20215225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20215226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20215227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20215228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20215229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20215230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20215231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20215232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20215233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20215234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20215235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20215236, '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 = 20215739 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': 2545870, 'mtr_portfolio_id': 20215739, 'created_at': datetime.datetime(2025, 2, 4, 16, 18, 58), 'result': '0.03969955624109504', 'result_long': None, 'result_double': None}] Qualite : 0.03969955624109504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20215739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20215739_04-02-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20215739 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_P20215739_04-02-2025_16_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20215792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20215793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20215794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20215795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20215796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20215797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20215798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20215799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20215800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20215801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20215802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20215803, 'pht': 3726}}" where mtr_portfolio_id = 20215739 and dashboard_run_id = 1596238 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`=20215739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775846, 0.03969955624109504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20215739_04-02-2025_16_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20215792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20215793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20215794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20215795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20215796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20215797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20215798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20215799, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20215800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20215801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20215802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20215803, '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 = 20216292 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': 2546009, 'mtr_portfolio_id': 20216292, 'created_at': datetime.datetime(2025, 2, 4, 16, 32, 59), 'result': '0.03426208288726555', 'result_long': None, 'result_double': None}] Qualite : 0.03426208288726555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20216292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20216292_04-02-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20216292 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_P20216292_04-02-2025_16_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20216333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20216334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20216335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20216336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20216337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20216338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20216339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20216340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20216341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20216342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20216343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20216344, 'pht': 3726}}" where mtr_portfolio_id = 20216292 and dashboard_run_id = 1596238 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`=20216292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775847, 0.03426208288726555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20216292_04-02-2025_16_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20216333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20216334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20216335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20216336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20216337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20216338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20216339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20216340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20216341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20216342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20216343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20216344, '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 = 20217004 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': 2546154, 'mtr_portfolio_id': 20217004, 'created_at': datetime.datetime(2025, 2, 4, 16, 48, 29), 'result': '0.04381054829015026', 'result_long': None, 'result_double': None}] Qualite : 0.04381054829015026 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20217004 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20217004_04-02-2025_16_48_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20217004 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_P20217004_04-02-2025_16_48_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20217014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20217015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20217016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20217017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20217018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20217019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20217020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20217021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20217022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20217023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20217024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20217025, 'pht': 3726}}" where mtr_portfolio_id = 20217004 and dashboard_run_id = 1596238 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`=20217004 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775848, 0.04381054829015026, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20217004_04-02-2025_16_48_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20217014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20217015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20217016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20217017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20217018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20217019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20217020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20217021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20217022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20217023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20217024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20217025, '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 = 20217792 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': 2546293, 'mtr_portfolio_id': 20217792, 'created_at': datetime.datetime(2025, 2, 4, 17, 4, 59), 'result': '0.04919631100370392', 'result_long': None, 'result_double': None}] Qualite : 0.04919631100370392 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20217792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20217792_04-02-2025_17_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20217792 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_P20217792_04-02-2025_17_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20217801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20217802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20217803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20217804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20217805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20217806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20217807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20217808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20217809, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20217810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20217811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20217812, 'pht': 3726}}" where mtr_portfolio_id = 20217792 and dashboard_run_id = 1596238 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`=20217792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775849, 0.04919631100370392, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20217792_04-02-2025_17_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20217801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20217802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20217803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20217804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20217805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20217806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20217807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20217808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20217809, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20217810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20217811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20217812, '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 = 20218534 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': 2546358, 'mtr_portfolio_id': 20218534, 'created_at': datetime.datetime(2025, 2, 4, 17, 16, 58), 'result': '0.04513547917510593', 'result_long': None, 'result_double': None}] Qualite : 0.04513547917510593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20218534 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20218534_04-02-2025_17_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20218534 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_P20218534_04-02-2025_17_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20218538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20218539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20218540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20218541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20218542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20218543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20218544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20218545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20218546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20218547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20218548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20218549, 'pht': 3726}}" where mtr_portfolio_id = 20218534 and dashboard_run_id = 1596238 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`=20218534 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775850, 0.04513547917510593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20218534_04-02-2025_17_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20218538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20218539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20218540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20218541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20218542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20218543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20218544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20218545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20218546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20218547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20218548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20218549, '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 = 20218946 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': 2546408, 'mtr_portfolio_id': 20218946, 'created_at': datetime.datetime(2025, 2, 4, 17, 50, 31), 'result': '0.03845835826924127', 'result_long': None, 'result_double': None}] Qualite : 0.03845835826924127 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20218946 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20218946_04-02-2025_17_50_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20218946 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_P20218946_04-02-2025_17_50_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20218979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20218980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20218981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20218982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20218983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20218984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20218985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20218986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20218987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20218988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20218989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20218990, 'pht': 3726}}" where mtr_portfolio_id = 20218946 and dashboard_run_id = 1596238 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`=20218946 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775851, 0.03845835826924127, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20218946_04-02-2025_17_50_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20218979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20218980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20218981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20218982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20218983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20218984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20218985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20218986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20218987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20218988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20218989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20218990, '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 = 20220417 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': 2546568, 'mtr_portfolio_id': 20220417, 'created_at': datetime.datetime(2025, 2, 4, 18, 16, 30), 'result': '0.020368892525314826', 'result_long': None, 'result_double': None}] Qualite : 0.020368892525314826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20220417 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20220417_04-02-2025_18_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20220417 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_P20220417_04-02-2025_18_16_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20220445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20220446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20220447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20220448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20220449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20220450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20220451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20220452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20220453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20220454, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20220455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20220456, 'pht': 3726}}" where mtr_portfolio_id = 20220417 and dashboard_run_id = 1596238 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`=20220417 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775852, 0.020368892525314826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20220417_04-02-2025_18_16_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20220445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20220446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20220447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20220448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20220449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20220450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20220451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20220452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20220453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20220454, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20220455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20220456, '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 = 20220809 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': 2546592, 'mtr_portfolio_id': 20220809, 'created_at': datetime.datetime(2025, 2, 4, 18, 32, 29), 'result': '0.05601854052192548', 'result_long': None, 'result_double': None}] Qualite : 0.05601854052192548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20220809 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20220809_04-02-2025_18_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20220809 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_P20220809_04-02-2025_18_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20220850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20220851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20220852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20220853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20220854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20220855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20220856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20220857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20220858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20220859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20220860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20220861, 'pht': 3726}}" where mtr_portfolio_id = 20220809 and dashboard_run_id = 1596238 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`=20220809 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775853, 0.05601854052192548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20220809_04-02-2025_18_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20220850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20220851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20220852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20220853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20220854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20220855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20220856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20220857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20220858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20220859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20220860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20220861, '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 = 20221425 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': 2546672, 'mtr_portfolio_id': 20221425, 'created_at': datetime.datetime(2025, 2, 4, 18, 49), 'result': '0.04940695978021586', 'result_long': None, 'result_double': None}] Qualite : 0.04940695978021586 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20221425 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20221425_04-02-2025_18_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20221425 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_P20221425_04-02-2025_18_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20221515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20221516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20221517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20221518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20221519, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20221520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20221521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20221522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20221523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20221524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20221525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20221526, 'pht': 3726}}" where mtr_portfolio_id = 20221425 and dashboard_run_id = 1596238 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`=20221425 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775854, 0.04940695978021586, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20221425_04-02-2025_18_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20221515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20221516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20221517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20221518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20221519, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20221520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20221521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20221522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20221523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20221524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20221525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20221526, '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 = 20222000 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': 2546739, 'mtr_portfolio_id': 20222000, 'created_at': datetime.datetime(2025, 2, 4, 19, 2, 59), 'result': '0.051020148178206416', 'result_long': None, 'result_double': None}] Qualite : 0.051020148178206416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20222000 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20222000_04-02-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20222000 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_P20222000_04-02-2025_19_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20222016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20222017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20222018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20222019, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20222020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20222021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20222022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20222023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20222024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20222025, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20222026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20222027, 'pht': 3726}}" where mtr_portfolio_id = 20222000 and dashboard_run_id = 1596238 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`=20222000 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775855, 0.051020148178206416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20222000_04-02-2025_19_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20222016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20222017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20222018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20222019, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20222020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20222021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20222022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20222023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20222024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20222025, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20222026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20222027, '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 = 20222746 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': 2546890, 'mtr_portfolio_id': 20222746, 'created_at': datetime.datetime(2025, 2, 4, 19, 16, 57), 'result': '0.06140528025411868', 'result_long': None, 'result_double': None}] Qualite : 0.06140528025411868 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20222746 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20222746_04-02-2025_19_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20222746 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_P20222746_04-02-2025_19_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20222815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20222816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20222817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20222818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20222819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20222820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20222821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20222822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20222823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20222824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20222825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20222826, 'pht': 3726}}" where mtr_portfolio_id = 20222746 and dashboard_run_id = 1596238 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`=20222746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775856, 0.06140528025411868, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20222746_04-02-2025_19_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20222815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20222816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20222817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20222818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20222819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20222820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20222821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20222822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20222823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20222824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20222825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20222826, '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 = 20223512 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': 2547017, 'mtr_portfolio_id': 20223512, 'created_at': datetime.datetime(2025, 2, 4, 19, 33), 'result': '0.04283688118345528', 'result_long': None, 'result_double': None}] Qualite : 0.04283688118345528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20223512 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20223512_04-02-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20223512 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_P20223512_04-02-2025_19_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20223568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20223569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20223570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20223571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20223572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20223573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20223574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20223575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20223576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20223577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20223578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20223579, 'pht': 3726}}" where mtr_portfolio_id = 20223512 and dashboard_run_id = 1596238 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`=20223512 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775857, 0.04283688118345528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20223512_04-02-2025_19_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20223568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20223569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20223570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20223571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20223572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20223573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20223574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20223575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20223576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20223577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20223578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20223579, '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 = 20224457 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': 2547090, 'mtr_portfolio_id': 20224457, 'created_at': datetime.datetime(2025, 2, 4, 19, 46, 56), 'result': '0.06538809418647462', 'result_long': None, 'result_double': None}] Qualite : 0.06538809418647462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20224457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20224457_04-02-2025_19_46_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20224457 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_P20224457_04-02-2025_19_46_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20224499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20224500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20224501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20224502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20224503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20224504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20224505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20224506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20224507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20224508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20224509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20224510, 'pht': 3726}}" where mtr_portfolio_id = 20224457 and dashboard_run_id = 1596238 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`=20224457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775858, 0.06538809418647462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20224457_04-02-2025_19_46_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20224499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20224500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20224501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20224502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20224503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20224504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20224505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20224506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20224507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20224508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20224509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20224510, '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 = 20225220 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': 2547139, 'mtr_portfolio_id': 20225220, 'created_at': datetime.datetime(2025, 2, 4, 20, 2, 58), 'result': '0.044674668040750154', 'result_long': None, 'result_double': None}] Qualite : 0.044674668040750154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20225220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20225220_04-02-2025_20_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20225220 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_P20225220_04-02-2025_20_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20225224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20225225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20225226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20225227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20225228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20225229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20225230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20225231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20225232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20225233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20225234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20225235, 'pht': 3726}}" where mtr_portfolio_id = 20225220 and dashboard_run_id = 1596238 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`=20225220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775859, 0.044674668040750154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20225220_04-02-2025_20_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20225224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20225225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20225226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20225227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20225228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20225229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20225230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20225231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20225232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20225233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20225234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20225235, '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 = 20225760 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': 2547196, 'mtr_portfolio_id': 20225760, 'created_at': datetime.datetime(2025, 2, 4, 20, 16, 57), 'result': '0.054689581535175', 'result_long': None, 'result_double': None}] Qualite : 0.054689581535175 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20225760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20225760_04-02-2025_20_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20225760 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_P20225760_04-02-2025_20_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20225769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20225770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20225771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20225772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20225773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20225774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20225775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20225776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20225777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20225778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20225779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20225780, 'pht': 3726}}" where mtr_portfolio_id = 20225760 and dashboard_run_id = 1596238 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`=20225760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775860, 0.054689581535175, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20225760_04-02-2025_20_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20225769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20225770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20225771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20225772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20225773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20225774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20225775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20225776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20225777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20225778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20225779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20225780, '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 = 20226944 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': 2547291, 'mtr_portfolio_id': 20226944, 'created_at': datetime.datetime(2025, 2, 4, 20, 32, 59), 'result': '0.04726836040860561', 'result_long': None, 'result_double': None}] Qualite : 0.04726836040860561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20226944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20226944_04-02-2025_20_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20226944 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_P20226944_04-02-2025_20_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20226951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20226952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20226953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20226954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20226955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20226956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20226957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20226958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20226959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20226960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20226961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20226962, 'pht': 3726}}" where mtr_portfolio_id = 20226944 and dashboard_run_id = 1596238 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`=20226944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775861, 0.04726836040860561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20226944_04-02-2025_20_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20226951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20226952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20226953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20226954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20226955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20226956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20226957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20226958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20226959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20226960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20226961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20226962, '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 = 20226990 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': 2547302, 'mtr_portfolio_id': 20226990, 'created_at': datetime.datetime(2025, 2, 4, 21, 3, 1), 'result': '0.04886923428151959', 'result_long': None, 'result_double': None}] Qualite : 0.04886923428151959 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20226990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20226990_04-02-2025_21_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20226990 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_P20226990_04-02-2025_21_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20226999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20227000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20227001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20227002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20227003, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20227004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20227005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20227006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20227007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20227008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20227009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20227010, 'pht': 3726}}" where mtr_portfolio_id = 20226990 and dashboard_run_id = 1596238 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`=20226990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775862, 0.04886923428151959, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20226990_04-02-2025_21_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20226999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20227000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20227001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20227002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20227003, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20227004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20227005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20227006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20227007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20227008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20227009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20227010, '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 = 20228358 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': 2547450, 'mtr_portfolio_id': 20228358, 'created_at': datetime.datetime(2025, 2, 4, 21, 46, 30), 'result': '0.07426422700914743', 'result_long': None, 'result_double': None}] Qualite : 0.07426422700914743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20228358 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20228358_04-02-2025_21_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20228358 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_P20228358_04-02-2025_21_46_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20228360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20228361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20228362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20228363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20228364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20228365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20228366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20228367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20228368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20228369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20228370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20228371, 'pht': 3726}}" where mtr_portfolio_id = 20228358 and dashboard_run_id = 1596238 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`=20228358 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775863, 0.07426422700914743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20228358_04-02-2025_21_46_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20228360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20228361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20228362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20228363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20228364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20228365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20228366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20228367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20228368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20228369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20228370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20228371, '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 = 20228641 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': 2547467, 'mtr_portfolio_id': 20228641, 'created_at': datetime.datetime(2025, 2, 4, 22, 3), 'result': '0.04859038435192075', 'result_long': None, 'result_double': None}] Qualite : 0.04859038435192075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20228641 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20228641_04-02-2025_22_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20228641 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_P20228641_04-02-2025_22_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20228645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20228646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20228647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20228648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20228649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20228650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20228651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20228652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20228653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20228654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20228655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20228656, 'pht': 3726}}" where mtr_portfolio_id = 20228641 and dashboard_run_id = 1596238 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`=20228641 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775864, 0.04859038435192075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20228641_04-02-2025_22_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20228645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20228646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20228647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20228648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20228649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20228650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20228651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20228652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20228653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20228654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20228655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20228656, '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 = 20229074 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': 2547560, 'mtr_portfolio_id': 20229074, 'created_at': datetime.datetime(2025, 2, 4, 22, 18, 58), 'result': '0.05440618296793001', 'result_long': None, 'result_double': None}] Qualite : 0.05440618296793001 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20229074 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20229074_04-02-2025_22_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20229074 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_P20229074_04-02-2025_22_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20229115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20229116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20229117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20229118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20229119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20229120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20229121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20229122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20229123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20229124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20229125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20229126, 'pht': 3726}}" where mtr_portfolio_id = 20229074 and dashboard_run_id = 1596238 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`=20229074 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775865, 0.05440618296793001, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20229074_04-02-2025_22_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20229115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20229116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20229117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20229118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20229119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20229120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20229121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20229122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20229123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20229124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20229125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20229126, '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 = 20229623 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': 2547635, 'mtr_portfolio_id': 20229623, 'created_at': datetime.datetime(2025, 2, 4, 22, 32, 59), 'result': '0.05637617296749027', 'result_long': None, 'result_double': None}] Qualite : 0.05637617296749027 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20229623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20229623_04-02-2025_22_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20229623 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_P20229623_04-02-2025_22_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20229631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20229632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20229633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20229634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20229635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20229636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20229637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20229638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20229639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20229640, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20229641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20229642, 'pht': 3726}}" where mtr_portfolio_id = 20229623 and dashboard_run_id = 1596238 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`=20229623 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775866, 0.05637617296749027, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20229623_04-02-2025_22_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20229631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20229632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20229633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20229634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20229635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20229636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20229637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20229638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20229639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20229640, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20229641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20229642, '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 = 20230358 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': 2547685, 'mtr_portfolio_id': 20230358, 'created_at': datetime.datetime(2025, 2, 4, 22, 49), 'result': '0.03557061406784582', 'result_long': None, 'result_double': None}] Qualite : 0.03557061406784582 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20230358 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20230358_04-02-2025_22_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20230358 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_P20230358_04-02-2025_22_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20230403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20230404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20230405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20230406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20230407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20230408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20230409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20230410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20230411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20230412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20230413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20230414, 'pht': 3726}}" where mtr_portfolio_id = 20230358 and dashboard_run_id = 1596238 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`=20230358 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775867, 0.03557061406784582, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20230358_04-02-2025_22_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20230403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20230404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20230405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20230406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20230407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20230408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20230409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20230410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20230411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20230412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20230413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20230414, '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 = 20231025 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': 2547759, 'mtr_portfolio_id': 20231025, 'created_at': datetime.datetime(2025, 2, 8, 10, 37, 6), 'result': '0.04954297956273841', 'result_long': None, 'result_double': None}] Qualite : 0.04954297956273841 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20231025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20231025_08-02-2025_10_37_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20231025 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_P20231025_08-02-2025_10_37_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20231034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20231035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20231036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20231037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20231038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20231039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20231040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20231041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20231042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20231043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20231044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20231045, 'pht': 3726}}" where mtr_portfolio_id = 20231025 and dashboard_run_id = 1596238 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`=20231025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8775868, 0.04954297956273841, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20231025_08-02-2025_10_37_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20231034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20231035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20231036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20231037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20231038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20231039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20231040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20231041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20231042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20231043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20231044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20231045, '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 = 20359619 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 = 20359619 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20359619 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20359619%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20359619 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 20359619 and dashboard_run_id = 1596238 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 = 20359620 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 = 20359620 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20359620 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20359620%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20359620 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 20359620 and dashboard_run_id = 1596238 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 = 20359621 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 = 20359621 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 = 20359621 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20359621 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 = 20359621 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 = 20359621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20359621_08-02-2025_10_35_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20359621 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_P20359621_08-02-2025_10_35_37.pdf'}" where mtr_portfolio_id = 20359621 and dashboard_run_id = 1596238 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20200617,20200932,20201187,20203010,20203352,20203720,20204389,20204996,20205929,20206399,20206709,20207132,20210404,20210620,20210882,20211089,20211676,20212336,20213225,20213877,20214615,20215220,20215739,20216292,20217004,20217792,20218534,20218946,20220417,20220809,20221425,20222000,20222746,20223512,20224457,20225220,20225760,20226944,20226990,20228358,20228641,20229074,20229623,20230358,20231025,20359619,20359620,20359621) result : ((1334473326,), (1334475174,), (1334475240,), (1334475242,), (1334475488,), (1334475520,), (1334475522,), (1334475853,), (1334475854,), (1334476101,), (1334478915,), (1334478992,), (1334479567,), (1334479660,), (1334479681,), (1334479683,), (1334479684,), (1334479785,), (1334479787,), (1334480237,), (1334480238,), (1334480241,), (1334480274,), (1334480276,), (1334480286,), (1334481238,), (1334481239,), (1334481273,), (1334481289,), (1334481902,), (1334481918,), (1334481945,), (1334482053,), (1334482055,), (1334482058,), (1334482062,), (1334482065,), (1334482099,), (1334482100,), (1334482103,), (1334482106,), (1334482261,), (1334482262,), (1334482266,), (1334482290,), (1334482310,), (1334482358,), (1334482359,), (1334482398,), (1334482401,), (1334482404,), (1334482407,), (1334482411,), (1334482468,), (1334482457,), (1334482458,), (1334482461,), (1334482685,), (1334482687,), (1334482691,), (1334482695,), (1334482720,), (1334482731,), (1334482738,), (1334483203,), (1334483209,), (1334483213,), (1334483215,), (1334483218,), (1334483254,), (1334483255,), (1334483391,), (1334483408,), (1334483410,), (1334483446,), (1334483449,), (1334483453,), (1334483786,), (1334483787,), (1334483790,), (1334483792,), (1334483844,), (1334483847,), (1334483851,), (1334483855,), (1334483858,), (1334483888,), (1334483891,), (1334483894,), (1334483954,), (1334484183,), (1334484289,), (1334484292,), (1334484295,), (1334484349,), (1334484351,), (1334484354,), (1334484357,), (1334484359,), (1334484363,), (1334484577,), (1334484581,), (1334484586,), (1334484590,), (1334484593,), (1334484622,), (1334484624,), (1334484627,), (1334484630,), (1334484924,), (1334484928,), (1334484934,), (1334484948,), (1334484955,), (1334484962,), (1334484964,), (1334484967,), (1334484988,), (1334495295,), (1334495652,), (1334495655,), (1334495658,), (1334495720,), (1334495725,), (1334495728,), (1334495731,), (1334495775,), (1334495803,), (1334495805,), (1334495839,), (1334495844,), (1334495848,), (1334495852,), (1334495858,), (1334495898,), (1334495913,), (1334495950,), (1334496937,), (1334496964,), (1334496969,), (1334496974,), (1334496978,), (1334497023,), (1334497025,), (1334497077,), (1334497413,), (1334497420,), (1334497423,), (1334497426,), (1334497430,), (1334497448,), (1334497451,), (1334497452,), (1334497456,), (1334497585,), (1334497625,), (1334497632,), (1334497636,), (1334497674,), (1334497677,), (1334497959,), (1334497962,), (1334497965,), (1334497968,), (1334497972,), (1334498137,), (1334498145,), (1334498152,), (1334498291,), (1334498273,), (1334498277,), (1334498282,), (1334498285,), (1334499055,), (1334499108,), (1334499251,), (1334499299,), (1334499633,), (1334499635,), (1334499638,), (1334499643,), (1334499645,), (1334499960,), (1334499964,), (1334500230,), (1334500238,), (1334500241,), (1334500244,), (1334500248,), (1334500566,), (1334500570,), (1334500572,), (1334500582,), (1334500662,), (1334500773,), (1334500776,), (1334500779,), (1334500782,), (1334500814,), (1334500819,), (1334500821,), (1334500922,), (1334500923,), (1334500925,), (1334500927,), (1334500929,), (1334500936,), (1334500985,), (1334500987,), (1334500990,), (1334500996,), (1334501001,), (1334501141,), (1334501150,), (1334501154,), (1334501157,), (1334501161,), (1334501247,), (1334501250,), (1334501254,), (1334501275,), (1334501354,), (1334501357,), (1334501360,), (1334501362,), (1334501365,), (1334501494,), (1334501500,), (1334501505,), (1334501665,), (1334501636,), (1334501638,), (1334501649,), (1334501660,), (1334501694,), (1334501698,), (1334501703,), (1334502611,), (1334502696,), (1334502781,), (1334502784,), (1334502790,), (1334502819,), (1334502821,), (1334502824,), (1334502828,), (1334502905,), (1334502973,), (1334503188,), (1334503194,), (1334503198,), (1334503201,), (1334503203,), (1334503447,), (1334503450,), (1334503455,), (1334503459,), (1334503462,), (1334504363,), (1334504427,), (1334504499,), (1334504586,), (1334504674,), (1334504679,), (1334504974,), (1334505036,), (1334505098,), (1334506051,), (1334506053,), (1334506063,), (1334506070,), (1334506083,), (1334506115,), (1334506602,), (1334506604,), (1334506609,), (1334506674,), (1334506678,), (1334506687,), (1334507058,), (1334507062,), (1334507066,), (1334507070,), (1334507615,), (1334507696,), (1334507780,), (1334507868,), (1334507951,), (1334507999,), (1334508254,), (1334508257,), (1334508275,), (1334508277,), (1334508298,), (1334508299,), (1334508714,), (1334508717,), (1334508803,), (1334509104,), (1334509106,), (1334509108,), (1334509458,), (1334509445,), (1334509446,), (1334509449,), (1334509452,), (1334509455,), (1334509785,), (1334509897,), (1334510037,), (1334510787,), (1334510788,), (1334510791,), (1334510794,), (1334510796,), (1334511153,), (1334511155,), (1334511180,), (1334511182,), (1334511419,), (1334511422,), (1334511427,), (1334511430,), (1334511431,), (1334511758,), (1334511760,), (1334511840,), (1334512520,), (1334512523,), (1334512527,), (1334512555,), (1334512755,), (1334512897,), (1334512901,), (1334512904,), (1334512908,), (1334512911,), (1334512916,), (1334513226,), (1334513256,), (1334513322,), (1334513662,), (1334513664,), (1334513675,), (1334513711,), (1334513763,), (1334513925,), (1334513928,), (1334513932,), (1334513934,), (1334513967,), (1334514216,), (1334514234,), (1334514259,), (1334514262,), (1334514266,), (1334514300,), (1334514302,), (1334514305,), (1334514309,), (1334514313,), (1334514579,), (1334514584,), (1334514588,), (1334514603,), (1334514609,), (1334514612,), (1334514685,), (1334514691,), (1334514696,), (1334514761,), (1334514742,), (1334514749,), (1334514758,), (1334514932,), (1334515013,), (1334515093,), (1334515160,), (1334515162,), (1334515426,), (1334515427,), (1334515430,), (1334515432,), (1334515464,), (1334515466,), (1334515469,), (1334515472,), (1334515475,), (1334515525,), (1334515527,), (1334515530,), (1334515534,), (1334515539,), (1334515624,), (1334517096,), (1334517297,), (1334517303,), (1334517308,), (1334517360,), (1334517956,), (1334517958,), (1334517973,), (1334517986,), (1334518031,), (1334518040,), (1334518043,), (1334518113,), (1334518117,), (1334518290,), (1334518293,), (1334518305,), (1334518308,), (1334518403,), (1334518411,), (1334518447,), (1334518451,), (1334518455,), (1334518460,), (1334518672,), (1334518676,), (1334518724,), (1334518733,), (1334518775,), (1334518777,), (1334518783,), (1334518789,), (1334518795,), (1334518848,), (1334518853,), (1334518858,), (1334518862,), (1334518866,), (1334518894,), (1334518897,), (1334518901,), (1334518905,), (1334518908,), (1334518933,), (1334518936,), (1334518940,), (1334519094,), (1334519099,), (1334519103,), (1334519108,), (1334519177,), (1334519540,), (1334519579,), (1334519583,), (1334519600,), (1334519793,), (1334520426,), (1334520435,), (1334520440,), (1334520446,), (1334520566,), (1334520548,), (1334520553,), (1334520558,), (1334520561,), (1334520593,), (1334520598,), (1334520603,), (1334520605,), (1334520631,), (1334520637,), (1334520639,), (1334520643,), (1334520649,), (1334520653,), (1334520685,), (1334520693,), (1334520703,), (1334520718,), (1334520725,), (1334520729,), (1334520779,), (1334520800,), (1334520888,), (1334521444,), (1334521447,), (1334521451,), (1334521455,), (1334521901,), (1334521903,), (1334521906,), (1334521940,), (1334522024,), (1334522275,), (1334522320,), (1334522325,), (1334522328,), (1334522332,), (1334522360,), (1334522362,), (1334522365,), (1334522424,), (1334522448,), (1334522451,), (1334522455,), (1334522484,), (1334522487,), (1334522490,), (1334522493,), (1334522497,), (1334522524,), (1334522528,), (1334522532,), (1334522536,), (1334522541,), (1334522622,), (1334522624,), (1334522628,), (1334522689,), (1334523163,), (1334523236,), (1334523244,), (1334523249,), (1334523564,), (1334523567,), (1334523586,), (1334523593,), (1334523598,), (1334523632,), (1334523626,), (1334523628,), (1334523656,), (1334523658,), (1334523662,), (1334523666,), (1334523669,), (1334523674,), (1334523711,), (1334523713,), (1334523716,), (1334523719,), (1334523721,), (1334523724,), (1334523744,), (1334523746,), (1334523805,), (1334523824,), (1334523827,), (1334523830,), (1334523832,), (1334523836,), (1334523858,), (1334524524,), (1334525299,), (1334525301,), (1334525823,), (1334525910,), (1334526002,), (1334526038,), (1334526842,), (1334526992,), (1334527116,), (1334527141,), (1334527210,), (1334527268,), (1334527435,), (1334527437,), (1334527439,), (1334527445,), (1334527837,), (1334527890,), (1334527893,), (1334527896,), (1334527898,), (1334527902,), (1334528115,), (1334528120,), (1334528123,), (1334528160,), (1334528164,), (1334528200,), (1334528205,), (1334528229,), (1334528350,), (1334528333,), (1334528335,), (1334528337,), (1334528340,), (1334528343,), (1334528611,), (1334528636,), (1334528665,), (1334528666,), (1334528668,), (1334528746,), (1334528747,), (1334528749,), (1334528751,), (1334528832,), (1334528834,), (1334532063,), (1334555047,), (1334555180,), (1334555396,), (1334555418,), (1334555424,), (1334555497,), (1334555499,), (1334555582,), (1334556681,), (1334556914,), (1334557792,), (1334558295,), (1334558430,), (1334558639,), (1334559058,), (1334559061,), (1334559099,), (1334559103,), (1334559121,), (1334559563,), (1334559565,), (1334559568,), (1334559571,), (1334559604,), (1334559609,), (1334559628,), (1334559636,), (1334559644,), (1334559720,), (1334559723,), (1334559736,), (1334559740,), (1334559743,), (1334559801,), (1334559806,), (1334559810,), (1334559819,), (1334559874,), (1334559875,), (1334559879,), (1334559880,), (1334559884,), (1334559903,), (1334559899,), (1334559942,), (1334559947,), (1334560223,), (1334560226,), (1334560347,), (1334560350,), (1334560354,), (1334560357,), (1334560362,), (1334560390,), (1334560394,), (1334560398,), (1334560400,), (1334560404,), (1334560416,), (1334560493,), (1334560497,), (1334560501,), (1334560505,), (1334560517,), (1334560563,), (1334560568,), (1334560574,), (1334560578,), (1334560637,), (1334560648,), (1334560739,), (1334560747,), (1334560751,), (1334560869,), (1334560891,), (1334560893,), (1334560896,), (1334560957,), (1334560975,), (1334561000,), (1334561002,), (1334561004,), (1334561006,), (1334561008,), (1334561271,), (1334561275,), (1334561278,), (1334561400,), (1334561410,), (1334561474,), (1334561476,), (1334561478,), (1334561485,), (1334561523,), (1334561525,), (1334561527,), (1334561529,), (1334561532,), (1334561534,), (1334561572,), (1334561567,), (1334561569,), (1334561624,), (1334561625,), (1334561768,), (1334561772,), (1334561775,), (1334561778,), (1334561783,), (1334561862,), (1334561866,), (1334561869,), (1334561872,), (1334562192,), (1334562195,), (1334562200,), (1334562435,), (1334562809,), (1334562852,), (1334562865,), (1334562898,), (1334562919,), (1334563016,), (1334563211,), (1334563246,), (1334563255,), (1334563257,), (1334563269,), (1334563451,), (1334563477,), (1334563481,), (1334563482,), (1334563486,), (1334563652,), (1334563654,), (1334563657,), (1334563659,), (1334563660,), (1334563663,), (1334564065,), (1334564068,), (1334564071,), (1334564124,), (1334564125,), (1334564143,), (1334564149,), (1334564159,), (1334564164,), (1334564284,), (1334564325,), (1334564347,), (1334564376,), (1334564395,), (1334564427,), (1334564523,), (1334564526,), (1334564528,), (1334564530,), (1334564689,), (1334564707,), (1334564813,), (1334564815,), (1334565086,), (1334565133,), (1334565135,), (1334565146,), (1334565156,), (1334565290,), (1334565247,), (1334565249,), (1334565255,), (1334565259,), (1334566096,), (1334566116,), (1334566118,), (1334566602,), (1334566718,), (1334566736,), (1334566739,), (1334566817,), (1334566821,), (1334566830,), (1334566834,), (1334566836,), (1334566840,), (1334566937,), (1334566939,), (1334567026,), (1334567028,), (1334567031,), (1334567275,), (1334567291,), (1334567299,), (1334567307,), (1334567313,), (1334567317,), (1334567406,), (1334567408,), (1334567412,), (1334567416,), (1334567494,), (1334567497,), (1334567503,), (1334567512,), (1334567521,), (1334567560,), (1334567614,), (1334567616,), (1334567618,), (1334567621,), (1334567629,), (1334567736,), (1334567740,), (1334567752,), (1334567759,), (1334567834,), (1334567893,), (1334567982,), (1334568060,), (1334568063,), (1334568205,), (1334568262,), (1334568266,), (1334568370,), (1334568372,), (1334568375,), (1334568377,), (1334568379,), (1334568382,), (1334568593,), (1334568592,), (1334568717,), (1334568719,), (1334568796,), (1334568865,), (1334568867,), (1334569265,), (1334569348,), (1334569365,), (1334569576,), (1334569716,), (1334569861,), (1334569869,), (1334569881,), (1334569882,), (1334569889,), (1334570126,), (1334570129,), (1334570141,), (1334570143,), (1334570229,), (1334570231,), (1334570234,), (1334570238,), (1334570240,), (1334570290,), (1334570293,), (1334570307,), (1334570310,), (1334570315,), (1334570468,), (1334570473,), (1334570490,), (1334570509,), (1334570709,), (1334570710,), (1334570712,), (1334570715,), (1334570719,), (1334570723,), (1334570808,), (1334570809,), (1334570811,), (1334570814,), (1334570818,), (1334570825,), (1334571192,), (1334571232,), (1334571260,), (1334571261,), (1334571414,), (1334571420,), (1334571427,), (1334571436,), (1334571457,), (1334571459,), (1334571462,), (1334571464,), (1334571467,), (1334571468,), (1334571473,), (1334571474,), (1334571478,), (1334571479,), (1334571516,), (1334571507,), (1334571509,), (1334571723,), (1334571729,), (1334571733,), (1334571738,), (1334571744,), (1334571749,), (1334571818,), (1334571820,), (1334571823,), (1334571827,), (1334571830,), (1334571855,), (1334571857,), (1334571861,), (1334571930,), (1334571932,), (1334571935,), (1334571938,), (1334571940,), (1334571944,), (1334572040,), (1334572047,), (1334572058,), (1334572076,), (1334572149,), (1334572314,), (1334572317,), (1334572320,), (1334573191,), (1334573193,), (1334573196,), (1334573201,), (1334573203,), (1334573210,), (1334573268,), (1334573270,), (1334573274,), (1334573460,), (1334573568,), (1334573655,), (1334573794,), (1334573796,), (1334573798,), (1334573839,), (1334573841,), (1334573845,), (1334573858,), (1334573868,), (1334573945,), (1334573947,), (1334573996,), (1334574000,), (1334574004,), (1334574099,), (1334574108,), (1334574288,), (1334574291,), (1334574294,), (1334574509,), (1334574416,), (1334574419,), (1334574422,), (1334574424,), (1334574436,), (1334574782,), (1334574784,), (1334574787,), (1334574789,), (1334574861,), (1334574863,), (1334574868,), (1334574873,), (1334574885,), (1334574909,), (1334574912,), (1334574916,), (1334574923,), (1334574928,), (1334574938,), (1334575445,), (1334575695,), (1334575697,), (1334575753,), (1334575776,), (1334576007,), (1334576116,), (1334576124,), (1334576218,), (1334576221,), (1334576310,), (1334576325,), (1334576330,), (1334576380,), (1334576383,), (1334576387,), (1334576392,), (1334576396,), (1334576422,), (1334576426,), (1334576430,), (1334576434,), (1334576455,), (1334576458,), (1334576460,), (1334576463,), (1334576526,), (1334576586,), (1334576590,), (1334576861,), (1334576895,), (1334576900,), (1334576942,), (1334577442,), (1334577516,), (1334577593,), (1334577670,), (1334577728,), (1334577813,), (1334578285,), (1334578287,), (1334578289,), (1334578441,), (1334578482,), (1334578548,), (1334578558,), (1334578788,), (1334578780,), (1334578783,), (1334578786,), (1334579031,), (1334579051,), (1334579054,), (1334579057,), (1334579058,), (1334579063,), (1334579088,), (1334579099,), (1334579105,), (1334579118,), (1334579121,), (1334579143,), (1334579271,), (1334579452,), (1334579454,), (1334579457,), (1334579460,), (1334579590,), (1334579592,), (1334579595,), (1334579600,), (1334579604,), (1334579610,), (1334579769,), (1334579776,), (1334579783,), (1334579795,), (1334579888,), (1334579893,), (1334579898,), (1334579903,), (1334579908,), (1334579915,), (1334580071,), (1334580236,), (1334580326,), (1334580408,), (1334580545,), (1334580903,), (1334580906,), (1334580909,), (1334580911,), (1334580945,), (1334581147,), (1334581167,), (1334581178,), (1334581339,), (1334581810,), (1334581814,), (1334581817,), (1334581820,), (1334581822,), (1334581883,), (1334581885,), (1334582423,), (1334582425,), (1334582428,), (1334582433,), (1334582466,), (1334582618,), (1334582584,), (1334582599,), (1334582603,), (1334582613,), (1334582879,), (1334582882,), (1334582886,), (1334582891,), (1334583280,), (1334583282,), (1334583285,), (1334583288,), (1334583295,), (1334583382,), (1334583384,), (1334583387,), (1334583391,), (1334583393,), (1334583398,), (1334583415,), (1334583420,), (1334583427,), (1334583429,), (1334583461,), (1334583465,), (1334583469,), (1334583473,), (1334583476,), (1334583480,), (1334583667,), (1334583670,), (1334583673,), (1334583675,), (1334583704,), (1334583706,), (1334583709,), (1334583712,), (1334583715,), (1334583718,), (1334583746,), (1334583748,), (1334583751,), (1334583754,), (1334583765,), (1334583779,), (1334583827,), (1334583839,), (1334583889,), (1334583940,), (1334583999,), (1334584030,), (1334584037,), (1334584287,), (1334584329,), (1334584334,), (1334584339,), (1334584349,), (1334584355,), (1334584373,), (1334584388,), (1334584392,), (1334584396,), (1334584413,), (1334584418,), (1334584424,), (1334584430,), (1334584445,), (1334584447,), (1334584451,), (1334584454,), (1334584493,), (1334584481,), (1334584483,), (1334584486,), (1334584489,), (1334584867,), (1334584870,), (1334584874,), (1334584878,), (1334584911,), (1334584913,), (1334584916,), (1334584919,), (1334584923,), (1334584926,), (1334584985,), (1334584989,), (1334584991,), (1334585043,), (1334585049,), (1334585052,), (1334585057,), (1334585061,), (1334585159,), (1334585245,), (1334585249,), (1334585253,), (1334585256,), (1334585262,), (1334585524,), (1334585568,), (1334585573,), (1334585862,), (1334585864,), (1334585924,), (1334585944,), (1334585951,), (1334585955,), (1334585960,), (1334587252,), (1334587324,), (1334587394,), (1334587402,), (1334587406,), (1334587445,), (1334587516,), (1334587518,), (1334587524,), (1334587527,), (1334587536,), (1334587564,), (1334587567,), (1334587570,), (1334587574,), (1334587615,), (1334587602,), (1334587604,), (1334587607,), (1334587610,), (1334587612,), (1334587827,), (1334587830,), (1334587833,), (1334587835,), (1334587887,), (1334587889,), (1334587894,), (1334587901,), (1334587908,), (1334587983,), (1334587985,), (1334587988,), (1334587991,), (1334588018,), (1334588024,), (1334588100,), (1334588104,), (1334588109,), (1334588113,), (1334588183,), (1334588185,), (1334588188,), (1334588595,), (1334588683,), (1334588686,), (1334588690,), (1334588750,), (1334588981,), (1334588984,), (1334588988,), (1334588991,), (1334589140,), (1334589143,), (1334589193,), (1334589196,), (1334589215,), (1334589291,), (1334589294,), (1334589298,), (1334590020,), (1334590091,), (1334590228,), (1334590233,), (1334590236,), (1334590451,), (1334590454,), (1334590457,), (1334590464,), (1334590568,), (1334590570,), (1334590572,), (1334590576,), (1334590578,), (1334590611,), (1334590613,), (1334590616,), (1334590619,), (1334590621,), (1334590643,), (1334590647,), (1334590650,), (1334590764,), (1334590710,), (1334590712,), (1334590714,), (1334590716,), (1334590755,), (1334590993,), (1334591034,), (1334591039,), (1334591043,), (1334591046,), (1334591052,), (1334591068,), (1334591070,), (1334591074,), (1334591097,), (1334591100,), (1334591103,), (1334591105,), (1334591108,), (1334591120,), (1334591159,), (1334591161,), (1334591165,), (1334591186,), (1334591234,), (1334591274,), (1334591549,), (1334591556,), (1334591617,), (1334591646,), (1334591655,), (1334591709,), (1334591713,), (1334591715,), (1334592467,), (1334592470,), (1334592605,), (1334592651,), (1334592665,), (1334592671,), (1334592793,), (1334592872,), (1334593051,), (1334593218,), (1334593223,), (1334593229,), (1334593234,), (1334593241,), (1334593707,), (1334593712,), (1334593718,), (1334593721,), (1334593723,), (1334593807,), (1334593855,), (1334593894,), (1334593977,), (1334594589,), (1334594657,), (1334594685,), (1334594693,), (1334594705,), (1334594838,), (1334595191,), (1334595002,), (1334595095,), (1334595141,), (1334595149,), (1334595155,), (1334595353,), (1334595408,), (1334595411,), (1334595414,), (1334595418,), (1334595422,), (1334595426,), (1334595510,), (1334595529,), (1334595535,), (1334595551,), (1334595559,), (1334595890,), (1334595892,), (1334595897,), (1334596236,), (1334596238,), (1334596242,), (1334596315,), (1334596318,), (1334596322,), (1334596383,), (1334596471,), (1334596563,), (1334596581,), (1334596583,), (1334596590,), (1334596783,), (1334596784,), (1334596786,), (1334596816,), (1334596817,), (1334596836,), (1334596838,), (1334596842,), (1334596843,), (1334596903,), (1334596912,), (1334596918,), (1334596936,), (1334597449,), (1334597451,), (1334597502,), (1334597879,), (1334597887,), (1334597893,), (1334597898,), (1334598091,), (1334598089,), (1334598479,), (1334598543,), (1334598600,), (1334598704,), (1334599226,), (1334599247,), (1334599279,), (1334599341,), (1334599359,), (1334599362,), (1334599640,), (1334599643,), (1334599654,), (1334599735,), (1334599800,), (1334599943,), (1334600013,), (1334600088,), (1334600291,), (1334600293,), (1334600296,), (1334600299,), (1334600302,), (1334600457,), (1334600461,), (1334600464,), (1334600526,), (1334600530,), (1334600539,), (1334600543,), (1334600551,), (1334600626,), (1334600627,), (1334600629,), (1334600630,), (1334600666,), (1334600670,), (1334600674,), (1334600677,), (1334600681,), (1334600712,), (1334600714,), (1334600719,), (1334600723,), (1334600759,), (1334600760,), (1334600762,), (1334600764,), (1334600843,), (1334600847,), (1334600852,), (1334600857,), (1334600861,), (1334600865,), (1334600929,), (1334600918,), (1334600920,), (1334600923,), (1334600925,), (1334600987,), (1334601017,), (1334601029,), (1334601081,), (1334601215,), (1334601218,), (1334601221,), (1334601222,), (1334601224,), (1334601251,), (1334602094,), (1334602139,), (1334602171,), (1334602175,), (1334602178,), (1334602181,), (1334602601,), (1334602641,), (1334602645,), (1334602829,), (1334602831,), (1334602835,), (1334602839,), (1334602840,), (1334602891,), (1334602902,), (1334602910,), (1334602913,), (1334602916,), (1334603272,), (1334603275,), (1334603277,), (1334603282,), (1334603425,), (1334603427,), (1334603432,), (1334603434,), (1334603438,), (1334603442,), (1334603478,), (1334603480,), (1334603485,), (1334603527,), (1334603536,), (1334603539,), (1334603541,), (1334603542,), (1334603546,), (1334603596,), (1334603616,), (1334603617,), (1334603619,), (1334603621,), (1334603637,), (1334603716,), (1334603718,), (1334603720,), (1334603722,), (1334603725,), (1334603812,), (1334603813,), (1334603815,), (1334603817,), (1334603818,), (1334603870,), (1334608502,), (1334609736,), (1334610185,), (1334610188,), (1334610191,), (1334610193,), (1334610289,), (1334610326,), (1334610330,), (1334610332,), (1334610336,), (1334610338,), (1334610760,), (1334612210,), (1334612260,), (1334612290,), (1334612421,), (1334612423,), (1334612426,), (1334612468,), (1334612471,), (1334612721,), (1334612755,), (1334612758,), (1334612760,), (1334612764,), (1334612842,), (1334612865,), (1334612877,), (1334612964,), (1334612967,), (1334612970,), (1334612972,), (1334612977,), (1334612984,), (1334613009,), (1334613014,), (1334613019,), (1334613022,), (1334613027,), (1334613056,), (1334613044,), (1334613047,), (1334613052,), (1334613264,), (1334613315,), (1334613324,), (1334613330,), (1334613334,), (1334613338,), (1334613372,), (1334613378,), (1334613382,), (1334613386,), (1334613501,), (1334613504,), (1334613507,), (1334613509,), (1334613513,), (1334613521,), (1334613576,), (1334613579,), (1334613582,), (1334613588,), (1334613634,), (1334614311,), (1334614314,), (1334614317,), (1334614767,), (1334614769,), (1334614771,), (1334614780,), (1334614860,), (1334614866,), (1334615301,), (1334615303,), (1334615360,), (1334615365,), (1334615369,), (1334615373,), (1334615510,), (1334615513,), (1334615515,), (1334615598,), (1334615600,), (1334615604,), (1334615608,), (1334615610,), (1334615613,), (1334615660,), (1334615673,), (1334615678,), (1334615683,), (1334616081,), (1334616114,), (1334616117,), (1334616121,), (1334616159,), (1334616208,), (1334616211,), (1334616215,), (1334616224,), (1334616228,), (1334616265,), (1334616283,), (1334616287,), (1334616289,), (1334616344,), (1334616361,), (1334616410,), (1334616401,), (1334616404,), (1334616407,), (1334616432,), (1334616435,), (1334616439,), (1334616440,), (1334616444,), (1334616758,), (1334616760,), (1334616771,), (1334616922,), (1334616924,), (1334616927,), (1334616934,), (1334616937,), (1334616939,), (1334617013,), (1334617014,), (1334617020,), (1334617021,), (1334617024,), (1334617027,), (1334617044,), (1334617046,), (1334617050,), (1334617376,), (1334617563,), (1334617752,), (1334617938,), (1334618075,), (1334618080,), (1334618084,), (1334618087,), (1334618091,), (1334618094,), (1334618291,), (1334618456,), (1334618537,), (1334618547,), (1334618554,), (1334618686,), (1334618688,), (1334618691,), (1334618724,), (1334618726,), (1334618730,), (1334618735,), (1334618739,), (1334618776,), (1334618946,), (1334618949,), (1334618952,), (1334618960,), (1334619014,), (1334619016,), (1334619020,), (1334619023,), (1334619028,), (1334619052,), (1334619057,), (1334619066,), (1334619135,), (1334619137,), (1334619146,), (1334619151,), (1334619225,), (1334619207,), (1334619208,), (1334619210,), (1334619212,), (1334619214,), (1334619524,), (1334619555,), (1334619557,), (1334619559,), (1334619614,), (1334619615,), (1334619780,), (1334619782,), (1334619784,), (1334619812,), (1334619815,), (1334619820,), (1334619823,), (1334619824,), (1334619831,), (1334620265,), (1334620281,), (1334620283,), (1334620587,), (1334620589,), (1334620592,), (1334620597,), (1334620598,), (1334620856,), (1334620859,), (1334620862,), (1334620863,), (1334620865,), (1334621351,), (1334621404,), (1334621425,), (1334621678,), (1334621681,), (1334621684,), (1334621739,), (1334621741,), (1334621744,), (1334621747,), (1334621749,), (1334621751,), (1334621785,), (1334621787,), (1334621790,), (1334621793,), (1334621825,), (1334621832,), (1334621919,), (1334621948,), (1334622010,), (1334622050,), (1334622174,), (1334622212,), (1334622228,), (1334622236,), (1334622239,), (1334622245,), (1334622314,), (1334622330,), (1334622335,), (1334622373,), (1334622384,), (1334622392,), (1334622396,), (1334622401,), (1334622447,), (1334622425,), (1334622432,), (1334622435,), (1334622440,), (1334622682,), (1334622711,), (1334623152,), (1334623166,), (1334623169,), (1334623172,), (1334623175,), (1334623177,), (1334623209,), (1334623212,), (1334623214,), (1334623216,), (1334623259,), (1334623261,), (1334623263,), (1334623264,), (1334623270,), (1334623275,), (1334623301,), (1334623307,), (1334623314,), (1334623317,), (1334623390,), (1334623447,), (1334623497,), (1334623573,), (1334623652,), (1334623660,), (1334623943,), (1334623944,), (1334623970,), (1334623972,), (1334624084,), (1334624092,), (1334624095,), (1334624097,), (1334624100,), (1334624103,), (1334624130,), (1334624145,), (1334624151,), (1334624160,), (1334624174,), (1334624281,), (1334624301,), (1334624322,), (1334624326,), (1334624329,), (1334624545,), (1334624579,), (1334624581,), (1334624591,), (1334624625,), (1334624628,), (1334624650,), (1334624651,), (1334624652,), (1334624713,), (1334624715,), (1334624718,), (1334624721,), (1334624723,), (1334624749,), (1334624803,), (1334624805,), (1334624808,), (1334624824,), (1334624832,), (1334624872,), (1334624947,), (1334624933,), (1334624935,), (1334624942,), (1334625084,), (1334625086,), (1334625089,), (1334625094,), (1334625107,), (1334625111,), (1334625157,), (1334625160,), (1334625344,), (1334625345,), (1334625983,), (1334625986,), (1334625994,), (1334626023,), (1334626287,), (1334626293,), (1334626299,), (1334626305,), (1334626306,), (1334626308,), (1334627460,), (1334627498,), (1334627595,), (1334627635,), (1334627696,), (1334627706,), (1334627880,), (1334627885,), (1334627889,), (1334628310,), (1334628313,), (1334628317,), (1334628320,), (1334628323,), (1334628362,), (1334628388,), (1334628390,), (1334628425,), (1334628429,), (1334628562,), (1334628564,), (1334628567,), (1334628570,), (1334628615,), (1334628620,), (1334628628,), (1334628629,), (1334628634,), (1334628636,), (1334629010,), (1334629076,), (1334629143,), (1334629188,), (1334629572,), (1334629588,), (1334629650,), (1334629713,), (1334629760,), (1334629763,), (1334630006,), (1334630077,), (1334630089,), (1334630111,), (1334630221,), (1334630202,), (1334630204,), (1334630206,), (1334630212,), (1334630218,), (1334630349,), (1334630402,), (1334630407,), (1334630829,), (1334630861,), (1334630864,), (1334630866,), (1334630867,), (1334630869,), (1334630980,), (1334630983,), (1334630987,), (1334630990,), (1334630993,), (1334631057,), (1334631062,), (1334631067,), (1334631072,), (1334631075,), (1334631092,), (1334631096,), (1334631099,), (1334631103,), (1334631107,), (1334631112,), (1334631364,), (1334631435,), (1334631447,), (1334631700,), (1334631702,), (1334631751,), (1334631754,), (1334631757,), (1334631761,), (1334631950,), (1334631953,), (1334631971,), (1334632029,), (1334632093,), (1334632095,), (1334632098,), (1334632101,), (1334632103,), (1334632106,), (1334632136,), (1334632145,), (1334632149,), (1334632152,), (1334632155,), (1334632157,), (1334632185,), (1334632188,), (1334632190,), (1334632193,), (1334632280,), (1334632290,), (1334632292,), (1334632296,), (1334632303,), (1334632335,), (1334632354,), (1334632362,), (1334632364,), (1334632368,), (1334632851,), (1334632929,), (1334632908,), (1334632912,), (1334632915,), (1334633177,), (1334633184,), (1334633191,), (1334633197,), (1334633200,), (1334633202,), (1334633297,), (1334633312,), (1334633376,), (1334633380,), (1334633384,), (1334633467,), (1334633469,), (1334633473,), (1334633587,), (1334633590,), (1334633622,), (1334633625,), (1334633629,), (1334633648,), (1334633652,), (1334633660,), (1334633665,), (1334633670,), (1334633673,), (1334633691,), (1334633694,), (1334633697,), (1334633721,), (1334633723,), (1334633727,), (1334633728,), (1334633733,), (1334633741,), (1334633770,), (1334633772,), (1334633776,), (1334633779,), (1334633781,), (1334633783,), (1334634600,), (1334634602,), (1334634605,), (1334634671,), (1334634673,), (1334634676,), (1334634680,), (1334634684,), (1334635302,), (1334635304,), (1334635308,), (1334635316,), (1334635319,), (1334635322,), (1334636196,), (1334636291,), (1334636374,), (1334636450,), (1334638336,), (1334638402,), (1334638446,), (1334638450,), (1334638481,), (1334638540,), (1334638721,), (1334638725,), (1334638730,), (1334638734,), (1334638738,), (1334638764,), (1334638744,), (1334638746,), (1334639302,), (1334639340,), (1334639341,), (1334639343,), (1334639348,), (1334639356,), (1334639389,), (1334639390,), (1334639401,), (1334639404,), (1334639411,), (1334639487,), (1334639489,), (1334639492,), (1334639494,), (1334639521,), (1334639523,), (1334639525,), (1334639528,), (1334639530,), (1334639532,), (1334639589,), (1334639591,), (1334639601,), (1334639606,), (1334639609,), (1334639615,), (1334639958,), (1334640139,), (1334640240,), (1334640895,), (1334640942,), (1334640945,), (1334640952,), (1334640960,), (1334640968,), (1334641341,), (1334641344,), (1334641346,), (1334641349,), (1334641352,), (1334641354,), (1334641414,), (1334641416,), (1334641427,), (1334641432,), (1334641516,), (1334641522,), (1334641524,), (1334641527,), (1334641529,), (1334641566,), (1334641784,), (1334641792,), (1334641835,), (1334641849,), (1334641867,), (1334641965,), (1334641967,), (1334641979,), (1334641982,), (1334642014,), (1334642015,), (1334642023,), (1334642025,), (1334642027,), (1334642032,), (1334642054,), (1334642056,), (1334642060,), (1334642065,), (1334642112,), (1334642107,), (1334642484,), (1334643211,), (1334644547,), (1334644854,), (1334644891,), (1334644893,), (1334644911,), (1334644912,), (1334644914,), (1334645013,), (1334644966,), (1334644968,), (1334645011,), (1334645075,), (1334645115,), (1334645116,), (1334645118,), (1334645120,), (1334645164,), (1334645169,), (1334645171,), (1334645183,), (1334645218,), (1334645220,), (1334645225,), (1334645229,), (1334645232,), (1334645447,), (1334645495,), (1334645499,), (1334645502,), (1334645504,), (1334645667,), (1334645677,), (1334645680,), (1334645684,), (1334645821,), (1334645860,), (1334645889,), (1334645923,), (1334645926,), (1334646053,), (1334646056,), (1334646062,), (1334646065,), (1334647676,), (1334654962,), (1334663083,), (1334663542,), (1334664208,), (1334664460,), (1334664537,), (1334664616,), (1334664692,), (1334665797,), (1334665799,), (1334666052,), (1334666073,), (1334666244,), (1334666569,), (1334667138,), (1334667140,), (1334667161,), (1334667159,), (1334667398,), (1334667536,), (1334667574,), (1334667754,), (1334667854,), (1334667903,), (1334667906,), (1334667909,), (1334667995,), (1334668002,), (1334668005,), (1334668046,), (1334668073,), (1334668197,), (1334668213,), (1334668216,), (1334668219,), (1334668341,), (1334668484,), (1334668487,), (1334668497,), (1334668504,), (1334668509,), (1334668911,), (1334668933,), (1334668935,), (1334668937,), (1334669207,), (1334669222,), (1334669296,), (1334669299,), (1334669384,), (1334669390,), (1334669393,), (1334669395,), (1334669397,), (1334669445,), (1334669446,), (1334669449,), (1334669453,), (1334669463,), (1334669741,), (1334669799,), (1334669802,), (1334669826,), (1334669865,), (1334669866,), (1334669868,), (1334669918,), (1334669919,), (1334669930,), (1334670091,), (1334670098,), (1334670105,), (1334670108,), (1334670113,), (1334670117,), (1334670130,), (1334670135,), (1334670177,), (1334670166,), (1334670167,), (1334670173,), (1334670175,), (1334670429,), (1334670430,), (1334670467,), (1334670469,), (1334670470,), (1334670491,), (1334670492,), (1334670494,), (1334670496,), (1334670498,), (1334670512,), (1334670513,), (1334670515,), (1334670517,), (1334670536,), (1334670537,), (1334670539,), (1334670541,), (1334670543,), (1334670570,), (1334670571,), (1334670600,), (1334670614,), (1334670616,), (1334670618,), (1334670863,), (1334670866,), (1334670901,), (1334670902,), (1334671021,), (1334671022,), (1334671025,), (1334671027,), (1334671029,), (1334671030,), (1334671048,), (1334671049,), (1334671051,), (1334671054,), (1334671056,), (1334671059,), (1334671138,), (1334671139,), (1334671141,), (1334671166,), (1334671168,), (1334671170,), (1334671172,), (1334671175,), (1334671178,), (1334671392,), (1334671440,), (1334671446,), (1334671475,), (1334671495,), (1334671546,), (1334671548,), (1334671550,), (1334671561,), (1334671618,), (1334671619,), (1334671622,), (1334671625,), (1334671628,), (1334671637,), (1334671758,), (1334671760,), (1334671777,), (1334671799,), (1334671968,), (1334671902,), (1334671903,), (1334671905,), (1334671907,), (1334671908,), (1334672179,), (1334672180,), (1334672182,), (1334672236,), (1334672351,), (1334673244,), (1334673252,), (1334673273,), (1334673276,), (1334673278,), (1334673612,), (1334673613,), (1334673615,), (1334673617,), (1334673618,), (1334673650,), (1334673652,), (1334673654,), (1334673749,), (1334673751,), (1334673754,), (1334673759,), (1334673790,), (1334673801,), (1334673850,), (1334673852,), (1334673856,), (1334674405,), (1334674408,), (1334674495,), (1334674502,), (1334674526,), (1334674619,), (1334674622,), (1334674626,), (1334674629,), (1334674633,), (1334674637,), (1334674682,), (1334674683,), (1334674717,), (1334674722,), (1334674725,), (1334674734,), (1334674735,), (1334674741,), (1334674984,), (1334674985,), (1334675025,), (1334675027,), (1334675029,), (1334675031,), (1334675052,), (1334675062,), (1334675066,), (1334675082,), (1334675092,), (1334675154,), (1334675155,), (1334675161,), (1334675165,), (1334675167,), (1334675188,), (1334675190,), (1334675220,), (1334675236,), (1334675325,), (1334675306,), (1334675308,), (1334675311,), (1334675313,), (1334675557,), (1334675559,), (1334675591,), (1334675594,), (1334675629,), (1334676024,), (1334676025,), (1334676048,), (1334676051,), (1334676149,), (1334676150,), (1334676152,), (1334676154,), (1334676195,), (1334676226,), (1334676229,), (1334676232,), (1334676237,), (1334676244,), (1334676259,), (1334676300,), (1334676307,), (1334676311,), (1334676357,), (1334676382,), (1334676433,), (1334676436,), (1334676439,), (1334676443,), (1334676507,), (1334676534,), (1334676538,), (1334676551,), (1334676552,), (1334676623,), (1334676660,), (1334676662,), (1334676663,), (1334677301,), (1334677303,), (1334677306,), (1334677309,), (1334677311,), (1334677313,), (1334677530,), (1334677533,), (1334677554,), (1334677659,), (1334677869,), (1334677872,), (1334677879,), (1334677887,), (1334677889,), (1334677916,), (1334677917,), (1334677920,), (1334677922,), (1334677923,), (1334677924,), (1334677983,), (1334677985,), (1334677987,), (1334678075,), (1334678078,), (1334678080,), (1334678084,), (1334678086,), (1334678089,), (1334678971,), (1334678660,), (1334678938,), (1334678948,), (1334678952,), (1334678966,), (1334679053,), (1334679132,), (1334679220,), (1334679298,), (1334680574,), (1334680575,), (1334680581,), (1334680721,), (1334680723,), (1334680727,), (1334680853,), (1334680854,), (1334680856,), (1334680858,), (1334680912,), (1334680988,), (1334680989,), (1334680991,), (1334680993,), (1334682223,), (1334682273,), (1334682340,), (1334682362,), (1334682366,), (1334682371,), (1334682862,), (1334682904,), (1334682967,), (1334682979,), (1334682982,), (1334683111,), (1334683113,), (1334683117,), (1334683121,), (1334683123,), (1334683160,), (1334683162,), (1334683164,), (1334683167,), (1334683185,), (1334683187,), (1334683190,), (1334683193,), (1334683196,), (1334683683,), (1334683685,), (1334683710,), (1334684262,), (1334684332,), (1334684336,), (1334749387,), (1334749388,), (1334749389,), (1334732166,), (1334732169,), (1334732172,), (1334732223,), (1334732306,), (1334732391,), (1334732674,), (1334732689,), (1334732712,), (1334732773,), (1334732783,), (1334732785,), (1334732831,), (1334732834,), (1334732837,), (1334732902,), (1334732919,), (1334732921,), (1334732927,), (1334732930,), (1334732932,), (1334732935,), (1334732938,), (1334732939,), (1334732969,), (1334732970,), (1334732973,), (1334732975,), (1334732978,), (1334739571,), (1334739620,), (1334739622,), (1334739624,), (1334746165,), (1334746171,), (1334746172,), (1334746173,), (1334746174,), (1334746175,), (1334746209,), (1334746214,), (1334746220,), (1334746262,), (1334746263,), (1334746264,), (1334746309,), (1334746313,), (1334746314,), (1334746315,), (1334746316,), (1334746318,), (1334747186,), (1334747187,), (1334747188,), (1334747190,), (1334747191,), (1334747193,), (1334747194,), (1334747196,), (1334747197,), (1334747199,), (1334747200,), (1334747202,), (1334747476,), (1334747479,), (1334747505,), (1334747513,), (1334747514,), (1334747515,), (1334747547,), (1334747550,), (1334747551,), (1334747560,), (1334747574,), (1334747581,), (1334747634,), (1334747636,), (1334747637,), (1334747677,), (1334732940,), (1334732943,), (1334732952,), (1334732956,), (1334732960,), (1334732963,), (1334732968,), (1334733028,), (1334733029,), (1334733031,), (1334733032,), (1334733034,), (1334733035,), (1334733037,), (1334733039,), (1334733047,), (1334733049,), (1334733051,), (1334733052,), (1334733066,), (1334733079,), (1334733081,), (1334733083,), (1334733089,), (1334733092,), (1334733104,), (1334733106,), (1334733107,), (1334733108,), (1334733109,), (1334733110,), (1334737274,), (1334737314,), (1334737317,), (1334737362,), (1334737364,), (1334737365,), (1334737367,), (1334737368,), (1334737369,), (1334737580,), (1334737584,), (1334737587,), (1334737589,), (1334737591,), (1334737593,), (1334737775,), (1334737795,), (1334737826,), (1334737895,), (1334738038,), (1334738070,), (1334739044,), (1334739064,), (1334739115,), (1334739227,), (1334739232,), (1334739252,), (1334739307,), (1334739360,), (1334739394,), (1334739424,), (1334739427,), (1334739434,), (1334739462,), (1334739502,), (1334731850,), (1334731857,), (1334733172,), (1334733174,), (1334733187,), (1334733189,), (1334733198,), (1334733201,), (1334733244,), (1334733246,), (1334733258,), (1334733289,), (1334733292,), (1334733295,), (1334733313,), (1334733323,), (1334733324,), (1334733325,), (1334733326,), (1334733330,), (1334733708,), (1334733711,), (1334733714,), (1334733775,), (1334733948,), (1334734190,), (1334735055,), (1334735191,), (1334735343,), (1334735405,), (1334735474,), (1334735546,), (1334735927,), (1334736007,), (1334736113,), (1334736222,), (1334736286,), (1334736351,), (1334736672,), (1334736700,), (1334736701,), (1334736760,), (1334736810,), (1334736813,), (1334736858,), (1334736861,), (1334736866,), (1334736910,), (1334736913,), (1334736915,), (1334737056,), (1334737133,), (1334737203,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04022025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20231025]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1334749389, 1334749388, 1334749387] map_info['map_portfolio_photo'] : {20231025: [1334749389, 1334749388, 1334749387, 1334684336, 1334684332, 1334684262, 1334683710, 1334683685, 1334683683, 1334683196, 1334683193, 1334683190, 1334683187, 1334683185, 1334683167, 1334683164, 1334683162, 1334683160, 1334683123, 1334683121, 1334683117, 1334683113, 1334683111, 1334682982, 1334682979, 1334682967, 1334682904, 1334682862, 1334682371, 1334682366, 1334682362, 1334682340, 1334682273, 1334682223, 1334680993, 1334680991, 1334680989, 1334680988, 1334680912, 1334680858, 1334680856, 1334680854, 1334680853, 1334680727, 1334680723, 1334680721, 1334680581, 1334680575, 1334680574, 1334679298, 1334679220, 1334679132, 1334679053, 1334678966, 1334678952, 1334678948, 1334678938, 1334678660]} final : True mtd_id 4302 list_pids : [1334749389, 1334749388, 1334749387] Looping around the photos to save general results len do output : 1 /20231025Didn'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, '2547759') ('4302', '20231025', '1334749389', None, None, None, None, None, '2547759') ('4302', None, None, None, None, None, None, None, '2547759') ('4302', '20231025', '1334749388', None, None, None, None, None, '2547759') ('4302', None, None, None, None, None, None, None, '2547759') ('4302', '20231025', '1334749387', None, None, None, None, None, '2547759') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '20231025', 'None', None, None, None, None, '2547759'), ('4302', '20231025', '1334749389', None, None, None, None, None, '2547759'), ('4302', '20231025', '1334749388', None, None, None, None, None, '2547759'), ('4302', '20231025', '1334749387', None, None, None, None, None, '2547759')] time used for this insertion : 0.01454615592956543 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.734289646148682 time spend to save output : 0.014757633209228516 total time spend for step 5 : 4.74904727935791 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 (2547759) 2.24user 2.75system 0:29.32elapsed 17%CPU (0avgtext+0avgdata 161508maxresident)k 73184inputs+15136outputs (291major+74337minor)pagefaults 0swaps