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 : 2319604 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 (2558165) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2558165) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20287908 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2558165'] with mtr_portfolio_ids : ['20287908'] and first list_photo_ids : [] new path : /proc/2319604/ Name: python3 Umask: 0002 State: R (running) Tgid: 2319604 Ngid: 0 Pid: 2319604 PPid: 2319603 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2319604 NSpid: 2319604 NSpgid: 2318009 NSsid: 2318009 VmPeak: 1106924 kB VmSize: 1106924 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98320 kB VmRSS: 98320 kB RssAnon: 59752 kB RssFile: 38568 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 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: 68 nonvoluntary_ctxt_switches: 124 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2319604', 'Ngid': '0', 'Pid': '2319604', 'PPid': '2319603', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2319604', 'NSpid': '2319604', 'NSpgid': '2318009', 'NSsid': '2318009', 'VmPeak': '1106924 kB', 'VmSize': '1106924 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98320 kB', 'VmRSS': '98320 kB', 'RssAnon': '59752 kB', 'RssFile': '38568 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '68', 'nonvoluntary_ctxt_switches': '124'} ('datou_batch_current', '2319604', '1106924', '0', '1106924', '865676', '98320', b'', 'marlene', '2558165') 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 (20287908) 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 (2558165 ) ) 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 (20287908) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1334739036, 'portfolio_id': 20287908}, {'photo_id': 1334739035, 'portfolio_id': 20287908}, {'photo_id': 1334739034, 'portfolio_id': 20287908}, {'photo_id': 1334739032, 'portfolio_id': 20287908}, {'photo_id': 1334738756, 'portfolio_id': 20287908}, {'photo_id': 1334738692, 'portfolio_id': 20287908}, {'photo_id': 1334738615, 'portfolio_id': 20287908}, {'photo_id': 1334738534, 'portfolio_id': 20287908}, {'photo_id': 1334738488, 'portfolio_id': 20287908}, {'photo_id': 1334738487, 'portfolio_id': 20287908}, {'photo_id': 1334738485, 'portfolio_id': 20287908}, {'photo_id': 1334738483, 'portfolio_id': 20287908}, {'photo_id': 1334738433, 'portfolio_id': 20287908}, {'photo_id': 1334738425, 'portfolio_id': 20287908}, {'photo_id': 1334738421, 'portfolio_id': 20287908}, {'photo_id': 1334738418, 'portfolio_id': 20287908}, {'photo_id': 1334738415, 'portfolio_id': 20287908}, {'photo_id': 1334738412, 'portfolio_id': 20287908}, {'photo_id': 1334738384, 'portfolio_id': 20287908}, {'photo_id': 1334738383, 'portfolio_id': 20287908}, {'photo_id': 1334738381, 'portfolio_id': 20287908}, {'photo_id': 1334738379, 'portfolio_id': 20287908}, {'photo_id': 1334738369, 'portfolio_id': 20287908}, {'photo_id': 1334738348, 'portfolio_id': 20287908}, {'photo_id': 1334738346, 'portfolio_id': 20287908}, {'photo_id': 1334738343, 'portfolio_id': 20287908}, {'photo_id': 1334738342, 'portfolio_id': 20287908}, {'photo_id': 1334738341, 'portfolio_id': 20287908}, {'photo_id': 1334738290, 'portfolio_id': 20287908}, {'photo_id': 1334738288, 'portfolio_id': 20287908}, {'photo_id': 1334738286, 'portfolio_id': 20287908}, {'photo_id': 1334738282, 'portfolio_id': 20287908}, {'photo_id': 1334738270, 'portfolio_id': 20287908}, {'photo_id': 1334738242, 'portfolio_id': 20287908}, {'photo_id': 1334731970, 'portfolio_id': 20287908}] map_portfolio_id_photo_id: {20287908: [1334739036, 1334739035, 1334739034, 1334739032, 1334738756, 1334738692, 1334738615, 1334738534, 1334738488, 1334738487, 1334738485, 1334738483, 1334738433, 1334738425, 1334738421, 1334738418, 1334738415, 1334738412, 1334738384, 1334738383, 1334738381, 1334738379, 1334738369, 1334738348, 1334738346, 1334738343, 1334738342, 1334738341, 1334738290, 1334738288, 1334738286, 1334738282, 1334738270, 1334738242, 1334731970]} ##### 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.015522956848144531 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Feb 6 06:05:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20287908) 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 : 20287908 get user id for portfolio 20287908 get sub ptf for main ptf 20287908, type 3726 and hashtags ['autre_refus', 'Teint_Dans_La_Masse', 'metal', 'Carton_gris', 'environnement', 'Carton_brun', 'papier', 'mal_croppe', 'flou', 'cartonnette', 'plastique', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20287908 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','metal','Carton_gris','environnement','Carton_brun','papier','mal_croppe','flou','cartonnette','plastique','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20287908 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','metal','Carton_gris','environnement','Carton_brun','papier','mal_croppe','flou','cartonnette','plastique','kraft')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_3726_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_3726_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[20287908, 20288302, 3726, 0.5, 2107752406, 979], [20287908, 20288303, 3726, 0.5, 2107752385, 979], [20287908, 20288304, 3726, 0.5, 492628673, 979], [20287908, 20288305, 3726, 0.5, 2107753020, 979], [20287908, 20288306, 3726, 0.5, 493012381, 979], [20287908, 20288307, 3726, 0.5, 2107753024, 979], [20287908, 20288308, 3726, 0.5, 492668766, 979], [20287908, 20288309, 3726, 0.5, 2107755527, 979], [20287908, 20288310, 3726, 0.5, 492777938, 979], [20287908, 20288311, 3726, 0.5, 702398920, 979], [20287908, 20288312, 3726, 0.5, 492725882, 979], [20287908, 20288313, 3726, 0.5, 493202403, 979]] 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`=20287908 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','metal','Carton_gris','environnement','Carton_brun','papier','mal_croppe','flou','cartonnette','plastique','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20287908 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','metal','Carton_gris','environnement','Carton_brun','papier','mal_croppe','flou','cartonnette','plastique','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 20287908, 'sub_port_id': 20288302, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979554, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 5, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20287908, 'sub_port_id': 20288303, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979555, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 5, 59)}, 'metal': {'main_port_id': 20287908, 'sub_port_id': 20288304, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979556, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 5, 59)}, 'Carton_gris': {'main_port_id': 20287908, 'sub_port_id': 20288305, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979557, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 5, 59)}, 'environnement': {'main_port_id': 20287908, 'sub_port_id': 20288306, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979558, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 5, 59)}, 'Carton_brun': {'main_port_id': 20287908, 'sub_port_id': 20288307, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979559, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 5, 59)}, 'papier': {'main_port_id': 20287908, 'sub_port_id': 20288308, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979560, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 5, 59)}, 'mal_croppe': {'main_port_id': 20287908, 'sub_port_id': 20288309, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979561, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 5, 59)}, 'flou': {'main_port_id': 20287908, 'sub_port_id': 20288310, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979562, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 5, 59)}, 'cartonnette': {'main_port_id': 20287908, 'sub_port_id': 20288311, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979563, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 5, 59)}, 'plastique': {'main_port_id': 20287908, 'sub_port_id': 20288312, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979564, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 5, 59)}, 'kraft': {'main_port_id': 20287908, 'sub_port_id': 20288313, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979565, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 5, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20288302 , 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=20287908 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 (20288302) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20287908) result : ((1334731970,), (1334738242,), (1334738270,), (1334738282,), (1334738286,), (1334738288,), (1334738290,), (1334738341,), (1334738342,), (1334738343,), (1334738346,), (1334738348,), (1334738369,), (1334738379,), (1334738381,), (1334738383,), (1334738384,), (1334738412,), (1334738415,), (1334738418,), (1334738421,), (1334738425,), (1334738433,), (1334738483,), (1334738485,), (1334738487,), (1334738488,), (1334738534,), (1334738615,), (1334738692,), (1334738756,), (1334739032,), (1334739034,), (1334739035,), (1334739036,)) 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 20288303 , 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=20287908 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 (20288303) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20287908) result : ((1334731970,), (1334738242,), (1334738270,), (1334738282,), (1334738286,), (1334738288,), (1334738290,), (1334738341,), (1334738342,), (1334738343,), (1334738346,), (1334738348,), (1334738369,), (1334738379,), (1334738381,), (1334738383,), (1334738384,), (1334738412,), (1334738415,), (1334738418,), (1334738421,), (1334738425,), (1334738433,), (1334738483,), (1334738485,), (1334738487,), (1334738488,), (1334738534,), (1334738615,), (1334738692,), (1334738756,), (1334739032,), (1334739034,), (1334739035,), (1334739036,)) 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 20288304 , 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=20287908 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 (20288304) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20287908) result : ((1334731970,), (1334738242,), (1334738270,), (1334738282,), (1334738286,), (1334738288,), (1334738290,), (1334738341,), (1334738342,), (1334738343,), (1334738346,), (1334738348,), (1334738369,), (1334738379,), (1334738381,), (1334738383,), (1334738384,), (1334738412,), (1334738415,), (1334738418,), (1334738421,), (1334738425,), (1334738433,), (1334738483,), (1334738485,), (1334738487,), (1334738488,), (1334738534,), (1334738615,), (1334738692,), (1334738756,), (1334739032,), (1334739034,), (1334739035,), (1334739036,)) 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 20288305 , 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=20287908 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 (20288305) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20287908) result : ((1334731970,), (1334738242,), (1334738270,), (1334738282,), (1334738286,), (1334738288,), (1334738290,), (1334738341,), (1334738342,), (1334738343,), (1334738346,), (1334738348,), (1334738369,), (1334738379,), (1334738381,), (1334738383,), (1334738384,), (1334738412,), (1334738415,), (1334738418,), (1334738421,), (1334738425,), (1334738433,), (1334738483,), (1334738485,), (1334738487,), (1334738488,), (1334738534,), (1334738615,), (1334738692,), (1334738756,), (1334739032,), (1334739034,), (1334739035,), (1334739036,)) 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 20288306 , 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=20287908 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 (20288306) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20287908) result : ((1334731970,), (1334738242,), (1334738270,), (1334738282,), (1334738286,), (1334738288,), (1334738290,), (1334738341,), (1334738342,), (1334738343,), (1334738346,), (1334738348,), (1334738369,), (1334738379,), (1334738381,), (1334738383,), (1334738384,), (1334738412,), (1334738415,), (1334738418,), (1334738421,), (1334738425,), (1334738433,), (1334738483,), (1334738485,), (1334738487,), (1334738488,), (1334738534,), (1334738615,), (1334738692,), (1334738756,), (1334739032,), (1334739034,), (1334739035,), (1334739036,)) 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 20288307 , 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=20287908 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 (20288307) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20287908) result : ((1334731970,), (1334738242,), (1334738270,), (1334738282,), (1334738286,), (1334738288,), (1334738290,), (1334738341,), (1334738342,), (1334738343,), (1334738346,), (1334738348,), (1334738369,), (1334738379,), (1334738381,), (1334738383,), (1334738384,), (1334738412,), (1334738415,), (1334738418,), (1334738421,), (1334738425,), (1334738433,), (1334738483,), (1334738485,), (1334738487,), (1334738488,), (1334738534,), (1334738615,), (1334738692,), (1334738756,), (1334739032,), (1334739034,), (1334739035,), (1334739036,)) 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 20288308 , 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=20287908 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 (20288308) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20287908) result : ((1334731970,), (1334738242,), (1334738270,), (1334738282,), (1334738286,), (1334738288,), (1334738290,), (1334738341,), (1334738342,), (1334738343,), (1334738346,), (1334738348,), (1334738369,), (1334738379,), (1334738381,), (1334738383,), (1334738384,), (1334738412,), (1334738415,), (1334738418,), (1334738421,), (1334738425,), (1334738433,), (1334738483,), (1334738485,), (1334738487,), (1334738488,), (1334738534,), (1334738615,), (1334738692,), (1334738756,), (1334739032,), (1334739034,), (1334739035,), (1334739036,)) 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 20288309 , 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=20287908 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 (20288309) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20287908) result : ((1334731970,), (1334738242,), (1334738270,), (1334738282,), (1334738286,), (1334738288,), (1334738290,), (1334738341,), (1334738342,), (1334738343,), (1334738346,), (1334738348,), (1334738369,), (1334738379,), (1334738381,), (1334738383,), (1334738384,), (1334738412,), (1334738415,), (1334738418,), (1334738421,), (1334738425,), (1334738433,), (1334738483,), (1334738485,), (1334738487,), (1334738488,), (1334738534,), (1334738615,), (1334738692,), (1334738756,), (1334739032,), (1334739034,), (1334739035,), (1334739036,)) 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 20288310 , 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=20287908 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 (20288310) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20287908) result : ((1334731970,), (1334738242,), (1334738270,), (1334738282,), (1334738286,), (1334738288,), (1334738290,), (1334738341,), (1334738342,), (1334738343,), (1334738346,), (1334738348,), (1334738369,), (1334738379,), (1334738381,), (1334738383,), (1334738384,), (1334738412,), (1334738415,), (1334738418,), (1334738421,), (1334738425,), (1334738433,), (1334738483,), (1334738485,), (1334738487,), (1334738488,), (1334738534,), (1334738615,), (1334738692,), (1334738756,), (1334739032,), (1334739034,), (1334739035,), (1334739036,)) 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 20288311 , 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=20287908 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 (20288311) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20287908) result : ((1334731970,), (1334738242,), (1334738270,), (1334738282,), (1334738286,), (1334738288,), (1334738290,), (1334738341,), (1334738342,), (1334738343,), (1334738346,), (1334738348,), (1334738369,), (1334738379,), (1334738381,), (1334738383,), (1334738384,), (1334738412,), (1334738415,), (1334738418,), (1334738421,), (1334738425,), (1334738433,), (1334738483,), (1334738485,), (1334738487,), (1334738488,), (1334738534,), (1334738615,), (1334738692,), (1334738756,), (1334739032,), (1334739034,), (1334739035,), (1334739036,)) 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 20288312 , 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=20287908 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 (20288312) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20287908) result : ((1334731970,), (1334738242,), (1334738270,), (1334738282,), (1334738286,), (1334738288,), (1334738290,), (1334738341,), (1334738342,), (1334738343,), (1334738346,), (1334738348,), (1334738369,), (1334738379,), (1334738381,), (1334738383,), (1334738384,), (1334738412,), (1334738415,), (1334738418,), (1334738421,), (1334738425,), (1334738433,), (1334738483,), (1334738485,), (1334738487,), (1334738488,), (1334738534,), (1334738615,), (1334738692,), (1334738756,), (1334739032,), (1334739034,), (1334739035,), (1334739036,)) 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 20288313 , 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=20287908 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 (20288313) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20287908) result : ((1334731970,), (1334738242,), (1334738270,), (1334738282,), (1334738286,), (1334738288,), (1334738290,), (1334738341,), (1334738342,), (1334738343,), (1334738346,), (1334738348,), (1334738369,), (1334738379,), (1334738381,), (1334738383,), (1334738384,), (1334738412,), (1334738415,), (1334738418,), (1334738421,), (1334738425,), (1334738433,), (1334738483,), (1334738485,), (1334738487,), (1334738488,), (1334738534,), (1334738615,), (1334738692,), (1334738756,), (1334739032,), (1334739034,), (1334739035,), (1334739036,)) 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`=20287908 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','metal','Carton_gris','environnement','Carton_brun','papier','mal_croppe','flou','cartonnette','plastique','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20287908 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','metal','Carton_gris','environnement','Carton_brun','papier','mal_croppe','flou','cartonnette','plastique','kraft')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__05022025_00_51_35_010147_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[20287908, 20288314, 4417, 0.5, 2107752406, 979], [20287908, 20288315, 4417, 0.5, 2107752385, 979], [20287908, 20288316, 4417, 0.5, 492628673, 979], [20287908, 20288317, 4417, 0.5, 2107753020, 979], [20287908, 20288318, 4417, 0.5, 493012381, 979], [20287908, 20288319, 4417, 0.5, 2107753024, 979], [20287908, 20288320, 4417, 0.5, 492668766, 979], [20287908, 20288321, 4417, 0.5, 2107755527, 979], [20287908, 20288322, 4417, 0.5, 492777938, 979], [20287908, 20288323, 4417, 0.5, 702398920, 979], [20287908, 20288324, 4417, 0.5, 492725882, 979], [20287908, 20288325, 4417, 0.5, 493202403, 979]] 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`=20287908 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','metal','Carton_gris','environnement','Carton_brun','papier','mal_croppe','flou','cartonnette','plastique','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20287908 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','metal','Carton_gris','environnement','Carton_brun','papier','mal_croppe','flou','cartonnette','plastique','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 20287908, 'sub_port_id': 20288314, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979566, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 6)}, 'Teint_Dans_La_Masse': {'main_port_id': 20287908, 'sub_port_id': 20288315, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979567, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 6)}, 'metal': {'main_port_id': 20287908, 'sub_port_id': 20288316, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979568, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 6)}, 'Carton_gris': {'main_port_id': 20287908, 'sub_port_id': 20288317, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979569, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 6)}, 'environnement': {'main_port_id': 20287908, 'sub_port_id': 20288318, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979570, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 6)}, 'Carton_brun': {'main_port_id': 20287908, 'sub_port_id': 20288319, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979571, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 6)}, 'papier': {'main_port_id': 20287908, 'sub_port_id': 20288320, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979572, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 6)}, 'mal_croppe': {'main_port_id': 20287908, 'sub_port_id': 20288321, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979573, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 6)}, 'flou': {'main_port_id': 20287908, 'sub_port_id': 20288322, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979574, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 6)}, 'cartonnette': {'main_port_id': 20287908, 'sub_port_id': 20288323, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979575, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 6)}, 'plastique': {'main_port_id': 20287908, 'sub_port_id': 20288324, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979576, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 6)}, 'kraft': {'main_port_id': 20287908, 'sub_port_id': 20288325, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12979577, 'last_updated_at': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 6, 6), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 6, 6)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20288314,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20288302 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20288315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20288303 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20288316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20288304 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20288317,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20288305 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20288318,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20288306 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20288319,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20288307 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20288320,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20288308 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20288321,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20288309 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20288322,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20288310 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20288323,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20288311 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20288324,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20288312 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20288325,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20288313 lien utilise dans velours : https://www.fotonower.com/velours/20288314,20288315,20288316,20288317,20288318,20288319,20288320,20288321,20288322,20288323,20288324,20288325?tags=autre_refus,Teint_Dans_La_Masse,metal,Carton_gris,environnement,Carton_brun,papier,mal_croppe,flou,cartonnette,plastique,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20287908]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1334739036, 1334739035, 1334739034, 1334739032, 1334738756, 1334738692, 1334738615, 1334738534, 1334738488, 1334738487, 1334738485, 1334738483, 1334738433, 1334738425, 1334738421, 1334738418, 1334738415, 1334738412, 1334738384, 1334738383, 1334738381, 1334738379, 1334738369, 1334738348, 1334738346, 1334738343, 1334738342, 1334738341, 1334738290, 1334738288, 1334738286, 1334738282, 1334738270, 1334738242, 1334731970] map_info['map_portfolio_photo'] : {20287908: [1334739036, 1334739035, 1334739034, 1334739032, 1334738756, 1334738692, 1334738615, 1334738534, 1334738488, 1334738487, 1334738485, 1334738483, 1334738433, 1334738425, 1334738421, 1334738418, 1334738415, 1334738412, 1334738384, 1334738383, 1334738381, 1334738379, 1334738369, 1334738348, 1334738346, 1334738343, 1334738342, 1334738341, 1334738290, 1334738288, 1334738286, 1334738282, 1334738270, 1334738242, 1334731970]} final : False mtd_id 4302 list_pids : [1334739036, 1334739035, 1334739034, 1334739032, 1334738756, 1334738692, 1334738615, 1334738534, 1334738488, 1334738487, 1334738485, 1334738483, 1334738433, 1334738425, 1334738421, 1334738418, 1334738415, 1334738412, 1334738384, 1334738383, 1334738381, 1334738379, 1334738369, 1334738348, 1334738346, 1334738343, 1334738342, 1334738341, 1334738290, 1334738288, 1334738286, 1334738282, 1334738270, 1334738242, 1334731970] Looping around the photos to save general results len do output : 1 /20287908. 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, '2558165') ('4302', '20287908', '1334739036', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334739035', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334739034', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334739032', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738756', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738692', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738615', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738534', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738488', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738487', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738485', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738483', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738433', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738425', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738421', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738418', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738415', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738412', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738384', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738383', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738381', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738379', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738369', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738348', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738346', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738343', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738342', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738341', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738290', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738288', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738286', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738282', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738270', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738242', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334731970', None, None, None, None, None, '2558165') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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, '20287908', "{'autre_refus': 20288302, 'Teint_Dans_La_Masse': 20288303, 'metal': 20288304, 'Carton_gris': 20288305, 'environnement': 20288306, 'Carton_brun': 20288307, 'papier': 20288308, 'mal_croppe': 20288309, 'flou': 20288310, 'cartonnette': 20288311, 'plastique': 20288312, 'kraft': 20288313}", None, None, None, None, '2558165'), ('4302', '20287908', '1334739036', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334739035', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334739034', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334739032', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738756', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738692', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738615', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738534', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738488', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738487', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738485', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738483', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738433', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738425', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738421', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738418', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738415', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738412', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738384', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738383', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738381', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738379', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738369', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738348', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738346', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738343', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738342', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738341', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738290', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738288', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738286', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738282', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738270', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738242', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334731970', None, None, None, None, None, '2558165')] time used for this insertion : 0.019610881805419922 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.043992757797241 time spend to save output : 0.019992828369140625 total time spend for step 1 : 2.063985586166382 step2:final Thu Feb 6 06:06:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (20287908) 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 20287908 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1334739036,1334739035,1334739034,1334739032,1334738756,1334738692,1334731970,1334738615,1334738534,1334738488,1334738487,1334738485,1334738483,1334738433,1334738425,1334738421,1334738418,1334738415,1334738412,1334738384,1334738383,1334738290,1334738288,1334738286,1334738282,1334738270,1334738242,1334738381,1334738379,1334738369,1334738348,1334738346,1334738343,1334738342,1334738341); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20287908]) Inside saveOutput : final : False verbose : True original output for save of step final : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} new output for save of step final : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} [1334739036, 1334739035, 1334739034, 1334739032, 1334738756, 1334738692, 1334738615, 1334738534, 1334738488, 1334738487, 1334738485, 1334738483, 1334738433, 1334738425, 1334738421, 1334738418, 1334738415, 1334738412, 1334738384, 1334738383, 1334738381, 1334738379, 1334738369, 1334738348, 1334738346, 1334738343, 1334738342, 1334738341, 1334738290, 1334738288, 1334738286, 1334738282, 1334738270, 1334738242, 1334731970] map_info['map_portfolio_photo'] : {20287908: [1334739036, 1334739035, 1334739034, 1334739032, 1334738756, 1334738692, 1334738615, 1334738534, 1334738488, 1334738487, 1334738485, 1334738483, 1334738433, 1334738425, 1334738421, 1334738418, 1334738415, 1334738412, 1334738384, 1334738383, 1334738381, 1334738379, 1334738369, 1334738348, 1334738346, 1334738343, 1334738342, 1334738341, 1334738290, 1334738288, 1334738286, 1334738282, 1334738270, 1334738242, 1334731970]} final : False mtd_id 4302 list_pids : [1334739036, 1334739035, 1334739034, 1334739032, 1334738756, 1334738692, 1334738615, 1334738534, 1334738488, 1334738487, 1334738485, 1334738483, 1334738433, 1334738425, 1334738421, 1334738418, 1334738415, 1334738412, 1334738384, 1334738383, 1334738381, 1334738379, 1334738369, 1334738348, 1334738346, 1334738343, 1334738342, 1334738341, 1334738290, 1334738288, 1334738286, 1334738282, 1334738270, 1334738242, 1334731970] Looping around the photos to save general results len do output : 35 /1334739036.Didn't retrieve data . /1334739035.Didn't retrieve data . /1334739034.Didn't retrieve data . /1334739032.Didn't retrieve data . /1334738756.Didn't retrieve data . /1334738692.Didn't retrieve data . /1334738615.Didn't retrieve data . /1334738534.Didn't retrieve data . /1334738488.Didn't retrieve data . /1334738487.Didn't retrieve data . /1334738485.Didn't retrieve data . /1334738483.Didn't retrieve data . /1334738433.Didn't retrieve data . /1334738425.Didn't retrieve data . /1334738421.Didn't retrieve data . /1334738418.Didn't retrieve data . /1334738415.Didn't retrieve data . /1334738412.Didn't retrieve data . /1334738384.Didn't retrieve data . /1334738383.Didn't retrieve data . /1334738381.Didn't retrieve data . /1334738379.Didn't retrieve data . /1334738369.Didn't retrieve data . /1334738348.Didn't retrieve data . /1334738346.Didn't retrieve data . /1334738343.Didn't retrieve data . /1334738342.Didn't retrieve data . /1334738341.Didn't retrieve data . /1334738290.Didn't retrieve data . /1334738288.Didn't retrieve data . /1334738286.Didn't retrieve data . /1334738282.Didn't retrieve data . /1334738270.Didn't retrieve data . /1334738242.Didn't retrieve data . /1334731970.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, '2558165') ('4302', '20287908', '1334739036', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334739035', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334739034', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334739032', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738756', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738692', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738615', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738534', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738488', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738487', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738485', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738483', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738433', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738425', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738421', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738418', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738415', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738412', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738384', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738383', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738381', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738379', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738369', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738348', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738346', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738343', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738342', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738341', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738290', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738288', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738286', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738282', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738270', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738242', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334731970', None, None, None, None, None, '2558165') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 105 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', '20287908', '1334739036', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334739035', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334739034', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334739032', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738756', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738692', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738615', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738534', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738488', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738487', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738485', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738483', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738433', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738425', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738421', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738418', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738415', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738412', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738384', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738383', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738381', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738379', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738369', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738348', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738346', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738343', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738342', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738341', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738290', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738288', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738286', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738282', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738270', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334738242', '0.0', None, None, None, None, '2558165'), ('4302', '20287908', '1334731970', '0.0', None, None, None, None, '2558165')] time used for this insertion : 0.02384018898010254 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.015590429306030273 time spend to save output : 0.025295257568359375 total time spend for step 2 : 0.04088568687438965 step3:velours_tree Thu Feb 6 06:06:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20287908: [{'autre_refus': 20288302, 'Teint_Dans_La_Masse': 20288303, 'metal': 20288304, 'Carton_gris': 20288305, 'environnement': 20288306, 'Carton_brun': 20288307, 'papier': 20288308, 'mal_croppe': 20288309, 'flou': 20288310, 'cartonnette': 20288311, 'plastique': 20288312, 'kraft': 20288313}]} input_args_next_step : {20287908: ()} output_args : {20287908: [{'autre_refus': 20288302, 'Teint_Dans_La_Masse': 20288303, 'metal': 20288304, 'Carton_gris': 20288305, 'environnement': 20288306, 'Carton_brun': 20288307, 'papier': 20288308, 'mal_croppe': 20288309, 'flou': 20288310, 'cartonnette': 20288311, 'plastique': 20288312, 'kraft': 20288313}]} args : 20287908 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 : ({'autre_refus': 20288302, 'Teint_Dans_La_Masse': 20288303, 'metal': 20288304, 'Carton_gris': 20288305, 'environnement': 20288306, 'Carton_brun': 20288307, 'papier': 20288308, 'mal_croppe': 20288309, 'flou': 20288310, 'cartonnette': 20288311, 'plastique': 20288312, 'kraft': 20288313},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20287908) 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([20287908]) 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.3077998161315918 time spend to save output : 5.125999450683594e-05 total time spend for step 3 : 0.30785107612609863 step4:send_mail_cod Thu Feb 6 06:06:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} input_args_next_step : {1334739036: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334739036 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334739035 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334739034 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334739032 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738756 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738692 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738615 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738534 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738488 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738487 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738485 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738483 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738433 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738425 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738421 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738418 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738415 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738412 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738384 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738383 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738381 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738379 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738369 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738348 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738346 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738343 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738342 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738341 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738290 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738288 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738286 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738282 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738270 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334738242 depend.output_id : 0 input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ()} output_args : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',)} args : 1334731970 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 : {20287908: [{'autre_refus': 20288302, 'Teint_Dans_La_Masse': 20288303, 'metal': 20288304, 'Carton_gris': 20288305, 'environnement': 20288306, 'Carton_brun': 20288307, 'papier': 20288308, 'mal_croppe': 20288309, 'flou': 20288310, 'cartonnette': 20288311, 'plastique': 20288312, 'kraft': 20288313}]} input_args_next_step : {1334739036: ('0.0',), 1334739035: ('0.0',), 1334739034: ('0.0',), 1334739032: ('0.0',), 1334738756: ('0.0',), 1334738692: ('0.0',), 1334738615: ('0.0',), 1334738534: ('0.0',), 1334738488: ('0.0',), 1334738487: ('0.0',), 1334738485: ('0.0',), 1334738483: ('0.0',), 1334738433: ('0.0',), 1334738425: ('0.0',), 1334738421: ('0.0',), 1334738418: ('0.0',), 1334738415: ('0.0',), 1334738412: ('0.0',), 1334738384: ('0.0',), 1334738383: ('0.0',), 1334738381: ('0.0',), 1334738379: ('0.0',), 1334738369: ('0.0',), 1334738348: ('0.0',), 1334738346: ('0.0',), 1334738343: ('0.0',), 1334738342: ('0.0',), 1334738341: ('0.0',), 1334738290: ('0.0',), 1334738288: ('0.0',), 1334738286: ('0.0',), 1334738282: ('0.0',), 1334738270: ('0.0',), 1334738242: ('0.0',), 1334731970: ('0.0',), 20287908: ()} output_args : {20287908: [{'autre_refus': 20288302, 'Teint_Dans_La_Masse': 20288303, 'metal': 20288304, 'Carton_gris': 20288305, 'environnement': 20288306, 'Carton_brun': 20288307, 'papier': 20288308, 'mal_croppe': 20288309, 'flou': 20288310, 'cartonnette': 20288311, 'plastique': 20288312, 'kraft': 20288313}]} args : 20287908 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 :36, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20287908) 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 (1334739036,1334739035,1334739034,1334739032,1334738756,1334738692,1334738615,1334738534,1334738488,1334738487,1334738485,1334738483,1334738433,1334738425,1334738421,1334738418,1334738415,1334738412,1334738384,1334738383,1334738381,1334738379,1334738369,1334738348,1334738346,1334738343,1334738342,1334738341,1334738290,1334738288,1334738286,1334738282,1334738270,1334738242,1334731970) Found this number of photos: 35 ##### Call download_photos : nb_thread : 5 begin to download photo : 1334731970 begin to download photo : 1334738342 begin to download photo : 1334738384 begin to download photo : 1334738485 begin to download photo : 1334739034 download finish for photo 1334739034 begin to download photo : 1334739035 download finish for photo 1334738384 begin to download photo : 1334738412 download finish for photo 1334738485 begin to download photo : 1334738487 download finish for photo 1334738342 begin to download photo : 1334738343 download finish for photo 1334731970 begin to download photo : 1334738242 download finish for photo 1334739035 begin to download photo : 1334739036 download finish for photo 1334738487 begin to download photo : 1334738488 download finish for photo 1334738343 begin to download photo : 1334738346 download finish for photo 1334738412 begin to download photo : 1334738415 download finish for photo 1334738242 begin to download photo : 1334738270 download finish for photo 1334739036 download finish for photo 1334738415 begin to download photo : 1334738418 download finish for photo 1334738488 begin to download photo : 1334738534 download finish for photo 1334738270 begin to download photo : 1334738282 download finish for photo 1334738346 begin to download photo : 1334738348 download finish for photo 1334738534 begin to download photo : 1334738615 download finish for photo 1334738348 begin to download photo : 1334738369 download finish for photo 1334738418 begin to download photo : 1334738421 download finish for photo 1334738282 begin to download photo : 1334738286 download finish for photo 1334738615 begin to download photo : 1334738692 download finish for photo 1334738369 begin to download photo : 1334738379 download finish for photo 1334738421 begin to download photo : 1334738425 download finish for photo 1334738286 begin to download photo : 1334738288 download finish for photo 1334738692 begin to download photo : 1334738756 download finish for photo 1334738425 begin to download photo : 1334738433 download finish for photo 1334738379 begin to download photo : 1334738381 download finish for photo 1334738288 begin to download photo : 1334738290 download finish for photo 1334738756 begin to download photo : 1334739032 download finish for photo 1334738433 begin to download photo : 1334738483 download finish for photo 1334738381 begin to download photo : 1334738383 download finish for photo 1334739032 download finish for photo 1334738383 download finish for photo 1334738483 download finish for photo 1334738290 begin to download photo : 1334738341 download finish for photo 1334738341 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette202883021738818363/ imagette202883041738818363/ imagette202883091738818363/ imagette202883101738818363/ imagette202883111738818363/ imagette202883121738818363/ imagette202883131738818363/ imagette202883031738818363/ imagette202883051738818363/ imagette202883071738818363/ length of list_filenames : 35 ; length of list_pids : 35 ; length of list_args : 35 results_Auto_P20287908_06-02-2025_06_06_03.pdf 20288302 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=20288302 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202883021738818363 20288304 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=20288304 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202883041738818363 20288309 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=20288309 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202883091738818363 20288310 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=20288310 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202883101738818363 20288311 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=20288311 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202883111738818363 20288312 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=20288312 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202883121738818363 20288313 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=20288313 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202883131738818363 20288303 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=20288303 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202883031738818363 20288305 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=20288305 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202883051738818363 20288307 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=20288307 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202883071738818363 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20287908 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20288314,20288315,20288316,20288317,20288318,20288319,20288320,20288321,20288322,20288323,20288324,20288325?tags=autre_refus,Teint_Dans_La_Masse,metal,Carton_gris,environnement,Carton_brun,papier,mal_croppe,flou,cartonnette,plastique,kraft your option no_mail is active, we will not send the real mail to your client args[1334739036] : ('0.0',) no score found for photo 1334739036 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334739035] : ('0.0',) no score found for photo 1334739035 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334739034] : ('0.0',) no score found for photo 1334739034 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334739032] : ('0.0',) no score found for photo 1334739032 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738756] : ('0.0',) no score found for photo 1334738756 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738692] : ('0.0',) no score found for photo 1334738692 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738615] : ('0.0',) no score found for photo 1334738615 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738534] : ('0.0',) no score found for photo 1334738534 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738488] : ('0.0',) no score found for photo 1334738488 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738487] : ('0.0',) no score found for photo 1334738487 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738485] : ('0.0',) no score found for photo 1334738485 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738483] : ('0.0',) no score found for photo 1334738483 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738433] : ('0.0',) no score found for photo 1334738433 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738425] : ('0.0',) no score found for photo 1334738425 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738421] : ('0.0',) no score found for photo 1334738421 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738418] : ('0.0',) no score found for photo 1334738418 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738415] : ('0.0',) no score found for photo 1334738415 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738412] : ('0.0',) no score found for photo 1334738412 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738384] : ('0.0',) no score found for photo 1334738384 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738383] : ('0.0',) no score found for photo 1334738383 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738381] : ('0.0',) no score found for photo 1334738381 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738379] : ('0.0',) no score found for photo 1334738379 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738369] : ('0.0',) no score found for photo 1334738369 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738348] : ('0.0',) no score found for photo 1334738348 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738346] : ('0.0',) no score found for photo 1334738346 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738343] : ('0.0',) no score found for photo 1334738343 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738342] : ('0.0',) no score found for photo 1334738342 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738341] : ('0.0',) no score found for photo 1334738341 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738290] : ('0.0',) no score found for photo 1334738290 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738288] : ('0.0',) no score found for photo 1334738288 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738286] : ('0.0',) no score found for photo 1334738286 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738282] : ('0.0',) no score found for photo 1334738282 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738270] : ('0.0',) no score found for photo 1334738270 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334738242] : ('0.0',) no score found for photo 1334738242 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1334731970] : ('0.0',) no score found for photo 1334731970 apple ('0.0',) We are sending mail with results at report@fotonower.com refus_total : 0.0 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=20287908 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_P20287908_06-02-2025_06_06_03.pdf results_Auto_P20287908_06-02-2025_06_06_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20287908_06-02-2025_06_06_03.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','20287908','results_Auto_P20287908_06-02-2025_06_06_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20287908_06-02-2025_06_06_03.pdf','pdf','','0.27','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20287908]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1334739036, 1334739035, 1334739034, 1334739032, 1334738756, 1334738692, 1334738615, 1334738534, 1334738488, 1334738487, 1334738485, 1334738483, 1334738433, 1334738425, 1334738421, 1334738418, 1334738415, 1334738412, 1334738384, 1334738383, 1334738381, 1334738379, 1334738369, 1334738348, 1334738346, 1334738343, 1334738342, 1334738341, 1334738290, 1334738288, 1334738286, 1334738282, 1334738270, 1334738242, 1334731970] map_info['map_portfolio_photo'] : {20287908: [1334739036, 1334739035, 1334739034, 1334739032, 1334738756, 1334738692, 1334738615, 1334738534, 1334738488, 1334738487, 1334738485, 1334738483, 1334738433, 1334738425, 1334738421, 1334738418, 1334738415, 1334738412, 1334738384, 1334738383, 1334738381, 1334738379, 1334738369, 1334738348, 1334738346, 1334738343, 1334738342, 1334738341, 1334738290, 1334738288, 1334738286, 1334738282, 1334738270, 1334738242, 1334731970]} final : False mtd_id 4302 list_pids : [1334739036, 1334739035, 1334739034, 1334739032, 1334738756, 1334738692, 1334738615, 1334738534, 1334738488, 1334738487, 1334738485, 1334738483, 1334738433, 1334738425, 1334738421, 1334738418, 1334738415, 1334738412, 1334738384, 1334738383, 1334738381, 1334738379, 1334738369, 1334738348, 1334738346, 1334738343, 1334738342, 1334738341, 1334738290, 1334738288, 1334738286, 1334738282, 1334738270, 1334738242, 1334731970] 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, '2558165') ('4302', '20287908', '1334739036', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334739035', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334739034', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334739032', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738756', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738692', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738615', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738534', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738488', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738487', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738485', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738483', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738433', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738425', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738421', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738418', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738415', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738412', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738384', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738383', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738381', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738379', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738369', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738348', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738346', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738343', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738342', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738341', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738290', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738288', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738286', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738282', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738270', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738242', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334731970', None, None, None, None, None, '2558165') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 35 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', '20287908', '1334739036', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334739035', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334739034', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334739032', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738756', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738692', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738615', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738534', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738488', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738487', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738485', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738483', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738433', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738425', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738421', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738418', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738415', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738412', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738384', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738383', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738381', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738379', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738369', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738348', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738346', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738343', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738342', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738341', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738290', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738288', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738286', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738282', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738270', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738242', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334731970', None, None, None, None, None, '2558165')] time used for this insertion : 0.018865585327148438 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.048140287399292 time spend to save output : 0.01924896240234375 total time spend for step 4 : 4.067389249801636 step5:split_time_score Thu Feb 6 06:06: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 complete output_args for input 0 : ['20287908'] 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 : [('20287908',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20287908) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1334739034: {'path': 'temp/1738818361_2319604_1334739034_6baa63cf30916d42a7398c325999ee72.jpg', 'extension': 'jpg'}, 1334739035: {'path': 'temp/1738818361_2319604_1334739035_a205025aa2c37dd8d480a25ead800cb2.jpg', 'extension': 'jpg'}, 1334739036: {'path': 'temp/1738818361_2319604_1334739036_e678b80410e9086ed5b8763c35f152ca.jpg', 'extension': 'jpg'}, 1334738485: {'path': 'temp/1738818361_2319604_1334738485_203f13cb09406374bdd3e15b8aa0c904.jpg', 'extension': 'jpg'}, 1334738487: {'path': 'temp/1738818361_2319604_1334738487_894a0f412f385bd0c44254835fc65dc4.jpg', 'extension': 'jpg'}, 1334738488: {'path': 'temp/1738818361_2319604_1334738488_bba301de24ec124017268f9d863e38bb.jpg', 'extension': 'jpg'}, 1334738534: {'path': 'temp/1738818361_2319604_1334738534_bf6b1d7f9ae85ff03ad4426af72572a5.jpg', 'extension': 'jpg'}, 1334738615: {'path': 'temp/1738818361_2319604_1334738615_c134e1aa0fb6164a0c789450e98da4c5.jpg', 'extension': 'jpg'}, 1334738692: {'path': 'temp/1738818361_2319604_1334738692_f650a06012e9f02fd80c6b29973735fa.jpg', 'extension': 'jpg'}, 1334738756: {'path': 'temp/1738818361_2319604_1334738756_a39e51a34fcd2a2e0ab97b7ac474f502.jpg', 'extension': 'jpg'}, 1334739032: {'path': 'temp/1738818361_2319604_1334739032_14e4d4f170449b54ac036c67e9671697.jpg', 'extension': 'jpg'}, 1334738342: {'path': 'temp/1738818361_2319604_1334738342_27757aac88dab2320b840cf452b9ee55.jpg', 'extension': 'jpg'}, 1334738343: {'path': 'temp/1738818361_2319604_1334738343_a2bc10b54f32cb4cd37524b09d19aa11.jpg', 'extension': 'jpg'}, 1334738346: {'path': 'temp/1738818361_2319604_1334738346_a065c4eb0d755e2f610d373988c87445.jpg', 'extension': 'jpg'}, 1334738348: {'path': 'temp/1738818361_2319604_1334738348_436e39766a93f8e19269f8b5534aa0fa.jpg', 'extension': 'jpg'}, 1334738369: {'path': 'temp/1738818361_2319604_1334738369_e16a590a4e16b33b6a58d1c8d8209240.jpg', 'extension': 'jpg'}, 1334738379: {'path': 'temp/1738818361_2319604_1334738379_822fed022b61b1aeb3872015f6aa3f5a.jpg', 'extension': 'jpg'}, 1334738381: {'path': 'temp/1738818361_2319604_1334738381_c01d377b8f5049b08efe37b38c6bcfea.jpg', 'extension': 'jpg'}, 1334738383: {'path': 'temp/1738818361_2319604_1334738383_db5675195a4ad982006ad0d59febc4e6.jpg', 'extension': 'jpg'}, 1334738384: {'path': 'temp/1738818361_2319604_1334738384_7ba7c85ee993513ada733ba8a438ad70.jpg', 'extension': 'jpg'}, 1334738412: {'path': 'temp/1738818361_2319604_1334738412_fa36d359892c43a825412b1e8bea5201.jpg', 'extension': 'jpg'}, 1334738415: {'path': 'temp/1738818361_2319604_1334738415_66005846868915d51a049a2c8e35b279.jpg', 'extension': 'jpg'}, 1334738418: {'path': 'temp/1738818361_2319604_1334738418_943fd5b58800f15884558cb9c2e49d06.jpg', 'extension': 'jpg'}, 1334738421: {'path': 'temp/1738818361_2319604_1334738421_6b611d2adcce447f2db76778f6a346cc.jpg', 'extension': 'jpg'}, 1334738425: {'path': 'temp/1738818361_2319604_1334738425_12963b099e13e7f9ecf9745f7ab81ba7.jpg', 'extension': 'jpg'}, 1334738433: {'path': 'temp/1738818361_2319604_1334738433_5c78f8b40838db56d6be83e6cabf1dc1.jpg', 'extension': 'jpg'}, 1334738483: {'path': 'temp/1738818361_2319604_1334738483_857869afbdb03eaf80daa79328789c36.jpg', 'extension': 'jpg'}, 1334731970: {'path': 'temp/1738818361_2319604_1334731970_0e89165abdd0e412be971acc56a0ab97.jpg', 'extension': 'jpg'}, 1334738242: {'path': 'temp/1738818361_2319604_1334738242_577a3ce011525b3657193071dba8e100.jpg', 'extension': 'jpg'}, 1334738270: {'path': 'temp/1738818361_2319604_1334738270_754ddbf7ca3ec7a9f6910f0282ea8a73.jpg', 'extension': 'jpg'}, 1334738282: {'path': 'temp/1738818361_2319604_1334738282_916cc96a3c0ae96d50dc7deb0488b3d1.jpg', 'extension': 'jpg'}, 1334738286: {'path': 'temp/1738818361_2319604_1334738286_8463c71cfc5a73ffb57e8426a9122d16.jpg', 'extension': 'jpg'}, 1334738288: {'path': 'temp/1738818361_2319604_1334738288_88217276850ed30e1a79ee2437d5f607.jpg', 'extension': 'jpg'}, 1334738290: {'path': 'temp/1738818361_2319604_1334738290_475c0023696b135e9cc150d3a527afc9.jpg', 'extension': 'jpg'}, 1334738341: {'path': 'temp/1738818361_2319604_1334738341_a393d58eda28f93785591381a2e0c899.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 = 20287908; (('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 = 20287908 group by h (('00', 35),) 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=20287908 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 (20287908) 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 (20287908) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05022025 20287908 Nombre de photos uploadées : 35 / 23040 (0%) 05022025 20287908 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 05022025 20287908 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1334739036, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/e678b80410e9086ed5b8763c35f152ca.jpg', 'username': None, 'uploaded_at': 1738718442, 'text': 'image_05022025_00_51_35_10147.jpg'}, {'photo_id': 1334739035, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/a205025aa2c37dd8d480a25ead800cb2.jpg', 'username': None, 'uploaded_at': 1738718442, 'text': 'image_05022025_00_51_45_10143.jpg'}, {'photo_id': 1334739034, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/6baa63cf30916d42a7398c325999ee72.jpg', 'username': None, 'uploaded_at': 1738718442, 'text': 'image_05022025_00_52_55_10135.jpg'}, {'photo_id': 1334739032, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/14e4d4f170449b54ac036c67e9671697.jpg', 'username': None, 'uploaded_at': 1738718442, 'text': 'image_05022025_00_53_05_10156.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023834705352783203 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20287908, '2025-02-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1578490,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03540301322937012 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= 1578490 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20287907, 'dashboard_result_id': 8730692, '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_P20287907_06-02-2025_06_05_32.pdf'}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20287908, 'dashboard_result_id': 8730693, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20234524, 'dashboard_result_id': 8730694, '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_P20234524_06-02-2025_06_04_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20234527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20234528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20234529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20234530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20234531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20234532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20234533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20234534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20234535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20234536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20234537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20234538, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20234662, 'dashboard_result_id': 8730695, '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_P20234662_06-02-2025_06_04_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20234667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20234668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20234669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20234670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20234671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20234672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20234673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20234674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20234675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20234676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20234677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20234678, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20234716, 'dashboard_result_id': 8730696, '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_P20234716_05-02-2025_02_43_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20234763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20234764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20234765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20234766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20234767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20234768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20234769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20234770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20234771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20234772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20234773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20234774, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20234792, 'dashboard_result_id': 8730697, '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_P20234792_05-02-2025_02_39_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20234829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20234830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20234831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20234832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20234833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20234834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20234835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20234836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20234837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20234838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20234839, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20234840, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20235115, 'dashboard_result_id': 8730698, '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_P20235115_05-02-2025_02_50_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20235158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20235159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20235160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20235161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20235162, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20235163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20235164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20235165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20235166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20235167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20235168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20235169, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20235871, 'dashboard_result_id': 8730699, '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_P20235871_05-02-2025_03_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20235931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20235932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20235933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20235934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20235935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20235936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20235937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20235938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20235939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20235940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20235941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20235942, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20236732, 'dashboard_result_id': 8730700, '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_P20236732_05-02-2025_03_21_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20236742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20236743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20236744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20236745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20236746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20236747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20236748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20236749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20236750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20236751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20236752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20236753, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20237074, 'dashboard_result_id': 8730701, '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_P20237074_05-02-2025_03_30_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20237232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20237233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20237234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20237235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20237236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20237237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20237238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20237239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20237240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20237241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20237242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20237243, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20238027, 'dashboard_result_id': 8730702, '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_P20238027_05-02-2025_03_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20238036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20238037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20238038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20238039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20238040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20238041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20238042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20238043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20238044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20238045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20238046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20238047, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20238747, 'dashboard_result_id': 8730703, '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_P20238747_05-02-2025_04_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20238750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20238751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20238752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20238753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20238754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20238755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20238756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20238757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20238758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20238759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20238760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20238761, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20239146, 'dashboard_result_id': 8730704, '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_P20239146_05-02-2025_04_23_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20239152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20239153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20239154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20239155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20239156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20239157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20239158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20239159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20239160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20239161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20239162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20239163, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20239984, 'dashboard_result_id': 8730705, '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_P20239984_05-02-2025_04_41_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20239991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20239992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20239993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20239994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20239995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20239996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20239997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20239998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20239999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20240000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20240001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20240002, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20240201, 'dashboard_result_id': 8730706, '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_P20240201_05-02-2025_05_35_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20240202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20240203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20240204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20240205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20240206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20240207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20240208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20240209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20240210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20240211, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20240212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20240213, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20241046, 'dashboard_result_id': 8730707, '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_P20241046_05-02-2025_05_36_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20241050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20241051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20241052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20241053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20241054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20241055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20241056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20241057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20241058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20241059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20241060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20241061, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20241183, 'dashboard_result_id': 8730708, '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_P20241183_05-02-2025_05_34_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20241191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20241192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20241193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20241194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20241195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20241196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20241197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20241198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20241199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20241200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20241201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20241202, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20241795, 'dashboard_result_id': 8730709, '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_P20241795_05-02-2025_05_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20241801, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20241802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20241803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20241804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20241805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20241806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20241807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20241808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20241809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20241810, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20241811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20241812, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20242566, 'dashboard_result_id': 8730710, '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_P20242566_05-02-2025_06_03_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20242570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20242571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20242572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20242573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20242574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20242575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20242576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20242577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20242578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20242579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20242580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20242581, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20242976, 'dashboard_result_id': 8730711, '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_P20242976_05-02-2025_06_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20243038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20243039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20243040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20243041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20243042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20243043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20243044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20243045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20243046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20243047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20243048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20243049, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20243319, 'dashboard_result_id': 8730712, '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_P20243319_05-02-2025_06_26_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20243325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20243326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20243327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20243328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20243329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20243330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20243331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20243332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20243333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20243334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20243335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20243336, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20244101, 'dashboard_result_id': 8730713, '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_P20244101_05-02-2025_06_47_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20244107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20244108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20244109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20244110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20244111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20244112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20244113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20244114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20244115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20244116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20244117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20244118, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20244392, 'dashboard_result_id': 8730714, '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_P20244392_05-02-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20244396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20244397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20244398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20244399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20244400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20244401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20244402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20244403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20244404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20244405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20244406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20244407, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20244961, 'dashboard_result_id': 8730715, '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_P20244961_05-02-2025_07_23_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20244966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20244967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20244968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20244969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20244970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20244971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20244972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20244973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20244974, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20244975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20244976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20244977, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20245355, 'dashboard_result_id': 8730716, '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_P20245355_05-02-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20245380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20245381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20245382, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20245383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20245384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20245385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20245386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20245387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20245388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20245389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20245390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20245391, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20245995, 'dashboard_result_id': 8730717, '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_P20245995_05-02-2025_08_04_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20246028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20246029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20246030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20246031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20246032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20246033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20246034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20246035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20246036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20246037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20246038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20246039, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20246827, 'dashboard_result_id': 8730718, '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_P20246827_05-02-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20246869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20246870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20246871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20246872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20246873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20246874, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20246875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20246876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20246877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20246878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20246879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20246880, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20247107, 'dashboard_result_id': 8730719, '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_P20247107_05-02-2025_08_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20247122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20247123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20247124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20247125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20247126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20247127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20247128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20247129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20247130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20247131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20247132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20247133, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20247621, 'dashboard_result_id': 8730720, '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_P20247621_05-02-2025_08_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20247628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20247629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20247630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20247631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20247632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20247633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20247634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20247635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20247636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20247637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20247638, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20247639, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20248017, 'dashboard_result_id': 8730721, '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_P20248017_05-02-2025_09_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20248018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20248019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20248020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20248021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20248022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20248023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20248024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20248025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20248026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20248027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20248028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20248029, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20249921, 'dashboard_result_id': 8730722, '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_P20249921_05-02-2025_09_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20249935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20249936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20249937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20249938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20249939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20249940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20249941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20249942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20249943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20249944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20249945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20249946, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20250370, 'dashboard_result_id': 8730723, '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_P20250370_05-02-2025_10_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20250375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20250376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20250377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20250378, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20250379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20250380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20250381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20250382, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20250383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20250384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20250385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20250386, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20250883, 'dashboard_result_id': 8730724, '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_P20250883_05-02-2025_10_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20250914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20250915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20250916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20250917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20250918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20250919, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20250920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20250921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20250922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20250923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20250924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20250925, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20251294, 'dashboard_result_id': 8730725, '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_P20251294_05-02-2025_10_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20251309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20251310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20251311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20251312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20251313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20251314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20251315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20251316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20251317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20251318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20251319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20251320, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20251725, 'dashboard_result_id': 8730726, '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_P20251725_05-02-2025_10_49_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20251732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20251733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20251734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20251735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20251736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20251737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20251738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20251739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20251740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20251741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20251742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20251743, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20252355, 'dashboard_result_id': 8730727, '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_P20252355_05-02-2025_11_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20252407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20252408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20252409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20252410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20252411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20252412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20252413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20252414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20252415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20252416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20252417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20252418, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20253177, 'dashboard_result_id': 8730728, '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_P20253177_05-02-2025_11_16_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20253186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20253187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20253188, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20253189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20253190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20253191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20253192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20253193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20253194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20253195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20253196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20253197, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20253785, 'dashboard_result_id': 8730729, '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_P20253785_05-02-2025_11_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20253786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20253787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20253788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20253789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20253790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20253791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20253792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20253793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20253794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20253795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20253796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20253797, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20254446, 'dashboard_result_id': 8730730, '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_P20254446_05-02-2025_11_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20254453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20254454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20254455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20254456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20254457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20254458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20254459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20254460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20254461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20254462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20254463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20254464, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20255240, 'dashboard_result_id': 8730731, '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_P20255240_05-02-2025_12_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20255271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20255272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20255273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20255274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20255275, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20255276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20255277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20255278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20255279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20255280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20255281, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20255282, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20255840, 'dashboard_result_id': 8730732, '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_P20255840_05-02-2025_12_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20255849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20255850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20255851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20255852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20255853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20255854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20255855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20255856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20255857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20255858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20255859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20255860, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20258001, 'dashboard_result_id': 8730733, '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_P20258001_05-02-2025_13_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20258003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20258004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20258005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20258006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20258007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20258008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20258009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20258010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20258011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20258012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20258013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20258014, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20258039, 'dashboard_result_id': 8730734, '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_P20258039_05-02-2025_14_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20258042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20258043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20258044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20258045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20258046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20258047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20258048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20258049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20258050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20258051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20258052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20258053, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20258632, 'dashboard_result_id': 8730735, '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_P20258632_05-02-2025_14_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20258654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20258655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20258656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20258657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20258658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20258659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20258660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20258661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20258662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20258663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20258664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20258665, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20259151, 'dashboard_result_id': 8730736, '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_P20259151_05-02-2025_14_32_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20259220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20259221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20259222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20259223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20259224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20259225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20259226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20259227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20259228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20259229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20259230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20259231, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20259950, 'dashboard_result_id': 8730737, '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_P20259950_05-02-2025_14_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20259959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20259960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20259961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20259962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20259963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20259964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20259965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20259966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20259967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20259968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20259969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20259970, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20260642, 'dashboard_result_id': 8730738, '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_P20260642_05-02-2025_15_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20260685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20260686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20260687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20260688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20260689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20260690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20260691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20260692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20260693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20260694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20260695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20260696, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20261240, 'dashboard_result_id': 8730739, '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_P20261240_05-02-2025_15_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20261247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20261248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20261249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20261250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20261251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20261252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20261253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20261254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20261255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20261256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20261257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20261258, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20261452, 'dashboard_result_id': 8730740, '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_P20261452_05-02-2025_15_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20261461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20261462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20261463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20261464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20261465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20261466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20261467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20261468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20261469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20261470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20261471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20261472, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20262234, 'dashboard_result_id': 8730741, '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_P20262234_05-02-2025_15_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20262244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20262245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20262246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20262247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20262248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20262249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20262250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20262251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20262252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20262253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20262254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20262255, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20262935, 'dashboard_result_id': 8730742, '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_P20262935_05-02-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20262967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20262968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20262969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20262970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20262971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20262972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20262973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20262974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20262975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20262976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20262977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20262978, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20263726, 'dashboard_result_id': 8730743, '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_P20263726_05-02-2025_16_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20263756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20263757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20263758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20263759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20263760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20263761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20263762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20263763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20263764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20263765, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20263766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20263767, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20264298, 'dashboard_result_id': 8730744, '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_P20264298_05-02-2025_16_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20264303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20264304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20264305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20264306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20264307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20264308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20264309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20264310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20264311, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20264312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20264313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20264314, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20264910, 'dashboard_result_id': 8730745, '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_P20264910_05-02-2025_16_48_56.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20264918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20264919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20264920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20264921, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20264922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20264923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20264924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20264925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20264926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20264927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20264928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20264929, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20265501, 'dashboard_result_id': 8730746, '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_P20265501_05-02-2025_17_02_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20265543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20265544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20265545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20265546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20265547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20265548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20265549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20265550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20265551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20265552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20265553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20265554, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20266192, 'dashboard_result_id': 8730747, '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_P20266192_05-02-2025_17_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20266211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20266212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20266213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20266214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20266215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20266216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20266217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20266218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20266219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20266220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20266221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20266222, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20266480, 'dashboard_result_id': 8730748, '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_P20266480_05-02-2025_17_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20266498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20266499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20266500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20266501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20266502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20266503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20266504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20266505, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20266506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20266507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20266508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20266509, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20268460, 'dashboard_result_id': 8730749, '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_P20268460_05-02-2025_18_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20268463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20268464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20268465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20268466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20268467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20268468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20268469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20268470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20268471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20268472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20268473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20268474, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20268669, 'dashboard_result_id': 8730750, '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_P20268669_05-02-2025_18_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20268720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20268721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20268722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20268723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20268724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20268725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20268726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20268727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20268728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20268729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20268730, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20268731, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20269374, 'dashboard_result_id': 8730751, '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_P20269374_05-02-2025_18_48_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20269383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20269384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20269385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20269386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20269387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20269388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20269389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20269390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20269391, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20269392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20269393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20269394, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20270618, 'dashboard_result_id': 8730752, '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_P20270618_05-02-2025_19_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20270622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20270623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20270624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20270625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20270626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20270627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20270628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20270629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20270630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20270631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20270632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20270633, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20270683, 'dashboard_result_id': 8730753, '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_P20270683_05-02-2025_19_36_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20270690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20270691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20270692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20270693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20270694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20270695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20270696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20270697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20270698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20270699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20270700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20270701, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20270978, 'dashboard_result_id': 8730754, '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_P20270978_05-02-2025_19_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20270987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20270988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20270989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20270990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20270991, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20270992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20270993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20270994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20270995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20270996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20270997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20270998, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20271120, 'dashboard_result_id': 8730755, '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_P20271120_05-02-2025_20_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20271130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20271131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20271132, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20271133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20271134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20271135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20271136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20271137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20271138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20271139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20271140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20271141, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20271621, 'dashboard_result_id': 8730756, '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_P20271621_05-02-2025_20_18_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20271630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20271631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20271632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20271633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20271634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20271635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20271636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20271637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20271638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20271639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20271640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20271641, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20271942, 'dashboard_result_id': 8730757, '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_P20271942_05-02-2025_20_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20271952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20271953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20271954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20271955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20271956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20271957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20271958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20271959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20271960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20271961, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20271962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20271963, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20272266, 'dashboard_result_id': 8730758, '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_P20272266_05-02-2025_21_08_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20272278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20272279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20272280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20272281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20272282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20272283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20272284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20272285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20272286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20272287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20272288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20272289, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20273313, 'dashboard_result_id': 8730759, '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_P20273313_05-02-2025_21_32_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20273341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20273342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20273343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20273344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20273345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20273346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20273347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20273348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20273349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20273350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20273351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20273352, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20273558, 'dashboard_result_id': 8730760, '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_P20273558_05-02-2025_21_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20273568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20273569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20273570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20273571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20273572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20273573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20273574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20273575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20273576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20273577, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20273578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20273579, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20273741, 'dashboard_result_id': 8730761, '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_P20273741_05-02-2025_22_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20273749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20273750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20273751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20273752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20273753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20273754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20273755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20273756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20273757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20273758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20273759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20273760, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20274041, 'dashboard_result_id': 8730762, '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_P20274041_05-02-2025_22_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20274057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20274058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20274059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20274060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20274061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20274062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20274063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20274064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20274065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20274066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20274067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20274068, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20274469, 'dashboard_result_id': 8730763, '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_P20274469_05-02-2025_22_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20274502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20274503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20274504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20274505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20274506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20274507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20274508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20274509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20274510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20274511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20274512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20274513, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20274918, 'dashboard_result_id': 8730764, '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_P20274918_05-02-2025_22_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20274972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20274973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20274974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20274975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20274976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20274977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20274978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20274979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20274980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20274981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20274982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20274983, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20275438, 'dashboard_result_id': 8730765, '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_P20275438_06-02-2025_06_03_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20275480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20275481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20275482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20275483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20275484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20275485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20275486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20275487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20275488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20275489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20275490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20275491, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20287909, 'dashboard_result_id': 8730766, '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_P20287909_06-02-2025_06_02_36.pdf'}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20287910, 'dashboard_result_id': 8730767, '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_P20287910_06-02-2025_06_00_32.pdf'}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20287935, 'dashboard_result_id': 8730768, '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_P20287935_06-02-2025_06_01_32.pdf'}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1589821, 'mtr_portfolio_id': 20287936, 'dashboard_result_id': 8730769, '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_P20287936_06-02-2025_06_02_01.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 = 20287907 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 = 20287907 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 = 20287907 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20287907 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 = 20287907 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 = 20287907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20287907_06-02-2025_06_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20287907 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_P20287907_06-02-2025_06_05_32.pdf'}" where mtr_portfolio_id = 20287907 and dashboard_run_id = 1589821 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 = 20287908 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 = 20287908 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 = 20287908 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20287908 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 = 20287908 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 = 20287908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20287908_06-02-2025_06_06_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20287908 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_P20287908_06-02-2025_06_06_03.pdf'}" where mtr_portfolio_id = 20287908 and dashboard_run_id = 1589821 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 = 20234524 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': 2547974, 'mtr_portfolio_id': 20234524, 'created_at': datetime.datetime(2025, 2, 6, 6, 4, 1), 'result': '0.05129844932581866', 'result_long': None, 'result_double': None}] Qualite : 0.05129844932581866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20234524 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20234524_06-02-2025_06_04_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20234524 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_P20234524_06-02-2025_06_04_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20234527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20234528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20234529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20234530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20234531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20234532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20234533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20234534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20234535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20234536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20234537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20234538, 'pht': 3726}}" where mtr_portfolio_id = 20234524 and dashboard_run_id = 1589821 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`=20234524 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730694, 0.05129844932581866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20234524_06-02-2025_06_04_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20234527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20234528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20234529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20234530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20234531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20234532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20234533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20234534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20234535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20234536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20234537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20234538, '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 = 20234662 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': 2547979, 'mtr_portfolio_id': 20234662, 'created_at': datetime.datetime(2025, 2, 6, 6, 4, 28), 'result': '0.036503165984581774', 'result_long': None, 'result_double': None}] Qualite : 0.036503165984581774 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20234662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20234662_06-02-2025_06_04_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20234662 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_P20234662_06-02-2025_06_04_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20234667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20234668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20234669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20234670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20234671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20234672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20234673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20234674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20234675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20234676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20234677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20234678, 'pht': 3726}}" where mtr_portfolio_id = 20234662 and dashboard_run_id = 1589821 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`=20234662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730695, 0.036503165984581774, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20234662_06-02-2025_06_04_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20234667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20234668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20234669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20234670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20234671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20234672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20234673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20234674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20234675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20234676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20234677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20234678, '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 = 20234716 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': 2547988, 'mtr_portfolio_id': 20234716, 'created_at': datetime.datetime(2025, 2, 5, 2, 43, 29), 'result': '0.04193210368225396', 'result_long': None, 'result_double': None}] Qualite : 0.04193210368225396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20234716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20234716_05-02-2025_02_43_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20234716 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_P20234716_05-02-2025_02_43_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20234763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20234764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20234765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20234766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20234767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20234768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20234769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20234770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20234771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20234772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20234773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20234774, 'pht': 3726}}" where mtr_portfolio_id = 20234716 and dashboard_run_id = 1589821 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`=20234716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730696, 0.04193210368225396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20234716_05-02-2025_02_43_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20234763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20234764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20234765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20234766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20234767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20234768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20234769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20234770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20234771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20234772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20234773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20234774, '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 = 20234792 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': 2548001, 'mtr_portfolio_id': 20234792, 'created_at': datetime.datetime(2025, 2, 5, 2, 39, 27), 'result': '0.08675360690521274', 'result_long': None, 'result_double': None}] Qualite : 0.08675360690521274 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20234792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20234792_05-02-2025_02_39_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20234792 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_P20234792_05-02-2025_02_39_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20234829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20234830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20234831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20234832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20234833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20234834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20234835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20234836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20234837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20234838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20234839, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20234840, 'pht': 3726}}" where mtr_portfolio_id = 20234792 and dashboard_run_id = 1589821 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`=20234792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730697, 0.08675360690521274, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20234792_05-02-2025_02_39_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20234829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20234830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20234831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20234832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20234833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20234834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20234835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20234836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20234837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20234838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20234839, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20234840, '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 = 20235115 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': 2548055, 'mtr_portfolio_id': 20235115, 'created_at': datetime.datetime(2025, 2, 5, 2, 50, 58), 'result': '0.03881142062347132', 'result_long': None, 'result_double': None}] Qualite : 0.03881142062347132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20235115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20235115_05-02-2025_02_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20235115 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_P20235115_05-02-2025_02_50_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20235158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20235159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20235160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20235161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20235162, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20235163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20235164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20235165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20235166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20235167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20235168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20235169, 'pht': 3726}}" where mtr_portfolio_id = 20235115 and dashboard_run_id = 1589821 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`=20235115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730698, 0.03881142062347132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20235115_05-02-2025_02_50_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20235158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20235159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20235160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20235161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20235162, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20235163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20235164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20235165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20235166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20235167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20235168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20235169, '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 = 20235871 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': 2548188, 'mtr_portfolio_id': 20235871, 'created_at': datetime.datetime(2025, 2, 5, 3, 2, 57), 'result': '0.04910499882687222', 'result_long': None, 'result_double': None}] Qualite : 0.04910499882687222 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20235871 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20235871_05-02-2025_03_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20235871 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_P20235871_05-02-2025_03_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20235931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20235932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20235933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20235934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20235935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20235936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20235937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20235938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20235939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20235940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20235941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20235942, 'pht': 3726}}" where mtr_portfolio_id = 20235871 and dashboard_run_id = 1589821 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`=20235871 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730699, 0.04910499882687222, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20235871_05-02-2025_03_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20235931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20235932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20235933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20235934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20235935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20235936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20235937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20235938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20235939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20235940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20235941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20235942, '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 = 20236732 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': 2548291, 'mtr_portfolio_id': 20236732, 'created_at': datetime.datetime(2025, 2, 5, 3, 21, 31), 'result': '0.05332195374871361', 'result_long': None, 'result_double': None}] Qualite : 0.05332195374871361 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20236732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20236732_05-02-2025_03_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20236732 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_P20236732_05-02-2025_03_21_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20236742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20236743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20236744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20236745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20236746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20236747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20236748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20236749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20236750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20236751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20236752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20236753, 'pht': 3726}}" where mtr_portfolio_id = 20236732 and dashboard_run_id = 1589821 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`=20236732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730700, 0.05332195374871361, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20236732_05-02-2025_03_21_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20236742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20236743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20236744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20236745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20236746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20236747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20236748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20236749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20236750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20236751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20236752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20236753, '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 = 20237074 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': 2548347, 'mtr_portfolio_id': 20237074, 'created_at': datetime.datetime(2025, 2, 5, 3, 30, 31), 'result': '0.054382021767244715', 'result_long': None, 'result_double': None}] Qualite : 0.054382021767244715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20237074 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20237074_05-02-2025_03_30_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20237074 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_P20237074_05-02-2025_03_30_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20237232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20237233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20237234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20237235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20237236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20237237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20237238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20237239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20237240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20237241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20237242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20237243, 'pht': 3726}}" where mtr_portfolio_id = 20237074 and dashboard_run_id = 1589821 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`=20237074 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730701, 0.054382021767244715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20237074_05-02-2025_03_30_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20237232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20237233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20237234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20237235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20237236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20237237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20237238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20237239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20237240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20237241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20237242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20237243, '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 = 20238027 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': 2548426, 'mtr_portfolio_id': 20238027, 'created_at': datetime.datetime(2025, 2, 5, 3, 50, 58), 'result': '0.0375205798795978', 'result_long': None, 'result_double': None}] Qualite : 0.0375205798795978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20238027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20238027_05-02-2025_03_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20238027 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_P20238027_05-02-2025_03_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20238036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20238037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20238038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20238039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20238040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20238041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20238042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20238043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20238044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20238045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20238046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20238047, 'pht': 3726}}" where mtr_portfolio_id = 20238027 and dashboard_run_id = 1589821 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`=20238027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730702, 0.0375205798795978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20238027_05-02-2025_03_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20238036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20238037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20238038, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20238039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20238040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20238041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20238042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20238043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20238044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20238045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20238046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20238047, '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 = 20238747 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': 2548473, 'mtr_portfolio_id': 20238747, 'created_at': datetime.datetime(2025, 2, 5, 4, 2, 29), 'result': '0.03820272303146344', 'result_long': None, 'result_double': None}] Qualite : 0.03820272303146344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20238747 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20238747_05-02-2025_04_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20238747 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_P20238747_05-02-2025_04_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20238750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20238751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20238752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20238753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20238754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20238755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20238756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20238757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20238758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20238759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20238760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20238761, 'pht': 3726}}" where mtr_portfolio_id = 20238747 and dashboard_run_id = 1589821 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`=20238747 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730703, 0.03820272303146344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20238747_05-02-2025_04_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20238750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20238751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20238752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20238753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20238754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20238755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20238756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20238757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20238758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20238759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20238760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20238761, '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 = 20239146 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': 2548516, 'mtr_portfolio_id': 20239146, 'created_at': datetime.datetime(2025, 2, 5, 4, 22, 59), 'result': '0.04750499371559835', 'result_long': None, 'result_double': None}] Qualite : 0.04750499371559835 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20239146 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20239146_05-02-2025_04_23_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20239146 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_P20239146_05-02-2025_04_23_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20239152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20239153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20239154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20239155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20239156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20239157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20239158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20239159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20239160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20239161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20239162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20239163, 'pht': 3726}}" where mtr_portfolio_id = 20239146 and dashboard_run_id = 1589821 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`=20239146 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730704, 0.04750499371559835, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20239146_05-02-2025_04_23_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20239152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20239153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20239154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20239155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20239156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20239157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20239158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20239159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20239160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20239161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20239162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20239163, '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 = 20239984 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': 2548590, 'mtr_portfolio_id': 20239984, 'created_at': datetime.datetime(2025, 2, 5, 4, 40, 59), 'result': '0.03423390859556807', 'result_long': None, 'result_double': None}] Qualite : 0.03423390859556807 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20239984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20239984_05-02-2025_04_41_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20239984 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_P20239984_05-02-2025_04_41_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20239991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20239992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20239993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20239994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20239995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20239996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20239997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20239998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20239999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20240000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20240001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20240002, 'pht': 3726}}" where mtr_portfolio_id = 20239984 and dashboard_run_id = 1589821 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`=20239984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730705, 0.03423390859556807, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20239984_05-02-2025_04_41_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20239991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20239992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20239993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20239994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20239995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20239996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20239997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20239998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20239999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20240000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20240001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20240002, '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 = 20240201 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': 2548735, 'mtr_portfolio_id': 20240201, 'created_at': datetime.datetime(2025, 2, 5, 5, 35, 28), 'result': '0.04403875581578304', 'result_long': None, 'result_double': None}] Qualite : 0.04403875581578304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20240201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20240201_05-02-2025_05_35_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20240201 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_P20240201_05-02-2025_05_35_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20240202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20240203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20240204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20240205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20240206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20240207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20240208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20240209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20240210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20240211, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20240212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20240213, 'pht': 3726}}" where mtr_portfolio_id = 20240201 and dashboard_run_id = 1589821 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`=20240201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730706, 0.04403875581578304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20240201_05-02-2025_05_35_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20240202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20240203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20240204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20240205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20240206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20240207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20240208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20240209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20240210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20240211, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20240212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20240213, '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 = 20241046 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': 2548736, 'mtr_portfolio_id': 20241046, 'created_at': datetime.datetime(2025, 2, 5, 5, 36, 1), 'result': '0.05339575616279592', 'result_long': None, 'result_double': None}] Qualite : 0.05339575616279592 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20241046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20241046_05-02-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20241046 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_P20241046_05-02-2025_05_36_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20241050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20241051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20241052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20241053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20241054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20241055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20241056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20241057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20241058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20241059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20241060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20241061, 'pht': 3726}}" where mtr_portfolio_id = 20241046 and dashboard_run_id = 1589821 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`=20241046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730707, 0.05339575616279592, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20241046_05-02-2025_05_36_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20241050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20241051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20241052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20241053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20241054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20241055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20241056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20241057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20241058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20241059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20241060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20241061, '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 = 20241183 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': 2548737, 'mtr_portfolio_id': 20241183, 'created_at': datetime.datetime(2025, 2, 5, 5, 34, 30), 'result': '0.05330421218923775', 'result_long': None, 'result_double': None}] Qualite : 0.05330421218923775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20241183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20241183_05-02-2025_05_34_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20241183 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_P20241183_05-02-2025_05_34_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20241191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20241192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20241193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20241194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20241195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20241196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20241197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20241198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20241199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20241200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20241201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20241202, 'pht': 3726}}" where mtr_portfolio_id = 20241183 and dashboard_run_id = 1589821 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`=20241183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730708, 0.05330421218923775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20241183_05-02-2025_05_34_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20241191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20241192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20241193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20241194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20241195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20241196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20241197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20241198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20241199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20241200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20241201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20241202, '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 = 20241795 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': 2548738, 'mtr_portfolio_id': 20241795, 'created_at': datetime.datetime(2025, 2, 5, 5, 48, 59), 'result': '0.03543992794622198', 'result_long': None, 'result_double': None}] Qualite : 0.03543992794622198 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20241795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20241795_05-02-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20241795 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_P20241795_05-02-2025_05_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20241801, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20241802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20241803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20241804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20241805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20241806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20241807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20241808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20241809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20241810, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20241811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20241812, 'pht': 3726}}" where mtr_portfolio_id = 20241795 and dashboard_run_id = 1589821 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`=20241795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730709, 0.03543992794622198, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20241795_05-02-2025_05_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20241801, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20241802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20241803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20241804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20241805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20241806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20241807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20241808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20241809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20241810, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20241811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20241812, '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 = 20242566 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': 2548776, 'mtr_portfolio_id': 20242566, 'created_at': datetime.datetime(2025, 2, 5, 6, 3, 1), 'result': '0.04895629215103259', 'result_long': None, 'result_double': None}] Qualite : 0.04895629215103259 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20242566 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20242566_05-02-2025_06_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20242566 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_P20242566_05-02-2025_06_03_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20242570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20242571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20242572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20242573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20242574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20242575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20242576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20242577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20242578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20242579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20242580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20242581, 'pht': 3726}}" where mtr_portfolio_id = 20242566 and dashboard_run_id = 1589821 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`=20242566 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730710, 0.04895629215103259, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20242566_05-02-2025_06_03_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20242570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20242571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20242572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20242573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20242574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20242575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20242576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20242577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20242578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20242579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20242580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20242581, '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 = 20242976 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': 2548823, 'mtr_portfolio_id': 20242976, 'created_at': datetime.datetime(2025, 2, 5, 6, 18, 59), 'result': '0.07445394235304356', 'result_long': None, 'result_double': None}] Qualite : 0.07445394235304356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20242976 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20242976_05-02-2025_06_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20242976 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_P20242976_05-02-2025_06_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20243038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20243039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20243040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20243041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20243042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20243043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20243044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20243045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20243046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20243047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20243048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20243049, 'pht': 3726}}" where mtr_portfolio_id = 20242976 and dashboard_run_id = 1589821 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`=20242976 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730711, 0.07445394235304356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20242976_05-02-2025_06_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20243038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20243039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20243040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20243041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20243042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20243043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20243044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20243045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20243046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20243047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20243048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20243049, '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 = 20243319 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': 2548845, 'mtr_portfolio_id': 20243319, 'created_at': datetime.datetime(2025, 2, 5, 6, 26, 28), 'result': '0.05653499823710987', 'result_long': None, 'result_double': None}] Qualite : 0.05653499823710987 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20243319 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20243319_05-02-2025_06_26_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20243319 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_P20243319_05-02-2025_06_26_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20243325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20243326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20243327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20243328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20243329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20243330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20243331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20243332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20243333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20243334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20243335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20243336, 'pht': 3726}}" where mtr_portfolio_id = 20243319 and dashboard_run_id = 1589821 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`=20243319 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730712, 0.05653499823710987, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20243319_05-02-2025_06_26_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20243325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20243326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20243327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20243328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20243329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20243330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20243331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20243332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20243333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20243334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20243335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20243336, '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 = 20244101 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': 2548899, 'mtr_portfolio_id': 20244101, 'created_at': datetime.datetime(2025, 2, 5, 6, 47, 2), 'result': '0.0602809775628202', 'result_long': None, 'result_double': None}] Qualite : 0.0602809775628202 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20244101 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20244101_05-02-2025_06_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20244101 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_P20244101_05-02-2025_06_47_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20244107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20244108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20244109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20244110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20244111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20244112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20244113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20244114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20244115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20244116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20244117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20244118, 'pht': 3726}}" where mtr_portfolio_id = 20244101 and dashboard_run_id = 1589821 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`=20244101 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730713, 0.0602809775628202, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20244101_05-02-2025_06_47_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20244107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20244108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20244109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20244110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20244111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20244112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20244113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20244114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20244115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20244116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20244117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20244118, '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 = 20244392 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': 2548917, 'mtr_portfolio_id': 20244392, 'created_at': datetime.datetime(2025, 2, 5, 7, 2, 59), 'result': '0.051322607517755574', 'result_long': None, 'result_double': None}] Qualite : 0.051322607517755574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20244392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20244392_05-02-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20244392 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_P20244392_05-02-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20244396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20244397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20244398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20244399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20244400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20244401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20244402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20244403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20244404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20244405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20244406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20244407, 'pht': 3726}}" where mtr_portfolio_id = 20244392 and dashboard_run_id = 1589821 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`=20244392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730714, 0.051322607517755574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20244392_05-02-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20244396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20244397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20244398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20244399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20244400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20244401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20244402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20244403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20244404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20244405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20244406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20244407, '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 = 20244961 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': 2548977, 'mtr_portfolio_id': 20244961, 'created_at': datetime.datetime(2025, 2, 5, 7, 22, 59), 'result': '0.04339564030374166', 'result_long': None, 'result_double': None}] Qualite : 0.04339564030374166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20244961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20244961_05-02-2025_07_23_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20244961 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_P20244961_05-02-2025_07_23_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20244966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20244967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20244968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20244969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20244970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20244971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20244972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20244973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20244974, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20244975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20244976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20244977, 'pht': 3726}}" where mtr_portfolio_id = 20244961 and dashboard_run_id = 1589821 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`=20244961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730715, 0.04339564030374166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20244961_05-02-2025_07_23_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20244966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20244967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20244968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20244969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20244970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20244971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20244972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20244973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20244974, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20244975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20244976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20244977, '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 = 20245355 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': 2548999, 'mtr_portfolio_id': 20245355, 'created_at': datetime.datetime(2025, 2, 5, 7, 32, 59), 'result': '0.05642764257569563', 'result_long': None, 'result_double': None}] Qualite : 0.05642764257569563 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20245355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20245355_05-02-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20245355 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_P20245355_05-02-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20245380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20245381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20245382, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20245383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20245384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20245385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20245386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20245387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20245388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20245389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20245390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20245391, 'pht': 3726}}" where mtr_portfolio_id = 20245355 and dashboard_run_id = 1589821 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`=20245355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730716, 0.05642764257569563, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20245355_05-02-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20245380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20245381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20245382, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20245383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20245384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20245385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20245386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20245387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20245388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20245389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20245390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20245391, '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 = 20245995 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': 2549055, 'mtr_portfolio_id': 20245995, 'created_at': datetime.datetime(2025, 2, 5, 8, 4, 58), 'result': '0.06361217973606786', 'result_long': None, 'result_double': None}] Qualite : 0.06361217973606786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20245995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20245995_05-02-2025_08_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20245995 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_P20245995_05-02-2025_08_04_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20246028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20246029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20246030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20246031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20246032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20246033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20246034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20246035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20246036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20246037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20246038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20246039, 'pht': 3726}}" where mtr_portfolio_id = 20245995 and dashboard_run_id = 1589821 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`=20245995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730717, 0.06361217973606786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20245995_05-02-2025_08_04_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20246028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20246029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20246030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20246031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20246032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20246033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20246034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20246035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20246036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20246037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20246038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20246039, '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 = 20246827 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 = 20246827 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 = 20246827 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20246827 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 = 20246827 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 = 20246827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20246827_05-02-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20246827 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_P20246827_05-02-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20246869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20246870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20246871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20246872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20246873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20246874, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20246875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20246876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20246877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20246878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20246879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20246880, 'pht': 3726}}" where mtr_portfolio_id = 20246827 and dashboard_run_id = 1589821 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 = 20247107 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': 2549241, 'mtr_portfolio_id': 20247107, 'created_at': datetime.datetime(2025, 2, 5, 8, 33), 'result': '0.03511178910191624', 'result_long': None, 'result_double': None}] Qualite : 0.03511178910191624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20247107 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20247107_05-02-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20247107 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_P20247107_05-02-2025_08_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20247122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20247123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20247124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20247125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20247126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20247127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20247128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20247129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20247130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20247131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20247132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20247133, 'pht': 3726}}" where mtr_portfolio_id = 20247107 and dashboard_run_id = 1589821 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`=20247107 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730719, 0.03511178910191624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20247107_05-02-2025_08_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20247122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20247123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20247124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20247125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20247126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20247127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20247128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20247129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20247130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20247131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20247132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20247133, '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 = 20247621 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': 2549350, 'mtr_portfolio_id': 20247621, 'created_at': datetime.datetime(2025, 2, 5, 8, 49, 1), 'result': '0.03201260177414222', 'result_long': None, 'result_double': None}] Qualite : 0.03201260177414222 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20247621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20247621_05-02-2025_08_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20247621 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_P20247621_05-02-2025_08_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20247628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20247629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20247630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20247631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20247632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20247633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20247634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20247635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20247636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20247637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20247638, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20247639, 'pht': 3726}}" where mtr_portfolio_id = 20247621 and dashboard_run_id = 1589821 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`=20247621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730720, 0.03201260177414222, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20247621_05-02-2025_08_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20247628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20247629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20247630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20247631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20247632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20247633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20247634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20247635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20247636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20247637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20247638, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20247639, '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 = 20248017 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': 2549490, 'mtr_portfolio_id': 20248017, 'created_at': datetime.datetime(2025, 2, 5, 9, 3, 1), 'result': '0.04669902776954822', 'result_long': None, 'result_double': None}] Qualite : 0.04669902776954822 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20248017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20248017_05-02-2025_09_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20248017 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_P20248017_05-02-2025_09_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20248018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20248019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20248020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20248021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20248022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20248023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20248024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20248025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20248026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20248027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20248028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20248029, 'pht': 3726}}" where mtr_portfolio_id = 20248017 and dashboard_run_id = 1589821 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`=20248017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730721, 0.04669902776954822, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20248017_05-02-2025_09_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20248018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20248019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20248020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20248021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20248022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20248023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20248024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20248025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20248026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20248027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20248028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20248029, '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 = 20249921 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': 2549894, 'mtr_portfolio_id': 20249921, 'created_at': datetime.datetime(2025, 2, 5, 9, 46, 31), 'result': '0.07524672636669368', 'result_long': None, 'result_double': None}] Qualite : 0.07524672636669368 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20249921 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20249921_05-02-2025_09_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20249921 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_P20249921_05-02-2025_09_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20249935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20249936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20249937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20249938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20249939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20249940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20249941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20249942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20249943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20249944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20249945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20249946, 'pht': 3726}}" where mtr_portfolio_id = 20249921 and dashboard_run_id = 1589821 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`=20249921 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730722, 0.07524672636669368, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20249921_05-02-2025_09_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20249935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20249936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20249937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20249938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20249939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20249940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20249941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20249942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20249943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20249944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20249945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20249946, '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 = 20250370 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': 2549929, 'mtr_portfolio_id': 20250370, 'created_at': datetime.datetime(2025, 2, 5, 10, 2, 59), 'result': '0.03986562408413117', 'result_long': None, 'result_double': None}] Qualite : 0.03986562408413117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20250370 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20250370_05-02-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20250370 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_P20250370_05-02-2025_10_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20250375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20250376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20250377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20250378, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20250379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20250380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20250381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20250382, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20250383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20250384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20250385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20250386, 'pht': 3726}}" where mtr_portfolio_id = 20250370 and dashboard_run_id = 1589821 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`=20250370 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730723, 0.03986562408413117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20250370_05-02-2025_10_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20250375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20250376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20250377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20250378, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20250379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20250380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20250381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20250382, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20250383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20250384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20250385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20250386, '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 = 20250883 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': 2549974, 'mtr_portfolio_id': 20250883, 'created_at': datetime.datetime(2025, 2, 5, 10, 18, 59), 'result': '0.034492183273185664', 'result_long': None, 'result_double': None}] Qualite : 0.034492183273185664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20250883 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20250883_05-02-2025_10_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20250883 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_P20250883_05-02-2025_10_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20250914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20250915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20250916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20250917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20250918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20250919, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20250920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20250921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20250922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20250923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20250924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20250925, 'pht': 3726}}" where mtr_portfolio_id = 20250883 and dashboard_run_id = 1589821 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`=20250883 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730724, 0.034492183273185664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20250883_05-02-2025_10_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20250914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20250915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20250916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20250917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20250918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20250919, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20250920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20250921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20250922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20250923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20250924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20250925, '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 = 20251294 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': 2550060, 'mtr_portfolio_id': 20251294, 'created_at': datetime.datetime(2025, 2, 5, 10, 32, 57), 'result': '0.03796662674985031', 'result_long': None, 'result_double': None}] Qualite : 0.03796662674985031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20251294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20251294_05-02-2025_10_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20251294 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_P20251294_05-02-2025_10_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20251309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20251310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20251311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20251312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20251313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20251314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20251315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20251316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20251317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20251318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20251319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20251320, 'pht': 3726}}" where mtr_portfolio_id = 20251294 and dashboard_run_id = 1589821 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`=20251294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730725, 0.03796662674985031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20251294_05-02-2025_10_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20251309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20251310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20251311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20251312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20251313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20251314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20251315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20251316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20251317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20251318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20251319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20251320, '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 = 20251725 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': 2550207, 'mtr_portfolio_id': 20251725, 'created_at': datetime.datetime(2025, 2, 5, 10, 49, 32), 'result': '0.02328427930091541', 'result_long': None, 'result_double': None}] Qualite : 0.02328427930091541 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20251725 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20251725_05-02-2025_10_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20251725 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_P20251725_05-02-2025_10_49_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20251732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20251733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20251734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20251735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20251736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20251737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20251738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20251739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20251740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20251741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20251742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20251743, 'pht': 3726}}" where mtr_portfolio_id = 20251725 and dashboard_run_id = 1589821 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`=20251725 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730726, 0.02328427930091541, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20251725_05-02-2025_10_49_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20251732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20251733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20251734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20251735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20251736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20251737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20251738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20251739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20251740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20251741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20251742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20251743, '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 = 20252355 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': 2550423, 'mtr_portfolio_id': 20252355, 'created_at': datetime.datetime(2025, 2, 5, 11, 2, 57), 'result': '0.049078891289163463', 'result_long': None, 'result_double': None}] Qualite : 0.049078891289163463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20252355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20252355_05-02-2025_11_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20252355 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_P20252355_05-02-2025_11_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20252407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20252408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20252409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20252410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20252411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20252412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20252413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20252414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20252415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20252416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20252417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20252418, 'pht': 3726}}" where mtr_portfolio_id = 20252355 and dashboard_run_id = 1589821 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`=20252355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730727, 0.049078891289163463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20252355_05-02-2025_11_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20252407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20252408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20252409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20252410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20252411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20252412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20252413, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20252414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20252415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20252416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20252417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20252418, '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 = 20253177 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': 2550741, 'mtr_portfolio_id': 20253177, 'created_at': datetime.datetime(2025, 2, 5, 11, 16, 31), 'result': '0.04851078714601069', 'result_long': None, 'result_double': None}] Qualite : 0.04851078714601069 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20253177 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20253177_05-02-2025_11_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20253177 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_P20253177_05-02-2025_11_16_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20253186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20253187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20253188, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20253189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20253190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20253191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20253192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20253193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20253194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20253195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20253196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20253197, 'pht': 3726}}" where mtr_portfolio_id = 20253177 and dashboard_run_id = 1589821 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`=20253177 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730728, 0.04851078714601069, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20253177_05-02-2025_11_16_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20253186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20253187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20253188, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20253189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20253190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20253191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20253192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20253193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20253194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20253195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20253196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20253197, '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 = 20253785 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': 2550930, 'mtr_portfolio_id': 20253785, 'created_at': datetime.datetime(2025, 2, 5, 11, 32, 58), 'result': '0.04903553767133411', 'result_long': None, 'result_double': None}] Qualite : 0.04903553767133411 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20253785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20253785_05-02-2025_11_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20253785 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_P20253785_05-02-2025_11_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20253786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20253787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20253788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20253789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20253790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20253791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20253792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20253793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20253794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20253795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20253796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20253797, 'pht': 3726}}" where mtr_portfolio_id = 20253785 and dashboard_run_id = 1589821 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`=20253785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730729, 0.04903553767133411, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20253785_05-02-2025_11_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20253786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20253787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20253788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20253789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20253790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20253791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20253792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20253793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20253794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20253795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20253796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20253797, '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 = 20254446 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': 2551047, 'mtr_portfolio_id': 20254446, 'created_at': datetime.datetime(2025, 2, 5, 11, 48, 59), 'result': '0.03643221851672503', 'result_long': None, 'result_double': None}] Qualite : 0.03643221851672503 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20254446 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20254446_05-02-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20254446 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_P20254446_05-02-2025_11_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20254453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20254454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20254455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20254456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20254457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20254458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20254459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20254460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20254461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20254462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20254463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20254464, 'pht': 3726}}" where mtr_portfolio_id = 20254446 and dashboard_run_id = 1589821 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`=20254446 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730730, 0.03643221851672503, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20254446_05-02-2025_11_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20254453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20254454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20254455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20254456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20254457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20254458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20254459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20254460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20254461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20254462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20254463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20254464, '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 = 20255240 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': 2551211, 'mtr_portfolio_id': 20255240, 'created_at': datetime.datetime(2025, 2, 5, 12, 2, 58), 'result': '0.04570272074587892', 'result_long': None, 'result_double': None}] Qualite : 0.04570272074587892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20255240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20255240_05-02-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20255240 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_P20255240_05-02-2025_12_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20255271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20255272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20255273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20255274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20255275, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20255276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20255277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20255278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20255279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20255280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20255281, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20255282, 'pht': 3726}}" where mtr_portfolio_id = 20255240 and dashboard_run_id = 1589821 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`=20255240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730731, 0.04570272074587892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20255240_05-02-2025_12_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20255271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20255272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20255273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20255274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20255275, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20255276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20255277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20255278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20255279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20255280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20255281, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20255282, '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 = 20255840 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': 2551290, 'mtr_portfolio_id': 20255840, 'created_at': datetime.datetime(2025, 2, 5, 12, 39), 'result': '0.05318617987359266', 'result_long': None, 'result_double': None}] Qualite : 0.05318617987359266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20255840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20255840_05-02-2025_12_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20255840 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_P20255840_05-02-2025_12_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20255849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20255850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20255851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20255852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20255853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20255854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20255855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20255856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20255857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20255858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20255859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20255860, 'pht': 3726}}" where mtr_portfolio_id = 20255840 and dashboard_run_id = 1589821 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`=20255840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730732, 0.05318617987359266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20255840_05-02-2025_12_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20255849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20255850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20255851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20255852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20255853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20255854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20255855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20255856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20255857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20255858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20255859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20255860, '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 = 20258001 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': 2551650, 'mtr_portfolio_id': 20258001, 'created_at': datetime.datetime(2025, 2, 5, 13, 46, 58), 'result': '0.043397294932287896', 'result_long': None, 'result_double': None}] Qualite : 0.043397294932287896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20258001 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20258001_05-02-2025_13_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20258001 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_P20258001_05-02-2025_13_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20258003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20258004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20258005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20258006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20258007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20258008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20258009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20258010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20258011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20258012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20258013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20258014, 'pht': 3726}}" where mtr_portfolio_id = 20258001 and dashboard_run_id = 1589821 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`=20258001 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730733, 0.043397294932287896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20258001_05-02-2025_13_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20258003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20258004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20258005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20258006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20258007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20258008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20258009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20258010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20258011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20258012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20258013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20258014, '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 = 20258039 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': 2551653, 'mtr_portfolio_id': 20258039, 'created_at': datetime.datetime(2025, 2, 5, 14, 3), 'result': '0.05626054539949313', 'result_long': None, 'result_double': None}] Qualite : 0.05626054539949313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20258039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20258039_05-02-2025_14_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20258039 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_P20258039_05-02-2025_14_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20258042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20258043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20258044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20258045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20258046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20258047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20258048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20258049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20258050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20258051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20258052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20258053, 'pht': 3726}}" where mtr_portfolio_id = 20258039 and dashboard_run_id = 1589821 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`=20258039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730734, 0.05626054539949313, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20258039_05-02-2025_14_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20258042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20258043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20258044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20258045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20258046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20258047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20258048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20258049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20258050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20258051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20258052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20258053, '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 = 20258632 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': 2551703, 'mtr_portfolio_id': 20258632, 'created_at': datetime.datetime(2025, 2, 5, 14, 16, 57), 'result': '0.048649124518686374', 'result_long': None, 'result_double': None}] Qualite : 0.048649124518686374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20258632 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20258632_05-02-2025_14_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20258632 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_P20258632_05-02-2025_14_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20258654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20258655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20258656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20258657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20258658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20258659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20258660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20258661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20258662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20258663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20258664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20258665, 'pht': 3726}}" where mtr_portfolio_id = 20258632 and dashboard_run_id = 1589821 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`=20258632 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730735, 0.048649124518686374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20258632_05-02-2025_14_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20258654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20258655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20258656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20258657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20258658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20258659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20258660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20258661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20258662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20258663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20258664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20258665, '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 = 20259151 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': 2551770, 'mtr_portfolio_id': 20259151, 'created_at': datetime.datetime(2025, 2, 5, 14, 32, 29), 'result': '0.040442967301595835', 'result_long': None, 'result_double': None}] Qualite : 0.040442967301595835 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20259151 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20259151_05-02-2025_14_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20259151 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_P20259151_05-02-2025_14_32_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20259220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20259221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20259222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20259223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20259224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20259225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20259226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20259227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20259228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20259229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20259230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20259231, 'pht': 3726}}" where mtr_portfolio_id = 20259151 and dashboard_run_id = 1589821 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`=20259151 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730736, 0.040442967301595835, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20259151_05-02-2025_14_32_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20259220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20259221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20259222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20259223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20259224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20259225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20259226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20259227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20259228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20259229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20259230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20259231, '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 = 20259950 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': 2551853, 'mtr_portfolio_id': 20259950, 'created_at': datetime.datetime(2025, 2, 5, 14, 46, 30), 'result': '0.057790166457172484', 'result_long': None, 'result_double': None}] Qualite : 0.057790166457172484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20259950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20259950_05-02-2025_14_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20259950 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_P20259950_05-02-2025_14_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20259959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20259960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20259961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20259962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20259963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20259964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20259965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20259966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20259967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20259968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20259969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20259970, 'pht': 3726}}" where mtr_portfolio_id = 20259950 and dashboard_run_id = 1589821 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`=20259950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730737, 0.057790166457172484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20259950_05-02-2025_14_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20259959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20259960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20259961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20259962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20259963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20259964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20259965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20259966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20259967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20259968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20259969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20259970, '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 = 20260642 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': 2551924, 'mtr_portfolio_id': 20260642, 'created_at': datetime.datetime(2025, 2, 5, 15, 2, 58), 'result': '0.053725874836447356', 'result_long': None, 'result_double': None}] Qualite : 0.053725874836447356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20260642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20260642_05-02-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20260642 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_P20260642_05-02-2025_15_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20260685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20260686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20260687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20260688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20260689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20260690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20260691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20260692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20260693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20260694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20260695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20260696, 'pht': 3726}}" where mtr_portfolio_id = 20260642 and dashboard_run_id = 1589821 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`=20260642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730738, 0.053725874836447356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20260642_05-02-2025_15_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20260685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20260686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20260687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20260688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20260689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20260690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20260691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20260692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20260693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20260694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20260695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20260696, '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 = 20261240 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': 2551989, 'mtr_portfolio_id': 20261240, 'created_at': datetime.datetime(2025, 2, 5, 15, 16, 59), 'result': '0.02409676861084138', 'result_long': None, 'result_double': None}] Qualite : 0.02409676861084138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20261240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20261240_05-02-2025_15_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20261240 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_P20261240_05-02-2025_15_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20261247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20261248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20261249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20261250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20261251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20261252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20261253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20261254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20261255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20261256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20261257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20261258, 'pht': 3726}}" where mtr_portfolio_id = 20261240 and dashboard_run_id = 1589821 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`=20261240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730739, 0.02409676861084138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20261240_05-02-2025_15_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20261247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20261248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20261249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20261250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20261251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20261252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20261253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20261254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20261255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20261256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20261257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20261258, '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 = 20261452 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': 2552063, 'mtr_portfolio_id': 20261452, 'created_at': datetime.datetime(2025, 2, 5, 15, 32, 59), 'result': '0.05184673070292047', 'result_long': None, 'result_double': None}] Qualite : 0.05184673070292047 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20261452 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20261452_05-02-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20261452 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_P20261452_05-02-2025_15_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20261461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20261462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20261463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20261464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20261465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20261466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20261467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20261468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20261469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20261470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20261471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20261472, 'pht': 3726}}" where mtr_portfolio_id = 20261452 and dashboard_run_id = 1589821 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`=20261452 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730740, 0.05184673070292047, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20261452_05-02-2025_15_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20261461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20261462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20261463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20261464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20261465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20261466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20261467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20261468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20261469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20261470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20261471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20261472, '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 = 20262234 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': 2552199, 'mtr_portfolio_id': 20262234, 'created_at': datetime.datetime(2025, 2, 5, 15, 46, 57), 'result': '0.038216745678866196', 'result_long': None, 'result_double': None}] Qualite : 0.038216745678866196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20262234 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20262234_05-02-2025_15_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20262234 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_P20262234_05-02-2025_15_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20262244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20262245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20262246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20262247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20262248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20262249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20262250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20262251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20262252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20262253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20262254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20262255, 'pht': 3726}}" where mtr_portfolio_id = 20262234 and dashboard_run_id = 1589821 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`=20262234 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730741, 0.038216745678866196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20262234_05-02-2025_15_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20262244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20262245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20262246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20262247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20262248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20262249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20262250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20262251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20262252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20262253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20262254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20262255, '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 = 20262935 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': 2552297, 'mtr_portfolio_id': 20262935, 'created_at': datetime.datetime(2025, 2, 5, 16, 2, 59), 'result': '0.04626237447395449', 'result_long': None, 'result_double': None}] Qualite : 0.04626237447395449 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20262935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20262935_05-02-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20262935 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_P20262935_05-02-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20262967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20262968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20262969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20262970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20262971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20262972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20262973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20262974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20262975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20262976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20262977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20262978, 'pht': 3726}}" where mtr_portfolio_id = 20262935 and dashboard_run_id = 1589821 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`=20262935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730742, 0.04626237447395449, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20262935_05-02-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20262967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20262968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20262969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20262970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20262971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20262972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20262973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20262974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20262975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20262976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20262977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20262978, '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 = 20263726 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': 2552368, 'mtr_portfolio_id': 20263726, 'created_at': datetime.datetime(2025, 2, 5, 16, 16, 58), 'result': '0.057243968003166085', 'result_long': None, 'result_double': None}] Qualite : 0.057243968003166085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20263726 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20263726_05-02-2025_16_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20263726 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_P20263726_05-02-2025_16_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20263756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20263757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20263758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20263759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20263760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20263761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20263762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20263763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20263764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20263765, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20263766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20263767, 'pht': 3726}}" where mtr_portfolio_id = 20263726 and dashboard_run_id = 1589821 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`=20263726 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730743, 0.057243968003166085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20263726_05-02-2025_16_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20263756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20263757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20263758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20263759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20263760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20263761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20263762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20263763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20263764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20263765, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20263766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20263767, '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 = 20264298 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': 2552410, 'mtr_portfolio_id': 20264298, 'created_at': datetime.datetime(2025, 2, 5, 16, 32, 58), 'result': '0.03939318960850438', 'result_long': None, 'result_double': None}] Qualite : 0.03939318960850438 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20264298 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20264298_05-02-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20264298 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_P20264298_05-02-2025_16_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20264303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20264304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20264305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20264306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20264307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20264308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20264309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20264310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20264311, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20264312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20264313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20264314, 'pht': 3726}}" where mtr_portfolio_id = 20264298 and dashboard_run_id = 1589821 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`=20264298 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730744, 0.03939318960850438, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20264298_05-02-2025_16_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20264303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20264304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20264305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20264306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20264307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20264308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20264309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20264310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20264311, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20264312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20264313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20264314, '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 = 20264910 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': 2552462, 'mtr_portfolio_id': 20264910, 'created_at': datetime.datetime(2025, 2, 5, 16, 48, 56), 'result': '0.057986085282461755', 'result_long': None, 'result_double': None}] Qualite : 0.057986085282461755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20264910 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20264910_05-02-2025_16_48_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20264910 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_P20264910_05-02-2025_16_48_56.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20264918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20264919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20264920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20264921, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20264922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20264923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20264924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20264925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20264926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20264927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20264928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20264929, 'pht': 3726}}" where mtr_portfolio_id = 20264910 and dashboard_run_id = 1589821 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`=20264910 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730745, 0.057986085282461755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20264910_05-02-2025_16_48_56.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20264918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20264919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20264920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20264921, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20264922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20264923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20264924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20264925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20264926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20264927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20264928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20264929, '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 = 20265501 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': 2552517, 'mtr_portfolio_id': 20265501, 'created_at': datetime.datetime(2025, 2, 5, 17, 2, 57), 'result': '0.030169712782979977', 'result_long': None, 'result_double': None}] Qualite : 0.030169712782979977 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20265501 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20265501_05-02-2025_17_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20265501 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_P20265501_05-02-2025_17_02_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20265543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20265544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20265545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20265546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20265547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20265548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20265549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20265550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20265551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20265552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20265553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20265554, 'pht': 3726}}" where mtr_portfolio_id = 20265501 and dashboard_run_id = 1589821 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`=20265501 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730746, 0.030169712782979977, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20265501_05-02-2025_17_02_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20265543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20265544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20265545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20265546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20265547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20265548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20265549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20265550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20265551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20265552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20265553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20265554, '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 = 20266192 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 = 20266192 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 = 20266192 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20266192 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 = 20266192 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 = 20266192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20266192_05-02-2025_17_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20266192 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_P20266192_05-02-2025_17_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20266211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20266212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20266213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20266214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20266215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20266216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20266217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20266218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20266219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20266220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20266221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20266222, 'pht': 3726}}" where mtr_portfolio_id = 20266192 and dashboard_run_id = 1589821 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 = 20266480 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': 2552695, 'mtr_portfolio_id': 20266480, 'created_at': datetime.datetime(2025, 2, 5, 17, 32, 58), 'result': '0.02141101337321177', 'result_long': None, 'result_double': None}] Qualite : 0.02141101337321177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20266480 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20266480_05-02-2025_17_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20266480 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_P20266480_05-02-2025_17_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20266498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20266499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20266500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20266501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20266502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20266503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20266504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20266505, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20266506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20266507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20266508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20266509, 'pht': 3726}}" where mtr_portfolio_id = 20266480 and dashboard_run_id = 1589821 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`=20266480 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730748, 0.02141101337321177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20266480_05-02-2025_17_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20266498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20266499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20266500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20266501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20266502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20266503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20266504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20266505, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20266506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20266507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20266508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20266509, '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 = 20268460 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': 2553123, 'mtr_portfolio_id': 20268460, 'created_at': datetime.datetime(2025, 2, 5, 18, 19, 1), 'result': '0.021279511115317184', 'result_long': None, 'result_double': None}] Qualite : 0.021279511115317184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20268460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20268460_05-02-2025_18_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20268460 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_P20268460_05-02-2025_18_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20268463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20268464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20268465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20268466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20268467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20268468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20268469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20268470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20268471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20268472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20268473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20268474, 'pht': 3726}}" where mtr_portfolio_id = 20268460 and dashboard_run_id = 1589821 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`=20268460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730749, 0.021279511115317184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20268460_05-02-2025_18_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20268463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20268464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20268465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20268466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20268467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20268468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20268469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20268470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20268471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20268472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20268473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20268474, '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 = 20268669 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': 2553180, 'mtr_portfolio_id': 20268669, 'created_at': datetime.datetime(2025, 2, 5, 18, 32, 58), 'result': '0.05755886160247742', 'result_long': None, 'result_double': None}] Qualite : 0.05755886160247742 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20268669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20268669_05-02-2025_18_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20268669 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_P20268669_05-02-2025_18_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20268720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20268721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20268722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20268723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20268724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20268725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20268726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20268727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20268728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20268729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20268730, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20268731, 'pht': 3726}}" where mtr_portfolio_id = 20268669 and dashboard_run_id = 1589821 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`=20268669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730750, 0.05755886160247742, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20268669_05-02-2025_18_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20268720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20268721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20268722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20268723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20268724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20268725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20268726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20268727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20268728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20268729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20268730, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20268731, '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 = 20269374 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': 2553348, 'mtr_portfolio_id': 20269374, 'created_at': datetime.datetime(2025, 2, 5, 18, 48, 31), 'result': '0.026913816771957977', 'result_long': None, 'result_double': None}] Qualite : 0.026913816771957977 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20269374 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20269374_05-02-2025_18_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20269374 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_P20269374_05-02-2025_18_48_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20269383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20269384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20269385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20269386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20269387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20269388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20269389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20269390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20269391, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20269392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20269393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20269394, 'pht': 3726}}" where mtr_portfolio_id = 20269374 and dashboard_run_id = 1589821 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`=20269374 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730751, 0.026913816771957977, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20269374_05-02-2025_18_48_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20269383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20269384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20269385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20269386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20269387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20269388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20269389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20269390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20269391, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20269392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20269393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20269394, '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 = 20270618 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 = 20270618 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 = 20270618 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20270618 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 = 20270618 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 = 20270618 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20270618_05-02-2025_19_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20270618 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_P20270618_05-02-2025_19_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20270622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20270623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20270624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20270625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20270626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20270627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20270628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20270629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20270630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20270631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20270632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20270633, 'pht': 3726}}" where mtr_portfolio_id = 20270618 and dashboard_run_id = 1589821 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 = 20270683 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 = 20270683 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 = 20270683 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20270683 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 = 20270683 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 = 20270683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20270683_05-02-2025_19_36_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20270683 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_P20270683_05-02-2025_19_36_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20270690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20270691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20270692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20270693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20270694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20270695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20270696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20270697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20270698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20270699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20270700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20270701, 'pht': 3726}}" where mtr_portfolio_id = 20270683 and dashboard_run_id = 1589821 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 = 20270978 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': 2553696, 'mtr_portfolio_id': 20270978, 'created_at': datetime.datetime(2025, 2, 5, 19, 46, 59), 'result': '0.020187408033495634', 'result_long': None, 'result_double': None}] Qualite : 0.020187408033495634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20270978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20270978_05-02-2025_19_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20270978 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_P20270978_05-02-2025_19_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20270987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20270988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20270989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20270990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20270991, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20270992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20270993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20270994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20270995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20270996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20270997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20270998, 'pht': 3726}}" where mtr_portfolio_id = 20270978 and dashboard_run_id = 1589821 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`=20270978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730754, 0.020187408033495634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20270978_05-02-2025_19_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20270987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20270988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20270989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20270990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20270991, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20270992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20270993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20270994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20270995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20270996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20270997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20270998, '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 = 20271120 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': 2553766, 'mtr_portfolio_id': 20271120, 'created_at': datetime.datetime(2025, 2, 5, 20, 2, 59), 'result': '0.025200822133653773', 'result_long': None, 'result_double': None}] Qualite : 0.025200822133653773 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20271120 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20271120_05-02-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20271120 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_P20271120_05-02-2025_20_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20271130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20271131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20271132, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20271133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20271134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20271135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20271136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20271137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20271138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20271139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20271140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20271141, 'pht': 3726}}" where mtr_portfolio_id = 20271120 and dashboard_run_id = 1589821 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`=20271120 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730755, 0.025200822133653773, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20271120_05-02-2025_20_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20271130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20271131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20271132, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20271133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20271134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20271135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20271136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20271137, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20271138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20271139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20271140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20271141, '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 = 20271621 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 = 20271621 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 = 20271621 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20271621 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 = 20271621 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 = 20271621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20271621_05-02-2025_20_18_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20271621 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_P20271621_05-02-2025_20_18_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20271630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20271631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20271632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20271633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20271634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20271635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20271636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20271637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20271638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20271639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20271640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20271641, 'pht': 3726}}" where mtr_portfolio_id = 20271621 and dashboard_run_id = 1589821 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 = 20271942 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 = 20271942 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 = 20271942 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20271942 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 = 20271942 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 = 20271942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20271942_05-02-2025_20_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20271942 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_P20271942_05-02-2025_20_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20271952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20271953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20271954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20271955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20271956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20271957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20271958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20271959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20271960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20271961, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20271962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20271963, 'pht': 3726}}" where mtr_portfolio_id = 20271942 and dashboard_run_id = 1589821 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 = 20272266 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': 2554262, 'mtr_portfolio_id': 20272266, 'created_at': datetime.datetime(2025, 2, 5, 21, 8, 30), 'result': '0.03850031542531166', 'result_long': None, 'result_double': None}] Qualite : 0.03850031542531166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20272266 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20272266_05-02-2025_21_08_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20272266 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_P20272266_05-02-2025_21_08_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20272278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20272279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20272280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20272281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20272282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20272283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20272284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20272285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20272286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20272287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20272288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20272289, 'pht': 3726}}" where mtr_portfolio_id = 20272266 and dashboard_run_id = 1589821 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`=20272266 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730758, 0.03850031542531166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20272266_05-02-2025_21_08_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20272278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20272279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20272280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20272281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20272282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20272283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20272284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20272285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20272286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20272287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20272288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20272289, '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 = 20273313 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': 2554913, 'mtr_portfolio_id': 20273313, 'created_at': datetime.datetime(2025, 2, 5, 21, 32, 57), 'result': '0.044304270768830256', 'result_long': None, 'result_double': None}] Qualite : 0.044304270768830256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20273313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20273313_05-02-2025_21_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20273313 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_P20273313_05-02-2025_21_32_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20273341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20273342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20273343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20273344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20273345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20273346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20273347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20273348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20273349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20273350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20273351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20273352, 'pht': 3726}}" where mtr_portfolio_id = 20273313 and dashboard_run_id = 1589821 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`=20273313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730759, 0.044304270768830256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20273313_05-02-2025_21_32_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20273341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20273342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20273343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20273344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20273345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20273346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20273347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20273348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20273349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20273350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20273351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20273352, '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 = 20273558 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 = 20273558 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 = 20273558 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20273558 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 = 20273558 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 = 20273558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20273558_05-02-2025_21_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20273558 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_P20273558_05-02-2025_21_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20273568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20273569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20273570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20273571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20273572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20273573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20273574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20273575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20273576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20273577, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20273578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20273579, 'pht': 3726}}" where mtr_portfolio_id = 20273558 and dashboard_run_id = 1589821 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 = 20273741 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 = 20273741 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 = 20273741 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20273741 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 = 20273741 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 = 20273741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20273741_05-02-2025_22_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20273741 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_P20273741_05-02-2025_22_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20273749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20273750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20273751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20273752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20273753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20273754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20273755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20273756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20273757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20273758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20273759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20273760, 'pht': 3726}}" where mtr_portfolio_id = 20273741 and dashboard_run_id = 1589821 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 = 20274041 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 = 20274041 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 = 20274041 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20274041 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 = 20274041 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 = 20274041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20274041_05-02-2025_22_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20274041 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_P20274041_05-02-2025_22_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20274057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20274058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20274059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20274060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20274061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20274062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20274063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20274064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20274065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20274066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20274067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20274068, 'pht': 3726}}" where mtr_portfolio_id = 20274041 and dashboard_run_id = 1589821 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 = 20274469 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 = 20274469 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 = 20274469 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20274469 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 = 20274469 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 = 20274469 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20274469_05-02-2025_22_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20274469 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_P20274469_05-02-2025_22_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20274502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20274503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20274504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20274505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20274506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20274507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20274508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20274509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20274510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20274511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20274512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20274513, 'pht': 3726}}" where mtr_portfolio_id = 20274469 and dashboard_run_id = 1589821 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 = 20274918 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 = 20274918 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 = 20274918 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20274918 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 = 20274918 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 = 20274918 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20274918_05-02-2025_22_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20274918 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_P20274918_05-02-2025_22_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20274972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20274973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20274974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20274975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20274976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20274977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20274978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20274979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20274980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20274981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20274982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20274983, 'pht': 3726}}" where mtr_portfolio_id = 20274918 and dashboard_run_id = 1589821 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 = 20275438 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': 2556428, 'mtr_portfolio_id': 20275438, 'created_at': datetime.datetime(2025, 2, 6, 6, 3, 31), 'result': '0.05568014413990315', 'result_long': None, 'result_double': None}] Qualite : 0.05568014413990315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20275438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20275438_06-02-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20275438 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_P20275438_06-02-2025_06_03_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20275480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20275481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20275482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20275483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20275484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20275485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20275486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20275487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20275488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20275489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20275490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20275491, 'pht': 3726}}" where mtr_portfolio_id = 20275438 and dashboard_run_id = 1589821 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`=20275438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8730765, 0.05568014413990315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20275438_06-02-2025_06_03_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20275480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20275481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20275482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20275483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20275484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20275485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20275486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20275487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20275488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20275489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20275490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20275491, '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 = 20287909 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 = 20287909 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 = 20287909 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20287909 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 = 20287909 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 = 20287909 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20287909_06-02-2025_06_02_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20287909 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_P20287909_06-02-2025_06_02_36.pdf'}" where mtr_portfolio_id = 20287909 and dashboard_run_id = 1589821 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 = 20287910 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 = 20287910 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 = 20287910 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20287910 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 = 20287910 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 = 20287910 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20287910_06-02-2025_06_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20287910 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_P20287910_06-02-2025_06_00_32.pdf'}" where mtr_portfolio_id = 20287910 and dashboard_run_id = 1589821 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 = 20287935 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 = 20287935 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 = 20287935 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20287935 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 = 20287935 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 = 20287935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20287935_06-02-2025_06_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20287935 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_P20287935_06-02-2025_06_01_32.pdf'}" where mtr_portfolio_id = 20287935 and dashboard_run_id = 1589821 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 = 20287936 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 = 20287936 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 = 20287936 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20287936 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 = 20287936 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 = 20287936 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20287936_06-02-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20287936 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_P20287936_06-02-2025_06_02_01.pdf'}" where mtr_portfolio_id = 20287936 and dashboard_run_id = 1589821 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20287907,20287908,20234524,20234662,20234716,20234792,20235115,20235871,20236732,20237074,20238027,20238747,20239146,20239984,20240201,20241046,20241183,20241795,20242566,20242976,20243319,20244101,20244392,20244961,20245355,20245995,20246827,20247107,20247621,20248017,20249921,20250370,20250883,20251294,20251725,20252355,20253177,20253785,20254446,20255240,20255840,20258001,20258039,20258632,20259151,20259950,20260642,20261240,20261452,20262234,20262935,20263726,20264298,20264910,20265501,20266192,20266480,20268460,20268669,20269374,20270618,20270683,20270978,20271120,20271621,20271942,20272266,20273313,20273558,20273741,20274041,20274469,20274918,20275438,20287909,20287910,20287935,20287936) result : ((1334739632,), (1334739635,), (1334739640,), (1334739643,), (1334739649,), (1334739653,), (1334739655,), (1334739656,), (1334739657,), (1334739658,), (1334739661,), (1334739664,), (1334739670,), (1334739674,), (1334739679,), (1334739681,), (1334739713,), (1334739750,), (1334744358,), (1334744361,), (1334744362,), (1334744381,), (1334744388,), (1334744389,), (1334744392,), (1334744396,), (1334744397,), (1334744437,), (1334744439,), (1334744441,), (1334744764,), (1334744885,), (1334744886,), (1334744887,), (1334744896,), (1334744903,), (1334744946,), (1334744969,), (1334745032,), (1334745037,), (1334745177,), (1334745190,), (1334745330,), (1334745331,), (1334745406,), (1334745413,), (1334745415,), (1334745417,), (1334745418,), (1334745427,), (1334745428,), (1334745435,), (1334745596,), (1334745598,), (1334745636,), (1334745639,), (1334745661,), (1334745676,), (1334745919,), (1334745920,), (1334745929,), (1334745933,), (1334745939,), (1334745942,), (1334746007,), (1334746008,), (1334746009,), (1334731965,), (1334731968,), (1334739801,), (1334739842,), (1334739862,), (1334739911,), (1334740001,), (1334740099,), (1334740300,), (1334740343,), (1334740394,), (1334740402,), (1334740421,), (1334740425,), (1334740440,), (1334740444,), (1334740449,), (1334740465,), (1334740513,), (1334740554,), (1334743839,), (1334743840,), (1334743861,), (1334743903,), (1334743933,), (1334743951,), (1334743955,), (1334743960,), (1334743962,), (1334743964,), (1334743965,), (1334743967,), (1334743970,), (1334743974,), (1334743977,), (1334743981,), (1334743983,), (1334743990,), (1334743995,), (1334744000,), (1334744004,), (1334744010,), (1334744019,), (1334744058,), (1334744067,), (1334744068,), (1334744069,), (1334744070,), (1334744072,), (1334744077,), (1334744098,), (1334744101,), (1334744103,), (1334744104,), (1334744105,), (1334744106,), (1334744107,), (1334744125,), (1334744127,), (1334744183,), (1334744195,), (1334744239,), (1334744241,), (1334744242,), (1334744254,), (1334744275,), (1334744277,), (1334744292,), (1334744304,), (1334744339,), (1334744342,), (1334744346,), (1334733121,), (1334740744,), (1334740789,), (1334740862,), (1334740889,), (1334740945,), (1334740976,), (1334741023,), (1334741106,), (1334741176,), (1334741259,), (1334741304,), (1334741320,), (1334741355,), (1334741359,), (1334741385,), (1334741418,), (1334741480,), (1334741557,), (1334741609,), (1334741610,), (1334741618,), (1334741620,), (1334741626,), (1334741670,), (1334742645,), (1334742650,), (1334742688,), (1334742764,), (1334742816,), (1334742845,), (1334742978,), (1334743010,), (1334743064,), (1334743069,), (1334743071,), (1334743073,), (1334743074,), (1334743076,), (1334743158,), (1334743159,), (1334743165,), (1334743185,), (1334743188,), (1334743192,), (1334743263,), (1334743272,), (1334743319,), (1334743321,), (1334743380,), (1334743389,), (1334743396,), (1334743419,), (1334743420,), (1334743433,), (1334743434,), (1334743435,), (1334743437,), (1334743607,), (1334743611,), (1334743634,), (1334743700,), (1334743745,), (1334743762,), (1334743810,), (1334737457,), (1334741678,), (1334741679,), (1334741681,), (1334741683,), (1334741684,), (1334741685,), (1334741705,), (1334741719,), (1334741750,), (1334741751,), (1334741752,), (1334741764,), (1334741774,), (1334741777,), (1334741783,), (1334741786,), (1334741791,), (1334741794,), (1334741802,), (1334741803,), (1334741804,), (1334741807,), (1334741809,), (1334741855,), (1334741932,), (1334741936,), (1334741940,), (1334741948,), (1334742027,), (1334742125,), (1334742158,), (1334742214,), (1334742229,), (1334742327,), (1334742366,), (1334742400,), (1334742402,), (1334742426,), (1334742446,), (1334742504,), (1334742507,), (1334742510,), (1334742512,), (1334742520,), (1334742521,), (1334742522,), (1334742523,), (1334742526,), (1334742529,), (1334742559,), (1334742560,), (1334742568,), (1334742571,), (1334742574,), (1334742577,), (1334742607,), (1334742612,), (1334742620,), (1334741931,), (1334742097,), (1334742115,), (1334742499,), (1334742501,), (1334742535,), (1334742539,), (1334742544,), (1334742547,), (1334742549,), (1334742551,), (1334742588,), (1334742590,), (1334742592,), (1334742595,), (1334742597,), (1334742599,), (1334742603,), (1334742604,), (1334742605,), (1334742917,), (1334742921,), (1334742925,), (1334742944,), (1334743095,), (1334743097,), (1334743101,), (1334743104,), (1334743110,), (1334743113,), (1334743251,), (1334743254,), (1334743257,), (1334743260,), (1334743318,), (1334744030,), (1334744033,), (1334744042,), (1334744047,), (1334744051,), (1334744086,), (1334744089,), (1334744092,), (1334744094,), (1334744096,), (1334744434,), (1334744431,), (1334744432,), (1334744909,), (1334744910,), (1334744921,), (1334744925,), (1334744931,), (1334744932,), (1334745280,), (1334745281,), (1334745282,), (1334745429,), (1334745430,), (1334745431,), (1334745432,), (1334745434,), (1334745677,), (1334745678,), (1334745765,), (1334745842,), (1334745869,), (1334745904,), (1334745990,), (1334745993,), (1334745995,), (1334746058,), (1334746065,), (1334746078,), (1334746079,), (1334746102,), (1334746104,), (1334746141,), (1334746144,), (1334746149,), (1334746152,), (1334746154,), (1334746185,), (1334746193,), (1334746200,), (1334746202,), (1334746266,), (1334746268,), (1334746270,), (1334746273,), (1334746276,), (1334746282,), (1334746357,), (1334746375,), (1334746377,), (1334746382,), (1334746689,), (1334746768,), (1334746842,), (1334746924,), (1334746993,), (1334747402,), (1334747266,), (1334747333,), (1334747521,), (1334747524,), (1334747527,), (1334747530,), (1334747533,), (1334747535,), (1334747585,), (1334747588,), (1334747591,), (1334747595,), (1334747598,), (1334747696,), (1334747699,), (1334747701,), (1334747702,), (1334747703,), (1334747704,), (1334747705,), (1334747707,), (1334747709,), (1334747712,), (1334747724,), (1334747726,), (1334747728,), (1334747732,), (1334747733,), (1334747860,), (1334747861,), (1334747862,), (1334747863,), (1334747890,), (1334747891,), (1334747902,), (1334747909,), (1334747911,), (1334747988,), (1334747992,), (1334747993,), (1334747995,), (1334748011,), (1334748012,), (1334748013,), (1334748015,), (1334748024,), (1334748029,), (1334748050,), (1334748052,), (1334748055,), (1334748848,), (1334748931,), (1334749009,), (1334749082,), (1334749154,), (1334749390,), (1334749393,), (1334749515,), (1334749711,), (1334749889,), (1334750543,), (1334750546,), (1334750547,), (1334750548,), (1334751075,), (1334751146,), (1334751216,), (1334751954,), (1334751837,), (1334751902,), (1334751920,), (1334751921,), (1334752132,), (1334752140,), (1334752146,), (1334752147,), (1334752149,), (1334752178,), (1334752196,), (1334752197,), (1334752709,), (1334752794,), (1334752880,), (1334752966,), (1334753051,), (1334753126,), (1334753389,), (1334753390,), (1334753391,), (1334753392,), (1334753393,), (1334753741,), (1334753753,), (1334753791,), (1334753818,), (1334753835,), (1334753879,), (1334754043,), (1334754141,), (1334754541,), (1334754543,), (1334754544,), (1334754546,), (1334754561,), (1334755585,), (1334755654,), (1334755721,), (1334755791,), (1334756324,), (1334756328,), (1334756330,), (1334756333,), (1334756335,), (1334756449,), (1334756482,), (1334756536,), (1334756657,), (1334757481,), (1334757518,), (1334757522,), (1334757621,), (1334757670,), (1334758134,), (1334758164,), (1334758170,), (1334758505,), (1334758655,), (1334758656,), (1334758658,), (1334758733,), (1334758725,), (1334758728,), (1334758731,), (1334758732,), (1334758744,), (1334758745,), (1334758746,), (1334758748,), (1334758767,), (1334758768,), (1334758769,), (1334758805,), (1334758871,), (1334758961,), (1334758967,), (1334758995,), (1334758998,), (1334759001,), (1334759066,), (1334759068,), (1334759078,), (1334759082,), (1334759083,), (1334759851,), (1334759917,), (1334759981,), (1334760719,), (1334760760,), (1334760772,), (1334760776,), (1334760780,), (1334761651,), (1334761653,), (1334761654,), (1334761656,), (1334761664,), (1334761720,), (1334761785,), (1334761856,), (1334762908,), (1334762909,), (1334762910,), (1334762911,), (1334762912,), (1334763037,), (1334763049,), (1334763175,), (1334763340,), (1334763417,), (1334763420,), (1334763476,), (1334763477,), (1334763479,), (1334763480,), (1334764222,), (1334764132,), (1334765312,), (1334765372,), (1334765431,), (1334765498,), (1334765851,), (1334765925,), (1334765999,), (1334766603,), (1334766604,), (1334766625,), (1334766630,), (1334766631,), (1334766633,), (1334767489,), (1334767600,), (1334767629,), (1334767632,), (1334767879,), (1334767909,), (1334767927,), (1334767928,), (1334768022,), (1334768024,), (1334768163,), (1334768164,), (1334768165,), (1334768167,), (1334768194,), (1334768196,), (1334768197,), (1334768198,), (1334768211,), (1334768212,), (1334768335,), (1334768355,), (1334768356,), (1334768357,), (1334768358,), (1334768388,), (1334768406,), (1334768407,), (1334768440,), (1334768437,), (1334768438,), (1334768439,), (1334769257,), (1334769330,), (1334769411,), (1334769542,), (1334769613,), (1334769871,), (1334769872,), (1334769977,), (1334769979,), (1334769981,), (1334769982,), (1334769983,), (1334770565,), (1334770567,), (1334772261,), (1334772304,), (1334772305,), (1334772330,), (1334772664,), (1334772667,), (1334772669,), (1334773846,), (1334773880,), (1334773881,), (1334773882,), (1334773884,), (1334773970,), (1334773971,), (1334773990,), (1334773992,), (1334773993,), (1334774425,), (1334774557,), (1334774561,), (1334774562,), (1334774677,), (1334774678,), (1334774680,), (1334774681,), (1334774682,), (1334774684,), (1334774713,), (1334774714,), (1334774715,), (1334774727,), (1334774730,), (1334774731,), (1334778035,), (1334778411,), (1334778521,), (1334778522,), (1334778523,), (1334778524,), (1334778537,), (1334778538,), (1334778539,), (1334778541,), (1334778552,), (1334778553,), (1334778554,), (1334778555,), (1334778557,), (1334778558,), (1334778572,), (1334778573,), (1334778574,), (1334778588,), (1334778612,), (1334778613,), (1334778614,), (1334778615,), (1334778715,), (1334778740,), (1334778741,), (1334778778,), (1334780443,), (1334780399,), (1334780422,), (1334780525,), (1334780580,), (1334780585,), (1334781041,), (1334781100,), (1334781159,), (1334781331,), (1334781404,), (1334781420,), (1334781422,), (1334781424,), (1334781471,), (1334781472,), (1334781473,), (1334781474,), (1334781477,), (1334781479,), (1334781492,), (1334781493,), (1334781494,), (1334781716,), (1334781721,), (1334781723,), (1334781749,), (1334781750,), (1334781784,), (1334781785,), (1334781790,), (1334781822,), (1334781932,), (1334782816,), (1334791480,), (1334792133,), (1334793402,), (1334794637,), (1334794846,), (1334794847,), (1334794848,), (1334794849,), (1334795540,), (1334795579,), (1334795597,), (1334795598,), (1334795617,), (1334795619,), (1334795975,), (1334795985,), (1334796059,), (1334796595,), (1334796654,), (1334796694,), (1334796750,), (1334796892,), (1334796931,), (1334796979,), (1334797005,), (1334797010,), (1334797193,), (1334797210,), (1334797211,), (1334797223,), (1334797311,), (1334797313,), (1334797314,), (1334797315,), (1334797316,), (1334797368,), (1334797363,), (1334797364,), (1334797365,), (1334797366,), (1334797390,), (1334797391,), (1334797394,), (1334797458,), (1334797477,), (1334797478,), (1334797479,), (1334797484,), (1334797821,), (1334797891,), (1334797968,), (1334798023,), (1334799133,), (1334799179,), (1334799180,), (1334799181,), (1334799183,), (1334799186,), (1334799442,), (1334799443,), (1334799444,), (1334799485,), (1334799794,), (1334799796,), (1334799865,), (1334799957,), (1334799958,), (1334799959,), (1334799960,), (1334799962,), (1334799964,), (1334799982,), (1334799994,), (1334799998,), (1334800023,), (1334800036,), (1334800100,), (1334800139,), (1334800141,), (1334800144,), (1334800387,), (1334800519,), (1334800587,), (1334800589,), (1334800601,), (1334800607,), (1334800708,), (1334800723,), (1334800726,), (1334800727,), (1334800780,), (1334800781,), (1334800784,), (1334800788,), (1334800795,), (1334800797,), (1334800811,), (1334800817,), (1334800819,), (1334800822,), (1334800824,), (1334800840,), (1334800842,), (1334800867,), (1334801028,), (1334800883,), (1334800884,), (1334800945,), (1334801024,), (1334801393,), (1334801467,), (1334801543,), (1334801616,), (1334801690,), (1334802079,), (1334802080,), (1334802081,), (1334802181,), (1334802246,), (1334802285,), (1334802333,), (1334802405,), (1334802448,), (1334802710,), (1334802711,), (1334802712,), (1334802713,), (1334802718,), (1334802771,), (1334802917,), (1334802919,), (1334802920,), (1334803386,), (1334803454,), (1334803518,), (1334803585,), (1334803666,), (1334803735,), (1334803896,), (1334803897,), (1334803898,), (1334803899,), (1334803981,), (1334805062,), (1334805124,), (1334805126,), (1334805128,), (1334805406,), (1334805523,), (1334805648,), (1334805680,), (1334805682,), (1334805686,), (1334805784,), (1334805785,), (1334805786,), (1334805787,), (1334805789,), (1334805793,), (1334806100,), (1334806114,), (1334806129,), (1334806218,), (1334806223,), (1334806227,), (1334806228,), (1334806230,), (1334806240,), (1334806241,), (1334806242,), (1334806243,), (1334806245,), (1334806286,), (1334806287,), (1334806288,), (1334806289,), (1334806383,), (1334806587,), (1334806562,), (1334806571,), (1334806573,), (1334806574,), (1334806585,), (1334806765,), (1334806766,), (1334806820,), (1334806825,), (1334806834,), (1334806939,), (1334806944,), (1334806954,), (1334806957,), (1334807021,), (1334807516,), (1334807635,), (1334807716,), (1334807778,), (1334807869,), (1334807945,), (1334808319,), (1334808451,), (1334808453,), (1334808455,), (1334808460,), (1334808473,), (1334808475,), (1334808477,), (1334808479,), (1334809124,), (1334809604,), (1334809605,), (1334809606,), (1334809607,), (1334809609,), (1334809616,), (1334809639,), (1334809640,), (1334809644,), (1334809733,), (1334809807,), (1334809876,), (1334809936,), (1334809996,), (1334810064,), (1334811419,), (1334811437,), (1334811446,), (1334811449,), (1334811452,), (1334811798,), (1334814148,), (1334814149,), (1334814150,), (1334814151,), (1334814167,), (1334814168,), (1334814169,), (1334814170,), (1334814172,), (1334814174,), (1334814209,), (1334814211,), (1334814213,), (1334814215,), (1334814412,), (1334814528,), (1334814687,), (1334814851,), (1334814975,), (1334815569,), (1334815596,), (1334815618,), (1334815620,), (1334816480,), (1334816481,), (1334816482,), (1334816524,), (1334816498,), (1334816499,), (1334816506,), (1334816507,), (1334816513,), (1334816563,), (1334816564,), (1334816565,), (1334816589,), (1334816590,), (1334816594,), (1334816595,), (1334816597,), (1334816620,), (1334816621,), (1334816623,), (1334816624,), (1334816699,), (1334816700,), (1334816708,), (1334816713,), (1334816784,), (1334817043,), (1334817084,), (1334817144,), (1334817212,), (1334819776,), (1334819854,), (1334820575,), (1334820577,), (1334820592,), (1334820604,), (1334820662,), (1334820664,), (1334820665,), (1334820666,), (1334820668,), (1334820685,), (1334820686,), (1334820687,), (1334820790,), (1334820846,), (1334820888,), (1334820945,), (1334821606,), (1334821609,), (1334821611,), (1334821757,), (1334821817,), (1334821881,), (1334821935,), (1334822048,), (1334822045,), (1334822046,), (1334822047,), (1334822066,), (1334822069,), (1334822070,), (1334822243,), (1334822256,), (1334822298,), (1334822299,), (1334822390,), (1334822391,), (1334822392,), (1334822393,), (1334822395,), (1334822417,), (1334822421,), (1334822425,), (1334822455,), (1334822458,), (1334822463,), (1334822488,), (1334822489,), (1334822490,), (1334822491,), (1334822492,), (1334822543,), (1334822598,), (1334822599,), (1334823019,), (1334825140,), (1334825148,), (1334825150,), (1334825155,), (1334825181,), (1334825334,), (1334825336,), (1334825337,), (1334825364,), (1334825864,), (1334825776,), (1334825777,), (1334825778,), (1334825826,), (1334826212,), (1334826214,), (1334826216,), (1334826219,), (1334826221,), (1334826226,), (1334826364,), (1334826365,), (1334826367,), (1334826438,), (1334827436,), (1334827493,), (1334827494,), (1334827495,), (1334827536,), (1334827539,), (1334827588,), (1334827589,), (1334827590,), (1334827591,), (1334827593,), (1334827600,), (1334828028,), (1334828104,), (1334828126,), (1334828127,), (1334828322,), (1334828323,), (1334828324,), (1334828325,), (1334828327,), (1334828384,), (1334828913,), (1334829029,), (1334829030,), (1334829032,), (1334829223,), (1334829224,), (1334829225,), (1334829226,), (1334829227,), (1334829229,), (1334829347,), (1334829349,), (1334829357,), (1334829359,), (1334829393,), (1334829394,), (1334829398,), (1334829400,), (1334829402,), (1334829403,), (1334829451,), (1334829454,), (1334829455,), (1334829457,), (1334829477,), (1334829708,), (1334829787,), (1334830657,), (1334830661,), (1334830665,), (1334830669,), (1334830689,), (1334830720,), (1334830718,), (1334830753,), (1334831091,), (1334831092,), (1334831229,), (1334831230,), (1334831280,), (1334831282,), (1334831379,), (1334831381,), (1334831413,), (1334831422,), (1334831434,), (1334831436,), (1334831463,), (1334831472,), (1334831482,), (1334831488,), (1334831492,), (1334831495,), (1334831576,), (1334831578,), (1334831583,), (1334831591,), (1334831597,), (1334831605,), (1334831650,), (1334831659,), (1334831660,), (1334831663,), (1334831666,), (1334831668,), (1334831670,), (1334831701,), (1334831714,), (1334831716,), (1334831719,), (1334831733,), (1334831737,), (1334831741,), (1334831743,), (1334831746,), (1334831749,), (1334831807,), (1334831809,), (1334831812,), (1334831816,), (1334831820,), (1334831822,), (1334831858,), (1334831860,), (1334831914,), (1334831917,), (1334831919,), (1334831623,), (1334831626,), (1334831632,), (1334831638,), (1334831644,), (1334831680,), (1334831684,), (1334831689,), (1334831694,), (1334831698,), (1334831706,), (1334831709,), (1334831711,), (1334831760,), (1334831765,), (1334831770,), (1334831775,), (1334831789,), (1334831800,), (1334831834,), (1334831844,), (1334831850,), (1334831854,), (1334831881,), (1334831887,), (1334831893,), (1334831897,), (1334831902,), (1334831905,), (1334831926,), (1334831929,), (1334831933,), (1334831937,), (1334831940,), (1334831963,), (1334831966,), (1334831971,), (1334831975,), (1334831979,), (1334831983,), (1334832007,), (1334832019,), (1334832021,), (1334832026,), (1334832057,), (1334832061,), (1334832066,), (1334832072,), (1334832077,), (1334832081,), (1334832182,), (1334832188,), (1334832199,), (1334832207,), (1334832244,), (1334832403,), (1334832407,), (1334832431,), (1334832619,), (1334832650,), (1334832652,), (1334832654,), (1334832659,), (1334832666,), (1334832861,), (1334832909,), (1334832962,), (1334833012,), (1334833064,), (1334833105,), (1334833517,), (1334833567,), (1334833641,), (1334833689,), (1334833776,), (1334833767,), (1334833769,), (1334833772,), (1334833774,), (1334833905,), (1334833955,), (1334833986,), (1334834018,), (1334834672,), (1334834680,), (1334834747,), (1334834768,), (1334834850,), (1334834867,), (1334834928,), (1334834931,), (1334834934,), (1334834937,), (1334834971,), (1334835044,), (1334841367,), (1334841290,), (1334841770,), (1334842209,), (1334842491,), (1334842493,), (1334842496,), (1334842498,), (1334842504,), (1334842510,), (1334842541,), (1334842543,), (1334842546,), (1334842549,), (1334842552,), (1334842612,), (1334842628,), (1334842642,), (1334842651,), (1334842689,), (1334842691,), (1334842694,), (1334842697,), (1334842704,), (1334842708,), (1334842746,), (1334842776,), (1334842779,), (1334842787,), (1334842790,), (1334842864,), (1334842938,), (1334843015,), (1334843077,), (1334843080,), (1334843289,), (1334843291,), (1334843360,), (1334843366,), (1334843393,), (1334843395,), (1334843398,), (1334843401,), (1334843424,), (1334843427,), (1334843432,), (1334843436,), (1334843476,), (1334843467,), (1334843468,), (1334843470,), (1334843472,), (1334843473,), (1334843672,), (1334843676,), (1334843762,), (1334843765,), (1334843845,), (1334843847,), (1334843850,), (1334843854,), (1334843857,), (1334843881,), (1334843884,), (1334843889,), (1334843893,), (1334843897,), (1334843929,), (1334843930,), (1334843932,), (1334843934,), (1334843971,), (1334843974,), (1334843977,), (1334843980,), (1334843981,), (1334844204,), (1334844216,), (1334844219,), (1334844225,), (1334844226,), (1334844269,), (1334844278,), (1334844282,), (1334844286,), (1334844291,), (1334844298,), (1334844353,), (1334844354,), (1334844356,), (1334844358,), (1334844384,), (1334844461,), (1334844529,), (1334844532,), (1334844536,), (1334845049,), (1334845125,), (1334845188,), (1334845247,), (1334845251,), (1334845255,), (1334845465,), (1334845537,), (1334845599,), (1334845658,), (1334845944,), (1334845945,), (1334845947,), (1334845949,), (1334845951,), (1334845953,), (1334845987,), (1334845988,), (1334845990,), (1334845992,), (1334846082,), (1334846099,), (1334846149,), (1334846335,), (1334846465,), (1334846778,), (1334846757,), (1334846763,), (1334846766,), (1334846772,), (1334846800,), (1334846802,), (1334846908,), (1334846955,), (1334847309,), (1334847310,), (1334847312,), (1334847313,), (1334847317,), (1334847323,), (1334847664,), (1334847665,), (1334847666,), (1334847719,), (1334847887,), (1334847924,), (1334847962,), (1334847987,), (1334848001,), (1334848027,), (1334848030,), (1334848031,), (1334848032,), (1334848035,), (1334848036,), (1334848215,), (1334848224,), (1334848239,), (1334848254,), (1334848321,), (1334848349,), (1334848377,), (1334848485,), (1334848515,), (1334848518,), (1334848527,), (1334848533,), (1334848538,), (1334848712,), (1334848732,), (1334848735,), (1334848764,), (1334848771,), (1334848776,), (1334848990,), (1334849054,), (1334849092,), (1334849126,), (1334849656,), (1334849658,), (1334849659,), (1334849661,), (1334849680,), (1334849684,), (1334850035,), (1334850056,), (1334850134,), (1334850160,), (1334850250,), (1334850451,), (1334850426,), (1334850443,), (1334850445,), (1334850447,), (1334850449,), (1334850547,), (1334850551,), (1334850556,), (1334850558,), (1334850562,), (1334850569,), (1334850884,), (1334850887,), (1334850901,), (1334851469,), (1334851521,), (1334851532,), (1334851669,), (1334851709,), (1334851864,), (1334851908,), (1334851915,), (1334851917,), (1334851918,), (1334852061,), (1334852066,), (1334852073,), (1334852088,), (1334852124,), (1334852128,), (1334852131,), (1334852132,), (1334852133,), (1334852398,), (1334852404,), (1334852411,), (1334852534,), (1334852535,), (1334852545,), (1334852550,), (1334852590,), (1334852591,), (1334852593,), (1334852595,), (1334852597,), (1334852647,), (1334852648,), (1334852670,), (1334852672,), (1334852673,), (1334852675,), (1334852720,), (1334852723,), (1334852735,), (1334852741,), (1334852742,), (1334852754,), (1334852756,), (1334852762,), (1334852769,), (1334852834,), (1334852838,), (1334852842,), (1334852845,), (1334852852,), (1334852861,), (1334852910,), (1334852925,), (1334864838,), (1334865171,), (1334865239,), (1334865409,), (1334865628,), (1334865685,), (1334865742,), (1334865743,), (1334866158,), (1334866167,), (1334866169,), (1334866196,), (1334866197,), (1334866199,), (1334866264,), (1334866266,), (1334866269,), (1334866274,), (1334866284,), (1334866497,), (1334866581,), (1334866684,), (1334866779,), (1334866896,), (1334866984,), (1334867667,), (1334867671,), (1334867678,), (1334867843,), (1334868010,), (1334868011,), (1334868671,), (1334868729,), (1334868751,), (1334868775,), (1334868779,), (1334869075,), (1334868856,), (1334868941,), (1334868990,), (1334869605,), (1334869609,), (1334869654,), (1334869660,), (1334869662,), (1334869695,), (1334869696,), (1334869707,), (1334869712,), (1334869772,), (1334869775,), (1334869781,), (1334869790,), (1334869874,), (1334869885,), (1334869897,), (1334869906,), (1334870005,), (1334870006,), (1334870008,), (1334870014,), (1334870042,), (1334870044,), (1334870047,), (1334870050,), (1334870053,), (1334870102,), (1334870104,), (1334870107,), (1334870116,), (1334870121,), (1334870599,), (1334870602,), (1334870605,), (1334870609,), (1334870611,), (1334870924,), (1334871365,), (1334871705,), (1334871884,), (1334871887,), (1334871891,), (1334871896,), (1334871916,), (1334871919,), (1334872578,), (1334872583,), (1334872588,), (1334872593,), (1334872598,), (1334872604,), (1334872605,), (1334872608,), (1334872609,), (1334872612,), (1334872613,), (1334872619,), (1334872620,), (1334872651,), (1334872643,), (1334872644,), (1334872646,), (1334872648,), (1334872649,), (1334872680,), (1334872681,), (1334872683,), (1334872715,), (1334872716,), (1334872718,), (1334872719,), (1334872798,), (1334872799,), (1334872801,), (1334872803,), (1334872813,), (1334872815,), (1334872891,), (1334872892,), (1334872894,), (1334872896,), (1334872897,), (1334872900,), (1334872962,), (1334872963,), (1334872968,), (1334872970,), (1334873042,), (1334873043,), (1334873122,), (1334873123,), (1334873125,), (1334873127,), (1334873129,), (1334873131,), (1334874049,), (1334874140,), (1334874228,), (1334874346,), (1334874425,), (1334874500,), (1334874780,), (1334875025,), (1334875277,), (1334875522,), (1334875663,), (1334875681,), (1334875804,), (1334875946,), (1334877811,), (1334877944,), (1334877981,), (1334877987,), (1334878072,), (1334878418,), (1334878420,), (1334878456,), (1334878492,), (1334878501,), (1334878503,), (1334879244,), (1334879277,), (1334879348,), (1334879370,), (1334879596,), (1334879598,), (1334879623,), (1334879626,), (1334879630,), (1334880222,), (1334880033,), (1334880034,), (1334880103,), (1334880105,), (1334880115,), (1334880261,), (1334880262,), (1334880265,), (1334880267,), (1334880541,), (1334880544,), (1334880549,), (1334880562,), (1334880632,), (1334880764,), (1334880781,), (1334880783,), (1334880788,), (1334880791,), (1334880795,), (1334880832,), (1334880834,), (1334880836,), (1334880837,), (1334880871,), (1334880873,), (1334880876,), (1334880879,), (1334880881,), (1334880883,), (1334880904,), (1334880906,), (1334880910,), (1334880912,), (1334880916,), (1334880920,), (1334880947,), (1334880949,), (1334880952,), (1334881092,), (1334881167,), (1334881249,), (1334881349,), (1334881432,), (1334881743,), (1334881749,), (1334881786,), (1334881795,), (1334881800,), (1334881803,), (1334881819,), (1334881822,), (1334881824,), (1334881826,), (1334881905,), (1334881906,), (1334881948,), (1334881951,), (1334881953,), (1334881973,), (1334882012,), (1334882013,), (1334882016,), (1334882018,), (1334882043,), (1334882044,), (1334882047,), (1334882050,), (1334882053,), (1334882055,), (1334882093,), (1334882095,), (1334882097,), (1334882099,), (1334882103,), (1334882105,), (1334882148,), (1334882141,), (1334882142,), (1334882179,), (1334882180,), (1334882182,), (1334882184,), (1334882187,), (1334882191,), (1334882221,), (1334882222,), (1334882224,), (1334882226,), (1334882259,), (1334882271,), (1334882273,), (1334882275,), (1334882333,), (1334882334,), (1334882336,), (1334882338,), (1334882340,), (1334882426,), (1334882427,), (1334882429,), (1334882431,), (1334882456,), (1334882457,), (1334882459,), (1334882461,), (1334882464,), (1334882501,), (1334882504,), (1334882505,), (1334882545,), (1334882680,), (1334882774,), (1334883236,), (1334883343,), (1334883476,), (1334883560,), (1334883589,), (1334883653,), (1334883968,), (1334884054,), (1334884096,), (1334884098,), (1334884105,), (1334884108,), (1334884111,), (1334884113,), (1334884131,), (1334884210,), (1334884619,), (1334884662,), (1334884665,), (1334884672,), (1334885151,), (1334885154,), (1334885157,), (1334885160,), (1334885174,), (1334885180,), (1334885241,), (1334885243,), (1334885268,), (1334885273,), (1334885277,), (1334885281,), (1334885984,), (1334885988,), (1334885993,), (1334886192,), (1334886194,), (1334886242,), (1334886245,), (1334886282,), (1334886293,), (1334886346,), (1334886336,), (1334886337,), (1334886340,), (1334886343,), (1334886491,), (1334886493,), (1334886522,), (1334886539,), (1334886587,), (1334886589,), (1334886593,), (1334886601,), (1334886602,), (1334886625,), (1334886627,), (1334886629,), (1334886631,), (1334886663,), (1334886664,), (1334886667,), (1334886671,), (1334886674,), (1334886676,), (1334886703,), (1334886704,), (1334886705,), (1334886956,), (1334886965,), (1334886969,), (1334886976,), (1334886979,), (1334887040,), (1334887042,), (1334887045,), (1334887049,), (1334887052,), (1334887061,), (1334887088,), (1334887092,), (1334887141,), (1334887142,), (1334887144,), (1334887147,), (1334887151,), (1334887153,), (1334887196,), (1334887202,), (1334887204,), (1334887209,), (1334887211,), (1334887254,), (1334887260,), (1334887299,), (1334887634,), (1334887703,), (1334887756,), (1334887777,), (1334887781,), (1334887784,), (1334888109,), (1334888113,), (1334888170,), (1334888209,), (1334888214,), (1334888223,), (1334888224,), (1334888227,), (1334888228,), (1334888231,), (1334888232,), (1334888237,), (1334888238,), (1334888266,), (1334888255,), (1334888257,), (1334888263,), (1334888534,), (1334888537,), (1334888539,), (1334888613,), (1334888720,), (1334888721,), (1334888898,), (1334888904,), (1334888907,), (1334888910,), (1334888913,), (1334889095,), (1334889097,), (1334889103,), (1334889109,), (1334889184,), (1334889186,), (1334889189,), (1334889192,), (1334889261,), (1334889263,), (1334889302,), (1334889305,), (1334889308,), (1334889310,), (1334889313,), (1334889550,), (1334889596,), (1334889601,), (1334889616,), (1334889618,), (1334889654,), (1334889995,), (1334890144,), (1334890170,), (1334890173,), (1334891408,), (1334891420,), (1334891447,), (1334891535,), (1334891554,), (1334891674,), (1334891676,), (1334891739,), (1334891915,), (1334892032,), (1334892263,), (1334892265,), (1334892268,), (1334892271,), (1334892479,), (1334892495,), (1334892623,), (1334892690,), (1334892693,), (1334892696,), (1334892731,), (1334892734,), (1334892736,), (1334892744,), (1334892752,), (1334892758,), (1334892783,), (1334892784,), (1334892786,), (1334892788,), (1334892834,), (1334892835,), (1334892838,), (1334892840,), (1334892843,), (1334892846,), (1334892916,), (1334892911,), (1334892913,), (1334892939,), (1334893003,), (1334893007,), (1334893010,), (1334893016,), (1334893021,), (1334893162,), (1334893171,), (1334893178,), (1334893222,), (1334893278,), (1334893282,), (1334893295,), (1334893297,), (1334893300,), (1334893307,), (1334893331,), (1334893336,), (1334893343,), (1334893345,), (1334893347,), (1334893350,), (1334893384,), (1334893385,), (1334893386,), (1334893388,), (1334893484,), (1334893485,), (1334893502,), (1334893601,), (1334893602,), (1334893605,), (1334893615,), (1334893693,), (1334893695,), (1334893823,), (1334893888,), (1334893980,), (1334894221,), (1334894267,), (1334894302,), (1334894375,), (1334895773,), (1334895782,), (1334895786,), (1334896188,), (1334896336,), (1334896529,), (1334896533,), (1334896539,), (1334896706,), (1334896697,), (1334896698,), (1334896704,), (1334896740,), (1334896741,), (1334896744,), (1334896747,), (1334896814,), (1334896816,), (1334896818,), (1334896820,), (1334896908,), (1334897037,), (1334897232,), (1334897246,), (1334897257,), (1334897263,), (1334897265,), (1334897479,), (1334897484,), (1334897485,), (1334897489,), (1334897545,), (1334897555,), (1334897557,), (1334897560,), (1334897610,), (1334897623,), (1334897630,), (1334897637,), (1334897638,), (1334897748,), (1334897750,), (1334897753,), (1334897756,), (1334897838,), (1334897840,), (1334897843,), (1334897846,), (1334897848,), (1334897850,), (1334898035,), (1334898039,), (1334898101,), (1334898173,), (1334898190,), (1334898192,), (1334898198,), (1334898201,), (1334898276,), (1334898281,), (1334898289,), (1334898293,), (1334898295,), (1334898298,), (1334898574,), (1334898575,), (1334898581,), (1334898660,), (1334898671,), (1334898688,), (1334898834,), (1334898837,), (1334898839,), (1334898863,), (1334898865,), (1334898867,), (1334898872,), (1334898967,), (1334899625,), (1334899619,), (1334899662,), (1334899663,), (1334899665,), (1334899667,), (1334899669,), (1334899820,), (1334899823,), (1334900496,), (1334900523,), (1334900525,), (1334900527,), (1334900529,), (1334900531,), (1334901137,), (1334901200,), (1334901280,), (1334901342,), (1334901396,), (1334901473,), (1334901596,), (1334901676,), (1334901783,), (1334901909,), (1334901911,), (1334901913,), (1334901966,), (1334902044,), (1334902107,), (1334902198,), (1334902200,), (1334902202,), (1334902204,), (1334902229,), (1334902245,), (1334902249,), (1334902255,), (1334902284,), (1334902290,), (1334902298,), (1334902300,), (1334902302,), (1334902305,), (1334902385,), (1334902437,), (1334902571,), (1334903514,), (1334903594,), (1334903684,), (1334903692,), (1334903698,), (1334903700,), (1334904550,), (1334904840,), (1334904829,), (1334904833,), (1334904837,), (1334905171,), (1334905173,), (1334905177,), (1334905179,), (1334905375,), (1334905388,), (1334905466,), (1334905473,), (1334905488,), (1334905511,), (1334905653,), (1334905659,), (1334905663,), (1334905667,), (1334905671,), (1334905674,), (1334905693,), (1334905698,), (1334905768,), (1334905770,), (1334905773,), (1334905776,), (1334905799,), (1334905802,), (1334905806,), (1334905811,), (1334905836,), (1334905838,), (1334905842,), (1334905845,), (1334905848,), (1334906262,), (1334906463,), (1334906530,), (1334906594,), (1334906680,), (1334906683,), (1334906687,), (1334906711,), (1334906796,), (1334914679,), (1334931728,), (1334932403,), (1334932479,), (1334932483,), (1334932487,), (1334932490,), (1334933432,), (1334933542,), (1334933769,), (1334933765,), (1334934207,), (1334934213,), (1334934274,), (1334934285,), (1334934289,), (1334934953,), (1334934956,), (1334934959,), (1334935124,), (1334935128,), (1334935131,), (1334935134,), (1334935236,), (1334935240,), (1334935245,), (1334935269,), (1334935273,), (1334935277,), (1334935284,), (1334935289,), (1334935569,), (1334935577,), (1334935620,), (1334935656,), (1334935660,), (1334935669,), (1334935672,), (1334935704,), (1334935759,), (1334935761,), (1334935764,), (1334935768,), (1334935772,), (1334935813,), (1334935819,), (1334935827,), (1334935831,), (1334935833,), (1334935877,), (1334935880,), (1334935896,), (1334935900,), (1334935905,), (1334935912,), (1334935944,), (1334935947,), (1334935952,), (1334935961,), (1334936003,), (1334936036,), (1334936099,), (1334936102,), (1334936107,), (1334936181,), (1334936316,), (1334936320,), (1334936325,), (1334936576,), (1334936515,), (1334936522,), (1334936529,), (1334936624,), (1334936629,), (1334936634,), (1334936648,), (1334936651,), (1334936709,), (1334936713,), (1334936718,), (1334936721,), (1334936723,), (1334936836,), (1334936881,), (1334936885,), (1334936890,), (1334936894,), (1334936896,), (1334936900,), (1334936921,), (1334936924,), (1334936969,), (1334937063,), (1334937086,), (1334937122,), (1334937324,), (1334937555,), (1334937815,), (1334937942,), (1334937951,), (1334937956,), (1334938079,), (1334938081,), (1334938202,), (1334938512,), (1334938513,), (1334938524,), (1334938647,), (1334938649,), (1334938652,), (1334938655,), (1334938657,), (1334938687,), (1334939595,), (1334939605,), (1334939609,), (1334939612,), (1334939635,), (1334939641,), (1334939897,), (1334939908,), (1334939916,), (1334939923,), (1334940046,), (1334940047,), (1334940097,), (1334940200,), (1334940794,), (1334940795,), (1334940812,), (1334940822,), (1334940825,), (1334940966,), (1334940967,), (1334940969,), (1334941103,), (1334941069,), (1334941070,), (1334941072,), (1334941101,), (1334941452,), (1334941460,), (1334941503,), (1334941505,), (1334941552,), (1334941610,), (1334941663,), (1334941666,), (1334941707,), (1334941708,), (1334941710,), (1334941713,), (1334941714,), (1334941716,), (1334941744,), (1334941755,), (1334941756,), (1334941782,), (1334941785,), (1334941789,), (1334941794,), (1334941924,), (1334942512,), (1334942513,), (1334942515,), (1334942883,), (1334942888,), (1334942889,), (1334942894,), (1334942899,), (1334942923,), (1334942925,), (1334942930,), (1334942931,), (1334942934,), (1334942971,), (1334942975,), (1334942978,), (1334942980,), (1334943105,), (1334943114,), (1334943123,), (1334943131,), (1334943134,), (1334943293,), (1334943342,), (1334943365,), (1334943435,), (1334943524,), (1334943734,), (1334943736,), (1334943759,), (1334943838,), (1334943851,), (1334943855,), (1334943869,), (1334943873,), (1334943876,), (1334944432,), (1334944514,), (1334944656,), (1334944756,), (1334944766,), (1334944772,), (1334944981,), (1334944962,), (1334944974,), (1334945211,), (1334945236,), (1334945252,), (1334945254,), (1334945255,), (1334945296,), (1334945320,), (1334945364,), (1334945369,), (1334945373,), (1334945381,), (1334945421,), (1334945423,), (1334945427,), (1334945438,), (1334945441,), (1334945504,), (1334945505,), (1334945517,), (1334945519,), (1334945520,), (1334945628,), (1334945636,), (1334945691,), (1334945705,), (1334945708,), (1334946201,), (1334946242,), (1334946305,), (1334946315,), (1334946420,), (1334947075,), (1334947080,), (1334947086,), (1334947089,), (1334947092,), (1334947397,), (1334947415,), (1334947418,), (1334947422,), (1334947424,), (1334947427,), (1334947600,), (1334947601,), (1334947603,), (1334947922,), (1334947933,), (1334947940,), (1334947950,), (1334947957,), (1334947961,), (1334947985,), (1334947987,), (1334947989,), (1334948014,), (1334948016,), (1334948024,), (1334948426,), (1334948427,), (1334948429,), (1334948431,), (1334948693,), (1334948718,), (1334948720,), (1334948722,), (1334948723,), (1334948765,), (1334948767,), (1334948775,), (1334948779,), (1334948781,), (1334948854,), (1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,), (1334950089,), (1334950090,), (1334950095,), (1334950139,), (1334950141,), (1334951580,), (1334951585,), (1334951616,), (1334952555,), (1334952592,), (1334952608,), (1334952616,), (1334952620,), (1334952634,), (1334952635,), (1334952642,), (1334952643,), (1334952704,), (1334952695,), (1334952698,), (1334952833,), (1334952902,), (1334952906,), (1334953111,), (1334953114,), (1334953119,), (1334953127,), (1334953132,), (1334953154,), (1334953184,), (1334953220,), (1334953317,), (1334953383,), (1334953394,), (1334953397,), (1334953399,), (1334953436,), (1334953504,), (1334953507,), (1334953508,), (1334953510,), (1334953591,), (1334953598,), (1334953613,), (1334953614,), (1334953616,), (1334953645,), (1334953646,), (1334953651,), (1334953653,), (1334953679,), (1334953681,), (1334953685,), (1334953689,), (1334953693,), (1334953697,), (1334953719,), (1334953726,), (1334953737,), (1334953745,), (1334953747,), (1334953800,), (1334953797,), (1334953798,), (1334953829,), (1334953832,), (1334953972,), (1334954057,), (1334954245,), (1334954616,), (1334954705,), (1334954794,), (1334954879,), (1334956063,), (1334956067,), (1334956139,), (1334956141,), (1334956154,), (1334956176,), (1334956390,), (1334956544,), (1334957163,), (1334957165,), (1334957179,), (1334957181,), (1334957182,), (1334957189,), (1334957215,), (1334957217,), (1334957219,), (1334957220,), (1334957222,), (1334957728,), (1334957802,), (1334957886,), (1334957971,), (1334959689,), (1334959691,), (1334959722,), (1334959725,), (1334959754,), (1334959840,), (1334960575,), (1334960640,), (1334963267,), (1334963250,), (1334963256,), (1334963258,), (1334963445,), (1334963449,), (1334963456,), (1334963505,), (1334963759,), (1334963839,), (1334963856,), (1334963859,), (1334963907,), (1334963931,), (1334964033,), (1334964177,), (1334964404,), (1334964405,), (1334964407,), (1334964420,), (1334964423,), (1334964497,), (1334964502,), (1334964505,), (1334964509,), (1334964543,), (1334964594,), (1334964596,), (1334964670,), (1334964678,), (1334964683,), (1334964729,), (1334964731,), (1334964762,), (1334964800,), (1334964803,), (1334964807,), (1334964809,), (1334964812,), (1334964857,), (1334964866,), (1334964868,), (1334964872,), (1334964876,), (1334964996,), (1334964998,), (1334965004,), (1334965008,), (1334965012,), (1334965088,), (1334965090,), (1334965093,), (1334965096,), (1334965105,), (1334965383,), (1334965490,), (1334965587,), (1334965777,), (1334965876,), (1334965963,), (1334966424,), (1334966123,), (1334966193,), (1334966326,), (1334966768,), (1334966867,), (1334966874,), (1334966880,), (1334966925,), (1334967010,), (1334967174,), (1334967181,), (1334967185,), (1334967188,), (1334967191,), (1334967231,), (1334967236,), (1334967238,), (1334967247,), (1334967249,), (1334967330,), (1334967332,), (1334967334,), (1334967337,), (1334967338,), (1334967356,), (1334967358,), (1334967361,), (1334967363,), (1334967366,), (1334967527,), (1334967596,), (1334967641,), (1334967643,), (1334967917,), (1334967927,), (1334967932,), (1334967960,), (1334967966,), (1334968021,), (1334968023,), (1334968026,), (1334968028,), (1334968052,), (1334968153,), (1334968155,), (1334968260,), (1334968272,), (1334968288,), (1334968381,), (1334968383,), (1334968389,), (1334968394,), (1334968397,), (1334968623,), (1334968624,), (1334968628,), (1334968632,), (1334968704,), (1334968709,), (1334968712,), (1334968832,), (1334968840,), (1334968845,), (1334968879,), (1334968886,), (1334968961,), (1334968936,), (1334968938,), (1334968940,), (1334968946,), (1334969033,), (1334969109,), (1334969192,), (1334969208,), (1334969408,), (1334969409,), (1334970655,), (1334972316,), (1334972318,), (1334972321,), (1334972324,), (1334972325,), (1334972330,), (1334972444,), (1334972522,), (1334972611,), (1334972699,), (1334972886,), (1334972888,), (1334972893,), (1334972899,), (1334973043,), (1334973045,), (1334973113,), (1334973110,), (1334973263,), (1334973267,), (1334973270,), (1334973276,), (1334973310,), (1334973717,), (1334973719,), (1334973764,), (1334974339,), (1334974430,), (1334974432,), (1334974441,), (1334974463,), (1334974665,), (1334974669,), (1334974673,), (1334974765,), (1334974767,), (1334974770,), (1334974773,), (1334974776,), (1334974777,), (1334974976,), (1334975020,), (1334975023,), (1334975026,), (1334975768,), (1334976087,), (1334976089,), (1334976092,), (1334976098,), (1334976102,), (1334976121,), (1334976124,), (1334976127,), (1334976130,), (1334976134,), (1334976154,), (1334976148,), (1334976150,), (1334976170,), (1334976272,), (1334976323,), (1334976495,), (1334976498,), (1334976501,), (1334976656,), (1334976710,), (1334976766,), (1334976880,), (1334977821,), (1334977904,), (1334977952,), (1334978440,), (1334978442,), (1334978445,), (1334978628,), (1334978632,), (1334978635,), (1334978641,), (1334978991,), (1334978995,), (1334978997,), (1334979101,), (1334979103,), (1334979106,), (1334979171,), (1334979188,), (1334979193,), (1334979197,), (1334979200,), (1334979290,), (1334979293,), (1334979298,), (1334979304,), (1334979310,), (1334979422,), (1334979350,), (1334979354,), (1334979358,), (1334979361,), (1334979564,), (1334979567,), (1334979571,), (1334979575,), (1334979659,), (1334979822,), (1334979827,), (1334979833,), (1334979838,), (1334979879,), (1334979884,), (1334979891,), (1334979894,), (1334980016,), (1334980025,), (1334980029,), (1334980051,), (1334980076,), (1334980143,), (1334980147,), (1334980154,), (1334980158,), (1334980190,), (1334980193,), (1334980200,), (1334980222,), (1334980659,), (1334980664,), (1334980667,), (1334980695,), (1334980745,), (1334980783,), (1334980786,), (1334980791,), (1334980794,), (1334980797,), (1334980836,), (1334980877,), (1334980882,), (1334980889,), (1334980911,), (1334980916,), (1334980920,), (1334980927,), (1334980937,), (1334980970,), (1334981002,), (1334981007,), (1334981012,), (1334981017,), (1334981038,), (1334981041,), (1334981044,), (1334981046,), (1334981050,), (1334981052,), (1334981764,), (1334981809,), (1334981828,), (1334982058,), (1334982047,), (1334982049,), (1334982053,), (1334982056,), (1334982240,), (1334982263,), (1334982266,), (1334982274,), (1334982312,), (1334982394,), (1334982396,), (1334982399,), (1334982428,), (1334982430,), (1334982435,), (1334982438,), (1334982442,), (1334982449,), (1334982471,), (1334982478,), (1334982486,), (1334982489,), (1334982495,), (1334982510,), (1334982540,), (1334982542,), (1334982545,), (1334982580,), (1334982670,), (1334982756,), (1334982963,), (1334982965,), (1334982968,), (1334982975,), (1334982988,), (1334983017,), (1334983020,), (1334983023,), (1334983030,), (1334983058,), (1334983060,), (1334983063,), (1334983066,), (1334983093,), (1334983096,), (1334983104,), (1334983149,), (1334983152,), (1334983155,), (1334983185,), (1334983272,), (1334983360,), (1334983613,), (1334983616,), (1334983620,), (1334983623,), (1334983626,), (1334983648,), (1334983653,), (1334983658,), (1334983697,), (1334983701,), (1334983705,), (1334983710,), (1334983754,), (1334983734,), (1334983736,), (1334983741,), (1334983744,), (1334983749,), (1334983776,), (1334983779,), (1334983782,), (1334983785,), (1334983788,), (1334983815,), (1334983817,), (1334983820,), (1334983855,), (1334983923,), (1334984417,), (1334984694,), (1334984778,), (1334985079,), (1334985081,), (1334985190,), (1334985193,), (1334985197,), (1334985201,), (1334985217,), (1334985220,), (1334985224,), (1334985420,), (1334985479,), (1334985530,), (1334985599,), (1334985602,), (1334985606,), (1334985747,), (1334985750,), (1334985754,), (1334985758,), (1334985768,), (1334985771,), (1334985792,), (1334985794,), (1334985803,), (1334985806,), (1334985834,), (1334985836,), (1334985839,), (1334985842,), (1334985884,), (1334985971,), (1334985973,), (1334985980,), (1334985983,), (1334985987,), (1334985990,), (1334986041,), (1334986059,), (1334986153,), (1334986782,), (1334986799,), (1334987204,), (1334993532,), (1334993535,), (1334993571,), (1334993577,), (1334993583,), (1334993587,), (1334993592,), (1334993617,), (1334993625,), (1334993627,), (1334993675,), (1334993678,), (1334993938,), (1334993954,), (1334993967,), (1334994036,), (1334994039,), (1334994043,), (1334994047,), (1334994050,), (1334994055,), (1334994076,), (1334994078,), (1334994082,), (1334994086,), (1334994090,), (1334994118,), (1334994121,), (1334994125,), (1334994129,), (1334994134,), (1334994180,), (1334994183,), (1334994187,), (1334994191,), (1334994194,), (1334994285,), (1334994373,), (1334994380,), (1334994388,), (1334994514,), (1334994517,), (1334994521,), (1334994560,), (1334994563,), (1334994568,), (1334994572,), (1334994578,), (1334994601,), (1334994603,), (1334994606,), (1334994692,), (1334994676,), (1334994680,), (1334994683,), (1334994686,), (1334994689,), (1334994828,), (1334994916,), (1334994919,), (1334994922,), (1334994953,), (1334995105,), (1334995108,), (1334995124,), (1334995173,), (1334995177,), (1334995180,), (1334995184,), (1334995217,), (1334995339,), (1334995342,), (1334995346,), (1334995350,), (1334995354,), (1334995358,), (1334995453,), (1334996890,), (1334996894,), (1334997350,), (1334997353,), (1334997357,), (1334997360,), (1334997364,), (1334997449,), (1334997452,), (1334997456,), (1334997461,), (1334997484,), (1334997543,), (1334997547,), (1334997551,), (1334997553,), (1334997763,), (1334997765,), (1334997769,), (1334997776,), (1334997782,), (1334997785,), (1334997823,), (1334997826,), (1334997829,), (1334997832,), (1334997836,), (1334997840,), (1334997861,), (1334997864,), (1334997868,), (1334997873,), (1334997880,), (1334997933,), (1334997934,), (1334997936,), (1334997938,), (1334997941,), (1334997943,), (1334997982,), (1334997976,), (1334997978,), (1334998011,), (1334998014,), (1334998018,), (1334998021,), (1334998025,), (1334998372,), (1334998388,), (1334998398,), (1334998438,), (1334998520,), (1334998914,), (1334998926,), (1334998930,), (1334999365,), (1334999368,), (1335000903,), (1335002224,), (1335009027,), (1335009140,), (1335009357,), (1335009360,), (1335009392,), (1335009398,), (1335009404,), (1335009408,), (1335009413,), (1335009448,), (1335009432,), (1335009437,), (1335009441,), (1335009444,), (1335009663,), (1335009696,), (1335009714,), (1335009719,), (1335009722,), (1335009790,), (1335009821,), (1335009824,), (1335009826,), (1335009869,), (1335009872,), (1335009875,), (1335009878,), (1335009880,), (1335009904,), (1335009907,), (1335009910,), (1335009913,), (1335009914,), (1335009932,), (1335009933,), (1335010098,), (1335010101,), (1335010102,), (1335010103,), (1335010105,), (1335010132,), (1335010136,), (1335010150,), (1335010152,), (1335010155,), (1335010156,), (1335010209,), (1335010211,), (1335010214,), (1335010254,), (1335010259,), (1335010268,), (1335010272,), (1335010298,), (1335010300,), (1335010306,), (1335010315,), (1335010338,), (1335010341,), (1335010430,), (1335010432,), (1335010680,), (1335010678,), (1335010679,), (1335010707,), (1335010709,), (1335010756,), (1335010757,), (1335010759,), (1335010819,), (1335010825,), (1335010827,), (1335010829,), (1335010833,), (1335010837,), (1335010849,), (1335010851,), (1335010854,), (1335010857,), (1335010884,), (1335010885,), (1335010887,), (1335010910,), (1335010912,), (1335010915,), (1335010918,), (1335010919,), (1335010921,), (1335010942,), (1335010944,), (1335010946,), (1335010948,), (1335010952,), (1335010975,), (1335010981,), (1335011034,), (1335011037,), (1335011043,), (1335011045,), (1335011048,), (1335011081,), (1335011073,), (1335011074,), (1335011077,), (1335011080,), (1335011106,), (1335011108,), (1335011135,), (1335011139,), (1335011141,), (1335011155,), (1335011484,), (1335011486,), (1335011537,), (1335011660,), (1335011661,), (1335011663,), (1335011877,), (1335011879,), (1335011881,), (1335011989,), (1335011992,), (1335011997,), (1335012000,), (1335012057,), (1335012058,), (1335012061,), (1335012294,), (1335012297,), (1335012300,), (1335012303,), (1335012361,), (1335012375,), (1335012382,), (1335012389,), (1335012450,), (1335012453,), (1335012458,), (1335012483,), (1335012487,), (1335012989,), (1335013069,), (1335013151,), (1335013230,), (1335013916,), (1335013922,), (1335013925,), (1335013952,), (1335014709,), (1335014715,), (1335014719,), (1335014728,), (1335014732,), (1335014738,), (1335014739,), (1335015108,), (1335015065,), (1335015069,), (1335015074,), (1335015078,), (1335015089,), (1335015915,), (1335015918,), (1335015922,), (1335015925,), (1335015927,), (1335015932,), (1335015983,), (1335015986,), (1335015989,), (1335015992,), (1335016520,), (1335016533,), (1335016539,), (1335016543,), (1335016660,), (1335016664,), (1335016667,), (1335016671,), (1335016674,), (1335016678,), (1335017322,), (1335017448,), (1335017539,), (1335017663,), (1335018030,), (1335018301,), (1335018311,), (1335018331,), (1335018489,), (1335018502,), (1335018506,), (1335018510,), (1335018513,), (1335018735,), (1335018739,), (1335018745,), (1335018749,), (1335018752,), (1335018797,), (1335018814,), (1335018818,), (1335018823,), (1335018851,), (1335018867,), (1335018872,), (1335018878,), (1335018883,), (1335018964,), (1335018967,), (1335018971,), (1335018975,), (1335018977,), (1335018980,), (1335018993,), (1335018996,), (1335019000,), (1335019005,), (1335019111,), (1335019114,), (1335019118,), (1335019122,), (1335019125,), (1335019147,), (1335019149,), (1335019153,), (1335019156,), (1335019159,), (1335019193,), (1335019178,), (1335019184,), (1335019187,), (1335019190,), (1335019220,), (1335019236,), (1335019240,), (1335019499,), (1335019502,), (1335019505,), (1335019507,), (1335019510,), (1335019529,), (1335019559,), (1335019607,), (1335019609,), (1335019611,), (1335019613,), (1335019690,), (1335019691,), (1335019693,), (1335019696,), (1335019722,), (1335019724,), (1335019737,), (1335019738,), (1335019740,), (1335019744,), (1335019767,), (1335019769,), (1335019770,), (1335019772,), (1335019775,), (1335019797,), (1335019798,), (1335019800,), (1335019802,), (1335019804,), (1335019831,), (1335019833,), (1335019835,), (1335019838,), (1335019843,), (1335019848,), (1335019881,), (1335019885,), (1335019889,), (1335019892,), (1335019908,), (1335019911,), (1335019915,), (1335019919,), (1335019923,), (1335019927,), (1335019941,), (1335019944,), (1335019948,), (1335019952,), (1335019956,), (1335019958,), (1335019992,), (1335019994,), (1335019996,), (1335020032,), (1335020025,), (1335020026,), (1335020027,), (1335020029,), (1335020030,), (1335020217,), (1335020219,), (1335020406,), (1335022659,), (1335022661,), (1335022666,), (1335024464,), (1335025482,), (1335025719,), (1335025721,), (1335025736,), (1335025745,), (1335025750,), (1335025805,), (1335025808,), (1335025812,), (1335025816,), (1335025819,), (1335025822,), (1335026054,), (1335026067,), (1335026073,), (1335026166,), (1335026316,), (1335026553,), (1335026663,), (1335026773,), (1335026774,), (1335026800,), (1335026882,), (1335026921,), (1335027033,), (1335027037,), (1335027039,), (1335027059,), (1335027063,), (1335027065,), (1335027067,), (1335027266,), (1335027268,), (1335027270,), (1335027272,), (1335027273,), (1335027275,), (1335027431,), (1335027432,), (1335027435,), (1335027438,), (1335027442,), (1335027532,), (1335027534,), (1335027540,), (1335027541,), (1335027570,), (1335027573,), (1335027576,), (1335027579,), (1335027583,), (1335027619,), (1335027603,), (1335027604,), (1335027606,), (1335027612,), (1335027615,), (1335027658,), (1335027659,), (1335027661,), (1335027694,), (1335027695,), (1335027697,), (1335027699,), (1335027700,), (1335027725,), (1335027726,), (1335027728,), (1335027730,), (1335027757,), (1335027760,), (1335027765,), (1335027767,), (1335027768,), (1335027790,), (1335027791,), (1335027793,), (1335027795,), (1335027797,), (1335027799,), (1335027828,), (1335027829,), (1335027831,), (1335027832,), (1335027836,), (1335027877,), (1335027909,), (1335027912,), (1335027916,), (1335028024,), (1335028026,), (1335028029,), (1335028032,), (1335028034,), (1335028037,), (1335028062,), (1335028063,), (1335028066,), (1335028069,), (1335028070,), (1335028102,), (1335028103,), (1335028105,), (1335028107,), (1335028171,), (1335028178,), (1335028180,), (1335028182,), (1335028184,), (1335028185,), (1335028208,), (1335028209,), (1335028213,), (1335028215,), (1335028217,), (1335028222,), (1335028324,), (1335028325,), (1335028327,), (1335028492,), (1335028496,), (1335028508,), (1335028514,), (1335028517,), (1335028565,), (1335028559,), (1335028560,), (1335028562,), (1335028605,), (1335028606,), (1335028609,), (1335028612,), (1335028614,), (1335028642,), (1335028668,), (1335028671,), (1335028674,), (1335028678,), (1335028722,), (1335028727,), (1335028730,), (1335028731,), (1335028735,), (1335028739,), (1335028763,), (1335028764,), (1335028766,), (1335028767,), (1335028807,), (1335028814,), (1335028818,), (1335028822,), (1335028861,), (1335028863,), (1335028864,), (1335028865,), (1335028866,), (1335028870,), (1335028917,), (1335028919,), (1335028924,), (1335028927,), (1335028957,), (1335028958,), (1335028983,), (1335028986,), (1335028990,), (1335028993,), (1335029094,), (1335029096,), (1335029099,), (1335029102,), (1335029124,), (1335029127,), (1335029130,), (1335029164,), (1335029169,), (1335029175,), (1335029181,), (1335029186,), (1335029190,), (1335029213,), (1335029215,), (1335029260,), (1335029270,), (1335029272,), (1335029313,), (1335029318,), (1335029357,), (1335029411,), (1335029563,), (1335029627,), (1335029695,), (1335029717,), (1335029862,), (1335029842,), (1335029844,), (1335029848,), (1335029857,), (1335029860,), (1335029890,), (1335029892,), (1335029895,), (1335029919,), (1335029921,), (1335029939,), (1335029942,), (1335029946,), (1335029956,), (1335030105,), (1335030107,), (1335030110,), (1335030113,), (1335030115,), (1335030137,), (1335030141,), (1335030145,), (1335030148,), (1335030150,), (1335030153,), (1335030227,), (1335030231,), (1335030235,), (1335030238,), (1335030242,), (1335030432,), (1335030436,), (1335030458,), (1335030460,), (1335030473,), (1335030477,), (1335030480,), (1335030566,), (1335030568,), (1335030572,), (1335030576,), (1335030580,), (1335030589,), (1335030610,), (1335030612,), (1335030616,), (1335030662,), (1335030717,), (1335030718,), (1335030721,), (1335030748,), (1335030755,), (1335030760,), (1335030817,), (1335030822,), (1335030827,), (1335031047,), (1335031051,), (1335031222,), (1335031228,), (1335031231,), (1335031234,), (1335031255,), (1335031257,), (1335031260,), (1335031263,), (1335031265,), (1335031268,), (1335031285,), (1335031294,), (1335031296,), (1335031297,), (1335031329,), (1335031313,), (1335031316,), (1335031320,), (1335031323,), (1335031326,), (1335031355,), (1335031359,), (1335031365,), (1335031368,), (1335031369,), (1335031382,), (1335031383,), (1335031385,), (1335031388,), (1335031391,), (1335031423,), (1335031426,), (1335031428,), (1335031430,), (1335031431,), (1335031433,), (1335031570,), (1335031572,), (1335031601,), (1335031602,), (1335031603,), (1335031615,), (1335031621,), (1335031673,), (1335031680,), (1335031684,), (1335031688,), (1335031730,), (1335032512,), (1335032769,), (1335033581,), (1335033584,), (1335033588,), (1335033591,), (1335033612,), (1335033615,), (1335033648,), (1335033724,), (1335033810,), (1335034314,), (1335034318,), (1335034324,), (1335034328,), (1335034334,), (1335034338,), (1335034367,), (1335034355,), (1335034358,), (1335034416,), (1335034419,), (1335034423,), (1335034504,), (1335034510,), (1335034515,), (1335034623,), (1335034634,), (1335034638,), (1335034655,), (1335034793,), (1335034808,), (1335034811,), (1335034853,), (1335034855,), (1335035006,), (1335035008,), (1335035011,), (1335035014,), (1335035018,), (1335035030,), (1335035074,), (1335035084,), (1335035087,), (1335035092,), (1335035101,), (1335035126,), (1335035129,), (1335035131,), (1335035135,), (1335035163,), (1335035166,), (1335035170,), (1335035174,), (1335035179,), (1335035184,), (1335035246,), (1335035250,), (1335035255,), (1335035260,), (1335035296,), (1335035298,), (1335035301,), (1335035304,), (1335035314,), (1335035319,), (1335035355,), (1335035363,), (1335035366,), (1335035374,), (1335035378,), (1335035383,), (1335035402,), (1335035411,), (1335035415,), (1335035469,), (1335035610,), (1335035612,), (1335035615,), (1335035618,), (1335035645,), (1335035649,), (1335035652,), (1335035658,), (1335035663,), (1335035677,), (1335035727,), (1335035710,), (1335035712,), (1335035715,), (1335035720,), (1335035722,), (1335035898,), (1335035900,), (1335035903,), (1335036487,), (1335036490,), (1335036496,), (1335036498,), (1335036502,), (1335036522,), (1335036525,), (1335036531,), (1335036546,), (1335036551,), (1335036555,), (1335036589,), (1335036593,), (1335036604,), (1335036697,), (1335036833,), (1335036849,), (1335036861,), (1335036888,), (1335036892,), (1335036943,), (1335037032,), (1335037034,), (1335037037,), (1335037109,), (1335037112,), (1335037115,), (1335037117,), (1335037122,), (1335037126,), (1335037173,), (1335037175,), (1335037178,), (1335037181,), (1335037184,), (1335037211,), (1335037215,), (1335037220,), (1335037225,), (1335037228,), (1335037231,), (1335037538,), (1335037682,), (1335037827,), (1335038303,), (1335038306,), (1335038310,), (1335038321,), (1335038325,), (1335038329,), (1335038600,), (1335038602,), (1335038605,), (1335038608,), (1335038788,), (1335038802,), (1335038870,), (1335038902,), (1335038911,), (1335038915,), (1335105457,), (1334733339,), (1334733342,), (1334733345,), (1334733347,), (1334733349,), (1334733424,), (1334733492,), (1334733495,), (1334733498,), (1334733506,), (1334733534,), (1334733538,), (1334733564,), (1334733574,), (1334733577,), (1334733579,), (1334733580,), (1334733581,), (1334733626,), (1334733628,), (1334733632,), (1334733636,), (1334733640,), (1334733643,), (1334733645,), (1334733646,), (1334733647,), (1334733648,), (1334737528,), (1334731970,), (1334738242,), (1334738270,), (1334738282,), (1334738286,), (1334738288,), (1334738290,), (1334738341,), (1334738342,), (1334738343,), (1334738346,), (1334738348,), (1334738369,), (1334738379,), (1334738381,), (1334738383,), (1334738384,), (1334738412,), (1334738415,), (1334738418,), (1334738421,), (1334738425,), (1334738433,), (1334738483,), (1334738485,), (1334738487,), (1334738488,), (1334738534,), (1334738615,), (1334738692,), (1334738756,), (1334739032,), (1334739034,), (1334739035,), (1334739036,), (1335076322,), (1335076324,), (1335076325,), (1335076327,), (1335076328,), (1335076330,), (1335076340,), (1335076344,), (1335076348,), (1335076351,), (1335076355,), (1335076358,), (1335076361,), (1335076362,), (1335076363,), (1335076451,), (1335076636,), (1335076841,), (1335077166,), (1335077168,), (1335077170,), (1335077171,), (1335077172,), (1335077174,), (1335077177,), (1335077192,), (1335077276,), (1335077358,), (1335104549,), (1335104555,), (1335104561,), (1335104583,), (1335104585,), (1335104586,), (1335104588,), (1335104590,), (1335104591,), (1335104618,), (1335104619,), (1335104620,), (1335104621,), (1335104622,), (1335104623,), (1335104662,), (1335104671,), (1335104681,), (1335104682,), (1335104684,), (1335104686,), (1335104701,), (1335104702,), (1335104703,), (1335104705,), (1335104707,), (1335104710,), (1335104958,), (1335104960,), (1335104961,), (1335105007,), (1335105024,), (1335105025,), (1335105205,), (1335105210,), (1335105211,), (1335105240,), (1335105241,), (1335105260,), (1335105283,), (1335105287,), (1335105290,), (1335105292,), (1335105294,), (1335105296,), (1335105436,), (1335105439,), (1335105440,), (1335105441,), (1335105443,), (1335105445,), (1335105452,), (1335105455,), (1335076316,), (1335076318,), (1335076319,), (1335076321,), (1335077160,), (1335077163,), (1335077714,), (1335077716,), (1335077763,), (1335077786,), (1335077901,), (1335077923,), (1335102975,), (1335102977,), (1335102982,), (1335103139,), (1335103140,), (1335103141,), (1335103142,), (1335103145,), (1335103147,), (1335103563,), (1335103564,), (1335103565,), (1335103566,), (1335103567,), (1335103568,), (1335103743,), (1335103747,), (1335103752,), (1335103755,), (1335103757,), (1335103759,), (1335103762,), (1335103797,), (1335103837,), (1335103880,), (1335103906,), (1335103910,), (1335104325,), (1335104342,), (1335104354,), (1335104372,), (1335104393,), (1335104395,), (1335104527,), (1335104533,), (1335104545,), (1335076313,), (1335076314,), (1335077994,), (1335077996,), (1335078011,), (1335078069,), (1335078082,), (1335078108,), (1335078109,), (1335078111,), (1335078112,), (1335078113,), (1335078115,), (1335078116,), (1335078139,), (1335078146,), (1335078148,), (1335078152,), (1335078154,), (1335078158,), (1335078169,), (1335078172,), (1335078173,), (1335078175,), (1335078235,), (1335078236,), (1335078481,), (1335078522,), (1335078523,), (1335078525,), (1335078590,), (1335078599,), (1335100883,), (1335100889,), (1335100994,), (1335100995,), (1335100997,), (1335100999,), (1335101001,), (1335101007,), (1335101040,), (1335101042,), (1335101044,), (1335101046,), (1335101047,), (1335101049,), (1335101092,), (1335101094,), (1335101095,), (1335101096,), (1335101098,), (1335101099,), (1335101100,), (1335101101,), (1335101102,), (1335101103,), (1335101104,), (1335101105,), (1335101180,), (1335101184,), (1335101185,), (1335101207,), (1335101248,), (1335101299,), (1335101568,), (1335101580,), (1335101582,), (1335101584,), (1335101586,), (1335101589,), (1335101895,), (1335102036,), (1335102138,), (1335102243,), (1335102351,), (1335102385,), (1335102407,), (1335102408,), (1335102420,), (1335102431,), (1335102437,), (1335102464,), (1335102838,), (1335102840,), (1335102932,), (1335078251,), (1335078258,), (1335078262,), (1335078267,), (1335078371,), (1335078390,), (1335078652,), (1335078683,), (1335078686,), (1335078688,), (1335078690,), (1335078703,), (1335079126,), (1335079317,), (1335079498,), (1335079656,), (1335079728,), (1335079803,), (1335079972,), (1335079974,), (1335079975,), (1335079976,), (1335079977,), (1335079978,), (1335099512,), (1335099556,), (1335099587,), (1335099626,), (1335099658,), (1335099715,), (1335099887,), (1335099889,), (1335099891,), (1335099893,), (1335099900,), (1335099903,), (1335099990,), (1335099992,), (1335099994,), (1335099995,), (1335099996,), (1335099997,), (1335100017,), (1335100023,), (1335100025,), (1335100026,), (1335100027,), (1335100028,), (1335100211,), (1335100212,), (1335100213,), (1335100214,), (1335100215,), (1335100216,), (1335100238,), (1335100258,), (1335100264,), (1335100270,), (1335100274,), (1335100287,), (1335100629,), (1335100631,), (1335100632,), (1335100633,), (1335100634,), (1335100636,), (1335100671,), (1335100672,), (1335100674,), (1335100677,), (1335100678,), (1335100679,), (1335100743,), (1335100814,), (1335100845,), (1335100850,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05022025': {'nb_upload': 35, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20287908]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1334739036, 1334739035, 1334739034, 1334739032, 1334738756, 1334738692, 1334738615, 1334738534, 1334738488, 1334738487, 1334738485, 1334738483, 1334738433, 1334738425, 1334738421, 1334738418, 1334738415, 1334738412, 1334738384, 1334738383, 1334738381, 1334738379, 1334738369, 1334738348, 1334738346, 1334738343, 1334738342, 1334738341, 1334738290, 1334738288, 1334738286, 1334738282, 1334738270, 1334738242, 1334731970] map_info['map_portfolio_photo'] : {20287908: [1334739036, 1334739035, 1334739034, 1334739032, 1334738756, 1334738692, 1334738615, 1334738534, 1334738488, 1334738487, 1334738485, 1334738483, 1334738433, 1334738425, 1334738421, 1334738418, 1334738415, 1334738412, 1334738384, 1334738383, 1334738381, 1334738379, 1334738369, 1334738348, 1334738346, 1334738343, 1334738342, 1334738341, 1334738290, 1334738288, 1334738286, 1334738282, 1334738270, 1334738242, 1334731970]} final : True mtd_id 4302 list_pids : [1334739036, 1334739035, 1334739034, 1334739032, 1334738756, 1334738692, 1334738615, 1334738534, 1334738488, 1334738487, 1334738485, 1334738483, 1334738433, 1334738425, 1334738421, 1334738418, 1334738415, 1334738412, 1334738384, 1334738383, 1334738381, 1334738379, 1334738369, 1334738348, 1334738346, 1334738343, 1334738342, 1334738341, 1334738290, 1334738288, 1334738286, 1334738282, 1334738270, 1334738242, 1334731970] Looping around the photos to save general results len do output : 1 /20287908Didn'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, '2558165') ('4302', '20287908', '1334739036', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334739035', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334739034', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334739032', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738756', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738692', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738615', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738534', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738488', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738487', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738485', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738483', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738433', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738425', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738421', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738418', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738415', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738412', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738384', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738383', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738381', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738379', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738369', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738348', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738346', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738343', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738342', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738341', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738290', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738288', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738286', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738282', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738270', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334738242', None, None, None, None, None, '2558165') ('4302', None, None, None, None, None, None, None, '2558165') ('4302', '20287908', '1334731970', None, None, None, None, None, '2558165') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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, '20287908', 'None', None, None, None, None, '2558165'), ('4302', '20287908', '1334739036', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334739035', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334739034', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334739032', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738756', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738692', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738615', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738534', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738488', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738487', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738485', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738483', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738433', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738425', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738421', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738418', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738415', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738412', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738384', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738383', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738381', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738379', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738369', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738348', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738346', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738343', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738342', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738341', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738290', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738288', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738286', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738282', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738270', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334738242', None, None, None, None, None, '2558165'), ('4302', '20287908', '1334731970', None, None, None, None, None, '2558165')] time used for this insertion : 0.019478797912597656 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.998169422149658 time spend to save output : 0.019783973693847656 total time spend for step 5 : 4.017953395843506 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 (2558165) 2.92user 2.30system 0:14.56elapsed 35%CPU (0avgtext+0avgdata 162440maxresident)k 5096inputs+21136outputs (77major+89162minor)pagefaults 0swaps